1. Olemis Lang
  2. trac-gviz

Commits

Olemis Lang  committed 9dcaff5

GViz provider : No need to add changetime and time columns by hand anymore when executing stored TracQuery reports ... (errors=29)

  • Participants
  • Parent commits f0388d6
  • Branches providers

Comments (0)

Files changed (2)

File trac-dev/gviz/tracgviz/rpc.py

View file
           query = Query.from_string(self.env, query[6:], report=id)
           fields = query.fields
           return [(f['name'], 'string', _(f['label'])) for f in fields] + \
-                  [   ('changetime', 'number', _('Modified')), \
-                      ('time', 'number', _('Created')), \
+                  [
                       ('href', 'string', _('URL')), \
                       ('id', 'number', _('Ticket')), \
                   ]

File trac-dev/gviz/tracgviz/testing/test_rpc.py

View file
       Column: resolution Type: string Label: Resolution
       Column: keywords Type: string Label: Keywords
       Column: cc Type: string Label: Cc
-      Column: changetime Type: number Label: Modified
-      Column: time Type: number Label: Created
+      Column: time Type: string Label: Created
+      Column: changetime Type: string Label: Modified
       Column: href Type: string Label: URL
       Column: id Type: number Label: Ticket
 
       Column: resolution Value: None
       Column: keywords Value: None
       Column: cc Value: None
+      Column: time Value: ... 
       Column: changetime Value: ... 
-      Column: time Value: ... 
       Column: href Value: http://example.org/trac.cgi/ticket/4
       Column: id Value: 4
       = Row 1 =
       Column: resolution Value: None
       Column: keywords Value: None
       Column: cc Value: None
+      Column: time Value: ... 
       Column: changetime Value: ... 
-      Column: time Value: ... 
       Column: href Value: http://example.org/trac.cgi/ticket/7
       Column: id Value: 7
       = Row 2 =
       Column: resolution Value: None
       Column: keywords Value: None
       Column: cc Value: None
+      Column: time Value: ... 
       Column: changetime Value: ... 
-      Column: time Value: ... 
       Column: href Value: http://example.org/trac.cgi/ticket/8
       Column: id Value: 8