[Zope3-dev] Re: Creating a resource: Presentation service not
available
Peter Mayne
PeterMayne at ap.spherion.com
Wed Oct 6 20:43:24 EDT 2004
Stephan Richter wrote:
>
> On Tuesday 05 October 2004 21:26, Peter Mayne wrote:
>>The registration code I use is:
>>
>> factory = MyResourceFactory(...)
>> gps = sm.getService(Presentation)
>> gps.provideAdapter(IBrowserRequest, factory, name='my.png',
>>layer='default')
>
> You should **never** register something like this using Python code.
Hey, I thought I did pretty well to get that far.
> Implement a directive similar to the `browser:resource` directive. When you
> use the directive, the services will all be up and running.
You'll add this to the book, won't you? :-)
PJDM
--
Peter Mayne
Spherion Technology Solutions
Canberra, ACT, Australia
"You're given the form, but you have to write the sonnet yourself.
What you say is completely up to you." - Mrs. Whatsit
More information about the Zope3-dev
mailing list