Re: [Zope-dev] Passing namespace to method
Morten W. Petersen writes: > How do I construct a method of an object, so that whenever that method > is called, the current namespace is passed with it? This was discussed recently in the Zope-dev/Zope lists. Chris has opened the question, Jim answered (among others). Search the archive. Dieter ___ 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 )
[Zope-dev] Passing namespace to method
How do I construct a method of an object, so that whenever that method is called, the current namespace is passed with it? I.e.: class myclass: [...] def myfunc(self, context): if context['sequence-index'] == 10: raise 'sequence-index is %s' % \ context['sequence-index'] called from DTML, like so: will raise an exception if sequence-index is 10 or more? Specifically, the reason I want this function is that I feel using is a bit tedious (and ugly!) in the long run.. If this isn't implemented, where would the right place to implement it be? -Morten ___ 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 )
[Zope-dev] passing namespace
if I submit a form to some page that has frames, how do I pass the REQUEST namespace to those frames ___ 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 )