[Zope] REQUEST.path

Peter Bengtsson mail@peterbe.com
Wed, 4 Jul 2001 12:02:56 +0200


REQUEST is a construction by Zope. It has predefined functions called set()
or has_key()

path is a natural python dictionary and doesn't have functions such as set()
or replace()

path is a dictionary _inside_ the REQUEST class, just like this:

class R:
    path={}
    def set(self,k,v):R.path[k]=v

r= R()
r.set('o',1)
print r.path




----- Original Message -----
From: "Paul Zwarts" <paz@oratrix.com>
To: "Zope" <zope@zope.org>
Sent: Wednesday, July 04, 2001 10:40 AM
Subject: [Zope] REQUEST.path


> Greetings,
>
> I use the following code in a site rule which works:
>
>           <dtml-call "REQUEST.path.append('something')">
>           <dtml-return " 'ignored' ">
>
> But I want to use path.set or path.replace, which dont do anything? What
am
> I doing wrong?
>
>
> Thanks,
> Paul Zwarts
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )