Changeset 3774
- Timestamp:
- 11/27/07 07:29:43 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
projects/twAjaxTools/trunk/toscawidgets/widgets/ajax_tools/extensions/tg.py
r2998 r3774 25 25 redirect = e.args[0][0] 26 26 except NotImplementedError, e: 27 if 'has no applicable error handler' not in e.args[0]: 27 # catch the error that not having an @error_handler() raises 28 if not e.args or 'has no applicable error handler' not in e.args[0]: 28 29 raise 29 30 … … 83 84 setattr(cherrypy.root, controller_name, controller) 84 85 85 def s top_extension():86 def shutdown_extension(): 86 87 if not config.get('toscawidgets.on', False) or \ 87 not extension .controllers_locked:88 not extensions.controllers_locked: 88 89 return 89 90 90 91 extensions.controllers_locked = False 91 92 92 for controller_name, obj in extensions.controllers: 93 delattr(cherrypy, controller_name) 93 for obj, controller_name in extensions.controllers.iteritems(): 94 if hasattr(cherrypy, controller_name): 95 delattr(cherrpy, controller_name) 94 96 projects/twAjaxTools/trunk/toscawidgets/widgets/ajax_tools/templates/auto_completing_fk_lookup_field.html
r2998 r3774 2 2 xmlns:py="http://genshi.edgewall.org/" 3 3 > 4 5 <input type="text" name="${name}" class="${css_class}"6 id="${id}" value="${value}" py:attrs="attrs"/>7 4 8 <input type="text" class="${css_class}" id="${id}_text" 9 value="" py:attrs="text_field_attrs" /> 5 <div> 6 <input type="text" name="${name}" class="${css_class}" 7 id="${id}" value="${value}" py:attrs="attrs"/> 8 9 <input type="text" class="${css_class}" id="${id}_text" 10 value="" py:attrs="text_field_attrs" /> 11 </div> 10 12 11 13 <span id="${id}_spinner" class="spinner" style="display: none">