Re: [Zope] Getting Zope code to output to event.log

2009-08-10 Thread Ken Winter
Andrew Chris ~ Thanks, but it still doesn't work for me. See details of what happened when I tried each of your suggestions below. ~ Ken -Original Message- From: Andrew Milton [mailto:a...@theinternet.com.au] Sent: Wednesday, August 05, 2009 6:47 PM To: Ken Winter Cc: 'Andrew

Re: [Zope] Getting Zope code to output to event.log

2009-08-10 Thread Ken Winter
that the .py files here are not the ones being compiled/executed? ~ Tx Ken -Original Message- From: Andrew Milton [mailto:a...@theinternet.com.au] Sent: Monday, August 10, 2009 1:09 PM To: Ken Winter Cc: 'Zope List' Subject: Re: [Zope] Getting Zope code to output to event.log

Re: [Zope] Getting Zope code to output to event.log

2009-08-10 Thread Ken Winter
/instance3/Zope-2.9.8-final.instance And as soon as I started putting logger lines into the ZOPE_HOME code, they came out fine! ~ Thanks so much! ~ Ken -Original Message- From: Andrew Milton [mailto:a...@theinternet.com.au] Sent: Monday, August 10, 2009 1:34 PM To: Ken Winter Cc: 'Andrew

[Zope] Getting Zope code to output to event.log

2009-08-05 Thread Ken Winter
To debug my code in my Zope/Plone site, I sometimes need to put logger lines into Zope/Plone code, in order to trace my way through an error traceback. I can do this easily with Plone code in the Plone Products folder: Just put in the logger line, restart Zope, run my tests, and the output

Re: [Zope] Getting Zope code to output to event.log

2009-08-05 Thread Ken Winter
-Original Message- From: Andrew Milton [mailto:a...@theinternet.com.au] Sent: Wednesday, August 05, 2009 3:49 PM To: Ken Winter Cc: 'Zope List' Subject: Re: [Zope] Getting Zope code to output to event.log +---[ Ken Winter ]-- | To debug my code in my

[Zope] Can't start Zope

2009-03-10 Thread Ken Winter
I have done something to my Zope instance that has prevented Zope from starting (after many years of working fine). Can you help me find a way out? Here's the command and the results: dhatoff...@05 /usr/local/zope/instance3/bin # ./zopectl start

[Zope] A new event.log every time

2008-11-08 Thread Ken Winter
Is there a way to configure Zope so that, every time it restarts, it deletes its old event.log and creates a new one? ~ TIA ~ Ken ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding!

[Zope-DB] A new event.log on every restart of Zope

2008-07-15 Thread Ken Winter
It would accelerate my Zope debugging cycle to have a new event.log file automatically started every time I restart Zope, with the old file preserved. It seems like a simple way to do this would be to modify the zope.conf eventlog entry, which currently reads like this. eventlog

[Zope] Accessing Zope REQUEST data from a Python module

2007-12-05 Thread Ken Winter
I'm customizing a product. To do what I'm trying to do, I need to be able to access REQUEST data from within a Python module (not a script; a .py file containing class and method definitions). From within a script, a line like req = context.REQUEST does the job just fine. But when I

[Zope-DB] Seeking help with Accessing Zope from PostgreSQL

2007-11-12 Thread Ken Winter
I'm trying to implement the scheme for Accessing Zope from PostgreSQL that is described in http://zope.org/Members/pupq/zope_in_pg. I'm trying to implement it in a Plone installation in a WinXP environment (Plone 2.5.2, Zope 2.9.6, Python 2.4.3, win32, PostgreSQL 8.1.10). I have changed the

RE: [Zope] Problems with my ZMI

2007-10-02 Thread Ken Winter
the cause, so I don't know when/if it may recur. ~ Ken -Original Message- From: Dieter Maurer [mailto:[EMAIL PROTECTED] Sent: Saturday, September 29, 2007 1:33 PM To: Ken Winter Cc: 'Zope List' Subject: RE: [Zope] Problems with my ZMI Ken Winter wrote at 2007-9-28 12:47 -0400: Sorry

[Zope] Problems with my ZMI

2007-09-27 Thread Ken Winter
A year or so after installing this installation of Zope, I'm suddenly having trouble opening Python Scripts and Page Templates for editing in my ZMI. (Zope 2.9.6-final, python 2.4.3, win32.) Specifically: 1. When I click on the name of a script, I get this message: Site error This

RE: [Zope-DB] Using dtml-vars in ZSQL methods?

2007-06-18 Thread Ken Winter
-Original Message- From: Maciej Wisniowski [mailto:[EMAIL PROTECTED] Sent: Monday, June 18, 2007 1:34 AM To: Ken Winter Cc: 'Zope-DB List' Subject: Re: [Zope-DB] Using dtml-vars in ZSQL methods? I tried to invoke the query method of my adapter (which is named dhatabase

RE: [Zope-DB] Using dtml-vars in ZSQL methods?

2007-06-18 Thread Ken Winter
Thanks Charlie Jim ~ SQL injection is a new one on me, and I'm glad to learn about it now (painlessly) rather than later (painfully). ~ Ken -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, June 18, 2007 10:03 AM To: Ken Winter Cc: 'Zope-DB List

RE: [Zope-DB] Using dtml-vars in ZSQL methods?

2007-06-17 Thread Ken Winter
-Original Message- From: Charlie Clark [mailto:[EMAIL PROTECTED] Sent: Saturday, June 16, 2007 6:24 PM To: Ken Winter; 'Zope-DB List' Subject: Re: [Zope-DB] Using dtml-vars in ZSQL methods? ... FWIW you might want to call the query or execute methods directly on the DA connection

RE: [Zope-DB] Using dtml-vars in ZSQL methods?

2007-06-16 Thread Ken Winter
I have done. ~ Thanks ~ Ken -Original Message- From: Jaroslav Lukesh [mailto:[EMAIL PROTECTED] Sent: Saturday, June 16, 2007 1:41 AM To: Ken Winter; 'Zope-DB List' Subject: Re: [Zope-DB] Using dtml-vars in ZSQL methods? It is just because 'delete_this' is a string, not the list

RE: [Zope-DB] Using dtml-vars in ZSQL methods?

2007-06-16 Thread Ken Winter
PROTECTED] Sent: Saturday, June 16, 2007 3:27 PM To: Ken Winter; 'Zope-DB List' Subject: RE: [Zope-DB] Using dtml-vars in ZSQL methods? ... Second..it would be *really* helpful to see the full traceback instead of just *Keyerror*. It's somewhat boring to ask every time for it :-) --On 16. Juni

RE: [Zope-DB] Using dtml-vars in ZSQL methods?

2007-06-16 Thread Ken Winter
Charlie ~ I tried several experiments based on your suggestion. See results inserted below. ~ Thanks, Ken -Original Message- From: Charlie Clark [mailto:[EMAIL PROTECTED] Sent: Saturday, June 16, 2007 3:54 PM To: Ken Winter; 'Zope-DB List' Subject: Re: [Zope-DB] Using dtml-vars

[Zope-DB] Using dtml-vars in ZSQL methods?

2007-06-15 Thread Ken Winter
Here's the definition of a ZSQL method, people_delete_by_id.zsql: dtml-comment title: Method to delete People by ids given in a comma-separated list connection_id: my_database arguments: id_list /dtml-comment delete from person where person_id in (dtml-var id_list) Here's the

RE: [Zope-DB] Two actions in one ZSQL method = one transaction?

2007-06-14 Thread Ken Winter
-Original Message- From: Andreas Jung [mailto:[EMAIL PROTECTED] Sent: Thursday, June 14, 2007 12:54 AM To: Ken Winter; 'Zope-DB List' Subject: Re: [Zope-DB] Two actions in one ZSQL method = one transaction? ... Does a ZSQL method initiate a database transaction, so that no other

RE: [Zope-DB] Two actions in one ZSQL method = one transaction?

2007-06-14 Thread Ken Winter
Great! Thanks again. -Original Message- From: Andreas Jung [mailto:[EMAIL PROTECTED] Sent: Thursday, June 14, 2007 10:48 AM To: Ken Winter; 'Andreas Jung'; 'Zope-DB List' Subject: RE: [Zope-DB] Two actions in one ZSQL method = one transaction? --On 14. Juni 2007 10:41:46 -0400

[Zope-DB] Two actions in one ZSQL method = one transaction?

2007-06-13 Thread Ken Winter
I have a question (stated in three different ways) about the following ZSQL method: 1. Will it *always* return the person_id of the person that it just inserted? 2. Will it do this even if another user inserted another person just in between the two SQL actions in this ZSQL method? 3. In

RE: [Zope-DB] Seeking a suitable ZpsycopgDA

2007-05-01 Thread Ken Winter
Correction: What I'm looking for seems to be called ZpsycopgDA, not just psycopgDA. Anyway, I still haven't found it for the environment described below. Pls advise. ~ TIAA ~ Ken -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ken Winter Sent

[Zope] External Editor Doesn't Work with Firefox

2007-04-30 Thread Ken Winter
I have External Editor (zopeedit-win32-0.9.3.exe http://www.plope.com/software/ExternalEditor/zopeedit-win32-0.9.3.exe ) installed on my WinXP machine. It works fine with my IE6 browser. But with Firefox 2.0, it doesn't. Specifically, with the ZMI running in Firefox, what happens is:

[Zope-DB] Seeking a suitable psycopgDA

2007-04-30 Thread Ken Winter
I'm looking for the right version of psycopgDA for the following setup: Windows XP PostgreSQL 8.0 Zope 2.9.6-final Plone 2.5.2 (don't know if that matters) Python 2.4.3 Psycopg = win-psycopg24-pg8.0.zip downloaded from http://stickpeople.com/projects/python/win-psycopg/ MX Toolkit =

[Zope] External Editor doesn't work with Firefox

2007-04-27 Thread Ken Winter
I have External Editor (zopeedit-win32-0.9.3.exe http://www.plope.com/software/ExternalEditor/zopeedit-win32-0.9.3.exe ) installed on my WinXP machine. It works fine with my IE6 browser. But with Firefox 2.0, it doesn't. Specifically, with the ZMI running in Firefox, what happens is:

RE: [Zope] What's the tal expression to test for whether someone is logged in?

2007-04-01 Thread Ken Winter
01, 2007 1:58 AM To: Ken Winter Cc: Zope List Subject: Re: [Zope] What's the tal expression to test for whether someone is logged in? +---[ Ken Winter ]-- | In other words, what should I substitute for X in the following to make this | division appear only when

[Zope] What's the tal expression to test for whether someone is logged in?

2007-03-31 Thread Ken Winter
In other words, what should I substitute for X in the following to make this division appear only when a user is logged in? : div tal:condition=X . /div ~ TIA ~ Ken ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope

RE: [Zope] Re: FW: Problem Starting Zope after Installation

2007-01-31 Thread Ken Winter
Eric ~ Right you are! A ThinkPad R52. So I removed those environment variables, restarted the machine, invoked Zope, and. still got the same error, No module named ImplPython. So I'm wondering: 1. Is it possible that you did anything else, anything beyond removing those

RE: [Zope] Re: FW: Problem Starting Zope after Installation

2007-01-31 Thread Ken Winter
- From: Eric Fu [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 31, 2007 7:32 PM To: Ken Winter Subject: Re: [Zope] Re: FW: Problem Starting Zope after Installation Do you have some environment variable called 'PYHTHONIGNORECASE' (or something like that)? Delete it and try to restart zope

RE: [Zope] Re: FW: Problem Starting Zope after Installation

2007-01-23 Thread Ken Winter
: Monday, January 22, 2007 2:53 PM To: zope@zope.org Subject: [Zope] Re: FW: Problem Starting Zope after Installation -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ken Winter wrote: I give up on Zope just because a I can't get over this hurdle. Can anybody offer any tools or resources

RE: [Zope] FW: Problem Starting Zope after Installation

2007-01-22 Thread Ken Winter
- From: Andreas Jung [mailto:[EMAIL PROTECTED] Sent: Saturday, January 20, 2007 10:00 AM To: Ken Winter; 'Andreas Jung'; [EMAIL PROTECTED]; 'Jonathan'; 'Zope List'; 'Gabriel Genellina' Subject: RE: [Zope] FW: Problem Starting Zope after Installation --On 20. Januar 2007 09:56:22

RE: [Zope] FW: Problem Starting Zope after Installation

2007-01-20 Thread Ken Winter
problem, which still persists. ~ Ken -Original Message- From: Andreas Jung [mailto:[EMAIL PROTECTED] Sent: Saturday, January 20, 2007 2:51 AM To: Ken Winter; [EMAIL PROTECTED]; 'Jonathan'; 'Zope List'; 'Gabriel Genellina' Subject: RE: [Zope] FW: Problem Starting Zope after Installation

RE: [Zope] FW: Problem Starting Zope after Installation

2007-01-19 Thread Ken Winter
I forgot to answer one question: the Python I'm using is 2.3.5. (As with Zope, I chose this version to match the version on the server I'm developing for.) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, January 18, 2007 10:19 PM To: Ken Winter

RE: [Zope] FW: Problem Starting Zope after Installation

2007-01-19 Thread Ken Winter
~ Ken -Original Message- From: Andreas Jung [mailto:[EMAIL PROTECTED] Sent: Friday, January 19, 2007 12:06 PM To: Ken Winter; 'Jonathan'; 'Zope List' Subject: RE: [Zope] FW: Problem Starting Zope after Installation --On 19. Januar 2007 12:01:06 -0500 Ken Winter [EMAIL PROTECTED

RE: [Zope] FW: Problem Starting Zope after Installation

2007-01-19 Thread Ken Winter
: Friday, January 19, 2007 12:58 PM To: Ken Winter; 'Jonathan'; 'Zope List' Subject: Re: [Zope] FW: Problem Starting Zope after Installation google is your friend. http://plone.org/documentation/error/importerror-no-module-named- implpython bobb - Original Message - From: Ken

RE: [Zope] FW: Problem Starting Zope after Installation

2007-01-19 Thread Ken Winter
P.S. Attached is a screen shot showing that ImplPython.py and ImplPython.pyc do exist on my machine. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ken Winter Sent: Friday, January 19, 2007 4:54 PM To: [EMAIL PROTECTED]; 'Jonathan'; 'Zope List

RE: [Zope] FW: Problem Starting Zope after Installation

2007-01-18 Thread Ken Winter
, 2007 7:44 PM To: Ken Winter; Zope List Subject: Re: [Zope] FW: Problem Starting Zope after Installation your datetime directory should be named DateTime... Case matters. hth bobb - Original Message - From: Ken Winter mailto:[EMAIL PROTECTED] To: Zope List mailto:zope

RE: [Zope] How to make a ZPT-based form that calls itself? (Part II)

2005-05-19 Thread Ken Winter
-Original Message- From: Lennart Regebro [mailto:[EMAIL PROTECTED] Sent: Thursday, May 19, 2005 4:36 AM To: [EMAIL PROTECTED] Cc: J Cameron Cooper; zope@zope.org Subject: Re: [Zope] How to make a ZPT-based form that calls itself? (Part II) On 5/19/05, Ken Winter [EMAIL PROTECTED

RE: [Zope] How to make a ZPT-based form that calls itself? (Part II)

2005-05-19 Thread Ken Winter
-Original Message- From: Lennart Regebro [mailto:[EMAIL PROTECTED] Sent: Thursday, May 19, 2005 11:07 AM To: [EMAIL PROTECTED] Cc: J Cameron Cooper; zope@zope.org Subject: Re: [Zope] How to make a ZPT-based form that calls itself? (Part II) On 5/19/05, Ken Winter [EMAIL PROTECTED

RE: [Zope] How to make a ZPT-based form that calls itself? (Part II)

2005-05-19 Thread Ken Winter
-Original Message- From: Lennart Regebro [mailto:[EMAIL PROTECTED] Sent: Thursday, May 19, 2005 12:03 PM To: [EMAIL PROTECTED] Cc: J Cameron Cooper; zope@zope.org Subject: Re: [Zope] How to make a ZPT-based form that calls itself? (Part II) What's wrong with this picture?

RE: [Zope] How to make a ZPT-based form that calls itself? (Part II)

2005-05-18 Thread Ken Winter
, 2005 5:52 PM To: [EMAIL PROTECTED] Cc: zope@zope.org Subject: Re: [Zope] How to make a ZPT-based form that calls itself? Ken Winter wrote: -Original Message- From: J Cameron Cooper [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 11, 2005 4:27 PM To: [EMAIL PROTECTED] Cc: zope

[Zope] How to make a ZPT-based form that calls itself?

2005-05-11 Thread Ken Winter
Hi Zopers - I'm trying to make a ZPT-based HTML form that: 1. Displays the records in a MySQL 'Person' table; 2. Offers a field for updating this table (in my simple test example, it accepts the Id of a Person to delete); 3. When you push its 'Submit' button, updates the database; and then 4.

RE: [Zope] How to make a ZPT-based form that calls itself?

2005-05-11 Thread Ken Winter
-Original Message- From: J Cameron Cooper [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 11, 2005 4:27 PM To: [EMAIL PROTECTED] Cc: zope@zope.org Subject: Re: [Zope] How to make a ZPT-based form that calls itself? Ken Winter wrote: Hi Zopers - I'm trying to make a ZPT-based

[Zope] DreamWeaver files - ZPTs: How?

2005-05-09 Thread Ken Winter
Is there any way to configure Zope so that a *.htm file newly created in DW, when uploaded for the first time to Zope, would be created as a ZPT instead of as a DTML document? I know you can do it by naming the file in DW with the *.pt extension. But the trouble with this is,

[Zope] RE: DreamWeaver files - ZPTs: How?

2005-05-09 Thread Ken Winter
-Original Message- From: Tres Seaver [mailto:[EMAIL PROTECTED] Sent: Monday, May 09, 2005 3:23 PM To: [EMAIL PROTECTED] Subject: Re: DreamWeaver files - ZPTs: How? -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ken Winter wrote: Is there any way to configure Zope so