> 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
> 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
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
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
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
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
>> 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?
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
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
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
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
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
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
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
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?
--
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
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
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
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
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
>>
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
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
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
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
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
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.
>>
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
>>
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
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]
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
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
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
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]
>>
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
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.
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?
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?
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
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
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
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
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
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
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
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
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
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
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
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:
>
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
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
[
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
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.
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
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:/
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
>>
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
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
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
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
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
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
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
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
64 matches
Mail list logo