From: <jo...@cy...> - 2002-10-31 18:53:58
|
Hi all I have a problem / question<BR> <BR> when pages are generated via an _action_ the <body> tags are not written correctly. However the same content written without using the _action_ method will write the <body> tages. For example (since this probably does not make sense)<BR> <BR> if my file is functest.py <BR> <BR> from WebKit.Page import Page<BR> class functest(Page):<BR> def writeContent(self):<BR> if self.request().hasField('func2'):<BR> self.func1(1)<BR> else:<BR> self.write('')<BR> <BR> def func1(self, trans):<BR> self.write('funct')<BR> <BR> def actions(self):<BR> return Page.actions(self) + ['func1']<BR> <BR> Then <BR> functest.py?_action_=funct1 Will not have a body tag <BR> <BR> where as<BR> <BR> functest.py?func2=1 will print the body tag<BR> <BR> <BR> How should I handel this to print the page correctly? <BR> BTW I am using webware 0.7 apache 2.0.43 wkcgi.exe and python 2.2.1 on winxppro<BR> <BR> thanks<BR> <BR> Jose<BR> |