[Zope3-Users] Granting Roles - What am I missing?

Darryl Cousins darryl at darrylcousins.net.nz
Sun Feb 19 01:33:28 EST 2006


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 at 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
darryl.cousins at treefernwebservices.co.nz
http://www.treefernwebservices.co.nz/



More information about the Zope3-users mailing list