Hello everyone,

I want to make my own name space with the following situation:

class X:

    attributes = {'foo': 'bar'}

x = X()


Then I want to use it like that:

<dtml-with x>
      <dtml-var foo>
</dtml-with>

The result should be : bar

I found out that I have to somehow use TemplateDict and InstanceDict, but I 
have no clue how to use it....Of course there is no documentation on any 
web site or in the Zope code itself....

Thanks for you help!!!

Regards,
stephan
--
Stephan Richter
CBU - Physics and Chemistry Student
Web2k - Web Design/Development & Technical Project Management


_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to