eri x
unread,Jun 15, 2009, 3:28:34 AM6/15/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to trac...@googlegroups.com
It's an attribute that i change from the template, but sometimes(usually when i don't use trac for some minutes) when i send a request to dhe admin pannel it takes the default value.Looking on request arguments i noticed that when this problem happens the request arguments are the same that are used when trac loads the plugin and there are none of the arguments that i have inserted in my code and are used when it works fine. Until now the only solution that i think can work is to use an outer file where to save this variable.
--------------------------------------------------------------------------------------------------
class WorkflowEditorAdmin(Component):
tipo_ticket='default_workflow'
def render_admin_panel(self, req, cat, page, path_info):
req.perm.assert_permission('TRAC_ADMIN')
if req.method == 'POST':
if "select_ticket" and "flag" in req.args:
self.tipo_ticket=req.args['select_ticket']
else:
self._update_config(req,page_param)
---------------------------------------------------------------------------------------------
Regards ermal