-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Michael Carter wrote:
> I can't find an appropriate list for this, but this one seems the best > fit. I have a need to obtain local roles for my folder-like product > from an sql database. How do I redefine the functions that handle > local roles? I don't know what their names are. The magic attribute is '__ac_local_roles__'. By default, it is stored as a dictionary on the object, keyed by user ID. You can define it as a callable, however, returning a mapping. You will need to avoid deriving from AccessControls.Role.RoleManager, however, or at least suppress / override the local roles tab for your objects; otherwise, your users might shadow your callable with a normal dict (by calling 'manage_addLocalRole', 'manage_setLocalRoles', or 'manage_delLocalRoles'). Tres. - -- =================================================================== Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFC7Xhh+gerLs4ltQ4RAhWSAJ9GWaLKq3aOu5drxrxwbXa6DfRHCgCgxYTx 0DF7ppFXXa86q9/AGte25ws= =tSd+ -----END PGP SIGNATURE----- _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )