Modify

Opened 9 years ago

Closed 8 years ago

#12665 closed defect (fixed)

Workflow admin page does not appear

Reported by: sthainzl Owned by: Ryan J Ollos
Priority: normal Component: MultipleWorkflowPlugin
Severity: normal Keywords:
Cc: Trac Release: 1.0

Description

Installed the plugin (v 1.3.1) according to instructions, but the admin page does not appear.

Attachments (0)

Change History (7)

comment:1 Changed 9 years ago by Cinc-th

You need to have TICKET_ADMIN permission to see the admin page. Or TRAC_ADMIN of course.

If it's not a permission problem:

  • Activate logging for Trac
  • Attach the log to this ticket if there is any error in the log.

comment:2 Changed 9 years ago by sthainzl <trac@…>

Thanks for the quick response!

Here is the relevant bit of the log:

2016-02-11 05:10:30,474 Trac[loader] DEBUG: Loading MultipleWorkflowPAdminModule from /media/mmc/trac/plugins/MultipleWorkflowPlugin-1.3.1-py2.7.egg
2016-02-11 05:10:30,566 Trac[loader] ERROR: Skipping "MultipleWorkflowPAdminModule = multipleworkflow.web_ui": 
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/trac/loader.py", line 68, in _load_eggs
    entry.load(require=True)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2190, in load
    ['__name__'])
  File "build/bdist.linux-armv7l/egg/multipleworkflow/web_ui.py", line 24, in <module>
ImportError: cannot import name get_workflow_config_default
2016-02-11 05:10:30,567 Trac[loader] DEBUG: Loading MultipleWorkflowPlugin from /media/mmc/trac/plugins/MultipleWorkflowPlugin-1.3.1-py2.7.egg

comment:3 Changed 9 years ago by sthainzl <trac@…>

Further background:

  • install was done using easy_install
  • Trac is 1.0.2

Note that I have moved the .egg off the easy_install location because my system volume is quite small. That gave me no issues so far.

Thank you!

comment:4 Changed 9 years ago by Sthainzl

Seems line 24 of web_ui.py needs to be stripped off the get_workflow_config_default. Will try that tomorrow morning and report back.

Last edited 9 years ago by Ryan J Ollos (previous) (diff)

comment:5 Changed 9 years ago by sthainzl

Removing get_workflow_config_default from web_ui.py line 24 makes the admin panel appear. It however falls over if one tries to select the default workflow, because this needs the routine to be available.

Custom workflows work as expected.

get_workflow_config_default was removed from workflow.py with the last commit, but I did not get to the bottom whether that was intended and web_ui.py is missing some changes, or get_workflow_config_default should not have been deleted from workflow.py.

Hope this helps.

Last edited 9 years ago by Ryan J Ollos (previous) (diff)

comment:6 Changed 8 years ago by Ryan J Ollos

Owner: changed from Cinc-th to Ryan J Ollos
Status: newaccepted

comment:7 Changed 8 years ago by Ryan J Ollos

Resolution: fixed
Status: acceptedclosed

In 16593:

MultipleWorkflowPlugin 1.3.3: Fix regression in r15137

get_workflow_config_default was removed without
replacing all uses.

Tidy up codebase and require Trac >= 1.0.

Refs #12570, Fixes #12665.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.