Re: [Webware-devel] Bug with PSP and using mixins

2003-01-09 Thread Luke Holden
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 (This is being redirected to the mailing list. I seem to have a bad habit of NOT sending replies to the mailing list =) > from PSP.PSPFactory import PSPFactory > > # This returns the Python class corresponding to MyPSP.psp > MyPSP = PSPFactory('MyPSP

RE: [Webware-devel] Bug with PSP and using mixins

2003-01-09 Thread Geoffrey Talvola
e... I'm not sure if this is possible though. - Geoff > -Original Message- > From: Luke Holden [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 08, 2003 2:20 PM > To: Geoffrey Talvola > Cc: 'Webware devel' > Subject: Re: [Webware-devel] Bug

Re: [Webware-devel] Bug with PSP and using mixins

2003-01-08 Thread Luke Holden
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > The PSP compiler at compile time has no way to know whether you're > specifying a module or class, so it generates code that dynamically checks > at import time. A okay. That makes since. Curious question... PSP currently does not currently all

RE: [Webware-devel] Bug with PSP and using mixins

2003-01-08 Thread Geoffrey Talvola
Geoffrey Talvola wrote: > I don't think this patch will work properly if the > inheritance is more than one level deep. It needs to be a > depth-first search through the inheritance hierarchy, or > something like that. Did you test that? Oops, never mind. It will work properly -- I was confu

Re: [Webware-devel] Bug with PSP and using mixins

2003-01-08 Thread Luke Holden
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > I don't think this patch will work properly if the inheritance is more than > one level deep. It needs to be a depth-first search through the > inheritance hierarchy, or something like that. Did you test that? Uh... I dont see why it WOULDN'T work

RE: [Webware-devel] Bug with PSP and using mixins

2003-01-08 Thread Geoffrey Talvola
> Subject: Re: [Webware-devel] Bug with PSP and using mixins > > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > def awake(self.trans): > > for baseclass in self.__class__.__bases__ > > if ... (code to check if the method exists?):

Re: [Webware-devel] Bug with PSP and using mixins

2003-01-07 Thread Luke Holden
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tuesday 07 January 2003 09:40 pm, you wrote: > Eh, you can submit it to SF, but I just put it in, so no need. Great =) By the way... the project I was working on that helped me find the bug can be found at: http://webware.colorstudy.net/twiki/bi

Re: [Webware-devel] Bug with PSP and using mixins

2003-01-07 Thread Ian Bicking
Eh, you can submit it to SF, but I just put it in, so no need. On Tue, 2003-01-07 at 22:29, Luke Holden wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > def awake(self.trans): > > for baseclass in self.__class__.__bases__ > > if ... (code to check if the method exists?):

Re: [Webware-devel] Bug with PSP and using mixins

2003-01-07 Thread Luke Holden
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > def awake(self.trans): > for baseclass in self.__class__.__bases__ > if ... (code to check if the method exists?): > baseclass.awake(self, trans) > break > self.initPSP() > > This should should hopefully make c

Re: [Webware-devel] Bug with PSP and using mixins

2003-01-07 Thread Luke Holden
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > It's kind of lame, but SecureMixIn could have a method: > > def awake(self, trans): > SiteLayout.awake(self, trans) Yuck =) That goes against the idea of mixins... if I where to use this mixin with say... SubSiteLayout ... ah well you g

Re: [Webware-devel] Bug with PSP and using mixins

2003-01-07 Thread Ian Bicking
Well, it's right there in the Python: def awake(self,trans): self.__class__.__bases__[0].awake(self, trans) self.initPSP() That looks like it's basically just to put in that .initPSP() hook. It's kind of lame, but SecureMixIn could have a method: def awake(self, trans)

Re: [Webware-devel] Bug with PSP and using mixins

2003-01-07 Thread Luke Holden
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > Can you attach the Python that's generated from the PSP page? It > probably will be more clear from that. I think that module should be in > WebKit/Cache/PSP/ Ah yes... that might help wouldn't it =) BTW... the stuff Im working on right now is fo

Re: [Webware-devel] Bug with PSP and using mixins

2003-01-07 Thread Ian Bicking
Can you attach the Python that's generated from the PSP page? It probably will be more clear from that. I think that module should be in WebKit/Cache/PSP/ On Tue, 2003-01-07 at 20:06, Luke Holden wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > There seems to be a bug when trying to

Re: [Webware-devel] Bug with PSP and using mixins

2003-01-07 Thread Luke Holden
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tuesday 07 January 2003 06:06 pm, Luke Holden wrote: > There seems to be a bug when trying to use mixins and PSP... I would assume this would prevent the FormKit mixin from working with PSP pages too. BTW.. I am using a checkout of Webware from C