[Zope] create objects with dot in product

Chris Beaven chris@d-designz.co.nz
Tue, 25 Feb 2003 11:07:05 +1300


I think this might work:

setattr(self, 'file.htm', PageTemplateFile('www/file.htm', globals()))

Tim wrote:

>Via the ZMI i can create an object with a . in the name (for example,
>an object with an id 'file.htm'); how can this be done in a disk based
>product? For example, the following obviously won't work:
>
>file.htm = PageTemplateFile('www/file.htm', globals())
>
>There must be a trick, since the ZMI can do it?
>
>
>_______________________________________________
>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 )
>
>  
>