* Luke Opperman <[EMAIL PROTECTED]> [041005 19:01]:
> Although it doesn't directly address using Page-derived classes outside of
> Webware, take a look at http://wiki.w4py.org/transactionanatomy.html
> 
  Thanks Luke. 
  Your answer makes a lot of sense, it appears that the example
  I found needed some context added.

  regards
  tim

> In short, Page relies on several other objects from WebKit being created and
> available, particularly a Transaction and HTTPResponse/HTTPRequest as part 
> of
> the transaction. The Page then expects the awake-respond-sleep cycle to be
> called, and then the output is collected from HTTPResponse. (Your specific
> error is because Page.awake does the initialization - because of servlet
> caching/reuse, it can't be in __init__.)
> 
> Webware servlet classes are really not designed to be used outside of 
> Webware,
> if you want to continue in this direction you'll need to dig into
> WebKit/Application.py to see the various initialization needed for all the
> supporting objects.
> 
> My suggestion would be to go through the setup and run the Webware 
> AppServer if
> you want to test and play with Webware servlets, I don't want to make it 
> seem
> like regular development in Webware requires any sort of in-depth knowledge 
> of
> how Transactions and Responses are created and manipulated by the 
> Application.
> 
> - Luke

-- 
Tim Johnson <[EMAIL PROTECTED]>
      http://www.alaska-internet-solutions.com


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to