[Webware-discuss] Spammer protection, reversion of Wikis

2005-06-13 Thread Edmund Lian
I just spent a large chunk of time deleting crap added to the Webware Wikis by spammers. Well, not exactly spammers... what do you call the bastards who add links to wikis to try to improve the search engine rankings of their paying clients? Anyway, I didn't get all the crap. Could someone wit

Re: [Webware-discuss] OT: seeking accounting package code base

2004-12-31 Thread Edmund Lian
Mark Phillips wrote: Does anyone have or know of a accounting code base that could be licensed for a small project? Of course, I would be happy if it involves python and webware but that is not an exclusive requirement. I am focusing on packages that follow generally accepted accounting practice

[Webware-discuss] Re: Wiki needs to be rolled back

2004-11-29 Thread Edmund Lian
Some ass has inserted a whole bunch of links to a *.biz domain on the front page (and maybe others). It is to a .com domain, sorry. Same difference though... ...Edmund. --- SF email is sponsored by - The IT Product Guide Read honest & candid rev

[Webware-discuss] Wiki needs to be rolled back

2004-11-29 Thread Edmund Lian
Who's got authority to roll back changes to the Webware wiki? Some ass has inserted a whole bunch of links to a *.biz domain on the front page (and maybe others). ...Edmund. --- SF email is sponsored by - The IT Product Guide Read honest & cand

Re: [Webware-discuss] Python CMS

2004-11-29 Thread Edmund Lian
Frank Barknecht wrote: It uses SQLObject and sqlite in the default configuration, but sqlite can be replaced with any other DB supported by SQLObject. I didn't update ttc to SQLObject 0.6 yet. You can get the code for ttc in the webware sandbox (webware-sandbox.sf.net, subdirectory "fbar") or see i

[Webware-discuss] Python CMS

2004-11-28 Thread Edmund Lian
I've been looking around for a content management system, written in Python. Does anybody know of any? I don't want to use Plone/Zope, they are too heavy and restrictive for my liking. Something that is Webware based, uses SQLObject, PostgreSQL and maybe Cheetah would be perfect. If there is al

Solved (maybe): [Webware-discuss] FunFormKit _formID_ KeyError

2003-09-25 Thread Edmund Lian
I've checked in a change to FFK's Form.py so that the formID generation function assigns and track formIDs based on servlet URL and a URL specific counter. This should mean that auto-generated formIDs are no longer sensitive to instantiation servlet order. The patch for this modification is app

Re: [Webware-discuss] FunFormKit _formID_ KeyError

2003-09-25 Thread Edmund Lian
Edmund Lian wrote: So, if this is correct, FFK is mighty sensitive to servlet instantiation order. The immediate workaround is to assign formIDs in a manner that is not instantiation order sensitive. E.g., use the absolute path of the servlet as the formID. Or, assign names to forms explicitly

Re: [Webware-discuss] FunFormKit _formID_ KeyError

2003-09-25 Thread Edmund Lian
Ian Bicking wrote: The problem is you are using mutable forms, and the forms are stored in a module global and keyed to these dynamic names (like "form1"). When you restart the AppServer there may be people with reference to forms that no longer exist. Just looked at how formIDs were generated

Re: [Webware-discuss] FunFormKit _formID_ KeyError

2003-09-25 Thread Edmund Lian
Ian Bicking wrote: The problem is you are using mutable forms, and the forms are stored in a module global and keyed to these dynamic names (like "form1"). When you restart the AppServer there may be people with reference to forms that no longer exist. Just trying to understand what's happenin

Re: [Webware-discuss] FunFormKit _formID_ KeyError

2003-09-25 Thread Edmund Lian
Ian Bicking wrote: The problem is you are using mutable forms, and the forms are stored in a module global and keyed to these dynamic names (like "form1"). When you restart the AppServer there may be people with reference to forms that no longer exist. But I get the error even on pages that do

[Webware-discuss] FunFormKit _formID_ KeyError

2003-09-25 Thread Edmund Lian
I've been seeing intermittent _formID_ KeyErrors with FunFormKit of the form: Traceback (most recent call last): File "WebKit/Application.py", line 415, in dispatchRequest File "WebKit/Application.py", line 567, in handleGoodURL File "WebKit/Application.py", line 776, in respond File "Web

Re: [Webware-discuss] Standard forms handling kit, was: FormKit vs. FunFormKit

2003-09-21 Thread Edmund Lian
Ian Bicking wrote: I'm not planning to tie it to SQLObject, though SQLObject uses the same validation which makes it easier. More specifically, I plan to use interfaces (specifically PyProtocols, http://peak.telecommunity.com/PyProtocols.html Very interesting... I'll have to take a look at Pea

Re: [Webware-discuss] wkcgi build fails on OS X

2003-08-22 Thread Edmund Lian
Alan Little wrote: Apple, not in webware. Does anybody have any experience of installing webware on OS X (10.2.6)? I'm running it on an iBook, no problems. Just use mod_webkit and you should be fine. ...Edmund. --- This SF.net email is spon

Re: [Webware-discuss] How to autorestart WebKit working as a NT service?

2003-08-14 Thread Edmund Lian
Jarosław Zabiełło wrote: Is there any way to make service of webkit (I use NTService.py) to autorestart after changing Application.config or some crucial servlets? I can do it but only when I start WebKit from AppServer.bat. When I run WebKit as service (I set up it as autostart) after changings t

Re: [Webware-discuss] executing .pyc files

2003-08-14 Thread Edmund Lian
Chad Walstrom wrote: > Prescript: Quit CC'ing me. I am on the list. Sure, no problem. It's just that the practice I've observed on this list seems to be to reply to the person directly, and CC the list. I think you're stretching a bit here. Preventing code forks for the sake of maintenance i

Re: [Webware-discuss] executing .pyc files

2003-08-14 Thread Edmund Lian
Chad Walstrom wrote: On Thu, Aug 14, 2003 at 10:40:25AM -0400, Geoffrey Talvola wrote: Maybe you're trying to hide the source code by using .pyc files? BINGO! He's counting on code obfuscation through bytecode. There's very few other explainations for this. Now, as to the reasons why he'd wa

Re: [Webware-discuss] Debain packages, maybe RPM offer.

2003-07-15 Thread Edmund Lian
Aaron Held wrote: How and where will you install the various directories. I just lump it all in /usr/loca/Webware, but that is not a distro friendly way. Nah, this is not the Debian way. There are fairly clear and strict guidelines about where to place files in Debian--basically just FHS. ...E

Re: [Webware-discuss] Change in URL resolution behavior in WebwareCVS

2003-06-06 Thread Edmund Lian
Ian Bicking wrote: Is the real problem that you are losing ?arg=... ? The "ERROR: ..." is probably confusing, I'll look into removing that note (since it's based on an exception not reached in error). No, it can't find the servlet anymore. I know I'm being vague. I'll trace through this thing an

[Webware-discuss] Change in URL resolution behavior in Webware CVS

2003-06-06 Thread Edmund Lian
Webware CVS isn't resolving URLs the way the 0.8 tarball used to... Before, when given a URL of the form "http://path/to/directory?arg=";, Webware would happily resolve this to the servlet at http://path/to/directory/Index.py?arg="; Now, Webware barfs, printing "ERROR: Moved Permanently" in the

Re: [Webware-discuss] Change in URL resolution behavior in WebwareCVS

2003-06-05 Thread Edmund Lian
Ian Bicking wrote: Is the real problem that you are losing ?arg=... ? The problem seems to be in URLParser. Here are some test URLs I've run, and the results: For a servlet named "Index.py" in a context named "Test": 1. http://my.url.net/Test --> Resolves ok, to Test/Index.py 2. http://my.ur

Re: [Webware-discuss] pros/cons of PSP or Cheetah?

2003-04-04 Thread Edmund Lian
On 04/04/2003 11:43:08 AM Tom wrote: > I often see Cheetah and PSP compared as two solutions to the same >problem. Anyone care to discuss the various strengths/weaknesses of the >two? PSP: Pros: easy for someone with IIS ASP or AOLServer ADP background to understand. Easy to get started with.

Re: [Webware-discuss] Max/Min threads

2003-03-29 Thread Edmund Lian
On 03/29/2003 08:51:20 AM webware-discuss-admin wrote: >I limited the number of threads in AppServer.Config to 2 in all >settings. But still I get 7 pythin threads in the process list >(Linux): I see the same thing too. I'm guessing that at least one of the extra threads is the session sweeper t

Re: [Webware-discuss] FunFormKit: MultiCheckboxField and CheckboxFieldhacks

2003-03-25 Thread Edmund Lian
On 03/26/2003 01:24:09 AM Max wrote: >PS: Btw, you still doesn't integrate my patch to SubmitButton which >fixes incorrect display of labels like "Next >". Oh, sorry... been very busy fighting code fires (like the checkbox hack)... I'll check it in this week. ...Edmund. -

[Webware-discuss] FunFormKit: MultiCheckboxField and CheckboxField hacks

2003-03-25 Thread Edmund Lian
I've hacked MultiCheckboxField and CheckboxField to properly support the static and hide options. Static multi and single checkbox fields actually appear as greyed-out checkboxes, etc. I had to modify SimpleHTMLGen a little to support these changes. The change is that the html function is now able

Re: [Webware-discuss] capturing stdout

2003-03-21 Thread Edmund Lian
On 03/19/2003 10:24:49 AM webware-discuss-admin wrote: >Has anyone thought about capturing stdout so that servlets can use print >instead of self.writeln(...) Print output goes to the console right now. Most of us use it for debugging, logging, etc. I think it would be a loss to use it for outpu

RE: [Webware-discuss] Concurrency issue with import WAS: TaskKit problem

2003-03-05 Thread Edmund Lian
Thanks for all your replies... >Does the thread spin endlessly? This sounds like it _could_ be the same >problem I ran into about a month ago, which had to do with concurrent >import commands. The thread actually works OK. I have it writing to the console at the start of a run, and and the very

[Webware-discuss] TaskKit problem

2003-03-04 Thread Edmund Lian
I've got a periodic task that can be autostarted when WebKit starts, via a call to contextInitialize(), or it can be started manually via a web page being served by WebKit. When the task is autostarted on WebKit launch, WebKit sometimes slow down to a dead crawl, as if the task is consuming all th

[Webware-discuss] Re: the rant about kits (was Re: [Webware-discuss] Re: Webware-discussdigest)

2003-03-01 Thread Edmund Lian
On 03/01/2003 03:13:26 PM Ian Bicking wrote: >True. Some people may just use MK, but if they do so it's probably >because they heard about it somewhere else -- they wouldn't see the name >"Webware" and think "database wrapper". Anyone who comes to Webware is >looking to do web applications, and

Re: [Webware-discuss] MiddleKit versus ZODB

2003-03-01 Thread Edmund Lian
Thanks to all for the discussion about MiddleKit vs ZODB. It was enlightening, to say the least. I've not used either so far, preferring to work directly with the underlying RDBMS since the schema I've been using were very complex--4-6 table joins, etc. I'll give MiddleKit a shot on the next proj

Re: the rant about kits (was Re: [Webware-discuss] Re: Webware-discussdigest)

2003-03-01 Thread Edmund Lian
On 03/01/2003 02:48:52 PM Tom wrote: >To clarify, I currently see Webware a bit like this (I'm probably way >off on some of this): > >WebKit: Python Application Server >MiddleKit: Object Abstraction Layer (I guess) >Kit: handling utilities > >However, I do not feel the site/docs/whatever present

Re: [Webware-discuss] Take the Webware Survey!

2003-02-28 Thread Edmund Lian
Is there something wrong with the survey engine? The results, after 23 responses, for the question about Python version show: Python 2.3-- 8.70% Python 2.2-- 100% Python 2.1-- 21.74% ...Edmund. --- This sf.net email is sponsored by:ThinkGeek

[Webware-discuss] MiddleKit versus ZODB

2003-02-28 Thread Edmund Lian
I have a question... please don't get offended by it, I don't mean it to be offensive... While I'm not a great fan of object oriented DBs, I do see a role for them in providing persistence when the demands of an application are lightweight (and don't require all the good stuff that relational DBs

Re: [Webware-discuss] Comments about Twisted?

2003-02-26 Thread Edmund Lian
On 02/26/2003 02:24:47 AM Clark wrote: >I think it is entirely fair critique. And I don't think it is >disparaging... no software project is ever perfect. Webware and >Twisted are among the most innovative and best run projects >out there... despite their documentation. ;) > >The context of pe

Re: [Webware-discuss] Comments about Twisted?

2003-02-24 Thread Edmund Lian
On 02/24/2003 08:19:19 AM Clark wrote: >Really; I think either choice is probably very good. I'd say >webware is probably a bit more mature, and if you already have >Apache and don't really need "chat" and "ftp" and other services >besides "http", then I'd pick Webware. On the other hand, if yo

[Webware-discuss] Comments about Twisted?

2003-02-23 Thread Edmund Lian
Can anybody point me at some assessment of Twisted (www.twistedmatrix.com) relative to Webware, or else be willing to describe where each platform fits into the world? Their website and docs are--to put it mildly--not helpful. ...Edmund. --- T

Re: [Webware-discuss] FFK: dynamic forms -- CVS location

2003-01-22 Thread Edmund Lian
On 01/23/2003 01:21:56 AM Max wrote: >Where is FFK's CVS? http://sourceforge.net/projects/funformkit >Would next stable version of FFK be release soon? >Or may be it would be included in Webware 0.8 release? > >I it bothers me a bit to use CVS checkout on production site. ;) Can't be helped..

Re: [Webware-discuss] Testing webware 0.8b1

2003-01-22 Thread Edmund Lian
On 01/22/2003 03:49:01 AM Max wrote: >Here is a couple of problems I encounter when upgrade from 0.7 to 0.8b1. > >- I added a line > from MiscUtils import SubclassResponsibilityError > to webware.common module because a FunFormKit relies on it. This was fixed in FFK's CVS a couple of weeks bac

Re: [Webware-discuss] FFK: dynamic forms

2003-01-22 Thread Edmund Lian
On 01/22/2003 10:47:59 AM Max wrote: >What bothers me is the need of patching FFK (Ian, would you accept this >patch?). Is there a better way to do what I want? You need to check out a copy of FFK from CVS, which has some bug fixes I put in. Then, use mutable forms as: formDef = FormDefinition(

[Webware-discuss] Starting Webware as daemon

2003-01-21 Thread Edmund Lian
To start Webware in console mode, one just executes ~/AppServer But how should it be started to as a daemon, unattached to a console, and sending output to a log file? I just tried ~/AppServer &> logfile, but Webware doesn't like this and just exits silently, halfway through loading the contexts.

[Webware-discuss] Where to put TaskKit startup/shutdown code?

2003-01-20 Thread Edmund Lian
I need to start one or more tasks (using TaskKit) when Webware starts, and also shut the tasks down in an orderly way when Webware is shutdown. The tasks need to be controlled from a servlet, so they need to be accessible from within Webware. Where's a good place to put the start up and shutdown co

Re: [Webware-discuss] FunFormKit defaults

2003-01-11 Thread Edmund Lian
On 01/11/2003 01:42:12 AM webware-discuss-admin wrote: >There appears to be a bug in SelectField in the Field.py >file in FunFormKit, such that defaults are not properly >carried through an error condition, unless they are strings. Not sure if this is a bug or a feature... but the docs (pp 9) sa

Re: [Webware-discuss] How to generate non-html pages

2003-01-05 Thread Edmund Lian
On 01/05/2003 02:45:00 PM Seth Hettich wrote: >> One thing to be aware of is that Page.py generates headers for actions >> differently than for the writeContent method. Specifically, the tag >> is generated in .preAction() and the closing tag is generated in >> .postAction(). But for the writeCo

Re: [Webware-discuss] How to generate non-html pages

2003-01-05 Thread Edmund Lian
Seth, I can't reproduce the problem anymore. In a test page, I have: from WebKit.Page import Page class Main(Page): def writeHTML(self): self.write("Blah") Both Mozilla and MS IE 5.5 show that the incoming response to contain just "Blah"--no headers, etc. One thing to be aware of

Re: [Webware-discuss] How to generate non-html pages

2003-01-05 Thread Edmund Lian
On 01/05/2003 02:28:53 PM Seth Hettich wrote: >> What browser are you using? I can't remember which browser it was that I >> was testing, but I seem to recall having this problem. It was because that >> browser was adding the tags automatically... > >Mozilla. It brings up the save dialoge, and

Re: [Webware-discuss] How to generate non-html pages

2003-01-05 Thread Edmund Lian
On 01/05/2003 02:12:23 PM Seth wrote: >> That's because Page.py has other methods in there that are generating the >> HTML tags. Just browse Page.py to see what you really need to override. > >Yeah, I did that. I got rid of everything but the html start/stop >tags. I could not find where they w

Re: [Webware-discuss] How to generate non-html pages

2003-01-05 Thread Edmund Lian
On 01/05/2003 01:30:52 PM Seth wrote: >I'm doing that. > > >> and override Page.writeHTML() > >I tried that. In fact, I overrode everything I could find, but I still >got the tags. That's because Page.py has other methods in there that are generating the HTML tags. Just browse Page.py to see w

Re: [Webware-discuss] Sessions for dumb clients?

2003-01-03 Thread Edmund Lian
On 01/03/2003 07:57:08 PM Edmund Lian wrote: >There is one scenario that is a hijack situation though... suppose you design a >site that allows users to post URLs that other users can click on. To hijack >sessions, a rogue user only has to post a URL that takes unsuspecting users to &

Re: [Webware-discuss] Sessions for dumb clients?

2003-01-03 Thread Edmund Lian
On 01/03/2003 07:31:31 PM Randall wrote: >> Be aware however, that having the session encoded in the URL makes session >> hijacking easier, and bookmarking harder. > >In what way does it make session hijacking easier? Sure, if you're >unencrypted, someone could see the URL session in the traffi

Re: [Webware-discuss] Sessions for dumb clients?

2003-01-03 Thread Edmund Lian
On 01/03/2003 04:47:38 PM webware-discuss-admin wrote: >Webkit's Session docstring specifies that cookies must be enabled on the >client so that Session works. However, I don't actually see any Cookie code >in Session. Is the docstring still correct? Yes the docstring is correct. Session _norm

[Webware-discuss] Re: FunFormKit, Cheetah, and Multiple Forms

2002-12-19 Thread Edmund Lian
On Thur, 2002-12-19 Ian Bicking wrote: > I have to admit I haven't really tried using them together yet. > Especially with 0.4, with repeating and compound fields, it becomes > harder to do layout (though 0.4 provides better layout as well). > But I have imagined them being used where the Rendera

Re: [Webware-discuss] Tabs

2002-12-14 Thread Edmund Lian
>This is talking about a situation like: > >x = someFunc(with_lots_of, > arguments) > >In this case, it should be like: > >x = someFunc(with_lots_of, >arguments) OK, so what you are saying is that for normal block indentation we are to use tabs, and for continuation lines like

[Webware-discuss] Tabs

2002-12-14 Thread Edmund Lian
I want to submit a small patch, but I use spaces, not tabs for indentation (which is not a problem with vim). So, I'll convert the spaces to tabs as per the Webware styleguide. However, this is as clear as mud to me: """ Tabs are not used past initial indentation. To avoid alignment problems betw

[Webware-discuss] Two setCookie methods in HTTPResponse?

2002-12-14 Thread Edmund Lian
I just noticed that WebKit/HTTPResponse.py has two setCookie methods defined: Line 95-96: def setCookie(self, name, value, path='/', expires='ONCLOSE', secure=False): Line 113: def setCookie(self, name, value): Is this a mistake? The first one is not accessible because the

RE: [Webware-discuss] tools to debug PSP code?

2002-11-25 Thread Edmund Lian
On 11/25/2002 01:36:19 PM Stuart wrote: >Unfortunately, as I said, the user is not local to the machine. What I >meant by this, is that they do not have a shell on the system, and do not >have access to the AppServer output that I am aware of. That means no >direct access to Cache/PSP without

Re: [Webware-discuss] tools to debug PSP code?

2002-11-25 Thread Edmund Lian
On 11/25/2002 12:12:01 PM Stuart wrote: >The trace back and fancy-trace back output can give some clues on what the >problem is, but you generally don't see enough of the translated .py file to >sufficiently set the context. > >Is there an easy way to make this available for viewing? The compile

Re: [Webware-discuss] Modifying sys.path

2002-11-20 Thread Edmund Lian
On 11/20/2002 02:58:40 AM Stephan Diehl wrote: >I had the same problem and just manipulated the sys.path in Launch.py (in my >AppWorkDir of course) Aha, this is a neater solution than fiddling with context initialization functions. Thank you! ...Edmund. --

[Webware-discuss] Modifying sys.path

2002-11-19 Thread Edmund Lian
I have a directory containing common library code that is located outside of any context. I need to add the directory's path to sys.path. Right now, I'm doing so with a call to sys.path.append() within contextInitialize() of the default context. I'd really prefer that there was some way to add stu

Re: [Webware-discuss] Setting up for multiple developers

2002-11-13 Thread Edmund Lian
Thanks to all for the responses. I'll summarize and post the responses to the Wiki tomorrow. ...Edmund. --- This sf.net email is sponsored by: Are you worried about your web server security? Click here for a FREE Thawte Apache SSL Guide and

Re: [Webware-discuss] Setting up for multiple developers

2002-11-13 Thread Edmund Lian
On 11/13/2002 07:55:29 PM Jason wrote: >I think that if the developers are working on the same application, it's >probably best to have multiple AppServers, and to keep the code in CVS. [snip] >If you share the AppServer, things as simple as syntax errors (which >will cause a traceback when you t

[Webware-discuss] Setting up for multiple developers

2002-11-13 Thread Edmund Lian
How does everybody else handle the issue of multiple developers working on the same application? I'm hoping that there's a neat way of setting up the AppServer and autoreload so that people don't step on each other's toes. Setting up separate AppServers for each developer is one way of doing it, bu

Re: [Webware-discuss] Thanks for AutoReload

2002-11-01 Thread Edmund Lian
On 11/01/2002 07:15:54 PM Tim Payne wrote: >I'd like to thank Jason Hildebrand for the auto-reload feature he wrote. >It was just the incentive I needed to update my installation from CVS. And Ian Bicking for helping to modify the file watcher so that it is possible to manually register files fo

Re: [Webware-discuss] Questions about Auto-reload

2002-11-01 Thread Edmund Lian
On 11/01/2002 01:26:24 PM Jason wrote: >On Fri, 2002-11-01 at 11:49, Nick Murtagh wrote: This looks like a handy feature, but I have a couple of questions: >> >> Can you use this in production, or will there be a period where no >> requests can be handled while the AppServer restarts? > >The

Re: [Webware-discuss] Docs about upgrading

2002-11-01 Thread Edmund Lian
On 11/01/2002 05:39:24 AM Stephan wrote: >If you are already using your separate AppWorkDir (done by MakeAppWorkDir), >you just replace the original Webware. >You only have to change anything in your application if >- there is a change in some basic object like Page >- you need some new configura

RE: Re[2]: [Webware-discuss] packaging

2002-10-29 Thread Edmund Lian
On 10/29/2002 06:08:47 PM Stuart wrote: >I don't think the example cited negates the idea of using domain names. >I would say that if a package is dropped by one vendor, and picked up by >another, that it is perfectly reasonable for the package to adopt a new >name. Furthermore, in an open sourc

RE: Re[2]: [Webware-discuss] packaging

2002-10-29 Thread Edmund Lian
On 10/29/2002 01:53:01 PM Stuart wrote: >At the risk of annoying some people, I think the idea of using the reverse >domain name in packages is a good idea to avoid any potential problems. This presupposes a package will always be associated with a specific domain name, and that the domain name

RE: [Webware-discuss] [UPDATE] Autoreload feature in CVS

2002-10-28 Thread Edmund Lian
On 10/28/2002 10:34:49 PM Jason Hildebrand wrote: >Are you using MakeAppWorkDir? If so, you'll need to copy the new >AppServer script from Webware/WebKit to your work dir. Aha! This was the problem... Thanks! And thanks for the autoreload feature and fixes... now, I can finally retire OneShot!

RE: [Webware-discuss] [UPDATE] Autoreload feature in CVS

2002-10-28 Thread Edmund Lian
On 10/28/2002 10:04:11 PM Jason wrote: >Ok, I've removed the test. I've now changed the implementation so that >it doesn't use execve(), due to the problems with file descriptors >(database connections) not getting closed. Instead, the appserver exits >with return code 3. > >I've modified AppSe

Re: [Webware-discuss] Another Cheetah bit

2002-09-25 Thread Edmund Lian
On 09/23/2002 03:31:56 PM Tim wrote: >Another thing I'm doing now instead of using Webware's actions is to >manually check and handle a parameter within my servlet. The problem >that I ran into was that while using the actions was handy, it added >things I didn't want. Essentially, the handleAct

Re: [Webware-discuss] distutils/setup.py

2002-09-20 Thread Edmund Lian
On 09/20/2002 12:10:40 PM Larry Price wrote: >there's something to be said for /var/lib/webware for the package files >and /var/webware for the context directories. > >and from reading the debian policy manual that's where it should go (for >debian at least) This is true... I use Debian, but I

Re: [Webware-discuss] distutils/setup.py

2002-09-20 Thread Edmund Lian
On 09/20/2002 11:15:07 AM Mike wrote: >In any case, if we decide not to put Webware in site-packages/, it >should go into /usr/local/* by default if we're making a generic >installer for several OSes. Only the OS-specific maintainers and >the local sysadmin have to right to install things into

Re: [Webware-discuss] Getting at serverSidePath earlier than awake phase

2002-09-12 Thread Edmund Lian
Tavis (with apologies to all for the noise, but this is probably of general interest), I wrote: >With one caveat--the call to sys._getframe() has to be from within the servlet. >Importing the code as a function won't work. There's got to be a way to get >around this too... I've figured it out

Re: [Webware-discuss] Getting at serverSidePath earlier than awake phase

2002-09-12 Thread Edmund Lian
To get the equivalent of serverSidePath() in during servlet instantation, I wrote: >In this case, I couldn't take no for an answer, and couldn't sleep until I had a solution. Here it is: > >import sys >absoluteFilename = sys._getframe().f_code.co_filename > >I don't know if using deep magic like

Re: [Webware-discuss] Getting at serverSidePath earlier than awake phase

2002-09-12 Thread Edmund Lian
On 09/12/2002 11:39:13 PM Tavis Rudd wrote: >Unfortunately not. I've run into this before. Making it possible would >require huge changes. In this case, I couldn't take no for an answer, and couldn't sleep until I had a solution. Here it is: import sys absoluteFilename = sys._getframe().f_cod

Re: [Webware-discuss] Getting at serverSidePath earlier than awake phase

2002-09-12 Thread Edmund Lian
On 09/12/2002 11:39:13 PM Tavis Rudd wrote: >Unfortunately not. I've run into this before. Making it possible would >require huge changes. Hmmm... I'm glad you replied Tavis, because the function was actually written to make the "file" parameter used in Cheetah Template creation accept relati

[Webware-discuss] Getting at serverSidePath earlier than awake phase

2002-09-12 Thread Edmund Lian
I have a version of Page.py that implements a function to calculate the absolute path to a given file: def decodePath(self, file): if file[0] == '/': return file else: op = os.path currentDir = op.dirname(self.serverSidePath()) retu

RE: [Webware-discuss] Session IDs

2002-08-22 Thread Edmund Lian
On 08/22/2002 09:32:04 AM Geoff wrote: >The cookie is called "_SID_" and it does remain constant across all >requests. And it should work fine with OneShot.cgi. > >Are you sure you have cookies enabled in your browser? Yes, I'm using Mozilla, and what I've done is to turn on cookie acceptance

[Webware-discuss] Session IDs

2002-08-21 Thread Edmund Lian
>From reading the docs, it appears that session IDs are stored as cookies unless UseAutomaticPathSessions is set. However, I don't actually see any cookies stored on my machine that corresponds to my domain name, or anything else that I might recognize as being from Webware. What is the name of t

Re: [Webware-discuss] search engines

2002-08-17 Thread Edmund Lian
Stephan Diehl wrote: > for a procject I'm doing with webware at the moment, I have to search an > internal documentbase consisting of several thousand documents. I'm using > swish-e at the moment. While swish-e gives very good search results, there is > the problem that there is no possibility t

Re: [Webware-discuss] Chart generation

2002-07-31 Thread Edmund Lian
Hi All, Sean True of WebReply emailed me to tell me of a Python port of JpGraph (http://www.aditus.nu/jpgraph/), to be found at http://metagram.webreply.com/ Sean says that the port is not completely 100% functional, but is usable. So far, this is the closest I've seen to something like ChartDi

RE: [Webware-discuss] serving XML to a Java applet with webware

2002-07-31 Thread Edmund Lian
On 07/31/2002 12:14:27 PM Geoff wrote: >Adam Gent wrote: >... >> javascript. One of the problems is that I need to save >> the input of a form temporarily so that I can go to >> another page to pick say a contact and the contact >> page may need to go to another page to pick a phone >> number. I

Re: [Webware-discuss] Chart generation

2002-07-30 Thread Edmund Lian
On 07/30/2002 10:18:10 AM Stephan Diehl wrote: >Eventually, ReportLab (PDF generation on the fly) might do what you want. >They are even working on a SVG engine. I'm not sure about this. What I want to do is generate graphs for display on a webpage. For now, it seems easier to use Python to gene

Re: [Webware-discuss] middleKit sql queries

2002-07-30 Thread Edmund Lian
On 07/30/2002 09:26:40 AM webware-discuss-admin wrote: >3. In the experimental project that I am playing around with, it requires >initially about 1.5m transactions on the database to set up the data. For >some reason that I am not clear on the app starts to really slow down about >halfway into

Re: [Webware-discuss] Chart generation

2002-07-30 Thread Edmund Lian
On 07/30/2002 08:31:25 AM Bill Eldridge wrote: >I sent an e-mail on pygd for graphics a few months ago, but I don't >know if it does business charts: Thanks, I'll take a look at it. The closest thing I've found to an easy-to-use, well documented package so far is ChartDirector ( http://www.advso

[Webware-discuss] Chart generation

2002-07-29 Thread Edmund Lian
Has anybody had any experience generating business-style charts on-the-fly from within Webware? If so, what did you use? I see a few packages like Dislin, GNUPlot, etc., but before messing around, I thought I should ask for experiences. This topic area probably needs to be added to the Wiki; I can

Re: [Webware-discuss] Webware aborting. (oops forgot to change the subject.)

2002-06-30 Thread Edmund Lian
Karl wrote: >I am using psycopg, but it doesn't appear to be related to the >db module. A plethora of print statements show that the select >completes, the loop finishes, the page finishes, then the AppServer >pukes Hmmm... then as Aaron wrote, suspect PyDO first--try posting about the problem

RE: [Webware-discuss] Understanding sessions

2002-06-27 Thread Edmund Lian
Geoff wrote: >I'll bet it's an unfortunate timing issue caused by your use >of OneShot, which has to load and save the session on each request. >The redirect results in an immediate new copy of OneShot being fired up, >which probably reads in the old values from disk before the new values >have b

RE: [Webware-discuss] Profiling

2002-06-24 Thread Edmund Lian
Geoff wrote: >>The biggest bottleneck for me has always been SQL (queries on large tables without adequate indexes, or unnecessary repetition of queries when a single query would suffice, etc).<< I did some basic timing over the weekend to see why things were running more slowly than I expected

[Webware-discuss] Profiling

2002-06-21 Thread Edmund Lian
I have an application that fetches data from an RDBMS for some pages. When running under WebKit.cgi, the page is still taking longer than I would expect. How can I isolate the performance problem? While I shouldn't be worrying about performance at this stage, it would be useful to know what the b

RE: [Webware-discuss] Understanding sessions

2002-06-21 Thread Edmund Lian
Geoff wrote: >I'll bet it's an unfortunate timing issue caused by your use of OneShot, >which has to load and save the session on each request. The redirect >results in an immediate new copy of OneShot being fired up, which probably >reads in the old values from disk before the new values have

Re: [Webware-discuss] Understanding sessions

2002-06-20 Thread Edmund Lian
Chuck wrote: >That sounds like a bug to me. Can you provide a minimal example that >recreates it? We'll also need to know version, adapter, etc. OK, here's a cut-down version of what I'm doing... Versions: Python 2.2, Webware 0.7, Cheetah 0.9.13a1, using OneShot.cgi on Apache The snippets app

Re: [Webware-discuss] OT: Python editor recommendation?

2002-06-20 Thread Edmund Lian
Chad Walstrom wrote: >VIM - VI iMproved > >In case you're comfortable with vi's unique mode-based editing, vim >provides syntax highlighting and autoindentation. It does not, >however, have an interactive debugger for python -- which IMHO is >not a big deal anyway. With the use

Re: [Webware-discuss] Restarting AppServer automatically

2002-05-18 Thread Edmund Lian
Kendall wrote: >The ET con coverage paused long enough for ORN to publish this piece I >promosed last week: Might be useful to have a link from the Twike to this page. ...Edmund. ___ Hundreds of nodes, one monster rendering program.

Re: [Webware-discuss] mbox archives of mailing list

2002-05-17 Thread Edmund Lian
Gerhard wrote: >I'm new here. Welcome! What a pleasant surprise to see you here. Your timing is excellent, because you're the right man to educate us on the different Python-PostgreSQL modules! :-) I'd just posted a query yesterday asking for opinions/experiences about psycopg and pyPgSQL. Yo

Re: [Webware-discuss] Generated class docs?

2002-05-17 Thread Edmund Lian
Steve wrote: >I was actually under the impression that there are automated proggies which >generate such docs, and that minor tweaking needed to be done to at least >get the basic docs generated. Am I wrong? I'm not familiar with Java class docs, but do try kicking up pydoc as a HTTP server and

Re: [Webware-discuss] OT: PostgreSQL interfaces

2002-05-17 Thread Edmund Lian
Karl wrote: >FWIW I'm using psycopg. Chosen because it's under active development, >and the modules that come with PostgreSQL didn't work. Ah, you must be referring to pygresql. Never tried this. FYI, pyPgSQL is under active development. Billy Allie and Gerhard Haring do seem to be release up

[Webware-discuss] OT: PostgreSQL interfaces

2002-05-16 Thread Edmund Lian
The leading PostgreSQL DB modules seem to be pyPgSQL and psycopg. Does anybody have any comments regarding which module they found better to use/more stable in the context of a Webware application? There seems to be very little chatter comparing these two modules on any mailing list... ...Edmund

Re: [Webware-discuss] starting webware at boot

2002-05-16 Thread Edmund Lian
Tavis wrote: >Instead of just having daemontools restart WebKit you have it call a >tiny wrapper script that sends an email and starts WebKit. Another >way is to put some email sending code in an __init__.py module that >will be loaded when WebKit starts. Yet another functionally equivalent wa

Re: [Webware-discuss] starting webware at boot

2002-05-16 Thread Edmund Lian
>>THat was a slightly different issue of monitoring failed daemons.<< True, but daemontools will also start daemons up at boot. I'm assuming Rolf wants to start it and keep it up! :-) ...Edmund. ___ Have big pipes? SourceForge.net

Re: [Webware-discuss] starting webware at boot

2002-05-16 Thread Edmund Lian
Rolf wrote: >>Does anyone have a good script for starting webware at system boot, on RedHat? If not, I can put something together and post to the list. (or post somewhere else)<< There was discussion about this about 2 weeks ago. You might want to search for it. My suggestion is to use daemont

  1   2   >