erp5_catalog: Add select_variable property for StandardProperty object in ERP5.
Whenever we create a standard property in a property sheet, we generate some properties for the standard property(like id, translatable, read_permission, etc) which one can usually see and change from going to manage_propertiesForm. But in case when we set the property type to selection or multiple selection, right now we get errors while trying to access property form ('select_variable not defined'). This was because we didn't have the select_variable property for the standard property, which are required to show the items available in the property. Also, in the dtml file for the properties form did have some bugs while displaying properties for select variable. This commit solves both the problem by adding property 'select_variable' for StandardProperty object, generating accessors for it and fixing the bug in dtml file for properties form. Even though we could have survived without the use of select_variable property in StandardProperty object, we can expect better consistency as in some places inside erp5, we are still using select_variable property. Also, it can prove helpful in casese where we shift something from zope to erp5, for example ZSQLCatalog, which do ahve select_property in their propertyMap and might need it inside erp5.
Showing
Please register or sign in to comment