Re: [Webware-discuss] application.forward ==> maximum recursion depth?

2004-01-06 Thread Jeff Johnson
Hi Scott, Sorry I took so long to respond. I removed the forward and simply sub-classed the home page and now I still get max recursion depth problems but now they are down in Cheetah and usually only when someone is requesting malicious URLs that don't exist. Since this code has worked flaw

[Webware-discuss] auto generated UML graph of webkit

2003-10-21 Thread Jeff Johnson
While browsing the Python Package Index I came across a module that runs your Python program like a debugger and generates a UML graph. I thought it was pretty nifty and might be useful for documentation. Here's a graph of WebKit. http://www.digitalegroup.com/images/webkit.png I had to add a

Re: [Webware-discuss] DBPool connect string for mySQL

2003-06-03 Thread Jeff Johnson
Doh, nevermind, it was my subclass of DBPool that expects a connect string, I now see that DBPool will accept keyword args, sorry for the spam :) On Monday 02 June 2003 03:20 pm, Jeff Johnson wrote: > Hi all, > > What format is the connect string for MySQLdb? It doesn't even appe

[Webware-discuss] DBPool connect string for mySQL

2003-06-03 Thread Jeff Johnson
Hi all, What format is the connect string for MySQLdb? It doesn't even appear to accept a connect string as far as I can tell it thinks I'm passing in the host name when I try. I'm using DBPool which as far as I know only uses connect strings, not individual parameters. Thanks, Jeff -

Re: [Webware-discuss] OldStyleActions required for button labels with spaces?

2003-03-13 Thread Jeff Johnson
Great, thanks Ian :) On Thursday 13 March 2003 01:27 pm, Ian Bicking wrote: > Use a button name like: > > _action_addApple > > where "addApple" is the name of the method. The value of the field is > ignored. --- This SF.net email is sponsored

[Webware-discuss] OldStyleActions required for button labels with spaces?

2003-03-13 Thread Jeff Johnson
Hi everyone, I'm trying to use the MVC BasketPage.py example (http://webware.colorstudy.com/twiki/bin/view/Webware/ModelViewController) but it only works with OldStyleActions turned on. How do new style actions handle button labels like "Add apple"? Thanks, Jeff

RE: [Webware-discuss] extraPath and relative URLs to images

2002-06-27 Thread Jeff Johnson
> Jeff, > there's no way around this. Browsers have no idea that the > url path contains > extraPath so they calculate relative paths from the url path. > You have to > either use absolute paths or include a tag in your > html output. Tavis Ah, now it makes sense. On Cold Fusion I use a

[Webware-discuss] extraPath and relative URLs to images

2002-06-27 Thread Jeff Johnson
I'm using extraPath now with some success and I found that it breaks relative URLs to images. I tried to come up with a patch but haven't had much luck yet. My short term solution was to change all my relative URLs to full URLs but when the page is displayed on HTTPS, it complains that the graph

[Webware-discuss] HTTPResponse.write

2002-06-18 Thread Jeff Johnson
Cheetah inherits write() directly from HTTPResponse, which is not a very user friendly method. I found that out when I tried to write a dictionary out for debugging. WebKit.Page has write and writeln that will print a dictionary or just about anything else, those functions could either be moved

RE: [Webware-discuss] extraPath

2002-06-18 Thread Jeff Johnson
Thanks Sam, Tracy and Geoff for the help, that's enough info to get me up and running! Bringing you mounds of caffeinated joy >>> http://thinkgeek.com/sf<<< __

Re: [Webware-discuss] extraPath

2002-06-18 Thread Jeff Johnson
Thanks! That seems to work just fine. Is there any way to leave the ".py" out of the URL and still have it work? Maybe that's where I'd need mod_rewrite? - Original Message - From: "Sam Brauer" <[EMAIL PROTECTED]> To: "Jeff Johnson" <

[Webware-discuss] extraPath

2002-06-18 Thread Jeff Johnson
Is there a way to use extraPath with Webware?  I want to have a URL something like:   http://www.x.com/myservlet[.py]/state/FL/zipcode/33467   If Webware can't do this, I think I can use mod_rewrite, I just wanted to check with you all first.   Thanks, Jeff

RE: [Webware-discuss] easiest scheduled task?

2002-05-20 Thread Jeff Johnson
> Hi, > I need to schedule a task that selects a bunch of email > addresses from a > database and then sends a specific email to them once a day, > at 4 am. I > looked at TaskKit, and i'm not smart enough to figure out how > it works, > and it looks like it might be overkill anyway, since I

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

2002-04-19 Thread Jeff Johnson
> No, what's xpath? ... Hmm, Parnassus lists three xpath packages > (xml_indexer, > a 4Suite tool, and PyXPath). Which do you recommend? > http://www.vex.net/parnassus/apyllo.py?so=d&find=xpath XPath defines a W3C standard syntax for pulling information out of an XML document. We use 4Suite,

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

2002-04-19 Thread Jeff Johnson
> On Fri, Apr 19, 2002 at 12:29:23PM -, [EMAIL PROTECTED] wrote: > > I just wanted nicer ways of accessing XML information > > through the DOM API but without all the usual messing about handling XML > data > > which isn't interesting - spurious text sections and so on. One problem > with > >

RE: [Webware-discuss] multi-domain sessions

2002-03-19 Thread Jeff Johnson
> Hmm. I'm wondering whether it is at all feasible to pass a > session between domains. The user stays in the same > context, but can access it through either a secure url or > not. I'd like them to be able to switch between the two > without losing session variables... any thoughts? Is there > a

RE: [Webware-discuss] clustered webservers?

2002-02-20 Thread Jeff Johnson
> > When we first started up they bought a hardware load balancer even > > though I told them not as we didn't have any traffic yet and may never. > > It cost $15k. Two years later when I went to use it, I see that for > > another $5k they could have bought the better model that used cookies to >

RE: [Webware-discuss] clustered webservers?

2002-02-19 Thread Jeff Johnson
> I had heard at one point that there are load balancers that can keep > redirecting to the same machine based on a cookie (eg, _SID_). But > you'd have to investigate and you'd have to purchase one. When we first started up they bought a hardware load balancer even though I told them not as we d

RE: [Webware-discuss] clustered webservers?

2002-02-18 Thread Jeff Johnson
> I don't think this addresses session affinity (I think that's the correct > term). It just does a roundrobin from a central webserver to multiple > appservers. > > If you don't want to mess with SQL, just store all the sessions in an NFS > directory, so both appservers can get at it. I think

[Webware-discuss] clustered webservers?

2002-02-18 Thread Jeff Johnson
Most of our websites use sessions to store a variable like loggedInUserID to track who is logged in. To handle the load from advertising campaigns, I've setup two computers with Apache and Webkit running on each. I then use round robin DNS so hopefully an individual user will go to the same web

[Webware-discuss] Session exception?

2002-02-13 Thread Jeff Johnson
I've seen this a few times on my test server today: Exception in thread SessionSweeper: Traceback (most recent call last): File "/usr/local/lib/python2.2/threading.py", line 408, in __bootstrap self.run() File "/usr/local/lib/python2.2/threading.py", line 396, in run apply(self.__targ

RE: [Webware-discuss] Memory leak

2002-02-13 Thread Jeff Johnson
> First thing I would do is try to isolate what is causing the memory leak. > Do > _all_ servlets cause slow leaking over time, indicating a Webware bug? Or > only certain servlets, perhaps ones that use a particular module or > feature? I see one servlet in particular adding about 20 KB each tim

RE: [Webware-discuss] Memory leak

2002-02-12 Thread Jeff Johnson
> do you use any database with your application ? > If so: please give us the version of the db and the db-adapter I've got a production webkit server running that stopped serving pages last night. I restarted it and noticed that it's taking more and more memory over time. In the past few hours

Re: [Webware-discuss] XMLRPCServlet and SSL?

2002-02-01 Thread Jeff Johnson
> > Jeff Johnson posted just today on some difficulties he was having with > > Python 2.2, but I think they were related to IIS, not Apache. I saw something like "it's probably just IIS" in the bug notes on SF but it turns out that was just a unbiased guess from the

FW: [Webware-discuss] Python 2.2 SSL now imcompatible with some SSL servers.

2002-01-31 Thread Jeff Johnson
Imcompatible = incompatible :) I found a post on c.l.p already about this and there is a patch that I was going to play with but I got side tracked on DBPool. If you search google groups in c.l.p for "494762" you'll see it. Lucky I was side tracked because Geoff has a great solution: My cu

[Webware-discuss] DBPool

2002-01-31 Thread Jeff Johnson
I'm trying to subclass DBPool so that it takes the connections out of transaction mode when they are created and I'd like to do it in such a way that if DBPool is updated, my subclass will still work properly but I don't think the hooks are there for it. My attempt was this: class DBPoolNoTrans(

[Webware-discuss] Python 2.2 SSL now imcompatible with some SSL servers.

2002-01-31 Thread Jeff Johnson
I was so happy that I could switch to Python 2.2 for my new Webware server because 2.2 fixed the problem where accessing an SSL page would lock all threads until the read finished. But now I can't read the SSL page at all because they changed the implementation and it no longer supports some exi

[Webware-discuss] IE 6 rendering issue

2001-12-13 Thread Jeff Johnson
FYI, IE 6 likes to center things where IE 5.5 left aligns them. We wrap our body content in then put a table inside that with align=left. That breaks in IE 6. There are two ways to fix it, described here: http://www.evolt.org/article/Does_IE_6_Center_Your_Table_Content/17/1534 1/ We chose th

RE: [Webware-discuss] Re: New webware site

2001-12-13 Thread Jeff Johnson
> Hi Jeff, > > Do your "multipage reports" properly handle page > breaks or are they plain vanilla HTML ? Good question. We do have two style sheets, one for screen, one for print. We're a small shop and haven't dedicated as much time as I would like towards style sheets. Here's some code tha

[Webware-discuss] New webware site :)

2001-12-12 Thread Jeff Johnson
Here's our newest site using Webware, Cheetah and FunFormKit. This is running on FreeBSD 4.3. Feel free to break it and let me know what you don't like :) http://www.electronicappraiser.com -Jeff ___ Webware-discuss mailing list [EMAIL PROTECTED] ht

RE: [Webware-discuss] Webware credibilty

2001-12-11 Thread Jeff Johnson
> The only issue I can think of is to make sure that any database > extension modules or other 3rd-party extension modules you're > using are > solid. Someone on this mailing list had reliability problems > that were > traced to a faulty PostgreSQL module, I believe. I've got a problem righ

RE: [Webware-discuss] newbie question on cookies

2001-12-06 Thread Jeff Johnson
> >IIRC, expires will also accept "NOW" to delete and "NEVER" for > >permanent. Setting a past date should also delete the cookie but I > >think "NOW" is what the standard calls for. > > I just tried "NEVER" but it didn't work for me on IE 5.5. > Are you sure > this isn't a feature that only

RE: [Webware-discuss] newbie question on cookies

2001-12-06 Thread Jeff Johnson
> I've never tried that, but I believe that you just write a > new session w/ the same name and no value or expiration - this should > convert it to a blank session cookie. IIRC, expires will also accept "NOW" to delete and "NEVER" for permanent. Setting a past date should also delete the cooki

RE: [Webware-discuss] newbie question on cookies (Another one!)

2001-12-06 Thread Jeff Johnson
> # The _getdate() routine is used to set the expiration time in > # the cookie's HTTP header. By default, _getdate() returns the > # current time in the appropriate "expires" format for a > # Set-Cookie header. The one optional argument is an offset from > # now, in seconds. For exa

RE: [Webware-discuss] Continue a session on a different domain?

2001-12-05 Thread Jeff Johnson
> >When I first send the user to the SSL domain, can I encode > _SID_ in the > >url and force that domain to use the session that the user > had already > >started on the first domain? It sounds simple enough but I > wonder what > >I'm missing. > That should work fine. Session IDs can be enc

[Webware-discuss] Continue a session on a different domain?

2001-12-05 Thread Jeff Johnson
I have a site that needs to collect credit card info. When I wrote it, I assumed I would have an SSL cert for it so I used session variables to store info. Since SSL certs are a pain to get, cost money, and require an IP address for each domain (can't use virtual domains), we now have a parent s

RE: [Webware-discuss] Clustering?

2001-11-29 Thread Jeff Johnson
> What do you think of the option we sort of outlined yesterday: > > - Software or hardware load balancer distributes incoming > requests randomly > to a pool of machines running Apache (call them APACHE1, > APACHE2, etc). > - APACHE1, APACHE2, etc have a modified version of the WebKit adapter

RE: [Webware-discuss] Clustering?

2001-11-29 Thread Jeff Johnson
We actually have a hardware load balancer that is collecting dust because I had already written oodles of cold fusion using sessions and getting primary keys from MS SQL Server by "select max(primaryKey) + 1". The load balancer doesn't have the option to use cookies to keep users on the same ser

[Webware-discuss] Clustering?

2001-11-28 Thread Jeff Johnson
I'm looking at moving our high traffic site to Webware and need to support clustering. I plan to use PostgreSQL on a dedicated server with two or more servers running Apache/Webware. Using Sequences to generate primary keys should handle the issue of creating unique primary keys across servers.

[Webware-discuss] webkit init script

2001-11-26 Thread Jeff Johnson
My ISP rebooted my servers by accident this morning which prompted me to get around to writing init scripts for webkit on FreeBSD 4.3. "start" and "stop" seem to work ok but "restart" only works if there is no load on the server since the start doesn't wait for the stop to complete. Any ideas

[Webware-discuss] credit card processing

2001-11-15 Thread Jeff Johnson
Here's the latest on my credit card processing stuff. Since Python 2.1.1 locks all threads while urllib opens an SSL site and I didn't want to move to Python 2.2bx until it's tested more, I now use M2Crypto. It took me a while to find a working example of M2Crypto. Ironically, I found it on a

RE: [Webware-discuss] intelligent session management

2001-11-12 Thread Jeff Johnson
> > Somehow it also manages to recover when cookies are turned > off in the > > middle of the session.  I'm not sure how. > > I don't believe you. :-) > > Except for form submission. It could embed the id in each > form which could mitigate the problem, but not solve it. > It's probably eas

RE: [Webware-discuss] The 0.6 Release, Distributions and Applications

2001-10-26 Thread Jeff Johnson
> At 04:28 PM 10/25/2001 +, [EMAIL PROTECTED] wrote: > >Chuck Esterbrook <[EMAIL PROTECTED]> wrote: > > > > > >>I assume that 0.6 will: > > >>-- > > >>* fix the console hanging and socket binding problems that > > >>Jeff's been working on That fix is in the lat

RE: [Webware-discuss] A few patches

2001-10-24 Thread Jeff Johnson
> * WebKit/Application.py: > New method: getDbConnection(), which returns > a (pooled) database connection. > Requires 3 new Application.config settings, e.g.: > 'DbModule': 'PgSQL',# your fav DB-API v2.0 module > 'DbConnect':'::mydb:me', # DB conn

RE: [Webware-discuss] Webware death...

2001-10-23 Thread Jeff Johnson
> Perhaps I should move to Open/Free BSD? Any luck > with these operating systems? I'm running FreeBSD 4.3. The biggest problem so far has been that python raises an exception when trying to print to stdout/stderr if the console that started the program is closed. Chuck tested on Mandrake

RE: [Webware-discuss] Webware death...

2001-10-23 Thread Jeff Johnson
Clark C . Evans wrote: > Yes indeed. I was wondering if WebKit.cgi or mod_webkit is > properly shutting down the socket when the browser cancels > a request? If this isn't the case... then it's definately > a lower-level issue. Perhaps I'll go back one version > of Python and see if it emerges

RE: [Webware-discuss] Webware death...

2001-10-22 Thread Jeff Johnson
I thought I sent in a bug email to the list last week but I can't find it now. Anyway, I think it _might_ explain this problem. In ThreadedAppServer there is a generic exception handler around handleRequest that caught this problem when it happened but I don't know if it left the threads or sock

[Webware-discuss] mod_webkit for apache 2.0?

2001-10-11 Thread Jeff Johnson
I'm not in a big rush to move to Apache 2.0 right now but I was wondering if anyone is working on a webkit adaptor for it? I thought someone said they were a few months back. Anyone? ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sou

RE: [Webware-discuss] bug in WebUtils/Cookie.py

2001-10-10 Thread Jeff Johnson
> > I put some diagnostics in WebUtils/Cookie.py and it looks like it's > the two equal signs in the cookie that cause the problem. I > always have > this > in my cookie under WinNT, presumably a site-specific thing. > > -

RE: [Webware-discuss] Who is using FunFormKit ? Any alternatives ?

2001-10-09 Thread Jeff Johnson
> Subject: [Webware-discuss] Who is using FunFormKit ? Any > alternatives ? We use it for three different websites. ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss

RE: [Webware-discuss] OneShot debugging

2001-10-04 Thread Jeff Johnson
> How do you capture print statements when using the > OneShot.cgi adapter? Maybe there is already a mechanishm to do that but you could put something like the following in ThreadedAppServer.py: import sys sys.stdout = open("stdout.txt","a") -Jeff ___

RE: [Webware-discuss] FunFormKit 0.3.1

2001-10-02 Thread Jeff Johnson
Hi Tom, Here's a smaller but still complete example of using FunFormKit with Cheetah. I just write the resulting SQL statements to the screen and commented out the redirects. I copied the list in case anyone else might find it useful. Jeff PermissionExample.py

RE: [Webware-discuss] FunFormKit 0.3.1

2001-09-20 Thread Jeff Johnson
Tom Schwaller wrote: > A simple example with Cheetah templates would be nice to.. Attached is a simplified version of our join form. I removed any database access and most of the validation stuff. The Cheetah template is now pretty standard for all of our forms. -Jeff PS: I'll be on vacation

RE: [Webware-discuss] cookie webkit (again)

2001-07-12 Thread Jeff Johnson
I had trouble getting Cookies to stick on Win2000, IIS 5, IE 5.5 until I changed my code to: from WebKit.Cookie import Cookie for name in ('state','countyno'): c = Cookie(name,locals()[name]) #c.setMaxAge(30*24*60*60) # Doesn't cause the cookie to be save

RE: [Webware-discuss] Remote Scripting with PSP

2001-07-10 Thread Jeff Johnson
Wow, this is perfect for my site. I have a list of states and when one is chosen, I need to refresh the page to get a list of counties. Now I don't have to. I was just trying to figure out how to do this yesterday :) We're building our production server for Webware right now, once it's up I sho