[Zope-dev] Slow startup times

2000-05-19 Thread Toby Dickenson
A number of times the subject of slow startup times has been raised, because it's particularly annoying while developing python products. I've always found it very snappy (restart in less than 4 seconds), but yesterday I found a machine where it was much slower (20 seconds). With the patch

[Zope-dev] long-running external python method

2000-05-19 Thread Mika, David P (CRD)
I have woes calling a long-running external class method. The external method must be called after the class instance is constructed, because the method modifies class properties. Modifications are done in the external method using python's urllib pointing to the object's manage_edit DTML

[Zope-dev] Subclassing LoginManager

2000-05-19 Thread Dan L. Pierson
OK, time for another Zen fix :-) It looks like I've almost got PTK working with the latest LoginManager. The remaining problem is that the login form doesn't work. I've finally figured out why. PTKBase.MemberFolder.MemberFolderBase.validate is much hairier than

Re: [Zope] Some examples of DTML scripts ?

2000-05-19 Thread Cornelis J. de Brabander
go to http://www.zope.org and click on the 'dtml source' link at the bottom of every page cb -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [EMAIL PROTECTED] Aan: [EMAIL PROTECTED] [EMAIL PROTECTED] Datum: vrijdag 19 mei 2000 11:55 Onderwerp: [Zope] Some examples of DTML scripts ? Hi,

[Zope] Zope log rotation

2000-05-19 Thread Dan L. Pierson
Chien-pin Wang writes: Dear All: Quick question about Zope admin. Can zope automatically rotate its access log? Thanks. I use logrotate on Linux for this. Unfortunately I have to use the before and after config options to stop zserver before and restart it after -- otherwise

Re: [Zope] gotcha for zope on solaris2.7 - make sure you use pthreads.

2000-05-19 Thread Anthony Baxter
Let's see: network lookups would fail, sometimes, strangely, signals would be delivered to _all_ children (not just the one that had installed a signal handler) -- so if you had an external method that popen'd another program, when the SIGCHLD came in, it would kill the mainloop. The signals

Re: [Zope] help with rpms on RedHat6.2

2000-05-19 Thread Chris McDonough
Peter, A step-by-step guide to installing Zope is available at http://www.zope.org/Members/mcdonc/HowTos/zopeinstall/ZOPE-INSTALL-HOWTO Peter Halliday wrote: I am developer who really loves python, and want to start using it to develop my web applications. I run Apache 1.3 on a Red Hat 6.2

Re: [Zope] SiteAccess smashes 'REQUEST.resolve_url(...)' in DTML ?

2000-05-19 Thread Martin Grönemeyer
i have some strange problmes by using the "REQUEST.resolve_url('http://mydomain/...')" in DTML if SiteAccess is active. I have also some Sites in use without SiteAccess and no problems with the above method. Tell me more about the problem, please. SiteAccess replaces REQUEST.traverse, which

Re: [Zope] Representing rows from a ZSQL method

2000-05-19 Thread J. Atwood
Good and bad news.. There is no real "product" to do this.. but it is not at all hard to do with Zope tools.. For example: -Displaying an order on the web with the order header (consisting of the client name, address, ZIP, etc.) and the order lines with the products to purchase. This is a

[Zope] Zope SQL Database Connection

2000-05-19 Thread joel grimes
Beginner Question I'm trying to add a database connection to a site (my first one). I tried adding a SQL Method and am told I need to add a Zope Database Connection. I can't find that in the list of available objects. Can someone direct me to a resource that explains how? It's not

Re: [Zope] Fw:

2000-05-19 Thread R. David Murray
On Fri, 19 May 2000, Tom Scheidt wrote: Do you know if I can limit the id to the last 3 letters, rather than the first? My images have _xl, _l etc. on the end. [...] ul dtml-in "tester.fileValues()" dtml-if "type=='image/jpeg'" dtml-if "id[0:3]=='tn_'" img

Re: [Zope] SiteAccess smashes 'REQUEST.resolve_url(...)' in DTML ?

2000-05-19 Thread Evan Simpson
- Original Message - From: Martin Grönemeyer [EMAIL PROTECTED] dtml-with "REQUEST.resolve_url('http://mydomain/home/index_html')" dtml-var title /dtml-with throws Error Type: ValueError Error Value: Different namespace. REQUEST.resolve_url requires that the URL you pass to it

Re: [Zope] Local File System

2000-05-19 Thread Jonothan Farr
I'm just getting started, but managed to use the following to display only JPG's, and then only ones starting with "tn_" (my thumbnails): There's an easier way. =) ul dtml-in "tester.fileIds(spec='tn_*.jpg')" img src="tester/dtml-var sequence-item" /dtml-in /ul --jfarr "Perl is