Use another strategy to generate accessors.
Accessors are generated during the first call to _aq_dynamic, and generating accessors requires to access to some tools such as portal_types, that's why this method use to contain a list of names that should be ignored to prevent infinite loop (portal_types, portal_workflow ...) Now we store in a thread local variable the information that we are in the process of generating accessors, and return immediatly next time we enter _aq_dynamic, to be able to access required tools. As generating accessors for one type sometimes triggers accessors generation for a dependant type (Base Category, Types Tool), then we store in this variable the currently generated aq_key, not only the fact that we are generating. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35103 20353a03-c40f-0410-a6d1-a30d3c3de9de
Showing
Please register or sign in to comment