Daniel - 2013-02-13

Hi,

If I try to change a test case template, I get the error:

Trac detected an internal error:
UnboundLocalError: local variable 't_id' referenced before assignment

Python Traceback
Most recent call last:

    File "c:/users/admini~1/appdata/local/temp/easy_install-dpzmde/Trac-0.12.2-py2.7-win32.egg.tmp/trac/web/main.py", line 511, in _dispatch_request
    File "c:/users/admini~1/appdata/local/temp/easy_install-dpzmde/Trac-0.12.2-py2.7-win32.egg.tmp/trac/web/main.py", line 237, in dispatch
    File "c:/users/admini~1/appdata/local/temp/easy_install-dpzmde/Trac-0.12.2-py2.7-win32.egg.tmp/trac/admin/web_ui.py", line 116, in process_request
    File "C:/Python27/lib/site-packages/testmanager-1.5.2-py2.7.egg/testmanager/admin.py", line 66, in render_admin_panel
    File "C:/Python27/lib/site-packages/testmanager-1.5.2-py2.7.egg/testmanager/admin.py", line 258, in _render_templates
    File "C:/Python27/lib/site-packages/testmanager-1.5.2-py2.7.egg/testmanager/api.py", line 947, in save_template
    File "c:/users/admini~1/appdata/local/temp/easy_install-dpzmde/Trac-0.12.2-py2.7-win32.egg.tmp/trac/db/api.py", line 77, in transaction_wrapper
    File "C:/Python27/lib/site-packages/testmanager-1.5.2-py2.7.egg/testmanager/api.py", line 963, in do_save_template

The workaround is to delete the template and create it again.
But this means to re-assign the case template for all catalogs.

I am using Trac 0.12.2 and TestManager 1.5.2

Daniel