[Zope] Re: [Zope-dev] Need for "aq_base" in DTML(was: Re: [Zope] Dumb DTMLquestion - existance check of an object)(was: Re: [Zope] Dumb DTMLquestion - existance check of an object)question - existance check of an object)(was: Re: [Zope] Dumb DTML question - existance check of an object)

2000-07-26 Thread Steve Alexander
Dieter Maurer wrote: > > * Access to "/": "PARENTS[-1]" > * Existence check: "_.hasattr(object,what)" > NOTE, that this is the sloppy part. > > - "_.hasattr" will return true, if "object" has > attribute "what" (that is what we want) > *OR* when it has acquired such

[Zope] Re: Need for "aq_base" in DTML (was: Re: [Zope] Dumb DTML question - existance check of an object)

2000-07-26 Thread Satheesh Babu
eed for "aq_base" in DTML (was: Re: [Zope] Dumb DTML question - existance check of an object) > Satheesh Babu writes: > > I have a URL, say, /sub1/sub2. How do I check in DTML > > whether > > 1. folder sub1 exists or not > > 2. If not, create it. >

[Zope] Need for "aq_base" in DTML(was: Re: [Zope] Dumb DTML question - existance check of an object) (was: Re: [Zope] Dumb DTML question - existance check of an object)

2000-07-26 Thread Dieter Maurer
Satheesh Babu writes: > I have a URL, say, /sub1/sub2. How do I check in DTML > whether > 1. folder sub1 exists or not > 2. If not, create it. > 3. folder sub2 exists under sub1 > 4. If not, create it. It is easy, if you are a bit sloppy. * Access to "/": "PARENTS[-1]" * Existence

[Zope] Dumb DTML question - existance check of an object

2000-07-25 Thread Satheesh Babu
Hello, I have a URL, say, /sub1/sub2. How do I check in DTML whether 1. folder sub1 exists or not 2. If not, create it. 3. folder sub2 exists under sub1 4. If not, create it. and so on... Thx http://vsbabu.csoft.net ___ Zope maillist - [