Re: [Zope] Question about dot in method name

2008-03-26 Thread stéphane bard
thx sascha
i already imagine a setattr could solve the problem, but i didn't test it
at the real end of any other declaration.
thank's for this tip !
hop you get nice weather in athen

2008/3/26, Sascha Welter <[EMAIL PROTECTED]>:
>
> (Tue, Mar 25, 2008 at 09:36:49PM +0100) bard st?phane
> wrote/schrieb/egrapse:
>
> > hi every body i'm changing a very old zclass product.
> > In this zclass i declare a python script with this name "mydoc.xls"
> > this script return an xls file with an argument
> >
> > now i'm writing a zope2 product. How can I explain to zope
> > that he should publish a certain method with a different name
> > so when people type
> > http://myIntranet/folder/mydoc.xls?fileName=hello.xls it point
> > to a real python method (dot caracter are forbiden in python class
> method)
>
>
> http://betabug.ch/blogs/ch-athens/144
> "Zope Methods with a Dot in the name"
>
> HTH!
>
> Regards,
>
>
> Sascha
>
>
> ___
> Zope maillist  -  Zope@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 )
>
___
Zope maillist  -  Zope@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 )


Re: [Zope] Question about dot in method name

2008-03-26 Thread Sascha Welter
(Tue, Mar 25, 2008 at 09:36:49PM +0100) bard st?phane wrote/schrieb/egrapse:
> hi every body i'm changing a very old zclass product.
> In this zclass i declare a python script with this name "mydoc.xls"
> this script return an xls file with an argument
> 
> now i'm writing a zope2 product. How can I explain to zope
> that he should publish a certain method with a different name
> so when people type 
> http://myIntranet/folder/mydoc.xls?fileName=hello.xls it point
> to a real python method (dot caracter are forbiden in python class method)

http://betabug.ch/blogs/ch-athens/144
"Zope Methods with a Dot in the name"

HTH!

Regards,

Sascha

___
Zope maillist  -  Zope@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 )


Re: [Zope] Question about dot in method name

2008-03-25 Thread Martijn Jacobs


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]





hi every body i'm changing a very old zclass product.
In this zclass i declare a python script with this name "mydoc.xls"
this script return an xls file with an argument

now i'm writing a zope2 product. How can I explain to zope
that he should publish a certain method with a different name
so when people type 
http://myIntranet/folder/mydoc.xls?fileName=hello.xls it point
to a real python method (dot caracter are forbiden in python class 
method)


mydoc.xls => mydoc_xls(REQUEST=None)

I know that Zclasses are bad :) , but I cannot change this URL, because
lot's of people record it.

thank's a lot for an advice.

___
Zope maillist  -  Zope@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 )



--
Martijn Jacobs
Four Digits, Internet Solutions

a: Willemsplein 15-1 6811 KB Arnhem NL 
kvk: 09162137 | btw: 8161.22.234.B01

e-mail: [EMAIL PROTECTED] | web: http://www.fourdigits.nl
tel: +31 (0)26 44 22 700 | fax: +31 (0)84 22 06 117 


___
Zope maillist  -  Zope@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 )