When I override the writeBodyParts method like this:
def writeBodyParts(self): Page.writeBodyParts() self.validateHTML()
I get this error when viewing a page that uses SitePage:
TypeError: unbound method writeBodyParts() must be called with Page instance as first argument (got nothing instead)
The error makes sense. The method expects and instance. But if I feed it an instance (self), it will loop forever. ???
Here is my SitePage (actually called StarkPage):
from WebKit.Page import Page
class StarkPage(Page):
def writeDocType(self):
self.writeln('''<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">''')
def writeBodyParts(self):
Page.writeBodyParts()
self.validateHTML('</body></html>')
And here is the psp using it:
<[EMAIL PROTECTED] extends="StarkPage"%> <[EMAIL PROTECTED] method="writeContent"%> <psp:method name="title">return "StarkVegas.Com"</psp:method> <strong>StarkVegas.Com</strong> <br /> <font> that?
I would appreciate any help.
Thanks
Randall
------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss