Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Jul 2008 02:07:00 GMT
From:      Anton Batenev <antonbatenev@yandex.ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/126112: TracGantt 0.3.2a don't work with Trac 0.11 and maintainer don't support it now
Message-ID:  <200807310207.m6V270kg048637@www.freebsd.org>
Resent-Message-ID: <200807310210.m6V2A3cJ039658@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         126112
>Category:       misc
>Synopsis:       TracGantt 0.3.2a don't work with Trac 0.11 and maintainer don't support it now
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 31 02:10:03 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Anton Batenev
>Release:        FreeBSD-7.0
>Organization:
Yandex
>Environment:
FreeBSD bsd.localhost 7.0-STABLE FreeBSD 7.0-STABLE #0: Thu Jul 24 02:52:18 MSD 2008     abbat@bsd.localhost:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
TracGantt Plugin 0.3.2a from www/trac-gantt don't work with Trac 0.11 and maintainer don't support it now (see http://willbarton.com - "I haven't had much time to maintain it lately.")

Problems:

1) plugin doesn't load into trac environment after install - fix in setup.py.patch in attach;

2) after loading into trac environment (after fix setup.py) plugin doesn't work with error "Ticket ID: a float is required" (see also http://trac.edgewall.org/ticket/6598) - fix in gantt.py.patch in attach.

>How-To-Repeat:

>Fix:
apply patches from attach

Patch attached with submission follows:

--- setup.py.orig       2008-07-31 05:36:30.000000000 +0400
+++ setup.py    2008-07-31 05:39:52.000000000 +0400
@@ -9,8 +9,8 @@
         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",

--- tracgantt/gantt.py.orig     2008-07-31 05:36:39.000000000 +0400
+++ tracgantt/gantt.py  2008-07-31 05:37:45.000000000 +0400
@@ -370,8 +370,8 @@
                     % (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)


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200807310207.m6V270kg048637>