[Zope] Recreating catalog contents

2006-07-17 Thread Sinang, Danny
Hello, Am using Zope 2.7.6-final. We accidentally clicked on the "Clear Catalog" button and all the catalog contents were zapped. However, the folder containing the said catalog still has the information we need. We can still list down the once-cataloged list of workflow processes

Re: [Zope] Recreating catalog contents

2006-07-17 Thread Andreas Jung
--On 17. Juli 2006 16:51:06 +0800 Sinang, Danny [EMAIL PROTECTED] wrote: Hello, Am using Zope 2.7.6-final. We accidentally clicked on the Clear Catalog button and all the catalog contents were zapped. However, the folder containing the said catalog still has the information we need. We

RE: [Zope] Recreating catalog contents

2006-07-17 Thread Sinang, Danny
Already tried, but we're getting multiple-undo errors. -Original Message- From: Andreas Jung [mailto:[EMAIL PROTECTED] Sent: Monday, July 17, 2006 4:55 PM To: Sinang, Danny; zope@zope.org Subject: Re: [Zope] Recreating catalog contents --On 17. Juli 2006 16:51:06 +0800 Sinang, Danny

RE: [Zope] Recreating catalog contents

2006-07-17 Thread Andreas Jung
Then use the Find tab. -aj --On 17. Juli 2006 16:57:18 +0800 Sinang, Danny [EMAIL PROTECTED] wrote: Already tried, but we're getting multiple-undo errors. -Original Message- From: Andreas Jung [mailto:[EMAIL PROTECTED] Sent: Monday, July 17, 2006 4:55 PM To: Sinang, Danny;

Re: [Zope] question on simple_send in MailHost

2006-07-17 Thread knitti
On 7/17/06, John Schinnerer [EMAIL PROTECTED] wrote: The Zope (2.7.5) API docs for MailHost show this for simple_send: -- simple_send(self, mto, mfrom, subject, body): Sends a message. Only To:, From: and Subject: headers can be set. The arguments are: mto A

Re: [Zope] question on simple_send in MailHost

2006-07-17 Thread knitti
i'd like to mention that I didn't test that code --knitti ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce

Re: [Zope] question on simple_send in MailHost

2006-07-17 Thread Andreas Jung
Put this in the bugtracker...otherwise it will be lost. -aj --On 17. Juli 2006 11:29:07 +0200 knitti [EMAIL PROTECTED] wrote: On 7/17/06, John Schinnerer [EMAIL PROTECTED] wrote: The Zope (2.7.5) API docs for MailHost show this for simple_send: -- simple_send(self, mto, mfrom,

Re: [Zope] question on simple_send in MailHost

2006-07-17 Thread knitti
On 7/17/06, Andreas Jung [EMAIL PROTECTED] wrote: Put this in the bugtracker...otherwise it will be lost. will do on one of the next days... --knitti ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts

[Zope] Re: Zope performance experiences

2006-07-17 Thread Nick Davis
Sinang, Danny wrote: Can anyone share their experiences on Zope's performance, what your hardware / Zope configs are, and how you plan to scale ? Danny, Reading this as a user of Plone, which hogs far more resources than Zope, I feel like a C programmer might if they saw someone ask

RE: [Zope] Recreating catalog contents

2006-07-17 Thread Sinang, Danny
It worked. Thanks AJ. -Original Message- From: Andreas Jung [mailto:[EMAIL PROTECTED] Sent: Monday, July 17, 2006 5:03 PM To: Sinang, Danny; Andreas Jung Cc: zope@zope.org Subject: RE: [Zope] Recreating catalog contents Then use the Find tab. -aj --On 17. Juli 2006 16:57:18 +0800

Re: [Zope] question on simple_send in MailHost

2006-07-17 Thread Jonathan
- Original Message - From: John Schinnerer [EMAIL PROTECTED] To: zope@zope.org Sent: Sunday, July 16, 2006 11:49 PM Subject: [Zope] question on simple_send in MailHost Aloha, The Zope (2.7.5) API docs for MailHost show this for simple_send: -- simple_send(self, mto,

[Zope] RE: html2pdf truncating html content

2006-07-17 Thread Smith, Barrett
I'm using html2pdf and it seems to be truncating the content. The html on which html2pdf is: htmlheadtitleNarrative Report/title/headbodyh1PNG/h1!-- PAGE BREAK --h2Narrative: PNG- Challenge Situation/h2!-- PAGE BREAK --h2Narrative: PNG- Key Accomplishments/h2!-- PAGE BREAK --h2Narrative:

RE: [Zope] RE: html2pdf truncating html content

2006-07-17 Thread Smith, Barrett
Refinement of problem statement: The DTML file on which html2pdf is called is populated by a python script which builds and returns html by processing a list of objects in a for loop. The html content which is missing from the pdf is generated inside the for loop. As said before though, the

Re: [Zope] RE: html2pdf truncating html content

2006-07-17 Thread Jonathan
Just a wag (wild assed guess)... in your BODY loop, if d.title is null could you be embedding a 'null' char in the text string, which may cause html2pdf to choke? Jonathan - Original Message - From: Smith, Barrett To: zope@zope.org Sent: Monday, July 17, 2006 9:30 AM

Re: [Zope] RE: html2pdf truncating html content

2006-07-17 Thread Jonathan
some more wags: 1) remove the html comments from the generated html code (ie. get rid of the !-- PAGE BREAK -- tags) 2) remove the body loop and hard code in a 1 liner insteadeg. body +='some new text' and see what happens 3) where are the html and /html tags added into the html code you

RE: [Zope] RE: html2pdf truncating html content

2006-07-17 Thread Smith, Barrett
Thanks, Jonathan, but no joy. Testing for the value of of d.title before writing it doesn't change the output and even a hardcoded body+="text goes here" just inside the for loop doesn't get printed. Barrett From: Jonathan [mailto:[EMAIL PROTECTED] Sent: Monday, July 17, 2006 10:25 AMTo:

[Zope] Access error with manage_copyObjects / manage_pasteObjects with proxy roles

2006-07-17 Thread AnThu Nguyen
Hi, I'm getting the following error when I try to run a script via a non-manager proxy role (running the script as a manager works fine): *Error Type: Unauthorized* *Error Value: You are not allowed to access 'manage_copyObjects' in this context* *I'm using v2.8.1*, and there is no

Re: [Zope] Access error with manage_copyObjects / manage_pasteObjects with proxy roles

2006-07-17 Thread Jonathan
- Original Message - From: AnThu Nguyen [EMAIL PROTECTED] To: zope@zope.org Sent: Monday, July 17, 2006 11:45 AM Subject: [Zope] Access error with manage_copyObjects / manage_pasteObjects with proxy roles Hi, I'm getting the following error when I try to run a script via a

Re: [Zope] Access error with manage_copyObjects / manage_pasteObjects with proxy roles

2006-07-17 Thread AnThu Nguyen
Thanks for the instructions Jonathan. The user does have Copy or Move permissions from /Products/ on down. Here's the traceback: Traceback (innermost last): Module ZPublisher.Publish, line 113, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 40, in

RE: [Zope] RE: html2pdf truncating html content

2006-07-17 Thread Smith, Barrett
Found the problem: context was changing. When called from html2pdf, the parent object was different from when the dtml was called raw. From: Jonathan [mailto:[EMAIL PROTECTED] Sent: Monday, July 17, 2006 10:52 AMTo: Smith, Barrett; zope@zope.orgSubject: Re: [Zope] RE: html2pdf truncating

[Zope] ZSQL Method Question

2006-07-17 Thread Benjamin Menking
New to python/Zope, old-timer on PHP I'm using MySQL and a ZSQL method to insert data into the database. ex: insert into org (org_name, org_phone) values ('x', 'y') What I'm trying to figure out is that org_id (also part of the org table, but not specified in the sql statement) is an

Re: [Zope] Access error with manage_copyObjects / manage_pasteObjects with proxy roles

2006-07-17 Thread Jonathan
- Original Message - From: AnThu Nguyen [EMAIL PROTECTED] To: Jonathan [EMAIL PROTECTED]; zope@zope.org Sent: Monday, July 17, 2006 12:21 PM Subject: Re: [Zope] Access error with manage_copyObjects / manage_pasteObjects with proxy roles Thanks for the instructions Jonathan. The

Re: [Zope] ZSQL Method Question

2006-07-17 Thread Jonathan
when you do an insert with a ZSQL method you do not get back any info from mysql, you need to do a subsequent search to get 'autogenerated' columns. So do your insert, then do an ZSQL search. The search returns a 'Results' object which has several methods you can use to get at the search

Re: [Zope] Access error with manage_copyObjects / manage_pasteObjects with proxy roles

2006-07-17 Thread AnThu Nguyen
Hi Jonathan, Can you give some pointers on how to read old object / create new object? I have a File-type ZClass and can easily create a new one using an upload form. But how do I read, then pass to manage_add? I've searched the mail archives and can only find references to reading the

[Zope] Pierugo Massolo/IT/ITC/ALSTOM is out of the office.

2006-07-17 Thread pierugo . massolo
I will be out of the office starting 17/07/2006 and will not return until 31/07/2006. I will respond to your message when I return. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding!

[Zope-Checkins] SVN: Zope/branches/2.10/ - Fix usage of urljoin in webdav.davcmds

2006-07-17 Thread Sidnei da Silva
Log message for revision 69164: - Fix usage of urljoin in webdav.davcmds Changed: U Zope/branches/2.10/doc/CHANGES.txt U Zope/branches/2.10/lib/python/webdav/common.py U Zope/branches/2.10/lib/python/webdav/davcmds.py -=- Modified: Zope/branches/2.10/doc/CHANGES.txt

[Zope-Checkins] SVN: Zope/trunk/doc/CHANGES.txt - Fix usage of urljoin in webdav.davcmds

2006-07-17 Thread Sidnei da Silva
Log message for revision 69165: - Fix usage of urljoin in webdav.davcmds Changed: U Zope/trunk/doc/CHANGES.txt -=- Modified: Zope/trunk/doc/CHANGES.txt === --- Zope/trunk/doc/CHANGES.txt 2006-07-17 23:34:32 UTC (rev

[Zope-dev] port number for HTTPServer

2006-07-17 Thread Miles Waller
Hi, I am trying to find out the port number for the HTTP service running in a zope instance. I tried using socket_map as used in the Control_Panel interface to report on running network services, but abandoned this because I need to get the same information when running in a debug instance

[Zope-dev] Re: port number for HTTPServer

2006-07-17 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Miles Waller wrote: Hi, I am trying to find out the port number for the HTTP service running in a zope instance. I tried using socket_map as used in the Control_Panel interface to report on running network services, but abandoned this because

[Zope-dev] Should PageTemplate._text be a unicode or an encoded string in Zope 2.9.3?

2006-07-17 Thread Chris Withers
The subject line says it all really ;-) I've had problems when it's an encoded string, but that seems to be what is stored when you save a ZPT via the ZMI or WebDAV... Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk

Re: [Zope-dev] Should PageTemplate._text be a unicode or an encoded string in Zope 2.9.3?

2006-07-17 Thread Andreas Jung
--On 17. Juli 2006 16:32:08 +0100 Chris Withers [EMAIL PROTECTED] wrote: The subject line says it all really ;-) I've had problems when it's an encoded string, but that seems to be what is stored when you save a ZPT via the ZMI or WebDAV... ZPT in pre-Zope 2.10 knows nothing about

Re: [Zope-dev] Should PageTemplate._text be a unicode or an encoded string in Zope 2.9.3?

2006-07-17 Thread Chris Withers
Andreas Jung wrote: I've had problems when it's an encoded string, but that seems to be what is stored when you save a ZPT via the ZMI or WebDAV... ZPT in pre-Zope 2.10 knows nothing about unicode...it can be anything :-) And what about 2.10? FWIW, this seems to be problematic due to Zope

Re: [Zope-dev] Should PageTemplate._text be a unicode or an encoded string in Zope 2.9.3?

2006-07-17 Thread Tino Wildenhain
Chris Withers wrote: Andreas Jung wrote: I've had problems when it's an encoded string, but that seems to be what is stored when you save a ZPT via the ZMI or WebDAV... ZPT in pre-Zope 2.10 knows nothing about unicode...it can be anything :-) And what about 2.10? FWIW, this seems to be

Re: [Zope-dev] Should PageTemplate._text be a unicode or an encoded string in Zope 2.9.3?

2006-07-17 Thread Andreas Jung
--On 17. Juli 2006 16:55:42 +0100 Chris Withers [EMAIL PROTECTED] wrote: Andreas Jung wrote: I've had problems when it's an encoded string, but that seems to be what is stored when you save a ZPT via the ZMI or WebDAV... ZPT in pre-Zope 2.10 knows nothing about unicode...it can be

Re: [Zope-dev] Should PageTemplate._text be a unicode or an encoded string in Zope 2.9.3?

2006-07-17 Thread Chris Withers
Tino Wildenhain wrote: This would be my next question too regarding the management_page_charset cleanup I'm currently playing with. My vote would be to store unicode where possible - so you dont screw up everything when you change default_zpublisher_encoding in zope.conf. Yeah, unicode is

Re: [Zope-dev] Should PageTemplate._text be a unicode or an encoded string in Zope 2.9.3?

2006-07-17 Thread Chris Withers
Andreas Jung wrote: Zope 2.10 comes with the ZPT implementation of Zope 3 which works nicely with unicode strings. However the 2.10 won't enforce the use of unicode strings for backward compatibility. However (at least) the ZopePageTemplate class constructor has a flag 'strict' to enforce

Re: [Zope-dev] Should PageTemplate._text be a unicode or an encoded string in Zope 2.9.3?

2006-07-17 Thread Andreas Jung
--On 17. Juli 2006 17:11:54 +0100 Chris Withers [EMAIL PROTECTED] wrote: Andreas Jung wrote: Zope 2.10 comes with the ZPT implementation of Zope 3 which works nicely with unicode strings. However the 2.10 won't enforce the use of unicode strings for backward compatibility. However (at

Re: [Zope-dev] Should PageTemplate._text be a unicode or an encoded string in Zope 2.9.3?

2006-07-17 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 17 Jul 2006, at 12:24, Andreas Jung wrote: What about loading FS ZPT's and things like CMF's FSZPT? Ask Tres or Jens :-) CMFCore/FSPageTemplate does not do anything special, it defers to the PageTemplate implementation. jens

Re: [Zope-dev] Should PageTemplate._text be a unicode or an encoded string in Zope 2.9.3?

2006-07-17 Thread Tino Wildenhain
Andreas Jung wrote: --On 17. Juli 2006 17:11:54 +0100 Chris Withers [EMAIL PROTECTED] wrote: Andreas Jung wrote: Zope 2.10 comes with the ZPT implementation of Zope 3 which works nicely with unicode strings. However the 2.10 won't enforce the use of unicode strings for backward

[Zope-dev] buildbot failure in Zope trunk 2.4 Windows 2000 zc-bbwin6

2006-07-17 Thread buildbot
The Buildbot has detected a failed build of Zope trunk 2.4 Windows 2000 zc-bbwin6. Buildbot URL: http://buildbot.zope.org/ Build Reason: changes Build Source Stamp: 6657 Blamelist: adamg,alecm,andreasjung,dobe,fdrake,jim,poster,sidnei,tseaver BUILD FAILED: failed compile sincerely, -The

[Zope-dev] buildbot failure in Zope trunk 2.4 Linux zc-buildbot

2006-07-17 Thread buildbot
The Buildbot has detected a failed build of Zope trunk 2.4 Linux zc-buildbot. Buildbot URL: http://buildbot.zope.org/ Build Reason: changes Build Source Stamp: 6657 Blamelist: adamg,alecm,andreasjung,dobe,fdrake,jim,poster,sidnei,tseaver BUILD FAILED: failed test sincerely, -The Buildbot