[Erp5-dev] what categories to use with ERP5Type_getSecurityCategoryFromSelf

Mikolaj Antoszkiewicz mikolaj at erp5.pl
Mon Nov 12 21:46:03 CET 2007


The ERP5Type_getSecurityCategoryFromSelf doesn't actually needs a base 
category to calculate the security since it just takes a value of 
object's relative url.
But we need any kind of legal... well, string actually, for the 
dictionary key in category_dict and later for the creating of the legal 
path to the object. So if we use this script to allow logged people to 
see their Person objects in person module, we cannot use ANY base 
category here, since any path of the type 
'base_category/person_module/1' would be invalid... unless we create one 
of course, but that would be, I think, a coding crime...

Any string representing module or tool does work here thanks to an 
acquisition, but what would be the correct 'base_category' to use here?


Mikolaj



More information about the Erp5-dev mailing list