Re: [Zope] Creating a namespace
Stephan Richter writes: 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 itOf course there is no documentation on any web site or in the Zope code itself It is not you that use TemplateDict or InstanceDict, it is "dtml-with" that does this (for you). However, you need to look at permissions. Read Brian's "Upgrade to Zope 2.2" or the reference Zope security paper. Dieter ___ Zope maillist - [EMAIL PROTECTED] 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 )
[Zope-dev] Re: [Zope] Creating a namespace
Stephan Richter wrote: ...and search the list archives. The e-groups search is pointless and never gives you anything useful (I did that already). So use the ones at NIP: http://zope.nipltd.com/public/lists.html Thanks so much for your hints, but I am just a little frustrated right now (not because of you), since some of the Zope code looks like a hack. I could live without documentation, if the code would be some sort of readable. Well, maybe if you explained exactly what you're trying to do, we could be more helpful ;-) cheers, Chris ___ 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 )