Jim Fulton wrote:
Betreff: Re: AW: [Zope3-dev] Release for Views As Adapters
dev@projekt01.ch wrote:
...
These particular changes are no cause for a new release.
We use some removed concepts like:
_context.action( discriminator = ('view', for_, name,
IBrowserRequest, layer),
callable = handler, args = (zapi.servicenames.Presentation, 'provideAdapter', IBrowserRequest, new_class, name, for_,
Interface, layer,
_context.info), )
You have your own view directive?
Why?
We can take alook at this at the IsarSprint. Or if you interessted you can see the metaconfigure at:
http://svn.tiks.org/viewcvs/Tiks/trunk/src/tiks/skinbase/slots/metaconfigure .py?rev=1244&view=markup
and the mixin class for the multipage directive: http://svn.tiks.org/viewcvs/Tiks/trunk/src/tiks/skinbase/slots/app/portletvi ewclass.py?rev=1236&view=markup
Is there a way for to register this views for both version of z3?
You might be able to call the default view directive. I can't really tell because I don't know what you're doing.
I will take a look at the new api.
Thanks Roger
Jim
-- Jim Fulton mailto:jim@zope.com Python Powered! CTO (540) 361-1714 http://www.python.org Zope Corporation http://www.zope.com http://www.zope.org
Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/dev%40projekt01.ch
dev@projekt01.ch wrote:
Jim Fulton wrote:
...
Is there a way for to register this views for both version of z3?
You might be able to call the default view directive. I can't really tell because I don't know what you're doing.
I will take a look at the new api.
That's probably best. Write your own handler to be called by the action and create a different action dependeing on whether you can get servicenames.Presentation.
Alternatively, I'm pretty sure you can call zope.app.component.metaconfigure.view.
Sorry about this. It didn't occur to me that anyone had written their own directives. I'm tempted to try to provide sime backward compatability here, but I hope that you are the only one this affects and that you can use your own work around.
Jim