Which version of Webware are you using? There was a bug fix in CVS
about 1-2 months ago that fixes a problem similar to what you're
describing.
As far as I know, the bug affects _all_ released versions of Webware so
your only choice is to grab a snapshot from CVS.
- Geoff
On Wed, 2002-09-04 at
On Mon, 2002-08-12 at 07:59, Chuck Esterbrook wrote:
> I see that PSP has a way to define methods for the page. But what if I
> want the equivalent of:
>
> class SomePage(SuperPage):
> shouldFooBar = 1
>
> e.g., I want to set "shouldFooBar" at the class level. (The reason is
> that SuperPa
On Fri, 2002-08-09 at 19:10, Tavis Rudd wrote:
> On August 9, 2002 03:37 pm, Geoff Talvola wrote:
> > On Fri, 2002-08-09 at 17:53, Tavis Rudd wrote:
> > > Shouldn't _instanceCacheSize be used? It seems possible with the current
> > > code for the number of in
On Fri, 2002-08-09 at 17:53, Tavis Rudd wrote:
> Hi,
> I was looking over the recent changes in Application.py that switched from
> using a Queue to a list for the servlet instance cache and noticed something
> odd. There doesn't seem to be any limit on the size of the cache.
>
> Line 105 rea
Sounds like you want to redirect the browser with
self.response().sendRedirect('http://...')
- Geoff
On Mon, 2002-07-29 at 14:23, Stefan Kuzminski wrote:
> hi,
>
> I need to forward to a url which is not relative to the webware context..
> Not sure how to do this ( from a .psp page). I need t
I just checked in a fix to Webware CVS. Give it a try.
- Geoff
On Sun, 2002-07-14 at 12:36, Geoff Talvola wrote:
> This isn't a Python problem -- it's a bug in Webware.
>
> If you put a print statement at the end of UnboundMethodError.py you'll
> find that the mo
; ShowPix.py to the self.methodName, the errors stopped and I took the
> opportunity (before stopping the AppServer) to write the test case described
> above.
>
> If you need any other information, I can be reached at [EMAIL PROTECTED]
>
> Roger Haase
>
>
>
I don't know how FreeBSD ports work, but did you have to write scripts
to create this port? If so, they should be checked into Webware CVS so
that it can be repeated.
If you want CVS access yourself, see
http://webware.colorstudy.net/twiki/bin/view/Webware/DeveloperGuidelines
or you could just u
On Thu, 2002-07-11 at 15:06, Roger wrote:
>
> Any ideas on what to try next?
>
Not really. Are you willing to send me a copy of your code and the full
traceback you're getting? I think I need to actually see the code to
try to understand what's wrong.
- Geoff
Roger,
Can you add a print statement to the place in your SitePage module where
you create the object store? It sounds to me like the module is getting
reloaded for some reason. You can tell for sure by adding the print
statement.
- Geoff
On Wed, 2002-07-10 at 17:22, Roger wrote:
> I am not
On Thu, 2002-07-04 at 03:54, Steve Freitas wrote:
> >>> 2) If you use your browser's BACK button to go back to the login form, then
> >>> re-post the user name and password, it will always fail to log you in. This
> >>> is by design. A unique random ID (I think it's called "loginid") is
> >>> ge
>Incidentally, I'm not trying to dump work onto anybody's plate. I'd
>try to suggest a fix for this, if that would be appropriate--but I'm still
>a Webware newbie.
>
>Thanks for any comments!
>
>Bill
>"It is the time that you have wasted f
ession hasn't expired.
There's an expiring() method of the Session object which is supposed to get
called when the session times out. So you could somehow replace Session
with a subclass that defines that method to do what you want. I'm not sure
if expiring() gets called in every plac
ocking
> > here, since multiple requests for the same session may be coming from
> > different appservers at the same time. I'm not sure how to
> > avoid wiping
> > out one appserver's changes with another appserver's changes
> > in that case.
>
>I sta
requests for the same session may be coming from
different appservers at the same time. I'm not sure how to avoid wiping
out one appserver's changes with another appserver's changes in that case.
--
- Geoff Talvola
[EMAIL PROTECTED]
___
We
TITY AS NewPrimaryKey
SET NOCOUNT OFF
In other words, @@IDENTITY is the last Identity value that was
auto-generated on the given connection.
The business with "SET NOCOUNT ON" and "SET NOCOUNT OFF" is needed due to a
bug that I read about i
ng of this? Last I looked
>there they had the most configurable scaling stuff I'd seen.
But there are plenty of existing solutions for load-balancing static sites,
right? I was under the impression that there are a number of software and
hardware solutions for that. Although I've nev
olution. But it is really easy to implement and reduces the
load on the database server since it won't have to act as a session store.
If I had to scale to multiple boxes for performance reasons, this is the
strategy I would implement first, since it seems like it's by far the
t set up right, so that
WebKit.cgi can't access the Webware directory. Try adding the following
line into WebKit.cgi before the failing import:
foobar =
open('/home/davidbh/apps/Webware/WebKit/CGIAdapter.py').read()
A
a shot
>
>-Aaron
Give it a try. It's really easy to install. It was a while ago that I
used it, and I can't remember if I actually got Webware running with it, or
if I stopped using Xitami before I discovered Webware. But I can't see any
reason w
es the HTTP server process can hold
onto the request and retry until the appserver has restarted
- it makes the WebKit core more complicated since you're bundling in
multiple protocols; by keeping the HTTP server process separate the core
doesn't have to change at all
Any others?
wrappers around the
Recordset objects to make them support iteration.
The nice thing about using ADO is that most of the MS documentation
contains code samples in Visual Basic with ADO, and it's easy to translate
that to Python.
--
- Geoff Talvola
[EMAIL PROTECTED]
___
At 09:48 PM 11/25/01 -0800, Chuck Esterbrook wrote:
>On Sunday 25 November 2001 06:00 pm, Darryl wrote:
> > Can middlekit do deletes?
>
>Yes, Geoff implemented them a month or 2 ago. I don't know if the docs are
>updated or not
Yes, I think the docs are up-to-date
At 02:44 PM 11/20/01 -0600, Ian Bicking wrote:
>On Tue, 2001-11-20 at 14:16, Geoff Talvola wrote:
> > First, make sure that the Application.config setting
> > IncludeTracebackInXMLRPCFault is set to 1. I think it is set to 1 by
> > default, but I'm not positive. What
d), params)
File "d:\gat\tools\tools\Webware\WebKit\Examples\XMLRPCExample.py",
line 25, in add
return x + y
TypeError: unsupported operand types for +
>>>
Have you been able to get that much working?
Also, you can modify XMLRPCServlet.py so that it logs exceptions.
eadedAppServer.py", line 146, in threadloop
> rh.handleRequest()
> File "WebKit\ThreadedAppServer.py", line 281, in handleRequest
> dict_length = loads(chunk)
>ValueError: bad marshal data"
>
>Anybody interested? Yesterday, when I used the async vers
I checked in fixes for a few Python 1.5.2 incompatibilities that made their
way into CVS recently. The tip of CVS should now work with Python 1.5.2
and up.
--
- Geoff Talvola
[EMAIL PROTECTED]
___
Webware-discuss mailing list
[EMAIL PROTECTED
ing Application.forward() in conjunction
with FileSessionStore.
--
- Geoff Talvola
[EMAIL PROTECTED]
___
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss
re having. Give them a try.
You can use CVS, or grab them from the web at:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/webware/Webware/WebKit/Examples/
--
- Geoff Talvola
[EMAIL PROTECTED]
___
Webware-discuss mailing list
[EMAIL
didn't look in
>the sources very long but as both mechanisms (cookies and URL handling) are
>implemented it shouldn't be too hard IMHO to combine them.
How do you detect if the browser has cookies enabled?
--
- Geoff Talvola
[EMAIL PROTECTED]
__
rk on this and submit it as a patch, try to follow the
standard Webware naming conventions -- i.e. createdDate() instead of
getCreatedDate(), etc.
The style guidelines can be found here:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/~checkout~/webware/Webware/Docs/StyleGuidelines.raw?rev=HEAD&content-typ
would be greatly appreciated.
I tried this a long time ago -- see if this article helps:
http://www.geocrawler.com/archives/3/3854/2000/9/0/4351554/
If you get this to work, if you could add a brief section to the Webware
Wiki that would be great. The Wiki is at
http://webware.colorstudy.net/tw
will require restarting the appserver
every time you change the include files. Option 4 will probably compile
faster than option 1, but obviously won't allow use of PSP tags.
Basically, try them out and see if you notice any difference. I'm sure
they're all fast enough
do anyway? On my platform it won't even load. ;-)
You have to do some per-thread initialization and finalization in order to
use COM in a multi-threaded program. So COMKit installs the proper
hooks. Obviously it's Windows-only.
--
- Geoff Talvola
[EMAIL PROTECTED]
_
an go from a StructuredText-like
input to multiple output forms like HTML, PDF, and perhaps even the HTML
Help format that's so useful on Windows?
--
- Geoff Talvola
[EMAIL PROTECTED]
___
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss
nd UserKit.
We use TaskKit in non-WebKit applications. It's useful in its own
right. Let's keep it separate.
--
- Geoff Talvola
[EMAIL PROTECTED]
___
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss
red and returned
as a string instead of being sent out.
I leave the implementation of self.capture() up to the reader :-) Also,
I'm curious if people think this is a good approach.
--
- Geoff Talvola
[EMAIL PROTECTED]
___
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss
en Python syntax and Cheetah's different syntax.
If you're going to bring in non-programmers to work on the design, then
Cheetah is clearly a better option.
--
- Geoff Talvola
[EMAIL PROTECTED]
___
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss
that
base class. Then you get the best of both worlds.
You get more benefits from PSP if you're using an editor that's designed to
show mixed code and HTML nicely. I use
SciTE. http://www.scintilla.org/SciTE.html
--
- Geoff Talvola
[EMAIL PROTECTED]
___
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss
exts - I added this directory
/SomeContext
/SomeOtherContext
/ErrorMsgs
/Lib - I added this directory
/Logs
/Sessions
/Static - I added this directory for static content to be served
directly by Apache
AppServer.bat
Launch.py
...
From
ctively but not in WebKit. Maybe sys.path, or the current working
directory, or the particular set of modules that have already been imported?
--
- Geoff Talvola
[EMAIL PROTECTED]
___
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sou
ithout having
>to apply this patch.
Yes, look at the FileUpload example servlet. It shows how to do file
uploads, including getting the filename.
--
- Geoff Talvola
[EMAIL PROTECTED]
___
Webware-discuss mailing list
[EMAIL PROTECTED]
https://l
d certainly try out a Wiki for Webware. I've never participated in one
before, so it'll be a good learning experience :-)
--
- Geoff Talvola
[EMAIL PROTECTED]
___
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss
ssion handling. Fortunately, it would be
easy to write a session store that used a database back-end. Or, without
too much pain you could modify the adapters so that they always route
requests for the same session to the same appserver.
--
- Geoff Talvola
[EMAIL PROT
no rights to enter my /home/net directory. After "chmod 755" on the
>/home/net directory, it worked.
We should really beef up WebKit.cgi so it prints a suggestion to this
effect when it gets an ImportError.
--
- Geoff Talvola
[EMAIL PROTECTED]
_
At 04:22 PM 10/24/01 -0400, Geoff Talvola wrote:
>That brings up the larger question of "where do I put resources that are
>global to the application?"
>
>I usually just put stuff like that into regular Python modules. Then
>whenever I need it, I just import the modu
t;
> > To: Ken Lalonde <[EMAIL PROTECTED]>
> > Subject: Re: [Webware-discuss] A few patches
> >
> > Ken Lalonde wrote:
> > | * WebKit/Application.py:
> > | New method: getDbConnection()
> >
> > This is interesting, but I'm not sure that it
evelop it as a base class that sits in the WebKit directory
for now. If it comes to fruition, then we can decide whether to just
include it in WebKit or put it in a separate Kit.
--
- Geoff Talvola
[EMAIL PROTECTED]
___
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss
.
> ,
> <16384>
> .
>
>So. It reads in what to write... but when it goes to
>write to the socket self._socket.send(val) it crashes.
>
>Thoughts as to how to proceed?
>
>Clark
--
- Geoff Talvola
[EMAIL PROTECTED]
___
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss
the list.
To my ears it sounds like an exception handler is needed around some socket
code to handle broken connections.
--
- Geoff Talvola
[EMAIL PROTECTED]
___
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss
s/crashes one thread.
>Also. I just put into "production" the recent CVS snapshot,
>the same problem occurs.
>
>Thanks!
--
- Geoff Talvola
[EMAIL PROTECTED]
___
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss
I've made another bugfix to wkcgi.exe and I've uploaded a compiled version
for Windows to
http://webware.sourceforge.net/MiscDownloads/ForCVS/Windows/
If you were having any trouble with wkcgi.exe, please give this one a try.
--
- Geoff Talvola
[EMAIL
bUtils/Cookie.py and WebKit/Cookie.py with the
respective files from CVS. You can pull those files over the web using
this URL -- you don't need to mess around with CVS if you don't want to.
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/webware/Webware/
--
- Geo
ied ascii_letters into Cookie.py and now all is well. If
>someone can test this modified Cookie.py on python 1.5.2, maybe we can
>get it added to Webware.
I'm working on it right now. I'll send a message when it's checked into CVS.
--
- Geoff Talvola
[EMAIL PR
for Windows at
http://www.modssl.org/contrib/
I'm using the one called Apache_1.3.20-Mod_SSL_2.8.4-OpenSSL_0.9.6a-WIN32.zip
For client-side usage, check out M2Crypto at
http://www.post1.com/home/ngps/m2/ . We're using its XML-RPC functionality
in a Python client to access an XML-RP
he other thing to consider is using self.application().forwardRequest()
instead of sendRedirect(). This causes the forwarding to happen entirely
inside of the server instead of bouncing the redirect back to the
application. The advantage is that forwarding is very fast. The
disadvantage is that
At 07:37 AM 10/4/01 -0700, Chuck Esterbrook wrote:
>At 11:58 AM 10/2/2001 -0400, Geoff Talvola wrote:
>>I also get errors (but they are different errors) when I run
>>AsyncThreadedHTTPServer.py on my machine. So you're not the only one
>>having problems.
>
>
problem; I recently pulled
>some classes I wrote out of the same path as the servlets that call them;
>they are importing just fine, but it may have some interaction.
>
>Any ideas?
>
>Thanks.
--
- Geoff Talvola
[EMAIL PROTECTED]
___
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss
I attempt to use
>the <%@page threadSafe="yes"%> or <%@ page isInstanceSafe="yes"%> , I
>receive a No Page Directive error.
I'm not sure about those parameters, but I can tell you that I get
excellent performance from W
;Not that I am not happy with the CVS snapshots, I am just curious...
Chuck said he was looking for a volunteer to put together the next
release. I'll try to find the time to do a new release candidate sometime
in the next 2 weeks, but I'm not making any promises :-)
--
-
snapshot from CVS). I
think all you need to do is make sure that EnableCOM is set to 1 in your
AppServer.config file.
If that doesn't work, let me know what kind of error you're getting.
--
- Geoff Talvola
[EMAIL PROTECTED]
___
Webware
ou know if this could be made to work with PythonWin?
--
- Geoff Talvola
[EMAIL PROTECTED]
___
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss
ple inherit
from your "logic" mixins and your SitePage class. But there are other ways
besides mixins to accomplish this.
Of course there's always print statements -- I use those quite often too :-)
--
- Geoff Talvola
[EMAIL PROTECTED]
___
At 09:02 AM 7/26/2001 +0200, Mark Gebhardt wrote:
>Thanks Chuck
>
>It seems to be working fine with the few developers that we have.
>Obviously though, on larger projects (say 10/15 developers +) this will
>become prohibitive due to the disk space and time consumed in setting up
>all the separate
ng to do.
You can look into the "MakeAppWorkDir.py" stuff that Robin Dunn checked
into CVS recently. Its purpose is to set up independent working
directories that are isolated from one another, but share common Webware
code from a central location. But there's also nothi
Then I added
a sleep() method to my SitePage that takes any cookies that were in the
request field "cookies" and actually sets them.
I don't have time to go into any more detail but if you really need to be
able to set a cookie and then forward to another servlet, th
kept up to date.
> >
>
>Gah! I meant ModSnakeAdapter. I don't know why I typo'd that...
Another question, are you using 0.5.1rc3 or are you using a CVS
checkout? I suspect that ModSnakeAdapter is broken in other ways in CVS
but I can't verify it because I use Windo
c136
><req.headers_out[header[0]] = header[1]
>---
> >req.headers_out[header[0]] = string.join(header[1:], ":")
>
>Regards,
>
>David O'Callaghan
>
>
>_______
>Webware-d
y from Python 2.1 if available, otherwise it'll use
the one in MiscUtils.
I also left the configuration the way I had originally set it up, with the
"IncludeFancyTraceback" and "FancyTracebackContext" settings.
Sorry it took so long to get your patch into Webwa
At 03:38 PM 6/22/01 -0500, you wrote:
>Geoff Talvola <[EMAIL PROTECTED]> wrote:
> > >Oh, I think I made two small changes to inspect: inspect.trace, so it
> > >could take the exec_info as an argument, and inspect.getsourcefile, to
> > >look for files througho
At 03:45 PM 6/22/01 -0400, Chuck Esterbrook wrote:
>At 03:40 PM 6/22/2001 -0400, Geoff Talvola wrote:
>>Could we just include the %(WEBWARE)s type strings in the actual
>>Application.config and modify the code that reads it to interpolate in
>>the right values?
>
>I
At 02:51 PM 6/22/01 -0500, Ian Bicking wrote:
>Geoff Talvola <[EMAIL PROTECTED]> wrote:
> > I downloaded the patch. I couldn't get your modified version of cgitb.py
> > to work. It worked running it from the command line as a self-test,
> but it
> > failed wh
ecked into CVS, rather than embedding all of the default
config information in triple-quoted strings in an out-of-the-way place like
bin/MakeAppWorkDir.py. Same with the OneShot.cgi and WebKit.cgi copies
that are embedded in MakeAppWorkDir.py.
Could we just include the %(WEBWAR
At 03:00 PM 6/22/01 -0400, Geoff Talvola wrote:
>Any change MakeAppWorkDir.py could pick up the standard Application.config
>and just make modifications to it?
^^
chance
I guess I shouldn't rely on spell-check to ensure that my emails are
bug-free :-)
--
- Ge
At 02:25 PM 6/22/01 -0400, Geoff Talvola wrote:
>At 01:18 PM 6/22/01 -0500, Ian Bicking wrote:
>>Did you see the patch I submitted on sourceforge for this? It
>>included a modified version of cgitb with several small (but I think
>>important) enhancements.
>
>No, I
I'm not too keen on having to remember yet _another_ place to edit every
time we change a config option.
Any change MakeAppWorkDir.py could pick up the standard Application.config
and just make modifications to it?
--
- Geoff Talvola
[EMAIL PROTECTED]
_
At 01:18 PM 6/22/01 -0500, Ian Bicking wrote:
>Did you see the patch I submitted on sourceforge for this? It
>included a modified version of cgitb with several small (but I think
>important) enhancements.
No, I didn't know about the patch. I'll take a look right now.
>
from
http://web.lfw.org/python/ , and if you are not using Python 2.1, you will
also need to install inspect.py and pydoc.py, also available from the same
site.
FancyTracebackContext = 5 The number of lines of source code context to
show if IncludeFancyTraceback is turned on.
--
- Geoff Ta
is by setting the IgnoreInvalidSession setting in
Application.config to 1.
--
- Geoff Talvola
[EMAIL PROTECTED]
___
Webware-discuss mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-discuss
I fixed ThreadedAppServer.py and OneShotAdapter.py so that binary file
uploads work properly on Windows. I've tested with WebKit.cgi and
OneShot.cgi; I'll try it out with mod_webkit later today.
- Geoff
___
Webware-discuss mailing list
[EMAIL PROT
Some archiving tools get confused by zero-length files.
--
- Geoff Talvola
[EMAIL PROTECTED]
___
Webware-discuss mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-discuss
At 12:34 PM 6/18/2001 +0200, Albert Brandl wrote:
>Hi!
>
>I think I've found a problem with SecurePage.py. The information on valid
>users is stored in a session object. For security reasons, sessions
>expire after a certain amount of time. Unfortunately, SecurePage does
>not take this into accoun
mod_python 2.7.4. This fixes a threading bug that caused Apache to return
incorrect results or crash under heavy load.
Also, I have compiled and tested mod_webkit on Windows NT, and it also
works, so I have updated the install guide to indicate that fact.
--
- Geoff Talvola
[EMAIL PROTECTED
At 08:24 AM 5/28/2001 +0200, Jörn Schrader wrote:
> >This isn't thread-safe -- 2 servlets could create the store at the same
>time.
> >
> >You're better off putting the store initialization into a module that gets
> >imported -- then Python automatically ensures that only one thread imports
> >it
ural = ''
self.writeln(" You've been here %d time%s." % (count,
plural))
self.writeln(' Try hitting RELOAD now.')
--
- Geoff Talvola
[EMAIL PROTECTED]
___
Webware-discuss mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-discuss
IL PROTECTED]
> >
>http://lists.sourceforge.net/lists/listinfo/webware-discuss
>
>
>______
>Do You Yahoo!?
>Yahoo! Auctions - buy the things you want at great prices
>http://auctions.yahoo.com/
>
>___
>Webware-discuss mailing list
>[EMAIL PROTECTED]
>http://lists.sourceforge.net/lists/listinfo/webware-discuss
--
- Geoff Talvola
[EMAIL PROTECTED]
___
Webware-discuss mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-discuss
a module that gets
imported -- then Python automatically ensures that only one thread imports
it at once. (Either that or you should explicitly use a threading.Lock
object to make it thread-safe.)
If you want to "pre-load" the store when the app server starts up to reduce
response time
xecuted
once (unless you use reload). And it also locks the threads so that so
other thread can import the same module at the same time. So this solution
is safe even in a threaded environment like WebKit.
--
- Geoff Talvola
[EMAIL PROTECTED]
___
88 matches
Mail list logo