[Zope] Re: Question about dot in method name

Garito garito at sistes.net
Tue Mar 25 23:08:04 EDT 2008


Hi!
Hey, Tres, could you point us to a web example or a web page with more
information about that technique?
I'm very interested on it and the technique that was introduced sometime ago
about how to return a string as __bobo_traverse__ response but the example
was uncompleted (for me at least)

This kind of information was very useful for many of us but there are no
good tutorial or how-to

Thanks a lot!

2008/3/26, Tres Seaver <tseaver at palladion.com>:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> Martijn Jacobs wrote:
> > Maybe a simple solution  :
> >
> > Do you use apache as a frontend for your zope? If you do you can rewrite
> > the incoming url's for example like this :
> >
> > RewriteEngine On
> > RewriteRule ^/folder/mydoc.xls(.*)
> >
> http://localhost:8080/VirtualHostBase/http/myIntranet/object_in_zope/VirtualHostRoot/mydoc_xls$1
> > [L,P]
>
>
> Or add a '__getitem__' to your class that looks for that key and returns
> the right method.
>
>
> Tres.
> - --
> ===================================================================
> Tres Seaver          +1 540-429-0999          tseaver at palladion.com
> Palladion Software   "Excellence by Design"    http://palladion.com
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFH6ZfK+gerLs4ltQ4RAgdjAJ9bwmIjAbqkG1YKUyrgbKSG47FlXgCdHW+P
> GzL6mjcA1K8t9Q/5Y75tfF4=
> =mySN
> -----END PGP SIGNATURE-----
>
>
> _______________________________________________
> Zope maillist  -  Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>   http://mail.zope.org/mailman/listinfo/zope-announce
>   http://mail.zope.org/mailman/listinfo/zope-dev )
>



-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20080326/7cb58313/attachment.htm


More information about the Zope mailing list