While debugging a silly mistake, I discovered a convenient way to reload
my SitePage to incorporate coding changes during my testing.
1. SitePage must be located in your Context directory, possibly a bad
practice.
2. Optional, In a convenient page, add something similar to:
<a href="SitePage">Reload SitePage</a>
Alternatives are to just modify your browser url or add a
favorites/bookmark.
3. In your SitePage, override Page's writeHTML beginning it with:
def writeHTML(self):
'''Override of Page's method to reload SitePage on demand.'''
# is SitePage the url target?
if string.find(str(self),'SitePage') <> -1:
self.writeDocType()
self.writeln('''<html><head><title>Reload
SitePage</title></head>
<body>SitePage has been reloaded<p>
<a href="logon.html">Logon</a></body></html>''')
return
# ... rest of code
In my application, since my global variables are being reinitialized by
the reload, I must go thru the logon process.
Roger
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss