Re: [Zope] Zope2 - pro/contra

2015-03-06 Thread Nico Grubert
I use Zope since around 2001 and I still have some Zope 2 web applications running and they are just rock-solid and easy to update. I have never been convinced by Zope 3 and I have never seen any advantages for using the Zope 3 techniques. The Zope 2 core developers (I think Andreas has worked f

Re: [Zope] Zope Digest, Vol 125, Issue 2

2015-03-06 Thread Nico Grubert
I use Zope since around 2001 and I still have some Zope 2 web applications running and they are just rock-solid and easy to update. I have never been convinced by Zope 3 and I have never seen any advantages for using the Zope 3 techniques. The Zope 2 core developers (I think Andreas has worked f

Re: [Zope] Building a site tree with the ZCatalog

2008-10-22 Thread Nico Grubert
> And how do you think ExtendedPathIndex help with sorting here? > > In this case, some custom sorting would be required in a python method or > view. It's the combination of both the indexes "position" and the "ExtendedPathIndex" which provides a depth parameter that solved my problem. No expe

[Zope] Building a site tree with the ZCatalog

2008-10-21 Thread Nico Grubert
Hi there I use Zope 2.10.5 and I want to create a site tree using the ZCatalog instead of iterating recursive trough the entire object tree. I have the following site structure (all things are folders): - about --- company --- staff - homepages --- phelps --- phonebook --- jobs - resear

Re: [Zope] Zope hangs

2008-10-09 Thread Nico Grubert
> If your tracebacks are reliable, then neither of these entries > should cause "hanging" (apart from this: CPU usage of about 100 percent > does not indicate hanging but some other problem). > > Tracebacks do not need to be reliable. They can be unreliable when the > the "*.pyc/*.pyo" files do n

Re: [Zope] Zope hangs

2008-10-02 Thread Nico Grubert
> import time > T0 = time.time() > conn.simple_bind_s(user_dn, user_pwd) > T1 = time.time() > open('/tmp/timings.log','a').write('%s\n' % (T1-T0)) Thanks, Peter. I tried that and the max value for T1-T0 I got was: 0.162416934967 Regards Nico __

Re: [Zope] Zope hangs

2008-10-02 Thread Nico Grubert
> These entries should not be the one that cause your problems > (they are not computationally expensive). > Do you see other entries as well? Thank you very much for your answer, Dieter. There are 2 entries from in the DeadlockDebugger's output that may block all other threads. Here is the f

Re: [Zope] Zope hangs

2008-09-30 Thread Nico Grubert
> Yes, and you can use the Control_Panel/DebugInfo as well and scroll > down to the Connections table. Out of the 8 threads most of them > should be vacant (ie. None) and if there are some requests logged > there they should in the range of < 1 sec. > If any of them are longer than 1 sec they are e

[Zope] Zope hangs

2008-09-30 Thread Nico Grubert
Hi there in the last days my Zope server seems to hang and the CPU is almost every time at 100 %. I installed DeadlockDebugger and see a lot of these entries: - File "/usr/local/Zope-2.10.5/lib/python/OFS/Traversable.

Re: [Zope] Displaying PIL Images in Zope Templates

2008-09-18 Thread Nico Grubert
> Instead of generating the image on the call to your ZPT you form an src="/some/url/that/makes/my/image?foo=bar&baz=bat"> e.g. in order to > generate the right image. Got it. The magic is not to call the external method by container.createThumbnail() but use absolute URL to the external method.

Re: [Zope] Displaying PIL Images in Zope Templates

2008-09-18 Thread Nico Grubert
> You can't do this > > What you need to do is associate the image with a URL so it gets > generated when the browser processes the tag.. UNLESS it's very small > in which case you can use the src="..." attribute to contain the data. > > So a PIL image should be returned by a script or exter

Re: [Zope] Displaying PIL Images in Zope Templates

2008-09-17 Thread Nico Grubert
> > The renders "". > > How can I show the image? > Call its tag method. > Hi Paul, how is the susi going? ;-) I tried but I get the following error: --- Exception Type TraversalError Exception Value

[Zope] Displaying PIL Images in Zope Templates

2008-09-17 Thread Nico Grubert
Hi there Is it possible to show several PIL.Image.Image instances in a Zope Page without creating a temporary Zope image object? I have an external method that creates a list of PIL.Image.Image instances, e.g. [, ] How can I display all images in a Zope page template? I tried

[Zope] Re: Kein Zugriff mehr auf Zope Root via ZMI (Nico Grubert)

2007-07-03 Thread Nico Grubert
I'm sorry. This message should go to the german DZUG list. The problem is solved. Sorry for the irritation. Nico ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -

[Zope] Kein Zugriff mehr auf Zope Root via ZMI

2007-07-02 Thread Nico Grubert
Hallo zusammen, heute morgen haben mich die Zope Instanzen auf meinem Server etwas überrascht. Ich komme nicht mehr in den Zope Root Ordner via ZMI (http://myzope:8082/manage). In's Control_Panel komme ich noch rein, d.h. http://myzope:8082/Control_Panel/manage klappt ohne Probleme. In eine Pr

Re: [Zope] Zope hangs and Python eats all memory

2007-03-06 Thread Nico Grubert
After I started Zope and make a few SQL queries, the Zope server shuts down with a "Segmentation fault". At the same time there is a log entry on my linux machine in /var/log/messages that reads: Jan 23 10:43:09 smut kernel: python[6231]: segfault at rip 0043c0d7 rsp 000

Re: [Zope] Zope hangs and Python eats all memory

2007-02-08 Thread Nico Grubert
I am running Zope 2.9.6. on a 64-Bit Suse Linux 10.1 machine (9 Gbyte of RAM) with Python 2.4.3. installed. From time to time, Zope hangs and I cannot access it anymore. I tried to use the "Zope DeadlockDebugger" but if my Zope hangs I cannot call the URL "http://myzopesite:8080/manage_debug_thr

[Zope] Re: Zope hangs and Python eats all memory

2007-01-18 Thread Nico Grubert
Have you tried to enable the trace logger in the zope.conf file? Look for the stanza beginning with . You need to have your server in debug-mode. This will produce a trace.log file that can be analyzed with requestprofiler.py. This will give you the offending requests that caused Zope to hang.

[Zope] Re: Zope hangs and Python eats all memory

2007-01-17 Thread Nico Grubert
Then, this is a case where you need debugging on C level, e.g. with "GDB". You need a Python version with debug symbols (those installations that come with the OS distribution usually lack them, you need to build your Python yourself -- and with it your Zope). Then you attach the Zope process

[Zope] Zope hangs and Python eats all memory

2007-01-15 Thread Nico Grubert
Dear list members, I am running Zope 2.9.6. on a 64-Bit Suse Linux 10.1 machine (9 Gbyte of RAM) with Python 2.4.3. installed. From time to time, Zope hangs and I cannot access it anymore. I tried to use the "Zope DeadlockDebugger" but if my Zope hangs I cannot call the URL "http://myzopesite:

[Zope] Accessing a Zclass' method needs authentication of the superuser

2000-10-05 Thread Nico Grubert
hello, i created a zclass "myzclass" inside a product "myprod". inside of the zclass i created a dtml-method "mymethod_html" which can be found by the tab "Methods". in the root folder i have created a dtml-method "gimme_html" conatinintg the following code to access the method "mymethod_html" :

[Zope] new checkbox when adding a zclass in zope 2.2.0

2000-08-08 Thread Nico Grubert
Hello, in zope 2.2.0, when adding a new zclass the management-screen includes a checkbox "Include standard Zope persistent object base classes?". What does exactly this option do ?? I could not find any differences between adding a zclass with selected checkbox and adding a zclass with not-s

Re: [Zope] How to start developing in zope

2000-07-31 Thread Nico Grubert
>Date: Thu, 27 Jul 2000 06:42:39 -0400 (EDT) >From: Firestar <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: [Zope] How to start developing in zope > >Hi, I have read through(and tried out) the tutorials and Guides at Zope.org, >and now eager to port my company's website over to Zope. (The we