I've been using Webware for some weeks and after some minor debugging I
found I'd like the servlets to have a cwd set to their own local path, I
know it's not suggested, since multiple calls to the servlet or
different servlets would make the webware server to be constantly
changing dirs, but I don't really know the implications, what's the best
solution around this?
for example, i have a context and it has a file named test.txt, I'd be
easier to just use, for example, open('test.txt', 'r'), but the server
is not working on that dir so It wont find the file, the normal solution
would be addding something like
os.path.join(os.path.dirname(self.serverSidePath()),'test.txt'), but if
I ever need to deal with lots of files in some dir inside my context,
I'd have to create a function to return (or store) that path, and use
it, I'd love to be able to just open('test.txt') directly, would that be
There's something else I'd like to ask, do I have to flock() the files,
shelves and/or pickles I use under a Webware servlet?
I'm using webware from CVS, debian unstable, python 2.3, kernel 2.6.6,
apache 2 and mostly everything up to date.