[Zope3-dev] Re: View permissions

2007-01-31 Thread Martijn Faassen
Philipp von Weitershausen wrote: Marius Gedminas wrote: and which causes registration as an adapter without the need for ZCML. I am not sure I like that. When does the registration take effect? On module import? No, that would be quite terrible. It would mean you could never import anythi

[Zope3-dev] Re: View permissions

2007-01-30 Thread Philipp von Weitershausen
Marius Gedminas wrote: and which causes registration as an adapter without the need for ZCML. I am not sure I like that. When does the registration take effect? On module import? No, that would be quite terrible. It would mean you could never import anything without having registration goi

Re: [Zope3-dev] Re: View permissions

2007-01-30 Thread Marius Gedminas
On Tue, Jan 30, 2007 at 02:37:18PM +0100, Martijn Faassen wrote: > Marius Gedminas wrote: > [snip] > >Also, I'd like a way to specify the adapter name in the adapter class. > >Something like > > > >from zope.interface import implements > >from zope.component import adapts, named > > > >

[Zope3-dev] Re: View permissions

2007-01-30 Thread Philipp von Weitershausen
Martijn Faassen wrote: Marius Gedminas wrote: [snip] Also, I'd like a way to specify the adapter name in the adapter class. Something like from zope.interface import implements from zope.component import adapts, named class MyNamedAdapter(object): adapts(IFoo) imple

[Zope3-dev] Re: View permissions

2007-01-30 Thread Martijn Faassen
Marius Gedminas wrote: [snip] Also, I'd like a way to specify the adapter name in the adapter class. Something like from zope.interface import implements from zope.component import adapts, named class MyNamedAdapter(object): adapts(IFoo) implements(IBar) name

Re: [Zope3-dev] Re: View permissions

2007-01-23 Thread Albertas Agejevas
On Tue, Jan 23, 2007 at 04:51:30PM +0100, Philipp von Weitershausen wrote: > Jim Fulton wrote: > >Why not just use: > > > >> for="zope.schema.interfaces.ITextLine > >zope.publisher.interfaces.browser.IBrowserRequest" > > provides="zope.app.form.interfaces.IInputWidget" >

[Zope3-dev] Re: View permissions

2007-01-23 Thread Philipp von Weitershausen
Jim Fulton wrote: Albertas Agejevas wrote: Hi all, Unpleasant things happen when views are security wrapped. Widgets refuse to work, because they are registered as views, and get a custom secuity checker (in zope.app.component.metaconfigure.view). The default view custom checker only protects