Re: [Zope3-Users] Granting Roles - What am I missing?
On Sunday 19 February 2006 14:43, David Johnson wrote: I tried, but I continue to get the same error. I guess the question is, why doesn't granting the zope.ManageContent permission to my principal solve this problem in either case? Is it a local principal? If so, make sure that all the objects in the traversal path have a __parent__ attribute. Otherwise the security cannot be looked up correctly. Almost certainly smells like a bug. Regards, Stephan -- Stephan Richter CBU Physics Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Granting Roles - What am I missing?
Dnia sobota 18 lutego 2006 22:52, David Johnson napisał: I created a package which has views that list information from a SQL database. It works great. Would you like to put a bit more informations, about your solution, here? I'm going to build SQL DB based application in near future and I think that such info will be very helpful. Thanks in advance -- eXt ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
RE: [Zope3-Users] Granting Roles - What am I missing?
zope/app/rdb/configure.zcml says: content class=zope.app.rdb.ZopeConnection require permission=zope.ManageContent interface=zope.app.rdb.interfaces.IZopeConnection / /content which includes the cursor method/attribute - perhaps you need a similar configuration on your class or something like: require permission=zope.ManageContent attributes=cursor / I tried, but I continue to get the same error. I guess the question is, why doesn't granting the zope.ManageContent permission to my principal solve this problem in either case? ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Granting Roles - What am I missing?
Hi David, zope/app/rdb/configure.zcml says: content class=zope.app.rdb.ZopeConnection require permission=zope.ManageContent interface=zope.app.rdb.interfaces.IZopeConnection / /content which includes the cursor method/attribute - perhaps you need a similar configuration on your class or something like: require permission=zope.ManageContent attributes=cursor / Regards, Darryl On Sat, 2006-02-18 at 15:52 -0600, David Johnson wrote: I created a package which has views that list information from a SQL database. It works great. I have also created an Authenticator Plug-In, which also works great. However, the principals from my Authenticator Plug-In are not able to run the SQL queries from my package. I receive the following error: (zope.app.rdb.ZopeConnection object at 0x41c03a0c, 'cursor', 'zope.ManageContent') For simplicity sake, all of the content in my package has the “zope.ManageContent” required permission. All my principals have been granted the zope.ManageContent permission. All my principals can see the zope.ManageContent protected content, they just cannot run the queries without generating the above exception. What am I missing or not understanding? -- David Johnson ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users -- Darryl Cousins Tree Fern Web Services (NZ) Ltd 106 Sandes St Thames 2801 New Zealand +64 7 868 3139 [EMAIL PROTECTED] http://www.treefernwebservices.co.nz/ ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users