[Zope-dev] Python method wrapping around DTML method

2003-01-03 Thread Bjorn Stabell
Title: Message Hi, This has been buggering me for ages, and I've spent too many hours trying to figure it out already, so I'm resorting to the list for help. :) I have two functions, PlainFunc and DTMLFunc, where PlainFunc is Python method in a file system product, and DTMLFunc is a DTML

Re: [Zope-dev] Python method wrapping around DTML method

2003-01-03 Thread Toby Dickenson
On Friday 03 January 2003 10:13 am, Bjorn Stabell wrote: Right now, I'm struggeling because I cannot get the namespace to be passed to PlainFunc, therefore PlainFunc cannot pass the namespace on to DTMLFunc. Any clues? There isnt one true namespace. You can create your own as easy as { },

Re: [Zope-dev] Strange Problem with a Product using SWIG Python Proxy Classes

2003-01-03 Thread Dieter Maurer
Sean Gillies wrote at 2003-1-2 12:52 -0700: My question concerns the use of SWIG Python proxy classes in a Zope Product. In the ZDG and elsewhere, I have seen the statement that if an object is pickleable, it can be used as a persistent object in a Zope Product. In my experience, my SWIG

Re: [Zope-dev] Strange Problem with a Product using SWIG Python Proxy Classes

2003-01-03 Thread Sean Gillies
On Friday, January 3, 2003, at 12:33 PM, Dieter Maurer wrote: Sean Gillies wrote at 2003-1-2 12:52 -0700: My question concerns the use of SWIG Python proxy classes in a Zope Product. In the ZDG and elsewhere, I have seen the statement that if an object is pickleable, it can be used as a

Re: [Zope-dev] Python method wrapping around DTML method

2003-01-03 Thread maxm
Bjorn Stabell wrote: in such a way that DTMLFunc gets everything it needs, e.g., namespace, but PlainFunc can do funky things to this namespace before-hand (like insert a few variables into it). In other words, I want a Python method to wrap around a DTML method. It is pretty simple: class