RE: [Webware-discuss] Webware + Firebird

2004-10-15 Thread Ian Sparks
> I wish i could use Firebird with webware. I've used Firebird/Interbase with Webware both via the DBAPI 2.0 directlt and using SQLObject. The applications I use them in are very small webapps, not more than 5 pages and generally only have 1 user at any one time so I can't claim to know how Fir

RE: [Webware-discuss] WebFormKit

2004-08-12 Thread Ian Sparks
> Geoff wrote: > I saw an announcement for this somewhere, but not on any of > the Webware > mailing lists I think. It looks very interesting. > > http://webformkit.sourceforge.net/ I read the PDF docs that can be found at http://webformkit.sourceforge.net/WebFormKit.pdf This looks like Anto

RE: [Webware-discuss] Task-Queue using Webware...

2004-05-28 Thread Ian Sparks
Just wanted to follow up with the list on what I did for my task queuing using webware (seems to be working OK so far..) Most of this will be "Duh!" to the experienced Webware folks here but I wanted to post this so others can get some ideas. I used SQLObject (sqlobject.org) to manage a databas

RE: [Webware-discuss] Task-Queue using Webware...

2004-05-22 Thread Ian Sparks
2/05/2004 03:12 To: Ian Sparks Cc: Webware-Discuss (E-mail) Subject: RE: [Webware-discuss] Task-Queue using Webware... Could you break your task into little chunks and run it as a state machine with a permanant process that runs state &#

RE: [Webware-discuss] Task-Queue using Webware...

2004-05-21 Thread Ian Sparks
did the actual work of processing requests and responses. Such a setup would suffer from increased latency caused by all the coordination but could scale well and be very hard to kill. -Original Message- From: Ian Bicking [mailto:[EMAIL PROTECTED] Sent: Friday, May 21, 2004 4:16 PM To: J

RE: [Webware-discuss] Task-Queue using Webware...

2004-05-21 Thread Ian Sparks
1, 2004 3:07 PM To: [EMAIL PROTECTED] Cc: Ian Sparks Subject: Re: [Webware-discuss] Task-Queue using Webware... I've done a similar thing with one of our Webware applications. I started the thread in my webware servlet. Once I started the worker thread, I set a refresh header in the servlet

RE: [Webware-discuss] Task-Queue using Webware...

2004-05-21 Thread Ian Sparks
>> Ian Sparks wrote: >> Where do you initialize your worker threads? From a servlet >> or from some startup hook in WebWare (if so, where is the >> best place to put this) ? > Nick Murtagh wrote: > From a servlet. Hmm...does that provide you a way to kill a thread?

RE: [Webware-discuss] Task-Queue using Webware...

2004-05-21 Thread Ian Sparks
To: Webware-Discuss (E-mail) Subject: Re: [Webware-discuss] Task-Queue using Webware... Ian Sparks wrote: > Has anyone done this with webware? Advice? Pitfalls to avoid? I do this using a database table that records the name, status (running, not running, error) and progress (1 - 100%) of each thre

[Webware-discuss] Task-Queue using Webware...

2004-05-21 Thread Ian Sparks
Hi all, I have a situation where I need to submit long-running tasks via a Webware application. These tasks are CPU intensive and can take up to a few minutes to complete. What I do at the moment is spawn a thread from the servlet to do the processing and let the servlet return to do more work

RE: [Webware-discuss] Testing Frameworks

2004-03-24 Thread Ian Sparks
Anyone tried Puffin http://www.puffinhome.org/what.htm ? Haven't tried it myself. -Original Message- From: Gil Hauer [mailto:[EMAIL PROTECTED] Sent: Monday, March 22, 2004 7:26 PM To: Webware Subject: [Webware-discuss] Testing Frameworks Hi, Can anyone recommend an open source testing

[Webware-discuss] Advice : Form State Storage

2003-11-05 Thread Ian Sparks
I have a form that gets posted back to the same URL time and time again as the user refines a list of records on that form by adding "filters". Filters boil down to additions to a SQL WHERE clause. The options for saving these filters between posts appear to be : * Client Cookie. * Form fields

[Webware-discuss] Autoreload.

2003-11-05 Thread Ian Sparks
Thanks to everyone who contributed to this excellent feature - I got it working today and its already eased my RSI. --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help

[Webware-discuss] Large Servlets vs Small Ones

2003-10-22 Thread Ian Sparks
I'm planning on using the ExtraUrlPath information to provide a lot of services out of a single servlet. So instead of a swarm of small servlet instances I'll have a small pool of very fat servlets. I'm wondering what implications this has for performance, scalability etc. In order to handle a

RE: [Webware-discuss] dbPools dictionary

2003-10-14 Thread Ian Sparks
PROTECTED] Sent: Tuesday, October 14, 2003 3:44 PM To: Ian Bicking Cc: Ian Sparks; Webware-Discuss (E-mail) Subject: Re: [Webware-discuss] dbPools dictionary I have something like this running on a production system w/out any issues. clientpool['testing']=DBPool(PgSQL, 2, 'l

[Webware-discuss] dbPools dictionary

2003-10-14 Thread Ian Sparks
I have a need to register connections to databases on an ad-hoc basis. To do this I was thinking of adding a dbPools dictionary somewhere in my application. Instead of doing a dbPool.getConnection() I'd do : dbPools['conn1'].getConnection() Question : Is this safe? --

RE: [Webware-discuss] sending email locking my application

2003-10-13 Thread Ian Sparks
res and forgets" so you don't have to wait for it to complete. When done the emailthread will die itself. -Original Message- From: Uzo Uzo [mailto:[EMAIL PROTECTED] Sent: Monday, October 13, 2003 11:40 AM To: [EMAIL PROTECTED] Subject: RE: [Webware-discuss] sending email lockin

RE: [Webware-discuss] sending email locking my application

2003-10-13 Thread Ian Sparks
Uzo wrote : >> A certain part of my web application sends out email, for whatever reason, when I reached this part webware locked up, << It should only lock up for the request (thread) that it is processing, other requests should still be handled. In any case, you might want to consider display

RE: [Webware-discuss] Validators for Sessions and QueryStrings (an example)

2003-10-09 Thread Ian Sparks
ce this than bring attention to its lack. Thanks for being an ear. - Ian S. -Original Message- From: Ian Bicking [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2003 6:16 PM To: Ian Sparks Cc: Webware-Discuss (E-mail) Subject: Re: [Webware-discuss] Validators for Sessions and Qu

[Webware-discuss] Validators for Sessions and QueryStrings (an example)

2003-10-07 Thread Ian Sparks
The ValidatorConverters are one of the really neat ideas from FunFormKit (though I use dalchemys FormKit) I found myself wanting to do some additional Validation of Query Strings and Session values and I wanted to re-use the ValidatorConverters that I had. The code I'm going to present isn't pr

[Webware-discuss] ZPTPage and METAL

2003-10-02 Thread Ian Sparks
ed to put in a table to that slot and I don't want to build '...' in my servlet. There are some examples of using ZPTemplate (http://zpt.sourceforge.net/) but nothing that mixes Webware, ZPTPage and macro's. Does anyone have some example co

RE: [Webware-discuss] URL parameter...

2003-09-11 Thread Ian Sparks
>> If you use value you will get a result it the data is in the querystring, post data or cookie data.<<   Is this really a good idea? One of the things that attracts users to Webware from Zope is that Webware is a lot more explicit (=manageable).   This "helpful" feature looks like a poten

RE: [Webware-discuss] MiddleKit vs sqlobject

2003-09-09 Thread Ian Sparks
I haven't used either model but I was under the impression that SQLObject fired off SQL UPDATE statements for every change of an object property. e.g. myobject.name = "fred" myobject.id = 1 breaks down into two SQL statements : UPDATE SET NAME = "FRED" WHERE UPDATE SET ID = 1 WHERE

[Webware-discuss] Half baked idea.

2003-06-27 Thread Ian Sparks
Its a slow Friday afternoon, I hope folks will forgive my public musings. I was looking at Zope 3's configuration XML scheme, ZCML (1) and thought to myself how horrible using XML files is for web-site configuration tasks. It reminded me somewhat of a web framework I built some years ago on top

RE: [Webware-discuss] waitforreply()

2003-06-18 Thread Ian Sparks
ting that too though it looks like its back up now. If not do a search on " sendPageAndWait("/registration1.jsp", null);" in google. The only cached result is Alex's page. - Ian Sparks. --- This SF.Net email is s

[Webware-discuss] waitforreply()

2003-06-18 Thread Ian Sparks
You have seen this article linked from the daily python list. www.freeroller.net/page/alexkrut In it Alex describes using Cocoon and ATCT (http://www.velare.com/product/atct.htm) to provide procedural flow to a webapp. This example in Java : //will send the first registration page

RE: [Webware-discuss] Unicode trouble

2003-03-14 Thread Ian Sparks
Is there some good documentation on OpenTAL. I did some Googling but can't see any examples of TAL being used outside of Zope. Could you write something on using OpenTAL with Webware so we can get the benefit of your experience? Even the posting of some examples would help. Thanks.

RE: [Webware-discuss] Components

2003-03-10 Thread Ian Sparks
>> For those who haven't run across it before, PEAK is a rather interesting 'solution' to the components idea. http://peak.telecommunity.com/ << PEAK does appear to hold great promise for the construction of component frameworks. However, the "tutorial" runs out just as its getting interesting a

RE: [Webware-discuss] Components

2003-03-06 Thread Ian Sparks
>> I would rather see a default or 'gold' component that is downloadable and usable, and other alternate implementations. << I'm a Delphi programmer by day and the VCL (Visual Component Library) is a consistant design which has spawned literally thousands of 3rd party components - vast quantitie

RE: [Webware-discuss] Components

2003-03-06 Thread Ian Sparks
use each-others stuff. Whether we use Zope-stype Interfaces or just plain Python classes isn't the problem : The problem is agreeing on a single set of methods that all implementations of a component adhere to. - Ian Sparks. -Original Message- From: Jim Bucher [mailto:[EMAIL PROTECTED]

RE: Subject: RE: [Webware-discuss] Reusability of servlets

2003-03-06 Thread Ian Sparks
Jeremy Lowery wrote: >> Interfaces could formalize the API of components for plug-in play functionality. I've been looking at the Zope3 source a bit and this is going to be their entire new architecture logic. << For the benefit of our readers : Zope definition of Component : http://dev.zope.or

RE: [Webware-discuss] Reusability of servlets

2003-03-05 Thread Ian Sparks
One of the things Aaron Held wrote : >> Its python - if we wanted complication we would use Java! << I'm with you on this. I attended a Zope3 talk a couple of weeks back where it became obvious to me that Zope is starting to mutate toward an "over engineered" (from a python perspective) framewo

RE: [Webware-discuss] Reusability of servlets

2003-03-05 Thread Ian Sparks
Huy Do wrote : >> A cool idea we have played with is to create components which can be reused in different servlets. To use them, a programmer will just need to create an instance of this component. This component will then automatically/dynamically attach itself to the current servlet i.e insert i

RE: [Webware-discuss] Use JavaScript with Caution...

2003-03-04 Thread Ian Sparks
ware-discuss.   I can't help feeling that even web state-of-the-art is frustratingly stoneage at the moment. -Original Message-From: Aaron Held [mailto:[EMAIL PROTECTED]Sent: Tuesday, March 04, 2003 1:02 PMTo: Ian SparksCc: Webware discussSubject: Re: [Webware-discuss]

RE: [Webware-discuss] Use JavaScript with Caution...

2003-03-04 Thread Ian Sparks
>> My customers take less of a security risk this way then if they have to install a full client on thier PC's. <<   Offtopic but what is the thinking behind this statement? Why do you feel browser-based is safer than full client?   Ah, unless you mean by "full client" that the user has a

RE: [Webware-discuss] Webware

2003-03-03 Thread Ian Sparks
I've never done this and can't give any examples. - Ian Sparks. -Original Message- From: Paul Jessup [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 9:50 AM To: [EMAIL PROTECTED] Subject: [Webware-discuss] Webware Dear Webware, I am going to try out you system to-night.

[Webware-discuss] ZODB

2003-03-03 Thread Ian Sparks
After the discussion of ZODB its not clear to me if anyone is actually using ZODB with Webware? If so, how are you arranging the access to the ZODB? ClientStorage & ZEO seems like a good way to go but would you arrange a connection per servlet or have some kind of pool at the application level?

[Webware-discuss] Webware & ZODB

2003-03-03 Thread Ian Sparks
After the discussion of ZODB its not clear to me if anyone is actually using ZODB with Webware? If so, how are you arranging the access to the ZODB? ClientStorage & ZEO seems like a good way to go but would you arrange a connection per servlet or have some kind of pool at the application level?

RE: [Webware-discuss] eval,vars,namespaces

2003-01-17 Thread Ian Sparks
Where will the arbitrary python commands come from? A submitted web page or are they on the server-side only? -Original Message- From: Randy Heiland [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003 12:19 PM To: [EMAIL PROTECTED] Subject: [Webware-discuss] eval,vars,namespaces

RE: [Webware-discuss] FW: i18n ( Internationalization).

2002-12-13 Thread Ian Sparks
erGuide.html#validators-and-converters So I'd use it like : v = Validator.NotEmpty({'empty':'The value was not provided'}) Nice. - Ian Sparks. -Original Message- From: Ian Bicking [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 12, 2002 11:35 PM To: Ia

[Webware-discuss] FW: i18n ( Internationalization).

2002-12-12 Thread Ian Sparks
Bah.. Mail alias "[EMAIL PROTECTED]" is a subscriber but "[EMAIL PROTECTED]" isn't...treated as a common spammer because of mistaken identity. Anyway, as I tried to ask before -Original Message- From: Ian Sparks Sent: Thursday, December 12, 2002 5:06 PM To

RE: [Webware-discuss] POST Idiom Advice.

2002-11-27 Thread Ian Sparks
issued at some point). How, if at all, does SSL play into this (Back=Page Expired?). - Ian Sparks. -Original Message- From: david e [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 27, 2002 11:13 AM To: [EMAIL PROTECTED] Subject: Re: [Webware-discuss] POST Idiom Advice. Always hav

[Webware-discuss] POST Idiom Advice.

2002-11-27 Thread Ian Sparks
ad). My temptation is to do : def delete(self): self.killSelectedRecords() self.response().redirect(self.response.url()) #pseudocode! i.e. redirect the browser to do a GET on the page they just POSTed to. Is this what other folks do? What is the approved idiom? What are the trade-offs

RE: [Webware-discuss] URL's, stupid question

2002-11-26 Thread Ian Sparks
oint taken). - I. -Original Message- From: Tim Roberts [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 12:27 PM To: [EMAIL PROTECTED] Cc: Ian Sparks Subject: RE: [Webware-discuss] URL's, stupid question On Mon, 25 Nov 2002 20:02:31 -0500, "Ian Sparks

RE: [Webware-discuss] URL's, stupid question

2002-11-25 Thread Ian Sparks
That's the ticket. Thanks again Ian. -Original Message- From: Ian Bicking [mailto:[EMAIL PROTECTED]] Sent: Mon 25/11/2002 19:45 To: Ian Sparks Cc: Webware discuss Subject: RE: [Webware-discuss] URL's, stupi

RE: [Webware-discuss] URL's, stupid question

2002-11-25 Thread Ian Sparks
46 To: Ian Sparks Cc: Webware discuss Subject: Re: [Webware-discuss] URL's, stupid question Perhaps you want to use mod_rewrite: http://webware.colorstudy.net/twiki/bin/view/Webware/ModRewriteRecipes Oth

[Webware-discuss] URL's, stupid question

2002-11-25 Thread Ian Sparks
Stupid question : How do I use absolute URL's in my webware programs? (or at least URL's relative to the context) For instance, my main page can be found on : http://localhost/wkcgi.exe/test/main.py Ideally I want to be able to output

RE: [Webware-discuss] mxODBC and DBPool

2002-11-07 Thread Ian Sparks
in mx.ODBC mx.ODBC.Windows.threadsafety = 1 pool = DBPool(mx.ODBC.Windows,5,dsn,user='DBUser',password='somepass') -Original Message- From: Randall Randall [mailto:randall@;randallsquared.com] Sent: Wednesday, November 06, 2002 1:17 PM To: Ian Sparks Cc: [EMAIL PROTECTED] Subject: Re: [Webw

[Webware-discuss] mxODBC and DBPool

2002-11-06 Thread Ian Sparks
Is anyone else using mxODBC with dbPool? I'm having trouble working out what to pass to the DBPool constructor. pool = DBPool(WhatGoesHere?,5,'DSN=...') --- This sf.net email is sponsored by: See the NEW Palm Tungsten T handheld. Power & Co

RE: [Webware-discuss] dbPool usage

2002-10-30 Thread Ian Sparks
be included in reworked documentation. Not all Webware users are escaping from the Java/Tomcat world. Like myself, I skipped the pain of Java/Tomcat and just started with Python/Webware --- but be sure, that is a tough hill to climb. -rdg -- On Wed, 30 Oct 2002 11:08:13 Ian Sparks wrote: >

RE: [Webware-discuss] dbPool usage

2002-10-30 Thread Ian Sparks
Excellent example, thanks. - I. -Original Message- From: Aaron Held [mailto:aaron@;MetroNY.com] Sent: Wednesday, October 30, 2002 10:48 AM To: Ian Sparks Cc: Webware-Discuss (E-mail) Subject: Re: [Webware-discuss] dbPool usage in configuration.py : from MiscUtils.DBPool import DBPool

[Webware-discuss] dbPool usage

2002-10-30 Thread Ian Sparks
example of setup/usage I'd appreciate it. Thanks! - Ian Sparks. --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ Webware-discuss mailing list [

RE: [Webware-discuss] Win2000 / Python 2.2.2 / WebKit.cgi / Apache2.0.43

2002-10-29 Thread Ian Sparks
seems that Apache DOES process the !#python "shebang path" but I couldn't get this to work without explicitly doing : !#C:/Python22/Python.exe * Modules changed in Apache 2.X, mod_webkit.dll will need recompiling to work on 2.X (if it hasn't been). - Ian Sparks. -Origin

[Webware-discuss] Win2000 / Python 2.2.2 / WebKit.cgi / Apache 2.0.43

2002-10-28 Thread Ian Sparks
ebwareDir = 'C:\Webware\' AppWorkDir = None I feel like the docs are missing a step that ties a .cgi extension to a .py extension but renaming WebKit.cgi to WebKit.py doesn't help. Any advice? - Ian Sparks.

RE: [Webware-discuss] Long Running Process...

2002-05-22 Thread Ian Sparks
Beautiful. Thank you both. - Ian S. -Original Message- From: Ian Bicking [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 1:48 PM To: Matt Feifarek Cc: Ian Sparks; Webware-Discuss "(E-mail) Subject: RE: [Webware-discuss] Long Running Process... On Wed, 2002-05-22 at

[Webware-discuss] Long Running Process...

2002-05-22 Thread Ian Sparks
p isn't sitting around waiting. Not quite sure how to go about it tho'advice? - Ian Sparks. ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http:/

RE: [Webware-discuss] Whence FormKit? Or, alas, poor FormKit, weknew him.

2002-04-19 Thread Ian Sparks
f XML-aware Python applications by a significant amount. << Probably true but I think standardization on these other technologies will take us further in the long-run. - Ian Sparks. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, April 19, 2002 3:36

RE: [Webware-discuss] Whence FormKit? Or, alas, poor FormKit, weknew him.

2002-04-19 Thread Ian Sparks
>> Personally, I see the principal benefits of XML as being the development of high-level patterns around the querying and manipulation of hierarchical data structures << Intriguing. What do you mean by this? Can you cite an example of such a pattern? - Ian Sparks. -Orig

RE: [Webware-discuss] Whence FormKit? Or, alas, poor FormKit, weknew him.

2002-04-19 Thread Ian Sparks
child under me which has an attribute a="1". Now I can just find it without having to dredge all the child nodes and test them (possibly tripping over spurious whitespace nodes as I go) : child = x.xpathQuery('/*[a="1"]') if child: NB. My XPath is rusty, the above p

RE: [Webware-discuss] FunFormKit : 2nd Attempt.

2002-04-04 Thread Ian Sparks
renderableForm().htFormTable(bgcolor="#ff") def login(self, fields): self.writeln("You are logged in") def getContent(self): x = self.getForm() #if not x: x = self.writeForm() return x def getForm(self): return self.w

RE: [Webware-discuss] FunFormKit : 2nd Attempt.

2002-04-04 Thread Ian Sparks
I do : > def getContent(self): > x = self.getForm() > # > #getForm() will return None on a POST so.. > # > if not x: x = self.writeForm() > return x In which case I get the form in my output along with the standard validation fail

RE: [Webware-discuss] FunFormKit : 2nd Attempt.

2002-04-03 Thread Ian Sparks
so.. # if not x: x = self.writeForm() return x This not responding to a POST is strange. Note that I'm passing 'getForm' to the form servlet so I can do other things in getContent as well as fetch the form (perhaps that is part of my problem?) Th

[Webware-discuss] FunFormKit : 2nd Attempt.

2002-04-03 Thread Ian Sparks
ce has no attribute '_erroneousRequest' Maybe my approach is all wrong. I'd appreciate any clues. - Ian Sparks. ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss

RE: [Webware-discuss] Using FunFormKit & Cheetah

2002-03-27 Thread Ian Sparks
t' to push itself into the output at the right place with self.write() I want to plug the output of the FormServlet into a return from getContent(). I can feel I'm being stupid but I just can't see round it. Any light you can shine would be very welcome. - Ian Sparks. -Original

[Webware-discuss] Using FunFormKit & Cheetah

2002-03-26 Thread Ian Sparks
I searched the back-messages and saw that people had attempted to post examples of FunFormKit and Cheetah integration but GeoCrawler seemed to have dropped the attachments. Could someone post an example of integrating these two products? Many thanks. - Ian Sparks