Opened 13 years ago

Last modified 7 years ago

#8653 closed defect

Backlog Plugin stop trac from functioning — at Initial Version

Reported by: anonymous Owned by: Bart Ogryczak
Priority: normal Component: BacklogPlugin
Severity: normal Keywords:
Cc: Anna Nachesa Trac Release: 0.12

Description

Hello Bart,

First ty for making this plugin I really look forward to getting it working.

Please note this is trac 0.12

I initially downloaded this zipped plugin extracted and attempted to install.

this yielded:

easy_install 0.11 Processing 0.11 Running setup.py -q bdist_egg --dist-dir /root/backlogplugin/0.11/egg-dist-tmp-1Co9jy

File "build/bdist.linux-x86_64/egg/backlog/model.py", line 158

(ordered_tickets if tickettkt_order? is not None else unordered_tickets).append(ticket)

SyntaxError: invalid syntax Adding BacklogPlugin 0.1.33 to easy-install.pth file

Installed /usr/lib/python2.4/site-packages/BacklogPlugin-0.1.33-py2.4.egg Processing dependencies for BacklogPlugin==0.1.33 Finished processing dependencies for BacklogPlugin==0.1.33

So I broke out the compound if statement via:

if tickettkt_order? is not None:

ordered_tickets.append(ticket)

else:

unordered_tickets.append(ticket)

This allowed it to build:

easy_install 0.11 Processing 0.11 Running setup.py -q bdist_egg --dist-dir /root/backlogplugin/0.11/egg-dist-tmp-j1xkIT BacklogPlugin 0.1.33 is already the active version in easy-install.pth

Installed /usr/lib/python2.4/site-packages/BacklogPlugin-0.1.33-py2.4.egg Processing dependencies for BacklogPlugin==0.1.33 Finished processing dependencies for BacklogPlugin==0.1.33

Upon enabling the plugin though trac is not happy with the stack trace below:

Traceback (most recent call last):

File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 511, in _dispatch_request

dispatcher.dispatch(req)

File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 237, in dispatch

resp = chosen_handler.process_request(req)

File "/usr/lib/python2.4/site-packages/trac/admin/web_ui.py", line 80, in process_request

panels, providers = self._get_panels(req)

File "/usr/lib/python2.4/site-packages/trac/admin/web_ui.py", line 163, in _get_panels

p = list(provider.get_admin_panels(req) or [])

File "/usr/lib/python2.4/site-packages/trac/ticket/admin.py", line 45, in get_admin_panels

if 'TICKET_ADMIN' in req.perm:

File "/usr/lib/python2.4/site-packages/trac/perm.py", line 553, in has_permission

return self._has_permission(action, resource)

File "/usr/lib/python2.4/site-packages/trac/perm.py", line 566, in _has_permission

decision = PermissionSystem(self.env). \

File "/usr/lib/python2.4/site-packages/trac/perm.py", line 454, in check_permission

perm)

File "/usr/lib/python2.4/site-packages/trac/perm.py", line 285, in check_permission

permissions = PermissionSystem(self.env). \

File "/usr/lib/python2.4/site-packages/trac/perm.py", line 359, in get_user_permissions

actions += list(requestor.get_permission_actions() or [])

File "/usr/lib/python2.4/site-packages/trac/perm.py", line 476, in get_permission_actions

for action in requestor.get_permission_actions() or []:

File "build/bdist.linux-x86_64/egg/backlog/web_ui.py", line 258, in get_permission_actions File "build/bdist.linux-x86_64/egg/backlog/model.py", line 278, in init

AttributeError: 'BacklogList' object has no attribute 'env'

Please advise as I would totally love to try this out and provide feedback.

Thanks again,

Jesse

Change History (0)

Note: See TracTickets for help on using tickets.