[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 Universitaetsverwaltung Heidelberg Abt. 3.1-IuK

Re: [Webware-discuss] DBPool connections question

2003-10-01 Thread Christoph Zwerschke
. 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 --- This sf.net email

[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

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,

Re: [Webware-discuss] .pyc files

2004-03-31 Thread Christoph Zwerschke
submitted # replace: elif num1: # with: elif num3: Gtx Christoph Zwerschke --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from

[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

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

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:

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,

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, i

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'

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

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

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

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,

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

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

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

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

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

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 no

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

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

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

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

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

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 the

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

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

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

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: [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 there

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

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

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

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

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

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

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

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

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).

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_webkit.c

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

[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

[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

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

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 that

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 amp;, 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 Webware

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-numbered

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. The

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] 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

[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 5

Re: [Webware-discuss] What has hapened!?

2006-08-12 Thread Christoph Zwerschke
Is webware still being developed, I read about someone applying patches to source but KidKit was tested until kid 0.9.1 and kid is now on 0.9.3. Webware is a pretty mature framework, so development has slowed down, but it is still maintained and enhanced. I see this sort of stableness

Re: [Webware-discuss] Webware and Kid or Cheetah

2006-08-12 Thread Christoph Zwerschke
Pedro Algarvio wrote: Now, have I missed a recepie on wiki that already takes care of this? Did you already look here? http://www.kid-templating.org/trac/wiki/KidRecipes Kid templating with KidKit is a recent addition to Webware, so it is not so sophisticated and time-tested as the rest of

Re: [Webware-discuss] WebKit linux installation

2006-08-16 Thread Christoph Zwerschke
I initially left the WebKit AppServer.config file as it was installed: Host = '127.0.0.1' (This was the recommented procedure to verify a correct install.) When trying to connect with the server with a web browser on another platform and an address: http://resdev1.dev.oclc.org:8080/ The

Re: [Webware-discuss] WebKit linux installation

2006-08-16 Thread Christoph Zwerschke
I changed the AppServerconfig file: Host = 'resdev1.dev.oclc.org' You should use your IP address here, not your hostname. I just checked in a fix for the next version allowing names here, as well as 'localhost' = '127.0.0.1' and '' = '0.0.0.0' (all interfaces). -- Christoph

[Webware-discuss] Support for reporting and creating HTML tags

2006-08-17 Thread Christoph Zwerschke
One thing I'm missing not only in Webware but also the more recent web frameworks and mega frameworks is an integrated reporting component. In most applications, you want to to create reports, lists, statistics, (serial) letters etc. in PDF (or RTF, Excel or whatever) format. One possible

Re: [Webware-discuss] Support for reporting and creating HTML tags

2006-08-17 Thread Christoph Zwerschke
michelts wrote: I think you are looking for the SimpleHTMLGen.py from FunFormKit module: ... Kind of like htmlgen, only much simpler. The only important symbol that is exported is ``html``. Bingo. I think I have already seen it, but forgotten again. This is perfect. A library with knowledge

Re: [Webware-discuss] Webware 0.9.2 beta 1

2006-08-23 Thread Christoph Zwerschke
Oliver Bock wrote: I suggest 2.3 rather than 2.4. People on shared hosting accounts are often stuck with a none-too-recent version. Also, you'll get clueless complaints from OS X users (Tiger includes Python 2.3), ... We have discussed this on webware-devel, too. Distributions such as

[Webware-discuss] Webware 0.9.2 beta 1

2006-08-23 Thread Christoph Zwerschke
As announced, a new beta release of Webware for Python is available for testing. It contains a lot of bug fixes and improvements, including many old issues from the SourceForge tracker. Backward compatibility with Python 2.3 has been fixed in many places. The idea is to switch to Python 2.3 or

Re: [Webware-discuss] Upgrading instructions

2006-08-25 Thread Christoph Zwerschke
Oliver Bock wrote: Whenever a new release of Webware comes along I: - Create a new webwarework directory. - Diff between the new config files and my old ones, manually copying my configuration changes. - Create a symbolic link to the directory containing my servlets. The docs appear to

Re: [Webware-discuss] Session expiration problem

2006-08-30 Thread Christoph Zwerschke
In previous versions of webware (0.8.1), when a session expires the method Application.handleInvalidSession() was called, which basically removes the _SID_ reference so the browser will stop requesting an invalid session, and marks request._sessionExpired. So, I could ask for the

Re: [Webware-discuss] Question......

2006-09-06 Thread Christoph Zwerschke
sophana wrote: I did a tour of the numerous python web framworks available not so long ago. I choosed webware, because it is simple and powerful. Yes, I think that's still true, but today there are really many great alternatives. E.g. for my next project I chose TurboGears. I'm curious how it

Re: [Webware-discuss] Question......

2006-09-06 Thread Christoph Zwerschke
sophana wrote: If we talk about the features of webware, I did not find how to manage directories url notation. for example, what I would like to have is: if Main is the page handler, it should be possible to enter any url like: http://webkit/Main/foo/boo?a=1b=2 Main request fields would

Re: [Webware-discuss] Webware/Apache Threading Problem?

2006-09-14 Thread Christoph Zwerschke
John Dickinson wrote: Maybe I'm a little dense here, but I'm not seeing why os.chdir is such a bad thing in a threaded environment. I did a little google-ing, but I did not find anything the was talking about problems in a threaded environment. The following program shows the problem quite

[Webware-discuss] Webware 0.9.2 has been released

2006-09-17 Thread Christoph Zwerschke
Webware 0.9.2 has been released. This release of Webware for Python includes a couple of fixes and improvements of WebKit, MiddleKit, MiscUtils and WebUtils (see the respective release notes). Webware for Python is a suite of Python packages and tools for developing object-oriented, web-based

Re: [Webware-discuss] Work Dir / AppServerService

2006-10-18 Thread Christoph Zwerschke
Gruszka, Daniel schrieb: I ran AppServerService.py from inside the Work Dir and have all the settings correct though the service still looks at the configuration files inside C:\Webware\WebKit. Why is this? Hi Daniel, just tried this with a similar setup and it works for me. The

Re: [Webware-discuss] Two Windows deployment problems

2006-10-20 Thread Christoph Zwerschke
Steve Freitas wrote: You should look in both the Windows event log and the log file that you can specify in AppServerService.py. Ah ha, that's a log file I missed, I'll check that out. I made a note to change that in the next version, so that you will have a log file active in workDir\Logs

Re: [Webware-discuss] Two Windows deployment problems

2006-10-21 Thread Christoph Zwerschke
Steve Freitas wrote: So a lineup of DLL builds for XP Pro and Windows 2000 and 2003 server would sound like a very helpful idea to me. I completely agree that it is a pain to install the development tools on Microsoft servers, so that would be definitely helpful. I'm not sure how many

Re: [Webware-discuss] Component 0.2 ExamplePage error ...must be called with CPage...

2006-11-11 Thread Christoph Zwerschke
Below is a description of a problem with running the Component 0.2 examples and the fix I found: I think you were talking about the LoginKit Examples, right? Component itself has no Examples. I checked in your fix and some other improvements to LoginKit. -- Christoph

Re: [Webware-discuss] webware on Linux VServer

2006-11-15 Thread Christoph Zwerschke
Randall Smith wrote: I'm trying to get webware going on VServer, but I'm getting the error below. ... /usr/local/lib/python2.4/site-packages/webware/WebKit/NewThreadedAppServer.py, ... That looks like a very old Webware. Did you try with Webware 0.9.2? -- Chris

Re: [Webware-discuss] Using Webware with WebKit.cgi

2006-11-25 Thread Christoph Zwerschke
Hi Mico, I just installed Webware successfully. I run ./AppServer and everything looked fine. I can browse and run all Testing. Then I tried CGI Adapters. I put WebKit.cgi in /usr/lib/cgi-gin/ (default arrangement for Ubuntu Linux). Then run ./AppServer. When I browsed

Re: [Webware-discuss] forwarding req.values ?

2006-12-03 Thread Christoph Zwerschke
[EMAIL PROTECTED] wrote: dear all: question: can i use ? % req.setField('ww', ww) req.setField('rr', rr) req.setField('xx', xx) trans.application().forward(trans, 'list.psp') % which req.values will take precedence? This will immediately forward to list.psp when

Re: [Webware-discuss] Problem with windows service shutdown

2006-12-15 Thread Christoph Zwerschke
Will Sadkin wrote: We run webkit as our appserver, via a win32 service. If we start up the service and immediately shut it down via the windows service manager, it works fine; if a session starts, and we then try to shut the service down, it hangs. Is there some sort of handler we need to

Re: [Webware-discuss] Question re: managing/retrieving sessions

2006-12-15 Thread Christoph Zwerschke
Will Sadkin wrote: We have a situation where we want to start a session in webkit, but then redirect the user to another (IIS) site, and eventually have that site send the user back to our site and the same session it started with. I'm thinking that the webkit session ID could be passed

Re: [Webware-discuss] FATAL: sorry, too many clients already

2007-01-06 Thread Christoph Zwerschke
I m still getting the too many clients error, now my postgresql max _connections is 256 and shared_buffers = 2048 and this is how pg and dbutils from DBUtils.PooledDB import PooledDB web.config._hasPooling = True Ok, only now I understand that you are using DBUtils with web.py. You

Re: [Webware-discuss] FATAL: sorry, too many clients already

2007-01-17 Thread Christoph Zwerschke
[EMAIL PROTECTED] wrote: Where do I call closeDB in db.py Actually this is a web.py specific question, so I suggest moving the discussion to the web.py mailing list. I have just had a short look at web.py and yes it's a nice framework, very Spartan, but that may be just right for some kinds

Re: [Webware-discuss] Page instances and threads

2007-01-20 Thread Christoph Zwerschke
sophana wrote: There is still something that I would like to get confirmed: I have a big object that takes some time to be instantiated. This is why I would like to instantiate it once per webware execution thread. Do you think that the page __init__ method is the place to store this object

Re: [Webware-discuss] Struggling with mod_webkit

2007-01-22 Thread Christoph Zwerschke
Tennessee Leeuwenburg wrote: * Added the snippet from the installation guide setting up the Location/ tag * Been baffled. Did you restart/reload Apache2 after that? Are you sure you put the Location tag (should be Location /WK) in the right (virtual host) config file? What happens if you put

  1   2   3   >