From: Rob M. <ra...@bu...> - 2004-07-28 23:24:18
|
On Jul 28, 2004, at 9:37 AM, Sasha Vincic wrote: >> Schema by clicking 'change', I get an error saying that > VIEW_PUBLIC_PERMISSION is not defined. > > You should use the "string version" of the permission. In this case > 'CMFMember: View' additionally, you could achieve the same effect w/o having to open the security hole by writing an external method that calls MemberDataContainer.setMemberSchema(); the web form simply passes your schema code in to this method. even better than using an external method is creating a python product that performs this operation on installation. i know this requires a bit more investment, but it's really not that hard and is WELL worth it. i can't stress enough the importance of being able to go from a default installation to a custom configuration using only an install script. when your site's functionality depends on performing arcane customizations by hand, you're destined to experience headaches down the road when you (or even worse, someone else) need to recreate your system. kapil (aka hazmat) has written a great piece on this that IMO should be required reading for all aspiring zope developers: http://www.zope.org/Members/k_vertigo/Stories/TeamZope -r |