I've installed and configured the ticket submit policy plugin ( confirmed in admin console; trac.ini contains config ; server restarted ) that you wrote, but it never fires. There are no relevant logs in the trac.log file and no errors ? Trac simply seems not to be parsing the config and acting upon it.

There's really no point in sending you the trac.log as there's nothing relevant in there, however this is the content of the notification email, which clearly shows that the owner and description fields are NULL, where the ticket-submit-policy configuration required them to be present.

If you don't see any mention TicketSubmitPolicyPlugin in the logs, then the egg is not installed correctly. You should see either Loading or Skipping in the logs. However, you've said that you see the plugin in the admin console, so there must be some mention of it in the log. Maybe look closer ;)

ticketsubmitpolicy.policies.ticketexcludes=enabledticketsubmitpolicy.policies.ticketrequires=enabledticketsubmitpolicy.ticketsubmitpolicy.ticketsubmitpolicyplugin=enabled[ticket-submit-policy]policy1.condition=type is EPICpolicy1.requires=description

I see a few issues that need to be fixed, but I won't be able to continue working on this until at least Thursday.

The code is confusing, at least partially due to the way that JavaScript code needed to be injected into the template prior to Trac 0.12. With Trac 0.12, there came a function named add_script_data, that made it possible to pass data from Python to JavaScript. A good step here would be to move as much JavaScript code as possible into a dedicated file, and if we branch for Trac 0.12, we can move all of the JavaScript code into a dedicated file.

I'm so grateful for your comments on this as I'd really like to get this plugin running in my environment, but with very little Python/Javascript experience I'm at a loss. If you should have time to make the necessary changes and point me at a patch if would be very much appreciated.

Many thanks indeed up until now

Paul

Add Comment

This ticket has been modified since you started editing. You should review the
other modifications which have been appended above,
and any conflicts shown in the preview below.
You can nevertheless proceed and submit your changes if you wish so.