[ZPatterns] zpattern and zope 2.4 breaks

Joshua [email protected]
Sat, 10 Nov 2001 23:39:59 -0700


Hi

I get an error when instantiating a zclass that has a zpattern:dataskin
base class.  It asks for the ID and then I get the following:

Zope has encountered an error while publishing this resource.

Error Type: KeyError
Error Value: id

  File C:\PROGRA~1\Zope\lib\python\ZPublisher\Publish.py, line 223, in
publish_module
  File C:\PROGRA~1\Zope\lib\python\ZPublisher\Publish.py, line 187, in
publish
  File C:\PROGRA~1\Zope\lib\python\Zope\__init__.py, line 226, in
zpublisher_exception_hook
    (Object: asd_factory)
  File C:\PROGRA~1\Zope\lib\python\ZPublisher\Publish.py, line 171, in
publish
  File C:\PROGRA~1\Zope\lib\python\ZPublisher\mapply.py, line 160, in
mapply
    (Object: asd_add)
  File C:\PROGRA~1\Zope\lib\python\ZPublisher\Publish.py, line 112, in
call_object
    (Object: asd_add)
  File C:\PROGRA~1\Zope\lib\python\OFS\DTMLMethod.py, line 195, in
__call__
    (Object: asd_add)
  File C:\PROGRA~1\Zope\lib\python\DocumentTemplate\DT_String.py, line
546, in __call__
    (Object: asd_add)
  File C:\PROGRA~1\Zope\lib\python\DocumentTemplate\DT_With.py, line
133, in render
    (Object: asd.createInObjectManager(REQUEST['id'], REQUEST))
  File C:\PROGRA~1\Zope\lib\python\DocumentTemplate\DT_Util.py, line
231, in eval
    (Object: asd.createInObjectManager(REQUEST['id'], REQUEST))
    (Info: REQUEST)
  File <string>, line 2, in f
    (Object: guarded_getitem)
  File C:\PROGRA~1\Zope\lib\python\ZClasses\ZClass.py, line 523, in
createInObjectManager
    (Object: asd)
  File C:\PROGRA~1\Zope\lib\python\OFS\CopySupport.py, line 481, in
_setId
    (Object: )
  File C:\PROGRA~1\Zope\lib\python\Products\ZPatterns\DataSkins.py, line
247, in __set_attr__
    (Object: )
KeyError: (see above)

I used the zpattern that came with TransactionAgents 0.0.2 as I could
not get the latest zpattern to work.  I have seen some remarks about
something similar to this on the list but was not positive. I would be
happy enough getting the regular zpattern to work with zope2.4 or 2.5.
If I could be pointed to patches or something, that would be great.

Thanks

Joshua