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 use mixins and PSP... > > For example... > > I have some layout classes... BaseLayout, which overwrites writeHTML... it > calls preLayout, writes some VERY basic html.. calls writeHTMLBody, then > calls postLayout. > > SiteLayout overwrites writeHTMLBody ... which prints a bunch of layout html > (tables and etc) and calls writeScreen > > I then have a security mixin called SecureMixIn... which has the method > preLayout() > > Now.. using these classes.. the following works: > > from layout.SiteLayout import SiteLayout > from screen.SecureMixIn import SecureMixIn > > class test2(SecureMixIn, SiteLayout): > def writeScreen(self): > self.writeln("Test") > > Where the preLayout method from SecureMixIn overwrites the one from > SiteLayout... but the rest of SiteLayout gets used as expected. Now this page > requires someone to be authenticated from just using the mixin. > > However.. the following PSP page does not work: > > <%@ page method = "writeScreen" %> > <%@ page imports = "layout:SiteLayout:SiteLayout, > screen:SecureMixIn:SecureMixIn" %> > <%@ page extends = "SecureMixIn, SiteLayout" %> > <%@ page indentType="braces" %> > > <psp:method name="title">return "Test page"</psp:method> > > Great! We are authorized! > > > which gives the following error: > AttributeError: class SecureMixIn has no attribute 'awake' > > > Although I code add code to the PSP page to do the security check... thats > kindof beond the point. The idea is to have as little code as possible in my > psp page... and allow different functionality to be added through mixins. > Security for example. > > Attached are most of the files involved. > > Of course... the SecureMixIn attached does not include code to handle my > security... I am currently using a layout that extends SiteLayout to add > security..... But using the mixin would be much prefered.... > - -- > Luke Holden > eBI Solutions > Main: (949) 387-5182 > Email: [EMAIL PROTECTED] > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.1 (GNU/Linux) > > iD8DBQE+G4e53q5xXfLZTQkRAgetAJ9bhBmdGog0h8F2ULJVERDDjSF4sQCfSDZk > Mq+ua1n994/r/m/XUzW0gHA= > =Gjg2 > -----END PGP SIGNATURE----- -- Ian Bicking <[EMAIL PROTECTED]> ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Webware-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-devel