Re: [Webware-discuss] Webware and WSGIKit development

2005-01-05 Thread Max Ischenko
Ian Bicking wrote: More mechanically. You can build things on top of Webware reasonably easily. It's not always the most elegent way -- e.g., using a single servlet that dispatches to other objects. But I think that's okay, I think Webware is reasonably simple to layer things on top of. Ther

Re: [Webware-discuss] Session Riding

2004-12-22 Thread Max Ischenko
Enrique Arizón wrote: Of course, I send it back and for embedded in the form as a hidden input field, so I can't imagine a general way to use it in Webware (or any other framework) Yeah. Though, if this scheme is used in HTML forms only and application use some form-management tool like FormKit o

Re: [Webware-discuss] Session Riding

2004-12-22 Thread Max Ischenko
Enrique Arizón wrote: I use "sequence numbers" to avoid the problem. It's basically a similar solution to the "secrets" mentioned in the article. An increasing integer number is send back to client with every request. The client must put it back to the server with each new request. It has the added

[Webware-discuss] use HTTP status codes - WebKit

2004-12-08 Thread Max Ischenko
Hi, I'm pondering about the possibility to tweak WebKit to use HTTP status codes to report errors. Currently, it returns error pages, just like normal ones, with 200 OK. IMO this is not a great idea. For one, this hinders work of log analyzers (Apache), as you have to dig through WebKit logs to

Re: [Webware-discuss] sessionEncode

2004-11-29 Thread Max Ischenko
Michel Thadeu wrote: Sorry guys, I think I partially solved my own question... The method sessionEncode converts a url to a url+_SID_... This can be usefull, but all links I wrote I need to change to this new way... Is there an easier way than passing explicitly the _SID_ over requests? If you're b

Re: [Webware-discuss] How are you guys dealing with web security?

2004-11-15 Thread Max Ischenko
Uzo Uzo wrote: How are you all dealing with web security? Preventing SQL injection attacks and cross site scripting attacks... Check this thread on JoS: http://discuss.joelonsoftware.com/default.asp?design.4.18249.10 In particular, http://shiflett.org/php-security.pdf is quite helpful, even thou

Re: [Webware-discuss] Webware WebKit Session Data Cross Shared Pr oblem

2004-11-02 Thread Max Ischenko
Geoffrey Talvola wrote: Yes, that is definitely a problem. You are using class variables instead of instance variables. Class variables are shared among all instances, and this would explain why you are seeing the data shared across sessions. Put your initialization into the __init__ instead. I

Re: [Webware-discuss] Webware WebKit Session Data Cross Shared Problem

2004-10-27 Thread Max Ischenko
Lincoln Han wrote: class Cart(Page, BasicItem, ExtendedItem, Shipping): customer = Customer() #store the customer info into the customer object at check out order = Order() #we will need to store the order into the order object at check out itemlist = list()

Re: [Webware-discuss] Webware WebKit Session Data Cross Shared Problem

2004-10-26 Thread Max Ischenko
Lincoln Han wrote: Hi, I just recently finished developing a commercial web site using Webware and it is currently in the testing stage. The platform is Apache + Webware. One of the strange problem I found recently testing the shopping cart using different computers from inside and outside the LAN

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

2004-08-06 Thread Max Ischenko
Matt Feifarek wrote: 1. remove all non-core "kits" like middlekit, comkit, taskkit, userkit, etc. When there is a dependency on one of them for Webkit, fix the dependency. To the extent that these projects have interest (like MiddleKit) spin them into their own projects. Can't agree more! Myself

Re: [Webware-discuss] A new version is badly needed

2004-07-29 Thread Max Ischenko
Matt Feifarek wrote: David London wrote: I'd like to start the petition for the release of a new version. I understand your frustration, and I think that in sentiment, you'll get nothing but agreement from this list, but it's not that simple, I'm afraid. ... So, rather than demand a release from t

Re: [Webware-discuss] Problem with launch.py

2004-07-25 Thread Max Ischenko
Mark Phillips wrote: With help from this list I have succeeded in testing Webware using localhost. This weekend I attempted to move the project to a live server to continue to testing and learning. The server is SME Server 6.0 (RedHat 7.3). I updated Python to 2.3.4. I copied Webware-0.8.1 to m

Re: [Webware-discuss] Cheetah templates

2004-07-01 Thread Max Ischenko
jose wrote: Hi all, I'm fishing for advice. I have recently been looking at different templating solutions to use with webware. At the moment I am looking at cheetah and zpt. To compare them more directly I was basically building the same project with both of them to see how they worked. I was

Re: [Webware-discuss] Generating XML With Webware

2004-06-30 Thread Max Ischenko
CLIFFORD ILKAY wrote: Success! Thank you Paul, Max, Matt, Aaron. Here is the code that worked. Why don't just self.write("""\ """ The key was setting the content type and adding the missing "/" in the "description" tag to close it. This was tested on Firefox 0.8 on Linux. I had to check the cont

Re: [Webware-discuss] Generating XML With Webware

2004-06-30 Thread Max Ischenko
CLIFFORD ILKAY wrote: Hi, I am actually trying to generate a remote Mozilla XUL. The code is as simple as it gets but for some reason, I see a blank browser. Here is the code: IIRC it sufficient to override writeHTML method, because all others are called from it. Plus, don't forget to self.respo

Re: [Webware-discuss] WebWare and Cheetah

2004-06-24 Thread Max Ischenko
Sandrine Ribeau wrote: I'm trying to create a web application with cheetah and webware, but I have some difficulty to start (indeed I didn't success to access to examples given in cheetah tutoriel). I made an application directory to develop my web application using Wabware/bin/MakeAppWorkDir.py sc

Re: [Webware-discuss] from iis/asp to python

2004-06-09 Thread Max Ischenko
Peter Maas wrote: I work at a little software company that has delivered some iis/asp based apps to a corporate customer. The apps are used by 50-1000 employees. The asp code is vbscript (quite messy) and I'd like to port these apps to Python. I run a I've been in this boat. We also had a big iis/a

[Webware-discuss] Re: Webware extensibility

2004-02-27 Thread Max Ischenko
Aaron Held wrote: We should have both. I like subclassing when I change the basic implementation (data level), and hooks/callbacks/plugins where I need to add code that responds to events of the basic web application flow. Agreed. In my option, the desire of users to subclass basic classes like

[Webware-discuss] Re: Webware extensibility

2004-02-27 Thread Max Ischenko
Ian Bicking wrote: Jason Hildebrand wrote: I eventually realized that using classes would clean a lot of this up. With classes you only need one method per event. Any subclass which overrides this method can call the superclass' method (or not) when it needs to, thereby controlling whether the ne

Re: [Webware-discuss] notify me when the session ends

2004-02-25 Thread Max Ischenko
Aaron Held wrote: I'm not sure if the Mixin is the way to go with what you are thinking. Personally I would be against subclassing a 'core' class such as sessions, I would rather see some hooks for calling implementation specific code. Completely agree here. By having found no such hooks, the Mix

Re: [Webware-discuss] notify me when the session ends

2004-02-25 Thread Max Ischenko
Aaron Held wrote: in "context"/__init__.py from MiscUtils.MixIn import MixIn from WebKit.Session import Session from MaxUtils import NotifyCode class SessionMixIn: def expiring(self): NotifyCode('Session is ending') # Now inject the methods from SessionMixIn into Session MixIn(Sess

[Webware-discuss] notify me when the session ends

2004-02-24 Thread Max Ischenko
Hi. Is it possible to register a callback in WebKit so that my code would be notified when the session ends? thanks. --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD so

Re: [Webware-discuss] State of the program

2004-02-09 Thread Max Ischenko
David Rushby wrote: I built my website with webware about a year ago and really loved getting my feet wet. It's now time to get back into it a bit. But progress seems to have slowed. Is there still any excitement about this project? It's a super program. I suppose many Webware users are in m

[Webware-discuss] per-session data store for WebKit

2004-02-05 Thread Max Ischenko
Hi, I'm trying to implement a per-session data store for WebKit and this is what I've done so far (in the attachment). It is used like this: store.register('dc', newDebuggingContext) store.register('localizer', newLocalizer) class SitePage: ... def awake(self, t): mvc.View.awa

[Webware-discuss] Creating and using per-session data

2004-01-12 Thread Max Ischenko
Hello, I've already asked you about dealing with expensive resources and thread-safety in WebKit but I'm still confused. I want (if it's possible): 1. setup some objects on a per-client (per-session) basis 2. do not have to deal with thread issues inside those objects (IOW, they are not thread-

Re: [Webware-discuss] Caching within servlet instance?

2003-12-11 Thread Max Ischenko
Aaron Held wrote: Costas Malamas wrote: Also, in a related thought, have you tried redirecting self.writeln() to stuff HTML into a cache to speed up response time? does that work? it's the next step in my optimization... each URL is a unique page - look for the rendered page in the cache. If

Re: [Webware-discuss] dealing with expensive resources and thread-safety

2003-12-01 Thread Max Ischenko
Lately I have been thinking that I should just create a new db connection in the __init__ and check it in awake, since pretty much every servlet uses the database. But this is dangerous because then db coon can be shared across threads (servlets are shared, right?). Nope. Servlet instances are

Re: [Webware-discuss] dealing with expensive resources and thread-safety

2003-11-27 Thread Max Ischenko
Aaron Held wrote: I usually create a dbpool and get /return a connection just when it is needed. The connections always exist, but they are shared between servlets. Lately I have been thinking that I should just create a new db connection in the __init__ and check it in awake, since pretty mu

[Webware-discuss] dealing with expensive resources and thread-safety

2003-11-26 Thread Max Ischenko
Hi, I have a question regarding usage of db connection in WebKit and (related to it), how thread-safe servlets are. Currently I have a db conn. as a module global variable in a sitepage and it is used by several servlets. But I'm not sure this is a good way to deal with db. Anyway it is probab

Re: [Webware-discuss] IIS redirection problem solved

2003-11-26 Thread Max Ischenko
Explanation: This is due to the fact how WebKit implements session support and how IIS handles redirects (HTTP 303). When new session is created, WebKit sets cookie _SID_ and pass it along with response (which happened to be a redirect). But unfortunately, IIS don't pass the redirect to browser

[Webware-discuss] IIS redirection problem solved

2003-11-21 Thread Max Ischenko
Hi, I (and probably other) have struggled a nasty problem occurred when WebKit used as an application server behind a IIS. Here I'd like to give a simple solution for those interested and (may be) to be included in the next Webware release. Problem description: When you put some data on your

Re: [Webware-discuss] Standalone WebKit

2003-11-06 Thread Max Ischenko
Ian Bicking wrote: I've added a project to the Webware Sandbox (http://webware-sandbox.sf.net), a refactoring of Webware to separate out WebKit and generally make it easier to install, configure, and administer. It's in Sandbox/ianbicking/WebKit, viewable through the web at: Wow! That's r

[Webware-discuss] Re: How to ignore session's store errors

2003-11-05 Thread Max Ischenko
Geoffrey Talvola wrote: KeyError: '20031104113213-224704b20a9fab1f60fd40a3fcacec0c' Is it possible to handle this error somehow from my context's code? I wonder if this has already been fixed in CVS? Or perhaps there is a patch on SourceForge for this already? This bug seems awfully familiar.

[Webware-discuss] How to ignore session's store errors

2003-11-04 Thread Max Ischenko
Sometimes I got the error like this one: Traceback (most recent call last): File "WebKit\Application.py", line 395, in dispatchRequest File "WebKit\Application.py", line 494, in isSessionIdProblematic File "WebKit\HTTPRequest.py", line 221, in session File "WebKit\Transaction.py", line 67,

[Webware-discuss] Re: migration from IIS to Webware

2003-10-31 Thread Max Ischenko
Aaron Held wrote: You can use PythonScript to rewrite your app as Python under IIS. one idea: Move all business logic into stand alone Python modules, then convert the ..ASP pages to Cheetah templates Stay on IIS until you can move wholesale to Python. The main problem is that ASP system is

[Webware-discuss] migration from IIS to Webware

2003-10-30 Thread Max Ischenko
Hi, I have a rather big ASP/IIS-based system which I'm trying to rewrite and extend with python (more specifically, using Cheetah/WebKit). I've already wrote some useful code in Cheetah/WebKit and now I'm thinking about the best way to integrate it back into the legacy system. Basically I see

[Webware-discuss] WebKit + Cheetah multithreading problem

2003-08-14 Thread Max Ischenko
Hello. I'm using WebKit along with Cheetah template engine and got very annoying problem which I failed to solve. It seems to be related to the multithreading issues though. When two different clients access the same page one sometimes get data for the other client. Each client's data is stored i

Re: [Webware-discuss] Sandbox contribution: mvc.py

2003-08-14 Thread Max Ischenko
Stephan Diehl wrote: > > > Is there any possibility for you, just to assemble a 'ready to go' > > > example context, that contains all needed files? > > > > __init__.py: > > > > from WebKit.Page import Page > > import mvc > > > > def contextInitialize(app, path): > > mvcfactory = mvc.TemplateV

Re: [Webware-discuss] WebKit + Cheetah multithreading problem

2003-08-14 Thread Max Ischenko
one): > viewKlassName = 'templates.%s' % viewName > import templates [...] This is not viable because my templates are stored with .page extension and changing site layout would be a PITA. > On Tuesday, August 5, 2003, at 11:24 AM, Max Ischenko wrote:

Re: [Webware-discuss] WebKit + Cheetah multithreading problem

2003-08-14 Thread Max Ischenko
Tracy S. Ruggles wrote: > I just thought of a different way to do it. You would still use the > cache to hold the generated classes. You would still instantiate the > class within the 'renderView' method, but the bulk of the instantiation > in your current code is in the compiling of the .pa

Re: [Webware-discuss] Sandbox contribution: mvc.py

2003-08-09 Thread Max Ischenko
> > There is too much pain for me to setup sandbox access just to contribute > > a single module, so I post it here for anyone who find it interesting. > > > > Documentation and sample usage are with module docstrings. > This sounds very nice. I have problems though, to get the examples > to run.

[Webware-discuss] Sandbox contribution: mvc.py

2003-08-08 Thread Max Ischenko
nd it interesting. Documentation and sample usage are with module docstrings. -- Regards, max. """ Simple template-based MVC-style framework for Webware + Cheetah. (c) Max Ischenko <[EMAIL PROTECTED]>. DESIGN. In short, framework follows a MVC paradigm: there is a model (u

Re: [Webware-discuss] WebKit + Cheetah multithreading problem

2003-08-05 Thread Max Ischenko
> I just thought of a different way to do it. You would still use the > cache to hold the generated classes. You would still instantiate the > class within the 'renderView' method, but the bulk of the instantiation > in your current code is in the compiling of the .page template. Would > th

Re: [Webware-discuss] Newbie Quesiton about DB

2003-06-09 Thread Max Ischenko
Chris Bruce wrote: > Obviously new to Webware, so forgive the question. If I wanted to access a > mysql database and not use MiddleKit, what is the recommended way to do > this? Use DB-API compliant driver for MySQL directly. > Also, can the access be supported by webware transactions? Sorry,

[Webware-discuss] Strange error with session handling

2003-06-06 Thread Max Ischenko
Hi! I've encountered a strange error during development of my site. Brief desc. of the site logic. Servlet A is a "start page". User points a browser to this page to start work. It sets session().value('foo', bar) and then redirects browser to the servlet B. Servlets B reads session variable foo

[Webware-discuss] Session data store

2003-06-06 Thread Max Ischenko
Hi! I've got a problem, related to session handling. Clients are reporting this problem both on IIS and built-in http server, while I can't reproduce it on my dev. machine (using built-in http server). Platform is Windows2K, IE 6.0. The problem is: when the WebKit is restarted the session data

Re: [Webware-discuss] Strange error with session handling

2003-06-06 Thread Max Ischenko
> Problem's cause seems to be IIS "internal redirect" indeed. > I've tried all ideas posted and ended with the following: > 1. Both full absolute URL and setting HTTP Status to 307 don't help. > 2. Geoffrey's trick of pasting _SID_ into the redirect url DOES work. >Hurrah! > 3. To hide the _S

Re: [Webware-discuss] Strange error with session handling

2003-06-06 Thread Max Ischenko
Ian Bicking and Geoffrey Talvola wrote: > > I'll take a guess. I think IIS is probably doing an "internal > > redirect" in which case the browser never sees the original reply > > and therefore never gets the cookies. The built-in http server > > doesn't do internal redirects but always sends them

[Webware-discuss] how to write an FFK in a Cheetah template

2003-04-14 Thread Max Ischenko
Hi! I'm trying to write a cheetah template that should render a FFK's form with this code template = ''' ... $servlet.renderForm(None) ... more text ''' t = Template(template, [{'servlet':self}]) self.writeln(t) Alas, this gives this strange error: self.writeln(t) File "W

Re: [Webware-discuss] FunFormKit: MultiCheckboxField and CheckboxField hacks

2003-03-25 Thread Max Ischenko
> These are relatively largish changes that will break code that depends on > getting "on" and 0 from CheckboxFields, so I'm not sure if I should check > them into CVS. > What's the feeling? I'm +1 on check in. Just add a note about bw-incompatible change to the docs. PS: Btw, you still doesn't

[Webware-discuss] handling of form errors

2003-02-09 Thread Max Ischenko
I'm using a form with form validator. When validation error occurs on a page I'd like to log this event along with ip-address from which a request was made. The problem with this is that validator knows nothing about request and form has no error info from validator. My current code is this:

Re: [Webware-discuss] Announcing the release of Webware 0.8 beta 3

2003-02-05 Thread Max Ischenko
Ian Bicking wrote: > I don't think we need to do this for 0.8 since few people have datetime > installed right now, but we could add it after. Webware wouldn't need > to include the datetime module, it could just accept datetime values if > they are passed in, like it does for mx.DateTime. Agre

Re: [Webware-discuss] Announcing the release of Webware 0.8 beta 3

2003-02-05 Thread Max Ischenko
[...] > Since the DateTime module is supposed to be optional in HTTPResponse, I > think the simplest solution for 0.8 will be to comment out the offending > code, and/or setting DateTime=None and not import the module. Then we > can > fix the problem for the next release. I have another propo

Re: [Webware-discuss] how do i prevent a KeyError on session id w hen i restart?

2003-01-28 Thread Max Ischenko
Michael Engelhart wrote: > I still think this should be addressed by putting the ability to NOT > store sessions to disk at all in the configuration parameters. Vote for this too. [...] -- Bst rgrds, M.A.X.: Mechanical Artificial Xenomorph.

Re: [Webware-discuss] FFK: dynamic forms

2003-01-27 Thread Max Ischenko
Ian Bicking wrote: [...] > If you change the form you have to save that changed form so you > know what form definition the user submitted. I.e. the changes > aren't global, they only apply to that transaction (the three-part > process of form generation, validation and possible regeneration an

[Webware-discuss] FFK: dynamic forms

2003-01-27 Thread Max Ischenko
> >What bothers me is the need of patching FFK (Ian, would you accept > put in. Then, use mutable forms as: > formDef = FormDefinition(...).mutable() > Then, use the methods defined for class MutableFormDefinition to > add/replace/delete fields. Could someone verify my approach: class BasicFor

Re: [Webware-discuss] FFK: dynamic forms

2003-01-27 Thread Max Ischenko
> >What bothers me is the need of patching FFK (Ian, would you accept this > >patch?). Is there a better way to do what I want? > put in. Then, use mutable forms as: > formDef = FormDefinition(...).mutable() > Then, use the methods defined for class MutableFormDefinition to > add/replace/delete

[Webware-discuss] Strange WebKit deadlock problem

2003-01-24 Thread Max Ischenko
Hello, An old question come up again. I provide web interface for the user to view logs from another machine. It works like this: user select a machine (let's name it GW), press a button to POST a request. Servlet (let's name it A) open a TCP connection to the machine where control daemon is ru

Re: [Webware-discuss] FFK: dynamic forms -- CVS location

2003-01-22 Thread Max Ischenko
> You need to check out a copy of FFK from CVS, which has some bug fixes I > put in. Then, use mutable forms as: Where is FFK's CVS? Would next stable version of FFK be release soon? Or may be it would be included in Webware 0.8 release? I it bothers me a bit to use CVS checkout on production si

[Webware-discuss] FFK: dynamic forms

2003-01-22 Thread Max Ischenko
I'd like to create a form (using FunFormKit) dynamically, when the servlet runs. Currently I do this as follows: formDef = FormDefinition( "SelectDb", []) layout = [] class SelectDb(BasicForm): def __init__(self): BasicForm.__init__(self, formDef, layout) def ren

[Webware-discuss] Re: Problem with indirect call of servlet from another servlet

2003-01-22 Thread Max Ischenko
Max Ischenko wrote: [...] > If I manually run file upload to servlet B it works. > If I comment out request from Servlet A to A it works. > Seems like thread's deadlock or something like this. > Servlets A and B don't share anything. Problem disappeared in Webware

[Webware-discuss] Testing webware 0.8b1

2003-01-22 Thread Max Ischenko
Here is a couple of problems I encounter when upgrade from 0.7 to 0.8b1. - I added a line from MiscUtils import SubclassResponsibilityError to webware.common module because a FunFormKit relies on it. - I wasn't able to see my context until I explicitly added it to Context dict. Is it a new

[Webware-discuss] Problem with indirect call of servlet from another servlet

2003-01-21 Thread Max Ischenko
Here is my setup: User --> WebKit server <-- Gw User runs a servlet A on the Web which sends a command to the Gw. Gw uploads a file to the Web using servlet B. The problem with this scheme is that it doesn't work -- after pressing Submit button browser prints "redirecting..." forever and Logs

Re: [Webware-discuss] File upload in WebKit 0.7

2003-01-17 Thread Max Ischenko
Ian Bicking wrote: > Then you'll need the new stuff from Webware. I've attached > HTTPRequest.py (since CVS is broken) -- you may well be able to just pop > that in and have rawInput() available to you. Or it might require other > changes, I'm not sure. Yes, this works. And seems like nothing g

Re: [Webware-discuss] File upload in WebKit 0.7

2003-01-17 Thread Max Ischenko
Ian Bicking wrote: > > request().fields() are {} in servlet.respondToPut() method > > WeKit version from CVS has rawInput() method, but what for 0.7? > You could try xmlInput() -- it's essentially the same as rawInput() > (though I believe it returns a string), and doesn't actually check that >

[Webware-discuss] File upload in WebKit 0.7

2003-01-17 Thread Max Ischenko
Hi. How can I process file upload in WebKit 0.7? * About to connect() to xxx:8080 * Connected to xxx (10.32.0.3) port 8080 > PUT /xx/xxx HTTP/1.1 User-Agent: curl/7.10.1 (i386-redhat-linux-gnu) libcurl/7.10.1 OpenSSL/0.9.6 zlib/1.1.3 Host: xxx:8080 Pragma: no-cache Accept: image/gif, image/x-xbit

Re: [Webware-discuss] Thoughts on a WAR like deployment system

2002-12-29 Thread Max Ischenko
[EMAIL PROTECTED] wrote: > Has anyone thought about using a Java/WAR like archive > for Webware deployments? This would be really nice. Agreed. > For those who don't know, a WAR file is a Web ARchive. > Essentially, it is like a Java JAR file... a zip of > a bunch of class files. However a WAR

[Webware-discuss] Algorithm to handle big data selections

2002-12-23 Thread Max Ischenko
Hi. I have a servlet which prompts user for some values, then search the database using entered keys and the display the result back to the user. I want to break results into pieces so it would load more quickly and reduce server loading (generating HTML from 3000 records take quite a few time).

Re: [Webware-discuss] Log4J Equiv?

2002-12-08 Thread Max Ischenko
rdg wrote: > Is there something equivalent to the Java "Log4J" logging classes? http://www.red-dove.com/python_logging.html It would be in Python 2.3, btw. -- Bst rgrds, M.A.X.: Mechanical Artificial Xenomorph. --- This sf.net email is spo

Re: [Webware-discuss] writing input forms with Webware

2002-11-21 Thread Max Ischenko
Ian Bicking wrote: > There's FunFormKit , which I wrote, and > FormKit, which I currently cannot get a URL for (dalchemy.com is giving > 404 for its whole site...?) Thanks! I wonder how I'd managed to skip it. -- Bst rgrds, M.A.X.: Mechanical Artificial Xenomorph. -

[Webware-discuss] writing input forms with Webware

2002-11-21 Thread Max Ischenko
Hi, I have to write a buch of pages with input forms and looking for some components to facilitate this task. Seems like Webware missing such components (am I wrong?), I have to write a Page subclass that would just write("...") Are there other solutions that could be used from inside Webware? So

[Webware-discuss] MiddleKit port to PostgreSQL

2002-10-07 Thread Max Ischenko
Hi, I'd like to try MiddleKit but I am to use PostgreSQL DB, which seems unsupported. How complex would be to add the PostgreSQL support or may be it is already done in CVS? -- Bst rgrds, M.A.X.: Mechanical Artificial Xenomorph. --- This sf

[Webware-discuss] Does Monitor.py work?

2002-09-26 Thread Max Ischenko
I've tried it but no success. At first it failed to start AppServer: Traceback (most recent call last): File "/var/www/Webware/WebKit/ThreadedAppServer.py", line 588, in run monitor_socket = Monitor(server) File "/var/www/Webware/WebKit/ThreadedAppServer.py", line 358, in __init__ se

Re: [Webware-discuss] prevent appserver choking when too much dat a to process

2002-09-26 Thread Max Ischenko
Ian Bicking wrote: > On Thu, 2002-09-26 at 02:28, Max Ischenko wrote: > > When requested dataset is too much, something bad is happens and > > can't figure what it is exactly. It seems like my servlet doesn't > > notice when DBMS finally finished serving SQL a

Re: [Webware-discuss] prevent appserver choking when too much dat a to process

2002-09-26 Thread Max Ischenko
Ian Bicking wrote: > On Wed, 2002-09-25 at 07:16, Max Ischenko wrote: > > I have a problem: sometimes my servlet got request which it couldn't > > handle in a finite time. This leads to the situation when whole > > appserver becomes unavailable and just &quo

[Webware-discuss] reloading source modules

2002-09-25 Thread Max Ischenko
Could someone point me to the webware code which handles automagic reloading of servlet code? I want to try to implement it for my custom modules... -- Bst rgrds, M.A.X.: Mechanical Artificial Xenomorph. --- This sf.net email is sponsored by

[Webware-discuss] prevent appserver choking when too much data to process

2002-09-25 Thread Max Ischenko
I have a problem: sometimes my servlet got request which it couldn't handle in a finite time. This leads to the situation when whole appserver becomes unavailable and just "hangs", not responding to new requests. Is it possible to "stop" the servlet after a given amount of time passed? Or should

[Webware-discuss] how to share single object between several servlets

2002-09-23 Thread Max Ischenko
Hello! I have several servlets (subclasses of WebKit.Page) which I want to share some data. Currently, each of them create it's own copies with from foo import bar b = bar() ... b.quux() This is both cumbersome to use and quite inefficient. Thanks in advance for your help. -- Bst rgrds, M.