I have not seen Python crash the server, I have managed to wedge a thread and get Webware stuck though.

Documentation and in-code docs do lack.

Its starts up like a normal python app, and the logging settings are all in conf files.  You really should develop your own application level log as well.  Its pretty easy, just setup some logging function in SiteServlet that reads servlet attributes and writes an entry at
"Sleep"

I also do a lot of PHP development and I have two tricks for you:
1) Use Webware to write out a PHP include file for non-dynamic data, then just include that file.  Your designers stick to PHP for looks and you can code webware for the 'heavy lifting'

2) Also keep PHP as a front-end and get the data via xml-rpc

I do not recommend or like UserKit.  Others do.  Its pretty easy to setup user management though.

There are no decent large open source applications in webware that you can look at.  I have some app specific code that I share, but unless you are anaylzing and reporting on millions of lines of telecom logs its pretty useless other then as an example.

I am active on the list, so I'll look for your Q's
-Aaron

Wari Wahab wrote:
On Sat, 2003-08-23 at 01:48, Aaron Held wrote:
  
Its actually very easy and I have done it a bunch of times, if you
scan the Webware email list you will see some examples posted.
    

I've only one thing to say:

Damn you! Aaron, you've sold me to webware!! :)

I've been downloading, and reading webware materials (not enough of it
though), joined the mailing list, and will probably try to sell this to
my boss so that I can replace the annoying PHP version that we had
(unfortunately, that's not likely to happen though, based on the R&D
we've spent on PHP). Anything that's not PHP and can serve more than 10
requests per second on a Cyrix 200Mhz is ok in my book :)

It is one of the solutions that I see as a good compromise between, say,
twisted and PHP (yeah, my colleagues thinks PHP is the best thing since
sliced bread). On one hand, twisted will force you to think of building
non blocking scripts with their reactor, and woven is not something I'd
call straight forward. PHP is too straight forward, and since it's
script based, it is easy to think of your code as simple scripts that
runs from top to bottom.

WebKit and PSP allows you to code like PHP, yet you could add more
thought to it and make (upgrade?) your scripts to live objects. I wished
that I have known Python and Webware 2+ yrs ago, and I won't be in this
mess I have right now, which is, bad code, workarounds, etc inherent in
PHP.

There are downsides to Webware too, though, 

 * it is one of the systems that killed my 200Mhz box, freezing it, no
clue why, not sure if it's webware, or python that freezes it. Running
on a screen session is ok though. I'll have to investigate this, and
goodbye to my almost 1 yr uptime :)
 * it needs a better startup model like twisted does, that is, fork off,
detach from parent, produce a pid file, and logs should/may go to
somefile, depending on settings.
 * tried to compile the documentation with epydoc (yeah I know it's not
meant for that) does not produce the relevant docs I need (not really an
issue, but epydoc is a nice doc tool IMO)
 * Is UserKit usable yet?

Anyway, looks like I need to do a simple presentation and a sample wiz
bang (but small) app to show how things work in a app server
environment.

Expect more questions from me :)
  

-- 
-Aaron
http://www.MetroNY.com/
"I don't know what's wrong with my television set. I was getting
 C-Span and the Home Shopping Network on the same station.
 I actually bought a congressman."
    - Bruce Baum

Reply via email to