[Zope-dev] ZPatterns bug: Customizers don't rename well

Steve Alexander steve@cat-box.net
Tue, 29 Aug 2000 19:32:03 +0100


ZPatterns 0-4-1snap1
Zope 2.2.1

To reproduce the error, do this:

  Create a Folder with Customizer support

  Give it a Customizer

  Rename that Customizer

  Press the "Customizers" tab in the folder


Zope Error

Error Type: AttributeError
Error Value: __customizerRegistry__

Traceback (innermost last):
  File /lib/python/ZPublisher/Publish.py, line 222, in publish_module
  File /lib/python/ZPublisher/Publish.py, line 187, in publish
  File /lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
  File /lib/python/ZPublisher/Publish.py, line 171, in publish
  File /lib/python/ZPublisher/mapply.py, line 160, in mapply
    (Object: manage_main)
  File /lib/python/ZPublisher/Publish.py, line 112, in call_object
    (Object: manage_main)
  File /lib/python/App/special_dtml.py, line 120, in __call__
    (Object: manage_main)
    (Info: /lib/python/Products/ZPatterns/www/PlugInGroup.dtml)
  File /lib/python/DocumentTemplate/DT_String.py, line 528, in __call__
    (Object: manage_main)
  File /lib/python/App/special_dtml.py, line 120, in __call__
    (Object: manage_below)
    (Info: /lib/python/Products/ZPatterns/www/showCustomizers.dtml)
  File /lib/python/DocumentTemplate/DT_String.py, line 528, in __call__
    (Object: manage_below)
  File /lib/python/DocumentTemplate/DT_In.py, line 630, in renderwob
    (Object: manage_registry)
  File /lib/python/Products/ZPatterns/Customizers.py, line 63, in
manage_registry
AttributeError: (see above)


The error occurs because the rename method redirects to:

http://puffin.cat-box.net:7080/test/Customizers_

Pressing the "customizers" tab yields the url:

http://puffin.cat-box.net:7080/test/Customizers_/Customizers_/manage_workspace

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net