[Zope] url path remainder as a script parameter?
Phillip Hutchings
sitharus at gmail.com
Fri Feb 25 01:40:17 EST 2005
On Thu, 24 Feb 2005 21:46:50 -0800, Kent Watsen <kent at watsen.net> wrote:
>
> Phillip,
>
> Thank you for your email - very helpful!
>
> Before getting your email, I also started snarfing the PythonScript.py
> code into something I could whittle down to the minimal code needed.
> However, it looks like you have beat me to it, but your solution leaves
> with with a few questions:
>
> 1) Are you saying that it is unnecessary for my Product's class to
> inherit from the Script class?
> Are there any special classes that it should it inherit from?
No special classes, except for the normal classes to make a product.
> 2) I found __before_publishing_traverse__ in the Bindings .py, do I
> just put this method in
> my poduct's class? PS: I might note that zope-2.7.2's method looks
> a little different...
I adapted the function slightly, so it might be a bit different.
> 3) I understand having an index_html method, but how did
> __before_publishing_traverse__
> method get executed before its called?
By zPublisher iirc. It just happens automagically ;)
--
Phillip Hutchings
http://www.sitharus.com/
sitharus at gmail.com / sitharus at sitharus.com
More information about the Zope
mailing list