Re: [Webware-discuss] RuntimeError: dictionary changed size during iteration

2012-12-08 Thread Sophana K
ieb Sophana K: > > Yes, I'm creating a Scheduler instance. > > I didn't know I was supposed to use the one from the application. > > It's ok to create your own instance. But then the two schedulers will > run as two parallel threads which needs more ressources and

Re: [Webware-discuss] RuntimeError: dictionary changed size during iteration

2012-12-07 Thread Sophana K
sting scheduler. Shouldn't you remove the previous fixes then? Thanks for the hint. On Thu, Dec 6, 2012 at 12:23 PM, Christoph Zwerschke wrote: > Am 06.12.2012 10:59, schrieb Sophana K: > > I have some tasks scheduled every 30m and 24h. > > I did nothing special about the s

Re: [Webware-discuss] RuntimeError: dictionary changed size during iteration

2012-12-06 Thread Sophana K
I have some tasks scheduled every 30m and 24h. I did nothing special about the session sweeper. Are they related to taskKit? On Fri, Nov 30, 2012 at 6:28 PM, Christoph Zwerschke wrote: > Am 30.11.2012 18:01, schrieb Sophana K: > > Isn't it strange nobody had this problem befo

Re: [Webware-discuss] Using SVN head in production environment

2012-12-06 Thread Sophana K
Hi Looking at the svn logs, it looks like the changes are quite minor since the 1.1 release. I think most of them correspond to some bugs reported in this mailing list. On Thu, Dec 6, 2012 at 10:34 AM, Andreas Poisel wrote: > Hi! > > I've been using the svn head on a test system for a while no

Re: [Webware-discuss] RuntimeError: dictionary changed size during iteration

2012-11-30 Thread Sophana K
Thanks Isn't it strange nobody had this problem before? Seems that there isn't a lot of webware 1.1 applications in production. Don't you think? Sophana On Fri, Nov 30, 2012 at 5:36 PM, Christoph Zwerschke wrote: > Am 30.11.2012 13:48, schrieb Sophana K: > > It s

Re: [Webware-discuss] RuntimeError: dictionary changed size during iteration

2012-11-30 Thread Sophana K
wrote: > Am 28.11.2012 12:10, schrieb Sophana K: > > Look like another thread could be changing the _memoryStore during > > this iteration. Should I change to > > for key in list(self._memoryStore): > > Yes, this or "for key in self._memoryStore.keys()" s

[Webware-discuss] RuntimeError: dictionary changed size during iteration

2012-11-28 Thread Sophana K
Hi I just upgraded to webware-1.1, and get some errors (about every day) in the session dynamic store intervalSweep method. Here is the traceback File "/home/sophana/src/env1/Webware-1.1/WebKit/Tasks/SessionTask.py", line 13, in run self._sessionstore.cleanStaleSessions(self) F

Re: [Webware-discuss] webware gevent based appServer

2012-09-20 Thread Sophana K
x27;m not using plugins. A little bit of TaskKit (not a big deal) Migrating to more modern server architectures is a big plus for me: more scalability, comet, etc... If it is possible to just use WebKit compatibility in order to integrate more easily with other python libraries, it would be great.

[Webware-discuss] webware gevent based appServer

2012-09-17 Thread Sophana K
Hi I'm using webware for my website since 2007. I'm using webware 1.0, because webware 1.1 didn't work correctly for me (I don't remember why) I'm currently trying to debug a freeze problem that occur every 1 to 3 weeks. The python appServer process is completely frozen, and must be killed with -

[Webware-discuss] bug in UnknownFileTypeServlet.py (guess_type multithread)

2010-09-24 Thread Sophana KOK
Hi I tested webware 1.0.2 on python 2.6.2 (fedora 12) and came into a bug that I could find. from python 2.6 guess_type implementation doesn't support multi threading. The symptom is an infinite recursion exception on guess_type when it is called concurrently Looking in webware trunk I could see

[Webware-discuss] webware and webware application packaging

2008-03-07 Thread Sophana
Hi I'm using webware and am very happy with it. However, I think webware packaging should be "more standard" I think it becomes necessary to have easyinstall, rpm or debian packages of webware The same for webware applications, the application context is not packageable, as it has direct pathname

Re: [Webware-discuss] Session Issue bug found

2007-09-04 Thread Sophana
Christoph Zwerschke a écrit : > Sophana wrote: > >> I reverted to 0.9.2 because of the cookie clear bug which I couldn't >> find a workaround. >> > > If you provide a test case for that bug, I'll try to fix it in the next > version. > >

Re: [Webware-discuss] response().delCookie() doesn't work anymore in 0.9.4

2007-08-30 Thread sophana
Christoph Zwerschke a écrit : > Sophana wrote: > >> simple: >> self.response().delCookie('cookieName') >> works in 0.9.2 >> doesn't work in 0.9.4 (cookie creation works) >> > > Hm, this is working for me in 0.9.4. > >

Re: [Webware-discuss] response().delCookie() doesn't work anymore in 0.9.4

2007-08-30 Thread Sophana
Christoph Zwerschke a écrit : > sophana wrote: > >> I have the same application over 4 servers, 2 have webware 0.9.4 with >> fedora core 6, the others have webware 0.9.2 with centos4. >> With 0.9.2 delCookie works, but no more with 0.9.4 >> The created cookie

Re: [Webware-discuss] Session Issue bug found

2007-08-30 Thread Sophana
Christoph Zwerschke a écrit : > Sorry for the late answer, I was offline was some weeks. > > sophana wrote: > >> Now looking at firefox cookie list, when I go to my server root url, I >> get a SID cookie with the path set to // >> > > This is a bug. I

[Webware-discuss] response().delCookie() doesn't work anymore in 0.9.4

2007-08-18 Thread sophana
Hi I have the same application over 4 servers, 2 have webware 0.9.4 with fedora core 6, the others have webware 0.9.2 with centos4. With 0.9.2 delCookie works, but no more with 0.9.4 The created cookie is the same in both cases (the path is /) Is it related to the session cookie path modificati

Re: [Webware-discuss] How to prevent a session creation?

2007-08-04 Thread sophana
Chuck Esterbrook a écrit : > On 8/4/07, sophana <[EMAIL PROTECTED]> wrote: > >> Hi >> >> While trying to debug my webware application, I tried to stress it with >> a simple wget loop. >> I saw that memory was increasing. >> After searching a littl

[Webware-discuss] How to prevent a session creation?

2007-08-04 Thread sophana
Hi While trying to debug my webware application, I tried to stress it with a simple wget loop. I saw that memory was increasing. After searching a little, I found out that it was webware sessions that were growing up to the max dynamic session limit. Using cookie option of wget made no more sessio

Re: [Webware-discuss] Session Issue bug found

2007-08-04 Thread sophana
Christoph Zwerschke a écrit : > Concerning the sessions, this may have to do with the more secure > default cookie path for Webware. It will be probably using '/wk' now, > while you had been using '/'. If you still experience problems with the > cookies, you can set a fixed cookie path in 0.9.4,

Re: [Webware-discuss] Session Issue

2007-08-02 Thread sophana
Jkx a écrit : > Hi all, > > I've been off webware for a while now, but yesterday I need to > update my website, and I run into some issues with an old webware > install (which work smothly since 2 years). > > I switched to mod2_webkit, and last stable webware release 0.9.3 + > apache 2.2 (my prev

Re: [Webware-discuss] request().serverURL() question

2007-06-19 Thread sophana
écrit : > sophana wrote: > >> Yes I have a rewrite rule, but the rule does not apply in this case. >> This may explain that I don't get the expected result. >> What I don't understand is that, even if the url was rewritten, the >> result is sim

Re: [Webware-discuss] request().serverURL() question

2007-05-17 Thread sophana
Christoph Zwerschke a écrit : > I've implemented my suggestion with the canonical parameter now (see > http://svn.w4py.org/Webware/trunk/WebKit/HTTPRequest.py). Can you let me > know whether this solves your problem with serverURL()? > Thanks I'll try that. ---

Re: [Webware-discuss] request().serverURL() question

2007-05-17 Thread sophana
Christoph Zwerschke a écrit : > sophana wrote: > >> I've just found out that request().serverURL() does not return the real >> PATH of the request. >> It replaces the http host with the server name configured in apache. >> Is this the intended behaviour? >&

[Webware-discuss] request().serverURL() question

2007-05-17 Thread sophana
Hi I'm using apache2 + mod-webkit (from 0.9.1) and webware 0.9.2 (and 0.9.3) My website can have multiple names: http://example.com/ or http://www.example.com (like many websites) and also https://... I've just found out that request().serverURL() does not return the real PATH of the request. It r

Re: [Webware-discuss] strange webware freezes

2007-05-01 Thread sophana
Hi Thanks for the suggestion. I'll try it next time. I happened again some minutes ago, but it unfreezed without my intervention. Does this signal exits the process? Ben Parker a écrit : > Hi Sophana - There was a new feature in webware 0.9.2 which allows you > to send SIGQUIT to

Re: [Webware-discuss] strange webware freezes

2007-05-01 Thread sophana
will freeze all processes so > that you can debug leaving the application server seemingly hung up > and needing to be killed. Check to make sure that you don't have odd > places in the code that only get hit occasionally with references to pdb. > > - Cosmin > > On May 1, 2007, at

[Webware-discuss] strange webware freezes

2007-05-01 Thread sophana
thon itself. Is there a way to know about the process state? (stack) If someone has a clue, I would be happy to hear it. Thanks again Sophana - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE vers

[Webware-discuss] Secure templating solution?

2007-02-24 Thread sophana
Hi On my hotspot management website using webware: http://worldspot.net, users can customize their landing page with a wysiwyg editor (fck editor). I'm actually just replacing a %(content) tag with the dynamic content that I generate. However users are asking for a more customizable hotspot landin

Re: [Webware-discuss] Page instances and threads

2007-01-22 Thread sophana
Christoph Zwerschke a écrit : > 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. >&

[Webware-discuss] Page instances and threads

2007-01-18 Thread sophana
Hi I wrote my first (big) web application with webware, and am really happy with it. 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

Re: [Webware-discuss] How to evaluate webware and get started?

2007-01-11 Thread sophana
Christoph Zwerschke a écrit : > [EMAIL PROTECTED] wrote: > > This can be handled by Webware plug-ins (e.g. FormKit, FunFormKit) or by > other external libraries (e.g. FormEncode). > > Unfortunately, the plug-ins are not part with the Webware package, > though I think at least one of them shoul

Re: [Webware-discuss] How to evaluate webware and get started?

2007-01-05 Thread sophana
[EMAIL PROTECTED] a écrit : > Well, according to the documentation, the webware community is supposed to be > pretty helpful. :) I wonder if you all could help me without me having to > spend long amounts of time trying to find the info myself? > > I would like to evaluate using Python for makin

Re: [Webware-discuss] OperationalError: (2006, 'MySQL server has gone away')

2006-12-27 Thread sophana
Roger Haase a écrit : > Hi, > > I am testing a new server with Fedora Core 6 and Middlekit-Webware 9.2 > and MySQL 5.0. When the new server is idle for 5 (or more) hours I get > abends with OperationalError: (2006, 'MySQL server has gone away'). > Restarting the webkit AppServer eliminates the im

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

2006-09-08 Thread sophana
Gary Perez a écrit : > Hello all, > > I've searched through all the past mailing list archives & scoured > the web looking for an idea as to what's going on. Sorry this is so > long, just trying to cover all my bases. > > First, the setup: CentOS release 4.3 (Final) running Apache 2.0.52 in >

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

2006-09-06 Thread sophana
Matt Feifarek a écrit : > On 9/6/06, *Christoph Zwerschke* <[EMAIL PROTECTED] > > wrote: > > > > I thought it was more Webware-centric. So maybe we should integrate > FunFormKit instead, and mention FormKit and FormEncode as alternatives > in the docs? I just l

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

2006-09-06 Thread sophana
Tim Roberts a écrit : > There's nothing wrong with Webware, of course, but there are a LOT of > very competent Python web frameworks available today (in fact, I wrote > an essay on that in comp.lang.python last week), and Webware isn't the > top of my list any more. If you had said "we evaluated t

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

2006-09-06 Thread sophana
Christoph Zwerschke a écrit : > sophana wrote: > >> formencode does the trick also, but its too bad it doesn't have an >> automatic layout by default. >> I had to write my own simple layout management for formkit, that I will >> contribute some times. >>

Re: [Webware-discuss] Session expiration problem

2006-09-06 Thread sophana
Christoph Zwerschke a écrit : I will also try to reimplement returning an error page for expired sessions if IgnoreInvalidSession=False (the default is True). Maybe instead of sending an error page, we should simply send a 408 Request Timeout error? I have fixed it that wa

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

2006-09-06 Thread sophana
I'd suggest that you use formkit to manage forms. It's really simple to use. With it, I don't need any templating language (which I find not really useful...) formencode does the trick also, but its too bad it doesn't have an automatic layout by default. I had to write my own simple layout managem

Re: [Webware-discuss] problem with session store

2006-06-08 Thread sophana
Also forgot to ask, is there an option for entering python interactive mode so I can launch pdb? sophana wrote: >Hi > >I have the following message: > >[Thu Jun 8 16:46:03 2006] [error] WebKit: Error while executing script None >Traceback (most recent call last):

[Webware-discuss] problem with session store

2006-06-08 Thread sophana
Hi I have the following message: [Thu Jun 8 16:46:03 2006] [error] WebKit: Error while executing script None Traceback (most recent call last): File "../WebKit/SessionFileStore.py", line 82, in __setitem__ self.encoder()(item, file) File "../WebKit/SessionStore.py", line 54, in dump_with

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

2006-04-25 Thread sophana
Hi I have webware 0.9 installed with mod_webkit. 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? Regards Sophana

Re: [Webware-discuss] webware forms: formkit, formencode, any other?

2006-04-03 Thread sophana
Matt Feifarek wrote: On 4/2/06, *sophana* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: I'm actually using formkit with success. I find it just cool as it is. Maybe the forms look should be a little more customizable (I haven't tried a lot) Glad to

Re: [Webware-discuss] webware forms: formkit, formencode, any other?

2006-04-02 Thread sophana
haven't found a viable (wydiwyg) html editor solution. That's why I'm using formkit. About the automatic sqlobject to form generation, I finally found it not very useful, as the database schema is often not the same as the form. Matt Feifarek wrote: On 3/9/06, *sophana* <

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

2006-03-31 Thread sophana
I am still not convinced that polling is a good solution for long queries. One good reason for this is that you can't implement real time application anymore: a chat board, real time stock quotes, etc... Isn't it better to store the tcp socket file handles left open in a connection pool? As so

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

2006-03-31 Thread sophana
However, I'm actually wondering whether you really always need to run this background polling. If requests are always answered within the timeout interval (which is set to 100 seconds), that mechanism should be never needed. For instance, in the "AjaxSuggest" example, it will be surely not ne

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

2006-03-30 Thread sophana
Jeff With The Big Yellow Suit wrote: > If someone could explain, I would be grateful... If I'm interpreting your questions and statements correctly then you seem to have two misunderstandings. One is about how HTTP requests work, and the other is about the costs of threading. Please forgive m

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

2006-03-30 Thread sophana
John Dickinson wrote: I think I understand now. The client is polling the server for new data that could come up because of external events. If I understand correctly, this kind of application is useful for a certain class of websites like chat, real time data updating (like stock quotes),

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

2006-03-30 Thread sophana
John Dickinson wrote: In answer to your first set of questions, ajax_response() waited to see if anything would show up in the response bucket that needed to be sent to the client. Once something showed up, it was send down the pipe to the client, and the connection was closed. What kind of

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

2006-03-30 Thread sophana
But there is thread switching going on all the time. The more threads, the more switching overhead. I don't think we talk about the same threads. python is an interpreted language. There is absolutely no overhead in switching a python context. Nothing similar with a regular os thread switch.

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

2006-03-30 Thread sophana
They are handled like standard requests. The issue is that (in my older implementation) the request would be made to the server, and the server would sit around with that request for TIMEOUT seconds. That is my question: Why waiting? Why not immediately close the connection and the thread

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

2006-03-30 Thread sophana
Michael Palmer wrote: Geoffrey Talvola wrote: John Dickinson wrote: Not only that, it consumes a webware thread that could be used for other requests. Yes, this won't scale too well if you have large numbers of concurrent users. You could probably handle hundreds of users with a large

Re: [Webware-discuss] sqlite usage

2006-03-30 Thread sophana
Db access is independant of webware. You can use any python library for sqlite. middleKit is the webware proposed database management system but you are not obliged to. I personaly use SQLObject inside webware (it also supports sqlite but not tested). I find it MUCH easier than middlekit. Mike

Re: [Webware-discuss] How to include a php page from the same server inside my SitePage?

2006-03-29 Thread sophana
Not yet. I think I'll use frames until I'll try another solution. Jose Galvez wrote: did you ever find a solution to your problem? Jose sophana wrote: So your website is composed of php pages mixed with webware pages, but you don't have php+webware mixed pages. Did I underst

Re: [Webware-discuss] How to include a php page from the same server inside my SitePage?

2006-03-16 Thread sophana
at do you think about the performance of this kind of script? Maybe I could use urllib and open a tcp connection to the local apache server? Is there a way to pipe the file handle directly into the response request to achieve better performance? Or should I simply use frames? Sophana Jose Gal

[Webware-discuss] How to include a php page from the same server inside my SitePage?

2006-03-16 Thread sophana
hrough the apache web server? In both case, how can I do it? Thanks for your help Sophana --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcas

Re: [Webware-discuss] MiddleKit

2006-03-15 Thread sophana
marcelo schiavone wrote: Hi, does someone know the way of doing that "MiddleKit" works with a remote (existing) database, using MSSQL? The database already exists and the idea is to realize an application in Webware in another PC that accedes to the above mentioned database using MiddleKit. Re

[Webware-discuss] webware forms: formkit, formencode, any other?

2006-03-09 Thread sophana
Hi Still investigating in the python for web world. Now I'm looking for a method for generating forms. formkit looks quite good, although not that simple. formencode does not generate html but mostly cares about validation (if I understood the quite poor doc correctly) If possible, I would lik

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

2006-03-09 Thread sophana
Ian Bicking wrote: Sophana Kok wrote: I'm a webware beginner. I would like to use sqlobject with webware and kid. If you are using SQLObject, it handles the connections for you. Ok thanks, I just had a look in the source, seems that I just need to set the sqlhub.processConnection g

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

2006-03-08 Thread Sophana Kok
Hi I'm a webware beginner. I would like to use sqlobject with webware and kid. I have a question concerning database connections managment. How do I leave connections open between requests? Is there a document somewhere on the website? In the website, I've seen that there are awake() and sleep(