diff options
Diffstat (limited to 'www/trac-gantt/files')
-rw-r--r-- | www/trac-gantt/files/patch-setup.py | 13 | ||||
-rw-r--r-- | www/trac-gantt/files/patch-tracgantt-gantt.py | 49 |
2 files changed, 0 insertions, 62 deletions
diff --git a/www/trac-gantt/files/patch-setup.py b/www/trac-gantt/files/patch-setup.py deleted file mode 100644 index 0d8d1d4282b5..000000000000 --- a/www/trac-gantt/files/patch-setup.py +++ /dev/null @@ -1,13 +0,0 @@ ---- setup.py.orig 2006-07-20 17:08:15 UTC -+++ setup.py -@@ -9,8 +9,8 @@ setup ( - packages = ['tracgantt'], - package_data={'tracgantt': ['templates/*.cs', 'htdocs/*.css']}, - -- #install_requires = ['trac>=0.9'], -- #entry_points = {'trac.plugins': ['module_name = gantt']}, -+ install_requires = ['trac>=0.11'], -+ entry_points = {'trac.plugins': ['tracgantt = tracgantt']}, - - author = "Will Barton", - author_email = "wbb4@opendarwin.org", diff --git a/www/trac-gantt/files/patch-tracgantt-gantt.py b/www/trac-gantt/files/patch-tracgantt-gantt.py deleted file mode 100644 index 10e1575b86e7..000000000000 --- a/www/trac-gantt/files/patch-tracgantt-gantt.py +++ /dev/null @@ -1,49 +0,0 @@ ---- tracgantt/gantt.py.orig 2006-07-20 17:07:06 UTC -+++ tracgantt/gantt.py -@@ -115,7 +115,7 @@ class GanttComponent(Component): - show_opened = self.env.config.getbool('gantt-charts', - 'show_opened', 'false') - -- tickets,dates,broken = self._tickets_for_report(db, report['query']) -+ tickets,dates,broken = self._tickets_for_report(db, report['query'], req.perm.username) - tickets,dates = self._paginate_tickets(tickets, dates) - - req.hdf['gantt.tickets'] = tickets -@@ -163,7 +163,7 @@ class GanttComponent(Component): - - return {'id':id, 'title':title, 'query':query, 'description':description} - -- def _tickets_for_report(self, db, query): -+ def _tickets_for_report(self, db, query, username): - """ Get a list of Ticket instances for the tickets in a report """ - - tickets = [] -@@ -172,7 +172,7 @@ class GanttComponent(Component): - - ## Get tickets for this report - cursor = db.cursor() -- cursor.execute(query) -+ cursor.execute(query.replace('$USER', "'%s'" % username)) - info = cursor.fetchall() or [] - cols = [s[0] for s in cursor.description or []] - db.rollback() -@@ -344,7 +344,7 @@ class GanttComponent(Component): - "use_creation_date", "true") - - if use_cdate: -- start = datetime.date.fromtimestamp(ticket.time_created) -+ start = datetime.date.fromordinal(ticket.time_created.toordinal()) - else: - raise ValueError, "Couldn't get start date" - -@@ -370,8 +370,8 @@ class GanttComponent(Component): - % (str(ticket.id), str(start), str(due)) - - # Finally the ticket itself's open and close dates -- open = datetime.date.fromtimestamp(ticket.time_created) -- changed = datetime.date.fromtimestamp(ticket.time_changed) -+ open = ticket.time_created.date() -+ changed = ticket.time_changed.date() - - return (start, due, open, changed) - |