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
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
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
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
-
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
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
> 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
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
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
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<<<
__
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" <
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
> 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
> 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,
> 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
> >
> 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
> > 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
>
> 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
> 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
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
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
> 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
> 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
> > 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
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
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(
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
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
> 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
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
> 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
> >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
> 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
> # 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
> >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
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
> 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
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
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.
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
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
> > 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
> 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
> * 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
> 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
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
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
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
>
> 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.
>
> -
> 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
> 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
___
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
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
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
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
55 matches
Mail list logo