[ZPatterns] problems w/ Folder w/ Customizer Support
Tim McLaughlin
[email protected]
Wed, 12 Sep 2001 14:23:07 -0400
Using ZedPatterns-0.4.3p2 as released by Steve on Zope 2.4.1, I seem to
be having a problem w/ the Folder w/ Customizer support. I thought that
a ZClass which subclassed Dataskin would be "addable" through the ZMI,
but it doesn't work. I get the a Keyerror for 'id' with following
traceback.
Traceback (innermost last):
File /zope/lib/python/ZPublisher/Publish.py, line 223, in
publish_module
File /zope/lib/python/Products/Localizer/__init__.py, line 53, in
new_publish
File /zope/lib/python/ZPublisher/Publish.py, line 187, in publish
File /zope/lib/python/Zope/__init__.py, line 226, in
zpublisher_exception_hook
(Object: RoleManager)
File /zope/lib/python/ZPublisher/Publish.py, line 171, in publish
File /zope/lib/python/ZPublisher/mapply.py, line 160, in mapply
(Object: Thingy_add)
File /zope/lib/python/ZPublisher/Publish.py, line 112, in call_object
(Object: Thingy_add)
File /zope/lib/python/OFS/DTMLMethod.py, line 194, in __call__
(Object: Thingy_add)
File /zope/lib/python/DocumentTemplate/DT_String.py, line 546, in
__call__
(Object: Thingy_add)
File /zope/Products/ZDebug/DTMLDebug.py, line 305, in
debug_render_blocks
File /zope/Products/ZDebug/DTMLDebug.py, line 226, in debugException
(Object: Thingy.createInObjectManager(REQUEST['id'], REQUEST))
File /zope/Products/ZDebug/DTMLDebug.py, line 303, in
debug_render_blocks
File /zope/lib/python/DocumentTemplate/DT_With.py, line 133, in render
(Object: Thingy.createInObjectManager(REQUEST['id'], REQUEST))
File /zope/lib/python/DocumentTemplate/DT_Util.py, line 231, in eval
(Object: Thingy.createInObjectManager(REQUEST['id'], REQUEST))
(Info: REQUEST)
File <string>, line 2, in f
(Object: guarded_getitem)
File /zope/lib/python/ZClasses/ZClass.py, line 523, in
createInObjectManager
(Object: LockableItem)
File /zope/lib/python/OFS/CopySupport.py, line 481, in _setId
(Object: LockableItem)
File /zope/lib/python/Products/ZPatterns/DataSkins.py, line 247, in
__set_attr__
(Object: LockableItem)
KeyError: (see above)
So, again, I kinda feel like I'm missing something. Do I need to change
the default constructor or something? I'm boggled (and I thought I had
finally kinda grokked ZP :(
Thanks,
Tim
--
Tim McLaughlin
iterationZERO - www.iterationzero.com
703.481.2233