[Zope] zdb (was: error with simple python script loop)

2006-11-29 Thread Maurits van Rees
Chris Withers, on 2006-11-28: Paul Winkler wrote: I still prefer zdb, because you can actually see and step through the script code. http://www.simplistix.co.uk/software/zope/zdb Do you mean you can put this in a .cpy file: from Products.zdb import set_trace set_trace() and then you can

Re: [Zope] zdb

2006-11-29 Thread Chris Withers
Maurits van Rees wrote: Chris Withers, on 2006-11-28: Paul Winkler wrote: I still prefer zdb, because you can actually see and step through the script code. http://www.simplistix.co.uk/software/zope/zdb Do you mean you can put this in a .cpy file: If you go back in the thread, you'll see I

[Zope] Re: a question about aq_base

2006-11-29 Thread Max M
Dieter Maurer skrev: Yuri wrote at 2006-11-28 14:23 +0100: here: http://docs.neuroinf.de/programming-plone/ate we can read: obj = brain.getObject().aq_base why .aq_base and not only brain.getObject()? :) Usually, it is a bad idea to use aq_base in Zope applications You should

[Zope] Zope/Plone Form Question

2006-11-29 Thread Christopher A. Nethery
Hello all, I have created: - a Controller Page Template - a Controller Validator script and, - a Controller Python script I am trying to create a form whose values are used by a script to: - query a separate reporting system - generate a .pdf

[Zope] Nuked Installations! Problem w/ Rebuild!

2006-11-29 Thread Nancy Donnelly
102Hi; I just went to copy my main HD on my server to my new 1/2 teraflop HD and it wiped out the zopecltsockets and the var directories! Luckly I have backups of the Data.fs that are recent. So, I'm rebuilding with Z29, but when I go to crank up an instance with runzope, I get this: Traceback

[Zope] Permission Denied...New Build

2006-11-29 Thread Nancy Donnelly
79797975Hi; After nuking my Zope instances by trying to copy my main HD over to my new one, I'm rebuilding with backups. But I'm having a problem. I built Z29 from source. I created an instance, specified the path, nancy as the user and a p/w. When I go to runzope, as root or as nancy, I get

[Zope] invalid id items

2006-11-29 Thread Jens-Erik Hansen
Hi! I would like to use boa constructor for zope (zope 2.9.4-final) debugging. In boa you can define a zope connection to inteact with the zope server. Starting a boa zope connection boa creates a zoa folder in the zope root containing a couple of objects. Apparently boa also tries to create

Re: [Zope] invalid id items

2006-11-29 Thread Andreas Jung
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 - --On 29. November 2006 18:28:39 +0100 Jens-Erik Hansen [EMAIL PROTECTED] wrote: Hi! I would like to use boa constructor for zope (zope 2.9.4-final) debugging. In boa you can define a zope connection to inteact with the zope server.

Re: [Zope] Nuked Installations! Problem w/ Rebuild!

2006-11-29 Thread robert rottermann
you probably have to reinstall (rebuild) zope. i *assume* that your zope is not using the python it was built with. robert Nancy Donnelly schrieb: 102 Hi; I just went to copy my main HD on my server to my new 1/2 teraflop HD and it wiped out the zopecltsockets and the var directories! Luckly

[Zope] tal loop to render table

2006-11-29 Thread Dennis Schulz
I would like to build a tal loop that renders a list of elements (widgets in my case) in a table. (for example I have a list of 9 items, then it renders a table: five rows with 2,2,2,2,1 items) the table has 2 columns, so i would need to open and close the table row every second item. I tried

Re: [Zope] tal loop to render table

2006-11-29 Thread Andreas Jung
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 - --On 29. November 2006 19:54:34 +0100 Dennis Schulz [EMAIL PROTECTED] wrote: I would like to build a tal loop that renders a list of elements (widgets in my case) in a table. (for example I have a list of 9 items, then it renders a table:

Re: [Zope] Permission Denied...New Build

2006-11-29 Thread robert rottermann
this lock was maybe created by root. (when zope started from /etc/init.d) if so you have to delete it as root. and of course your efective user defined (in /usr/local/zope/2012/etc/zope.conf) must be set to somebody that has write permission in /usr/local/zope/2012/var robert Nancy Donnelly

Re: [Zope] tal loop to render table

2006-11-29 Thread Alexis Roda
En/na Dennis Schulz ha escrit: I would like to build a tal loop that renders a list of elements (widgets in my case) in a table. (for example I have a list of 9 items, then it renders a table: five rows with 2,2,2,2,1 items) the table has 2 columns, so i would need to open and close the table

[Zope] My Sad Tale Of Woe

2006-11-29 Thread Nancy Donnelly
757575Hi; Is anybody out there reading this list? Third question today, no responses, and boy am I in trouble. I went to backup my server's working HD on my new .5 teraflop HD and for some reason that wiped out the /var dirs in my Zope instances. I have backups of the Data.fs that aren't too

Re: [Zope] Zope/Plone Form Question

2006-11-29 Thread Andreas Jung
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 - --On 29. November 2006 09:40:40 -0500 Christopher A. Nethery [EMAIL PROTECTED] wrote: Hello all, I have created: - a Controller Page Template - a Controller Validator script and, - a Controller Python

Re: [Zope] My Sad Tale Of Woe

2006-11-29 Thread Jake
Did you build the exact same type of Zope (version, python, etc) with all the products? Have you run the utilities on your ZODB to make sure it is ok? Jake ___ http://www.ZopeZone.com On Wed, November 29, 2006 2:59 pm, Nancy Donnelly said: 757575Hi; Is anybody out there

Re: [Zope] My Sad Tale Of Woe

2006-11-29 Thread Chris McDonough
Put a file named access in your Zope instance home with the content: emergency:123 You should be able to log in as the emergency user at that point and change the admin user's password. - C On Nov 29, 2006, at 2:59 PM, Nancy Donnelly wrote: 757575 Hi; Is anybody out there reading this

Re: [Zope] My Sad Tale Of Woe

2006-11-29 Thread Jonathan
The permission on the Data.fs file does not allow it to be accessed by zope. You need to chown/chgrp Data.fs so that zope can access it (or chmod it). hth Jonathan - Original Message - From: Nancy Donnelly To: zope@zope.org Sent: Wednesday, November 29, 2006 2:59 PM

Re: [Zope] My Sad Tale Of Woe

2006-11-29 Thread Andreas Jung
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 - --On 29. November 2006 14:59:19 -0500 Nancy Donnelly [EMAIL PROTECTED] wrote: 757575Hi; Is anybody out there reading this list? Third question today, no responses, and boy am I in trouble. There is no reason to create three new threads for

Re: [Zope] tal loop to render table

2006-11-29 Thread Tino Wildenhain
Dennis Schulz schrieb: I would like to build a tal loop that renders a list of elements (widgets in my case) in a table. (for example I have a list of 9 items, then it renders a table: five rows with 2,2,2,2,1 items) the table has 2 columns, so i would need to open and close the table row

Re: [Zope] My Sad Tale Of Woe

2006-11-29 Thread Maciej Wisniowski
I have backups of the Data.fs that aren't too old, but for some reason I can't get a working copy of Zope installed! What Zope version you used before? As I see now you're installing 2.9.6. I follow the tar, configure, make, make install, make instance without throwing anything special at

[Zope] Zope newbie.... unicode problem

2006-11-29 Thread Tyler Nally
Greetings all, I'm 100% new to Zope. A complete Zope newbie. I've done web Work for more than a dozen years... just never with Zope. When serving a web page, we get an error that involves the fetching and display of a document to the browser. Evidently, it's choking on some unicode bytes when

Re: [Zope] tal loop to render table

2006-11-29 Thread Tino Wildenhain
Tino Wildenhain schrieb: Dennis Schulz schrieb: I would like to build a tal loop that renders a list of elements (widgets in my case) in a table. (for example I have a list of 9 items, then it renders a table: five rows with 2,2,2,2,1 items) the table has 2 columns, so i would need to open and

Re: [Zope] Re: a question about aq_base

2006-11-29 Thread Dieter Maurer
Max M wrote at 2006-11-29 12:53 +0100: Dieter Maurer skrev: Yuri wrote at 2006-11-28 14:23 +0100: here: http://docs.neuroinf.de/programming-plone/ate we can read: obj = brain.getObject().aq_base why .aq_base and not only brain.getObject()? :) Usually, it is a bad idea to use

Re: [Zope] Permission Denied...New Build

2006-11-29 Thread Dieter Maurer
Nancy Donnelly wrote at 2006-11-29 08:17 -0800: ... File /usr/local/src/Zope-2.9.6-final/lib/python/ZODB/lock_file.py, line 60, in __init__ self._fp = open(path, 'w+') IOError: [Errno 13] Permission denied: '/usr/local/zope/2012/var/Data.fs.lock' Most Python/Zope error message are quite

Re: [Zope] Permission Denied...New Build

2006-11-29 Thread Jonathan
- Original Message - From: Dieter Maurer [EMAIL PROTECTED] To: Nancy Donnelly [EMAIL PROTECTED] Cc: zope@zope.org Sent: Wednesday, November 29, 2006 4:57 PM Subject: Re: [Zope] Permission Denied...New Build Nancy Donnelly wrote at 2006-11-29 08:17 -0800: ... File

Re: [Zope] My Sad Tale Of Woe

2006-11-29 Thread Nancy Donnelly
108 - Original Message From: Maciej Wisniowski [EMAIL PROTECTED] To: Nancy Donnelly [EMAIL PROTECTED] Cc: zope@zope.org Sent: Wednesday, November 29, 2006 4:38:23 PM Subject: Re: [Zope] My Sad Tale Of Woe I prefer: as root: configure --prefix=/opt/Zope/2.9.6, make, make install as

[Zope] How to get the type of an object by dtml

2006-11-29 Thread Allen Huang
I want to do different operation to different object groups that I created my adding new products. But before I could do that I need to determine what the object I'm working with. Could anyone help me.. how do I use DTML to return the type of the object I'm currently working with?

Re: [Zope] How to get the type of an object by dtml

2006-11-29 Thread Andreas Jung
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 - --On 29. November 2006 23:25:35 -0800 Allen Huang [EMAIL PROTECTED] wrote: I want to do different operation to different object groups that I created my adding new products. But before I could do that I need to determine what the object I'm

[Zope-dev] Zope Tests: 8 OK, 1 Failed

2006-11-29 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list. Period Tue Nov 28 12:00:00 2006 UTC to Wed Nov 29 12:00:00 2006 UTC. There were 9 messages: 9 from Zope Unit Tests. Test failures - Subject: FAILED (failures=2) : Zope-2.8 Python-2.4.4 : Linux From: Zope Unit Tests Date: Tue Nov 28