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
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
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
> >
> >
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
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
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"
>
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