[Erp5-dev] minor changes to make security and project work

Yoshinori Okuji yo at nexedi.com
Mon Jul 24 22:51:16 CEST 2006


On Monday 24 July 2006 19:45, Bartek Gorny wrote:
> To make security system work, I made two changes:
>
> (1) assign destination_project base category to category_type "assignment"
>
> (2) Products.ERP5Type.ERP5Type.py, line 365
>    - group_id = group_id_generator(**category_dict)
>    + group_id = group_id_generator(self,**category_dict)
>
> The latter was needed to make asSecurityGroupId run as external method.

As I haven't tested asSecurityGroupId as an external method, I might be 
seriosly wrong, but...

According to the code, group_id_generator is obtained from "object", so the 
method should be bound to "object". Thus I _guess_ "self" in an external 
method becomes "object" automatically. What is wrong with this behavior?

YO
-- 
Yoshinori Okuji, Nexedi CTO
Nexedi: Consulting and Development of Free / Open Source Software
http://www.nexedi.com
ERP5: Full Featured High End Open Source ERP
http://www.erp5.com
ERP5 Wiki: Developer Zone for ERP5 Community
http://wiki.erp5.org



More information about the Erp5-dev mailing list