Contents
ERP5Type
What is add_permission ?
add_permission is an attribute of a class (or maybe some day of a portal_type) which tells what kind of permission is required on the container in order to create an instance of that class inside the container. It is intended for example to make a difference between the right to create an address for a Person and the right to create a new career step for that same person. The approach is inspired by ScriptableTypeInformation.isConstructionAllowed in Zope CMF.
Id Tool
What is 'The last_id xxx stored in zodb dictionary is higher than the new id yyy generated for id_group catalog_uid.' error?
In this case, you can solve the issue by invoking rebuildSqlTable on the mysql non continuous increasing id generator, located in /portal_ids. Since r38441, more useful information is added in this exception like : 'in voke xxx/portal_ids/6/rebuildSqlTable to fix this problem.'.
Not categorized (yet)
Why property is in _local_properties, even if there is PropertySheet associated with?
This is case, when this property was set on object before associating portal type with Property Sheet, eg. by edit call. To fix this call fixConsistency and it will remove local property.
Ref: http://mail.nexedi.com/pipermail/erp5-dev/2008-April/001819.html
Mostly everything raises Unauthorized exception! What is happening?
It can happen if you remove the zope user account that is used to set up the ERP5 site or managing business templates, because many objects (like portal_skins/*) are now owned by Anonymous. In this case, you can just re-add the user account in root level acl_users by using zopectl's adduser command.
So it is highly recommended to always use the same zope user for managing business templates, that exists in the root level acl_users.