Discussion:
[Erp5-dev] AttributeError of getIdGenerator
gt
2007-12-06 06:14:12 UTC
Permalink
Hi,

I've installed ERP5 in windows and encounter a problem when add 'ERP5
Site'. Error LOG show,

Exception Type AttributeError
Exception Value getIdGenerator

Traceback (innermost last):

* Module ZPublisher.Publish, line 114, in publish
* Module ZPublisher.mapply, line 88, in mapply
* Module ZPublisher.Publish, line 40, in call_object
* Module Products.ERP5.ERP5Site, line 95, in manage_addERP5Site
* Module Products.ERP5.ERP5Site, line 993, in create
* Module Products.ERP5.ERP5Site, line 1383, in setup
* Module Products.ERP5.ERP5Site, line 1425, in setupERP5Core
* Module Products.ERP5Type.Core.Folder, line 173, in generateNewId

AttributeError: getIdGenerator


I check the source code. In Folder.py, there is a function call of
getIdGenerator() but no implementation. How to resolve this error?

Thanks.

gt
--
We're paratroopers, we're supposed to be surrounded.
Pelletier Vincent
2007-12-06 11:02:36 UTC
Permalink
Post by gt
I check the source code. In Folder.py, there is a function call of
getIdGenerator() but no implementation. How to resolve this error?
This function is automaticaly generated by our zope patch[1][2], because the
"id_generator" property is defined[3]. Most probably you have this error
because you use a "regular" Zope version, which lacks our patch.

[1]http://www.erp5.org/WhyAqDynamicIsRequired
[2]http://svn.erp5.org/spec/mandriva/2008.0/erp5-zope/Zope-2.8.0-final-aq_dynamic.patch.bz2?view=log
[3]http://svn.erp5.org/erp5/trunk/products/ERP5Type/PropertySheet/Folder.py?revision=9295&view=markup
--
Vincent Pelletier
Loading...