[Zope] Whats the correct way...

raver@box.dust.za.net raver@box.dust.za.net
Thu, 8 Apr 1999 22:37:04 +0200


On Mon, Apr 05, 1999 at 04:16:25PM -0400, Michel Pelletier wrote:
> 
> 
> > -----Original Message-----

deleted ...

> 
> You may find yourself in a situation where the attribute must exist in
> your DTML (and you want it to be a value or something else) but it may
> or may not be passed in by a calling form.  To handle this, try:
> 
> <!--#with _.namespace(data='')-->
>   <!--#with REQUEST-->
> 	... (Then use data)
>   <!--#/with-->
> <!--#/with-->
> 
> Here, if 'data' exists in REQUEST then it will override the default of
> ''.
> 
> A rather sickening DTML construct like this is used in NotMail DTML in
> folder.dtml.
> 
> Does this help?
> 

Yes! Thanks a lot! 

> -Michel
> 
> 
> 
> > Sture Lygren
> > 
> > _______________________________________________
> > Zope maillist  -  Zope@zope.org
> > http://www.zope.org/mailman/listinfo/zope
> > 
> > (For developer-specific issues, use the companion list,
> > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
> > 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
> 
> (For developer-specific issues, use the companion list,
> zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
> 

Sture