Re: [Zope-dev] Initial ZODB permissions
Andy McKay wrote: Yeah, wrong but toothless. Feel free to fix on appropriate branches I guess :-) Well yeah but Im betting its there for a reason, I just dont know what it is yet. Changing that is sure to break something... Well, do it and I'm sur we'll soon find out :-) Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Initial ZODB permissions
Where is the initial code for setting permissions in the ZODB? It looks like the Copy or Move permission is give to Anonymous by default at ZODB creation in Zope, which is ahem wrong. Cant find the code that sets that up though, can anyone throw me a clue stick that grep can't? Thanks. -- Andy McKay ClearWind Consulting http://www.clearwind.ca ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Initial ZODB permissions
Sure enough as soon as I email the list I remembered permissions can be declared anywhere, one grep more and there it is in CopySupport.py, 385: class CopySource(ExtensionClass.Base): Interface for objects which allow themselves to be copied. # declare a dummy permission for Copy or Move here that we check # in cb_isCopyable. __ac_permissions__=( ('Copy or Move', (), ('Anonymous', 'Manager',)), ) Of course you need to be able to paste... so may not be a huge problem, just looks wrong :) -- Andy McKay http://www.agmweb.ca ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Initial ZODB permissions
Andy McKay wrote: Of course you need to be able to paste... so may not be a huge problem, just looks wrong :) Yeah, wrong but toothless. Feel free to fix on appropriate branches I guess :-) Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Initial ZODB permissions
Yeah, wrong but toothless. Feel free to fix on appropriate branches I guess :-) Well yeah but Im betting its there for a reason, I just dont know what it is yet. Changing that is sure to break something... -- Andy McKay ClearWind Consulting http://www.clearwind.ca ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )