[Webware-discuss] Small Bug in htBodyArgs in Page.py

2002-02-08 Thread Christoph Zwerschke
In Page.py you should replace the line return 'color=black bgcolor=white' with return 'text=black bgcolor=white' There is no "color" attribute in the "body" tag. Gtx --- Christoph Zwerschke Zentrale Univers

Re: [Webware-discuss] DBPool connections question

2003-10-01 Thread Christoph Zwerschke
nt(self): conn = self.db.getConnection. Note that you have to write self.db inside the class to refer to the db object, instead of db only. All subclasses of sitePage will inherit the db object automatically. Christoph Zwerschke Universität Heidelberg -

[Webware-discuss] Re: Webware vs. PHP - performance comparision!

2003-10-06 Thread Christoph Zwerschke
I think the main problem is that you only measure the overhead Webware surely has to create and provide all the various objects belonging to a Webware transaction. The interesting thing would be to measure the difference if you do some real stuff with your servlet. I guess this overhead will soon b

Re: [Webware-discuss] .pyc files

2004-03-30 Thread Christoph Zwerschke
> Is possible to use only .pyc files in WebKit? Yes, you can use only .pyc or only .pyo files. Please be aware however, that this gives you no real security in protecting your source. It is very easy to decompile python sources. (Only the comments should be stripped away, and in the case of pyo, a

Re: [Webware-discuss] .pyc files

2004-03-31 Thread Christoph Zwerschke
: # this is needed when you want to use .pyo files # replace: if f[-4:] == '.pyc': # with: if f[-4:] in ('.pyc', '.pyo'): # Application.py: # this is needed for allowing .py plus .pyc or .pyo index files # this is a quick and dirty patch, a more sophisticated patch # consi

[Webware-discuss] Towards a new release: request for thought and discussion

2004-08-09 Thread Christoph Zwerschke
I also think that a new release is badly needed, and I would support the approach suggested by Matt. I am using webware as a software framework for a commercial software solution. Unfortunately, I have not much manpower to offer, since I am the only programmer in my company and thus have enough thi

Re: [Webware-discuss] HTTPS + Webware

2005-07-27 Thread Christoph Zwerschke
Hector Molina schrieb: How do I configure Apache and/or Webware to work togheter taking advantage of HTTPS? This is an Apache issue that has nothing to do with Webware. You have to set up Apache so that it uses SSL (mod_ssl), by making the appropriate changes in the httpd.conf file. There are

Re: [Webware-discuss] HTTPS + Webware

2005-07-28 Thread Christoph Zwerschke
There's another point that confuses me as well: Do you recommend me to place my servlets under the htdocs hierarchy or to keep them away from there? You should place the servlets in the Contexts subdirectory that is created by the MakeAppWorkDir script, see: http://wiki.w4py.org/makeappworkdi

[Webware-discuss] Wiki spam

2005-08-24 Thread Christoph Zwerschke
The Webware Wiki is currently in a very desolate state due to some Chinese Wiki spammers. Some users have tried to remove the spam manually, but that seems to be even more difficult than Sysiphus' task. I would help if some trusted users would be given the possibility to delete the spammers'

Re: [Webware-discuss] dbpooling

2005-09-01 Thread Christoph Zwerschke
Hi Ibrahim, since cx_Oracle is DB API compliant, it should work with DBPool.py. The problem in your code is that you instantiate DBPool for every connection you want to make. You should only intantiate it once: import cx_Oracle from MiscUtils.DBPool import DBPool dbPool = DBPool(cx_Oracle, 5,

Re: [Webware-discuss] dbpooling

2005-09-02 Thread Christoph Zwerschke
Ibrahim HIDIR wrote: > thanks for help, it looks like working, but in fact i don't use > servlet, and i have different users and passwords and databases > (oracle, mysql, mssql, pgsql) i need to connect all of them same time > with different users and pass , so if there is no session in my page,

Re: [Webware-discuss] Wiki spam

2005-09-17 Thread Christoph Zwerschke
The Webware Wiki is currently in a very desolate state due to some Chinese Wiki spammers. Some users have tried to remove the spam manually, but that seems to be even more difficult than Sysiphus' task. I would help if some trusted users would be given the possibility to delete the spammers' Wik

Re: [Webware-discuss] Benchmark WebWare vs. CGI, psycopg PostgreSQL, Linux

2005-09-20 Thread Christoph Zwerschke
Gregor Horvath wrote: Do you have a explanantion for that? Are my benchmarks wrong, or is it just the thruth that under this circumstances cgi is as fast as webware. You seem to be using the Python CGI adapter with Webware. Under this circumstances, you will really see no difference. CGI pro

Re: [Webware-discuss] Printing from web application

2005-09-20 Thread Christoph Zwerschke
Eduardo Elgueta wrote: The reportlab/pdf solution doesn't seem quite easy to implement, just as I thought. Besides, I see a lot of trouble ahead downloading/compiling/configuring/learning reportlab and a bunch of other support libraries. Just to make this clear again, ReportLab is really not

Re: [Webware-discuss] Printing from web application

2005-09-21 Thread Christoph Zwerschke
Eduardo Elgueta wrote: I think it's to much work switching from a flow display (html) to a position based display (reportlab). I'm probably wrong on this, but that's what I saw in the documentation. The high level interface (Platypus) is actually not position based, but based on "Flowables".

Re: [Webware-discuss] Printing from web application

2005-09-22 Thread Christoph Zwerschke
Leith Parkin schrieb: There is also the apache FOP project, however its java based and may not be what your after. http://xmlgraphics.apache.org/fop/ As an interesting side node, FOP has been Python based for a while: http://wdvl.internet.com/Internet/Future/fop.html For a comparison Reportlab

Re: [Webware-discuss] profiler.starttime problem

2005-09-29 Thread Christoph Zwerschke
[EMAIL PROTECTED] wrote: when i tried to run webware (after running install.py again) I received an error that in application.py at line 125 I could not do float - none. It appears to me that the Profiles.starttime is not being set and so it defaults to none. Thanks for mentioning the problem;

Re: [Webware-discuss] profiler.starttime problem

2005-09-29 Thread Christoph Zwerschke
Ok, I've fixed that already. Just check out from SVN and it should work again. I still recommend using the new Launch script. -- Christoph --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, dis

[Webware-discuss] Re: [Webware-devel] What versions of Python should we support?

2005-09-29 Thread Christoph Zwerschke
Chuck Esterbrook wrote: Someone reported directly to me that Webware out of trunk now requires Python 2.4, at least for install.py. Should we support one version back to 2.3? -Chuck I payed attention that everything works with Python 2.0. Just checked again, the installer runs still fine wit

Re: [Webware-discuss] ntservice

2005-09-29 Thread Christoph Zwerschke
Hi Jose, thanks for the feedback. I resynched with the svn and built a new working dir as advised. When i look at it i see that NTService.py is no longer there and is replaced with AppServerService.py. Yes I made that change because I think it is more clear: The script is running AppServer

Re: [Webware-discuss] ntservice

2005-09-29 Thread Christoph Zwerschke
NTService.py is no longer there and is replaced with AppServerService.py. Yes I made that change because I think it is more clear: The script is running AppServer as a NT/2K/XP/2003 service. Actually, before there had been two names: It was called "ThreadedAppServerService" in the WebKit direc

Re: [Webware-discuss] ntservice

2005-09-30 Thread Christoph Zwerschke
Jose Galvez wrote: To restore the NTService.py behavior I had to make some changes to the new AppServerService.py that gets put into the working dir. Here is a copy of my AppServerService.py for my context. Note I had to add back the workDir Option otherwise it would point to the webware fold

Re: [Webware-discuss] howto check for https connection?

2005-10-05 Thread Christoph Zwerschke
I need a way to check whether the current servlet was accessed through https or not. If not, I want to rewrite the url to https and inform the user. How can I check this? You can overwrite the respond method with something like this: def respond(self, transaction): request = self.r

Re: [Webware-discuss] I can't set webware appserver options any longer

2005-10-07 Thread Christoph Zwerschke
[EMAIL PROTECTED] wrote: > I'm on windows and I like to turn autoreload on when I'm > developing (I leave it off during production) so i would from the > command line run > Appserver.bat --AppServer.AutoReload=1 I haven't looked into it yet but I'm pretty sure it's because the new Launch.py sc

Re: [Webware-discuss] I can't set webware appserver options any longer

2005-10-07 Thread Christoph Zwerschke
In supporting this form: Appserver.bat AppServer.AutoReload=1 it should be easy to strip '--' off the name in the event that the user passed this: Appserver.bat --AppServer.AutoReload=1 and then we'll be compatible with prior versions of Webware. Just saw this feature was already mentioned in th

Re: [Webware-discuss] I can't set webware appserver options any longer

2005-10-07 Thread Christoph Zwerschke
[EMAIL PROTECTED] wrote: ... so i would from the command line run Appserver.bat --AppServer.AutoReload=1 Hm, are you sure that ever worked? Because I just noticed Windows/DOS splits the parameters given to AppServer.bat like this: %1 = --AppServer.AutoReload %2 = 1 Then, AppServer.bat wil

Re: [Webware-discuss] I can't set webware appserver options any longer

2005-10-07 Thread Christoph Zwerschke
... just noticed Windows/DOS splits the parameters given to AppServer.bat like this: %1 = --AppServer.AutoReload %2 = 1 I think I already have a solution for this problem. Instead of calling Launch.py like this: Launch.py ThreadedAppServer %1 %2 %3 %4 %5 %6 %7 %8 %9 you can write Launch.py

Re: [Webware-discuss] I can't set webware appserver options any longer

2005-10-07 Thread Christoph Zwerschke
you can write Launch.py ThreadedAppServer %* which leaves equals signs intact. Just checked it out, works nice, the equals sign is left intact. *BUT*: The AppServer.bat script uses the "shift" command to remove the Python options from the arguments. And under Windows (unlike Unix) "shift" has

Re: [Webware-discuss] I can't set webware appserver options any longer

2005-10-08 Thread Christoph Zwerschke
Jose Galvez wrote: For windows rather then using a bat file to start the appserver how about using an executable? I would not like to resort to making AppServer.bat a binary file just because of that small problem. Actually, you don't even need the AppServer.bat file in a productive environme

Re: [Webware-discuss] Cheetah Caching Issue

2005-10-09 Thread Christoph Zwerschke
I'm looking at using Cheetah/Webware for a web application and am having some difficulty with Cheetah. > ... It works fine but my issue is that if I change/re-compile the Cheetah Template "View1", nothing changes. I'll only see the changes if I restart the app server (not my preference) Did

[Webware-discuss] Kid templates with Webware

2005-10-09 Thread Christoph Zwerschke
This weekend I worked on the KidKit plug-in for Webware created by Winston Wolff. I added some major improvements and adapted it to the latest Kid version. The plug-in now supports caching (configurable, in two variants), and you can change the servlet class and the hook where Webware inserts t

[Webware-discuss] Webware for Python 0.9 release candidate 1

2005-10-29 Thread Christoph Zwerschke
: http://www.webwareforpython.org Please report possible problems to [EMAIL PROTECTED] Include all appropriate version and platform information including Webware, Python, web server, op sys, browser, database, etc. The scheduled release date for the final relase is November 12, 2005. -- Christoph

[Webware-discuss] Webware 0.9 has been released

2005-11-13 Thread Christoph Zwerschke
Webware 0.9 has been released. The new release includes numerous enhancements, additions and bug fixes over the previous release. We can list only a few of them here: * easier installation * improved documentation * improved examples * bug fixes * a built-in HTTP server for immediate "playing",

Re: [Webware-discuss] Webware 0.9 has been released

2005-11-14 Thread Christoph Zwerschke
> Any changes to rc1? M. Sorry, forgot to mention. There were only some minor corrections not really worth mentioning. -- Chris --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download i

Re: [Webware-discuss] Confused about contexts and URI's

2005-12-02 Thread Christoph Zwerschke
Mike Baranski wrote: > So, could someone point me to the right docs for this. Did you have a look at the WebKit doco? http://www.w4py.org/WebKit/Docs/ Particularly: http://www.w4py.org/WebKit/Docs/Tutorial.html http://www.w4py.org/WebKit/Docs/ApplicationDevelopment.html > I don't understand how

Re: [Webware-discuss] Have to restart context to see changes

2005-12-02 Thread Christoph Zwerschke
Mike Baranski wrote: Is there another way to make changes show up right away? If not, how do you do your code/test/release cycle? You can set AutoReload=True in AppServer.config, see http://w4py.org/WebKit/Docs/Configuration.html#appserver-config This reloads the application server automatical

Re: [Webware-discuss] Setting output method of Kid templates doesn't work

2005-12-10 Thread Christoph Zwerschke
Hi Frank, > somehow I cannot get the setting for KidOutputMethod to work with > Webware 0.9. I've just had a look at it and you're right - this is a bug. > I also managed to get nice, lowercase xhtml by changing class > KidServletFactory's __init__ to explicitely use the global defaultOutput:

Re: [Webware-discuss] Setting output method of Kid templates doesn't work

2005-12-11 Thread Christoph Zwerschke
Frank Barknecht schrieb: I think, I have a bug in my kid-template somewhere. The included examples now all function correctly and render in the format that was set in Application.config. I have checked in the fix; it will be included in the next version. By the way, you can also set the outpu

Re: [Webware-discuss] how change the keypress ENTER to key TAB

2006-01-02 Thread Christoph Zwerschke
maram wrote: > When the user press the key "enter", submit the form... > how i can impede those? or asign to the key ENTER the key TAB? Some ad hoc ideas: On the browser side, you can use Javascript to catch onKeyDown or onKeyPress. I think by returning "false" you can also suppress keys. On t

Re: [Webware-discuss] Question about .py files and .pyc files

2006-01-06 Thread Christoph Zwerschke
Gary Perez wrote: Check the lines: 'ExtensionsToIgnore': 'ExtensionsToServe': 'UseCascadingExtensions': 'ExtensionCascadeOrder': Not tested by me, but that might fix it? That definitely works. You can even serve .pyo instead of .pyc (set PYTHONOPTS=-O in the star

Re: [Webware-discuss] Question about .py files and .pyc files

2006-01-07 Thread Christoph Zwerschke
Adam Kerrison wrote: I've made this work with 0.8.1 but its not nice. This has been improved in 0.9. See the last point under "Changes" in the release notes: http://www.w4py.org/WebKit/Docs/RelNotes-0.9.html -- Christoph --- This SF.net ema

Re: [Webware-discuss] Admin password rejected

2006-01-11 Thread Christoph Zwerschke
Hank Freeman wrote: My Webware install is up and running, on Apache 2, and tests are successful. However, although the password is entered correctly, and cookies are enabled, it is not accepted. I removed all cookies for my site, and tried "one more time" and confirmed a cookie is set. ... Are

Re: [Webware-discuss] Admin password rejected

2006-01-11 Thread Christoph Zwerschke
Hank Freeman wrote: Yes, this is regarding access to the admin pages. Yes, they work from the built-in HTTP server. Webware sessions and the other pages displayed from the provided Main.py also work. I also just tested this from IE, and the authentication works from Internet Explorer 6.0.28

Re: [Webware-discuss] Admin password rejected

2006-01-12 Thread Christoph Zwerschke
Is there a way to get Webware to log or disclose mor information on the authentication dialog from the application server side? I'd like to find out if the password is actually getting there, and what the data is when it does. The easiest way is to add print statements, see http://www.w4py.or

Re: [Webware-discuss] Admin password rejected

2006-01-13 Thread Christoph Zwerschke
Hank Freeman wrote: Mystery solved. I am using the "Faster Fox" plug-in. It does pre-fetching of links on a page. With the setting at "Turbo" (most aggressive) this authentication fails. For me, it fails at all settings above "Courteous". (YMMV) Dialing back the aggressiveness of the plug-in

Re: [Webware-discuss] Admin password rejected

2006-01-13 Thread Christoph Zwerschke
Chuck Esterbrook wrote: Thanks for the update. Do you know if that plug-in leaves it's signature in either an HTTP header or in the user agent string? It would be nice to know when troubleshooting in the future. You can recognize prefetching from Firefox by the following header: X-Moz: prefetch

Re: [Webware-discuss] Admin password rejected

2006-01-13 Thread Christoph Zwerschke
Geoffrey Talvola wrote: I think the original reason for loginid was: suppose someone logs in, then leaves their browser open for a while. Their session expires. Now suppose someone else comes up to the browser, uses the Back button to go back to the login screen, and then presses Forward to re-

Re: [Webware-discuss] Admin password rejected

2006-01-13 Thread Christoph Zwerschke
Hank Freeman wrote: Yes, my Fasterfox version is significantly older: 0.7.9 is what I am at now. Ok - then all mysteries are solved ;-) -- Christoph --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for proble

Re: [Webware-discuss] The appserver crash when high demand?

2006-01-21 Thread Christoph Zwerschke
marcelo ametller wrote: I have a servlet, with a form, a button with label "generate". When the user press the button, de "action" run a function, it generate a pdf (reportlab). When the pdf have 200 items, that's ok. But when the pdf have 6000 items, the appserver crash. The dmesg inform that th

Re: [Webware-discuss] The appserver crash when high demand?

2006-01-23 Thread Christoph Zwerschke
marcelo ametller wrote: it only crash after some time... the time for generate de pdf is 20min. That's way too long. If it really must take so long, you should spawn a separate process to create the pdf. Your webserver will probably quit the connection with timeout anyway. What do you get

Re: [Webware-discuss] The appserver crash when high demand?

2006-01-24 Thread Christoph Zwerschke
Marcelo Ametller wrote: yes: from cStringIO import StringIO I suppose that use the memory of the servidor? Yes, it provides a kind of memory file for Reportlab to write to instead a real file on the harddisk. In this case, it would not make much difference, but if you serve many small PDFs it

Re: [Webware-discuss] How execute an app outside of the appserver

2006-01-24 Thread Christoph Zwerschke
Marcelo Ametller wrote: I have a servlet with form and a button label “import” the action for the 'button' is a function that takes a file .txt and enters it, into a postgresql/table. I need that this function goes off from the button, at the browser, but as it consumes many resources (memory,th

Re: [Webware-discuss] who use webware,webkit for applications of administration

2006-01-24 Thread Christoph Zwerschke
Marcelo Ametller wrote: where encounter made administrative applications of management with webware, webkit, python ? Did you have a look at the examples provided with Webware, particularly the Admin section? From there you can do mostly everything. You should also make yourself aquainted wit

Re: [Webware-discuss] shutdown handlers

2006-02-17 Thread Christoph Zwerschke
John Dickinson wrote: Where is the best, or recommended, place to call addShutDownHandler()? I think the __init__.py file of the context would be appropriate. -- Christoph --- This SF.net email is sponsored by: Splunk Inc. Do you grep throu

Re: [Webware-discuss] AJAX in WebWare

2006-02-22 Thread Christoph Zwerschke
As always, please let me know of any improvements you can make or questions you may have. I haven't found the time to check it out yet, but it looks interesting. Thanks for your efforts. Maybe you can write a small tutorial and example app which can be added to the WebKit docs/examples. Or may

Re: [Webware-discuss] egg + AutoReload = problem

2006-02-25 Thread Christoph Zwerschke
Andreas Poisel schrieb: Importing from eggs in a servlet doesn't work when AutoReload is switched on. Is this a known issue? I tried Webware 0.9 with simplejson-1.1-py2.4.egg and json_py-3.4-py2.4.egg under Linux (Gentoo and Ubuntu). I checked this and it seems you are right. I cannot even us

Re: [Webware-discuss] Performance on long-running pages

2006-02-25 Thread Christoph Zwerschke
Leigh Dyer wrote: ... one issues that causes trouble is that when someone accesses a reporting page on one site, which can take a minute or two to run, other sites seem to be largely unaccessible until the original request is complete. Is this a known issue, or something odd with my particula

Re: [Webware-discuss] Performance on long-running pages

2006-02-26 Thread Christoph Zwerschke
Leigh Dyer wrote: We have other apps that use PostgreSQL (which I'm using with the psycopg > connector and DBPool) -- I'll see if I can reproduce the problem with > some kind of long-running task that uses that database instead. I am using PostgreSQL, PygreSQL and DBUtils and do not see such p

Re: [Webware-discuss] AJAX in WebWare

2006-02-27 Thread Christoph Zwerschke
Robert Forkel wrote: i've put together a small example app implementing a suggest-feature which may be put into webkit's Examples context. Thanks for the wonderful contribution. I made some cosmetical improvements and checked it in to the Examples context so it will be included in version 0.9

Re: [Webware-discuss] AJAX in WebWare

2006-02-27 Thread Christoph Zwerschke
Christoph Zwerschke wrote: Robert Forkel wrote: i've put together a small example app implementing a suggest-feature which may be put into webkit's Examples context. Thanks for the wonderful contribution. I made some cosmetical improvements and checked it in to the Examples con

Re: [Webware-discuss] egg + AutoReload = problem

2006-03-03 Thread Christoph Zwerschke
Ian Bicking wrote: One thing that's been discussed is simply dropping the ihooks part -- polling sys.modules for changed modules works without any tricks. (Of course, you can also turn off installing of zip files, and install the unpacked egg -- this gives you better tracebacks, for instance)

Re: [Webware-discuss] egg + AutoReload = problem

2006-03-04 Thread Christoph Zwerschke
Ian Bicking wrote: In theory it should work; loading from zips is implemented with ihooks. But it requires that any added ihook defer to existing ihooks, and if it is doing file lookup it needs to use the PEP-specified technique. Are you refering to PEP 302? As far as I understand, importing

Re: [Webware-discuss] How to manage database connections efficiently?

2006-03-09 Thread Christoph Zwerschke
Reading the webware doc and website, I found nothing to take care about external connections handling. Do I have to manage my own opened connections pool which is accessed by all threads concurrently? Should there be a connection per thread? Is there a Thread instance, so I can store a connectio

Re: [Webware-discuss] How to manage database connections efficiently?

2006-03-09 Thread Christoph Zwerschke
It may also depend on what database you are using. With MySQL, I have not seen any speed-up when using a pool, so I've done away with it and just create a new connection each time. Even more, it depends on which type of queries you are using. Read-only, read-write, transactions composed of seve

Re: [Webware-discuss] How to manage database connections efficiently?

2006-03-09 Thread Christoph Zwerschke
If you are using SQLObject, it handles the connections for you. I haven't tried out SQLObject so far, but that sounds like I should give it a try. How does this work? Does it use a connection pool? -- Chris --- This SF.Net email is sponso

Re: [Webware-discuss] mod_webkit.so on CentOS 4.x / RHEL 4.x

2006-03-22 Thread Christoph Zwerschke
apr-0.9.4-24.5.c4.1-x86_64 apr-0.9.4-24.5.c4.1-i386 This looks a bit old. You should try with at least 0.9.6. Do you have the libapr-0 in your /usr/lib directory? For me it looks that the whole makefile doesn't handle .so file, why is that? The .so file is created by apxs when you do a make

Re: [Webware-discuss] Problem restarting app server - Webware 0.9 RedHat start script

2006-03-23 Thread Christoph Zwerschke
Michael Trisko wrote: > With Webware 0.8.1 we've been using /var/run/$APP_NAME.pid to store > the pid files, so I decided to continue with that convention with 0.9. > However, when I do a restart, it works the first time but fails after > that. The pidfile in the /var/run location is not there ..

Re: [Webware-discuss] Problem restarting app server - Webware 0.9 RedHat start script

2006-03-23 Thread Christoph Zwerschke
> It really appears to be a timing issue--the restart section of the > script just does a stop and a start, but if you do those two things > independently, or with a sleep 1 in the middle, the issue goes away. I think now I understand what happens (I'm not on RedHat, so I would have probably not

Re: [Webware-discuss] mod_webkit.so on CentOS 4.x / RHEL 4.x

2006-03-27 Thread Christoph Zwerschke
Juha Tuomala wrote: For me it looks that the whole makefile doesn't handle .so file, why is that? The .so file is created by apxs when you do a make install. I figured this out. Actually, it's created during build, but for some wierd reason below .libs/mod_webkit.so. So copying it from there

Re: [Webware-discuss] mod_webkit.so on CentOS 4.x / RHEL 4.x

2006-03-27 Thread Christoph Zwerschke
Yep, it would work if the axps would have not been written so that you cannot define installation root for the stuff you're installing. I think it is possible if you write something like apxs2 -i -S LIBEXECDIR=... -n webkit mod_webkit.la -- Christoph -

Re: [Webware-discuss] AjaxSuggest example busy-waits

2006-03-31 Thread Christoph Zwerschke
John Dickinson wrote: I've got a new implementation that solves both of these problems, but I can't seen to get in to the wiki to post it. Thanks a lot. I have already checked it in to the SVN repository. BTW, I have restarted the Wiki and let it use the current Webware 0.9. Should be better

Re: [Webware-discuss] AjaxSuggest example busy-waits

2006-03-31 Thread Christoph Zwerschke
sophana wrote: I agree with you that webware is not designed for doing this kind of stuff. If you want to do long running queries, I suggest that you bypass apache and webware, and implement a separate dedicated (python) server that supports these very long running queries, without the timeout

Re: [Webware-discuss] AjaxSuggest example busy-waits

2006-03-31 Thread Christoph Zwerschke
John Dickinson wrote: Instead of turning the polling off, would setting the client polling interval to some big number be good enough? I added an ajax_clientPollingInterval to AjaxPage so that a child page can easily set the polling interval (long if it doesn't need it, short if it does). Sor

Re: [Webware-discuss] AjaxSuggest example busy-waits

2006-03-31 Thread Christoph Zwerschke
I have now incorporated your ajax_clientPollingInterval() to AjaxPage as well and separated the responseTimeout parameter from the clientPolling flag. Adding some more docstrings and splitting the Javascript in two parts now makes the whole thing much better understandable. -- Christoph

Re: [Webware-discuss] mod_webkit on fedora c5 x86_64

2006-03-31 Thread Christoph Zwerschke
bob smith wrote: I had the same error with OSX 10.3 and Apache 2.2.0. The fix was to add the fourth parameter required by deleting lines 214 & 216: if ((rv = apr_socket_create(&aprsock, AF_INET, SOCK_STREAM, #if (APR_MAJOR_VERSION > 0) APR_PROTO_TCP, #endif I'd like to know why

Re: [Webware-discuss] mod_webkit on fedora c5 x86_64

2006-04-01 Thread Christoph Zwerschke
Ben Parker wrote: Christoph Zwerschke wrote: I'd like to know why APR_MAJOR_VERSION was not set. Actually it should be set in apr_version.h which is included by mod_webkit.c. APR_MAJOR VERSION is indeed set in apr_version.h, but that is not included by the version of mod_webkit2/mod_web

Re: [Webware-discuss] AjaxSuggest example busy-waits

2006-04-02 Thread Christoph Zwerschke
John Dickinson wrote: I have also updated the wiki with similar changes (splitting the javascript, allowing polling to be disabled and stopped once it is going). It's probably slightly different than your changes in svn, so we should probably figure out which is better suited to the necessary t

Re: [Webware-discuss] SessionStore bug and fix

2006-04-03 Thread Christoph Zwerschke
Hi, I have a bug and fix to submit. Attached is a patch file for WebKit/SessionStore.py against the 0.9 release. Thanks. I will have a look at it and check it in if it's ok. Maybe I will add some tests for the session operations as well. Please let me know if I should submit this another way.

Re: [Webware-discuss] SessionStore bug and fix

2006-04-07 Thread Christoph Zwerschke
Ben Parker wrote: Hi, I have a bug and fix to submit. Attached is a patch file for WebKit/SessionStore.py against the 0.9 release. The SessionStore convenience functions items() and values() include a bug where a session key can be deleted after self.keys() has been called, but before the ses

[Webware-discuss] Webware 0.9.1 beta 1 available

2006-04-09 Thread Christoph Zwerschke
As promised, I have cut a new beta release. It contains all bug fixes and enhancements made after version 0.9 so far, plus a couple of other improvements and bugfixes I made this weekend. Particularly, ImportSpy now uses new import hooks instead of ihooks (if available) and can be disabled com

[Webware-discuss] Webware 0.9.1 has been released

2006-04-23 Thread Christoph Zwerschke
As announced on the list, I have released Webware 0.9.1 final today. Thanks for the suggestions, feedback and encouragement. -- Christoph --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly wit

Re: [Webware-discuss] Why is AppServer consuming CPU while idle?

2006-04-25 Thread Christoph Zwerschke
I lauched the appserver the 13 april (12 days). It has only served 12 http requests since up (I have the log) top shows it has consumed 513 hours of cpu (it is a pentium [EMAIL PROTECTED]) Why so much cpu for nothing? Now you see how effectively Webware works: 43 hours per day ;-) Actually, whi

[Webware-discuss] DBUtils 0.9.1 has been released

2006-05-08 Thread Christoph Zwerschke
http://www.w4py.org/DBUtils/Docs/UsersGuide.html -- Christoph Zwerschke --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebS

Re: [Webware-discuss] the fault continues

2006-05-19 Thread Christoph Zwerschke
Mark Phillips wrote: I have rolled back to python 2.3.4, since Fedora Core 2 doesn't support python 2.4.x. I ran my test suite. I am getting the following error. This occurs once in a batch of requests, at about item 40 out of 100. I'd like to figure out what's going wrong there. Can I have th

Re: [Webware-discuss] 0.9.1 and python 2.3.4

2006-05-27 Thread Christoph Zwerschke
Chuck Esterbrook wrote: My only concern is: Does anyone use, or did they at least test, 0.9.1 on Python 2.3? I am running Webware 0.9.1 on a SuSE Linux 9.1 server with Python 2.3.3. -- Christoph --- All the advantages of Linux Managed Hosti

Re: [Webware-discuss] monitor.py

2006-05-27 Thread Christoph Zwerschke
Mark Phillips wrote: I noted Geoffrey's note, from 2005 I think, about monitor.py not detecting AppServer state precisely. Yes, monitor.py was broken, but I tried to fix it and it should run now again in version 0.9.1. -- Christoph --- Al

Re: [Webware-discuss] 0.9.1 and python 2.3.4

2006-05-27 Thread Christoph Zwerschke
I am not familiar with SuSE. How does 9.1 compare with FC2? It's about a year older. But I have Webware 0.9.1 also running on SuSE 10.0 without any problems. Anyway, statements that "Webware runs on ..." or "does not run on ..." have to be taken with care. Webware comprises a big bunch of f

Re: [Webware-discuss] KidPage

2006-06-03 Thread Christoph Zwerschke
michelts wrote: > I'm working on an idea: I wish to be able to setup the kid template > without edit it. You can already have a template be based on a master servlet and do the initialion there (e.g., see SimpleForm.kid, based on KidExamplePage). However, I think I understand what you want to sa

Re: [Webware-discuss] WebUtils.Funcs.urlDecode problem

2006-06-07 Thread Christoph Zwerschke
Ben Parker wrote: > The notes in urlDecode indicate it will raise this type of exception, > but I don't see why it needs to. Any reason why urlDecode should not > handle that exception and treat "%" like any other character if the two > characters following it are not valid hexadecimal? I agree

Re: [Webware-discuss] raw input

2006-06-07 Thread Christoph Zwerschke
John Dickinson wrote: > I see it in self.response().fields(), it has gone through a little > "tweaking". One of the values sent in the xml contains "&", but when > I see it, that string has been replace with "&". It's as if the data has > been passed through htmlDecode(). I don't think this Web

Re: [Webware-discuss] webkit and PIDs

2006-06-13 Thread Christoph Zwerschke
Oliver Bock wrote: > I am having problems using the webkit script from my working directory > to start AppServer when my machine starts. The trouble seems to be that > webkit loads its old process ID in $PID_FILE, then finds that that > particular PID already exists (there are lots of low-numbe

Re: [Webware-discuss] webkit and PIDs

2006-06-14 Thread Christoph Zwerschke
Oliver Bock wrote: > Unfortunately OS X does not include /proc and therefore FreeBSD probably > doesn't either. My impression is that /proc is a relatively recent > innovation. I did not know this about OS X. Actually, the procfs is not something new. FreeBSD has it, too (maybe a bit different

Re: [Webware-discuss] Webware-discuss Digest, Vol 1, Issue 2024

2006-06-21 Thread Christoph Zwerschke
Nader Emami wrote: > I am a newcomer to WebWare and I would like to learn this framework. Is > a book about this somewhere? It would > be better for me to have a book to practice some example. I don't think there is a book on Webware, but there is a bunch of helpful documentation around anyway. T

Re: [Webware-discuss] Forwarded requests and exception reports

2006-06-29 Thread Christoph Zwerschke
Oliver Bock wrote: > To provide more concise URLs to users, I use a servlet called index.py > to forward requests. I'm sure I didn't think this up myself, but I > cannot find it in the current docs. You can also use Main.py, and you can configure it in Application.config, setting "DirectoryFil

Re: [Webware-discuss] Forwarded requests and exception reports

2006-07-05 Thread Christoph Zwerschke
Oliver Bock wrote: > While your suggestion gets rid of the extra exception in the error > report, it doesn't solve the problem, which is that forwarding a servlet > fails to forward the call to writeExceptionReport(). (Your above > solution fixes my problem; I'm continuing this thread solely to

Re: [Webware-discuss] thread._processing/processing

2006-07-05 Thread Christoph Zwerschke
Oliver Bock wrote: > In ThreadedAppServer.py (both CVS HEAD and 0.9.1), whether a thread is > doing work is indicated via a boolean attribute called ".processing" in > some situations, and "._processing" in others. A consequence of this > mix up is that activeThreadCount() always returns zero b

Re: [Webware-discuss] XUL interface pages for Webware

2006-07-05 Thread Christoph Zwerschke
Hi Simon, > Over the last couple of weeks I have put together a XUL (firefox > application) framework for serving pages out of webware. This has worked > better than expected. > I thought it would be a good idea at this juncture to pass my work into > the Webware community as Remote XUL applica

[Webware-discuss] Webware summer (weekend) of code

2006-07-08 Thread Christoph Zwerschke
In preparation of a new Webware bugfix release, this weekend I have been processing the Sourceforge bug tracker and implemented some very old bugfixes and patches, and closed outdated issues. If you have other changes that shall go to the next release, let me know. -- Christoph --

Re: [Webware-discuss] wiki unavailable

2006-07-20 Thread Christoph Zwerschke
> For a few days now, when I try to access the wiki > (http://wiki.w4py.org/), I get an Error (Internal Server Error). Restarted the webware processes. Should be working again. -- Chris - Take Surveys. Earn Cash. Influence

Re: [Webware-discuss] Webwre resubmitting requests?

2006-07-29 Thread Christoph Zwerschke
Jeremy Kaplan wrote: > ... during this process we've discovered that a request that > runs excessively long is resubmitted every 5 minutes until it > completes. Is this Webware behavior? If so, is there some way to > configure Webware so as not to automatically resubmit these requests > every

  1   2   3   4   >