[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.

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; zope@

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 co

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 htt

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 whether

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 "Si

Re: [Zope] question on simple_send in MailHost

2006-07-17 Thread Jonathan
- Original Message - From: "John Schinnerer" <[EMAIL PROTECTED]> To: 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, mfrom, subje

[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:   Narrative Reporttitle>head><body><h1>PNGh1><h2>Narrative: PNG- Challenge Situationh2><h2>Narrative: PNG- Key Accomplishmentsh2><h2>Narrative: PNG- Program Performanceh2> <h2>Narr</span> </blockquote><br> <h3><span class=subject><a href="/zope@zope.org/msg24543.html">RE: [Zope] RE: html2pdf truncating html content</a></span></h3> <div class="darkgray font13"> <span class="sender pipe"> <span class=date><a href="/search?l=zope%40zope.org&q=date:20060717&o=newest">2006-07-17</a></span></span> <span class="sender pipe"> <span class=thead><a href="/search?l=zope%40zope.org&q=subject:%22RE%5C%3A+%5C%5BZope%5C%5D+RE%5C%3A+html2pdf+truncating+html+content%22&o=newest">Thread</a></span></span> <span class=name><a href="/search?l=zope%40zope.org&q=from:%22Smith%2C+Barrett%22&o=newest">Smith, Barrett</a></span> </div> <blockquote><span class="msgFragment"> 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, t</span> </blockquote><br> <h3><span class=subject><a href="/zope@zope.org/msg24544.html">Re: [Zope] RE: html2pdf truncating html content</a></span></h3> <div class="darkgray font13"> <span class="sender pipe"> <span class=date><a href="/search?l=zope%40zope.org&q=date:20060717&o=newest">2006-07-17</a></span></span> <span class="sender pipe"> <span class=thead><a href="/search?l=zope%40zope.org&q=subject:%22%5C%5BZope%5C%5D+RE%5C%3A+html2pdf+truncating+html+content%22&o=newest">Thread</a></span></span> <span class=name><a href="/search?l=zope%40zope.org&q=from:%22Jonathan%22&o=newest">Jonathan</a></span> </div> <blockquote><span class="msgFragment"> 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 </span> </blockquote><br> <h3><span class=subject><a href="/zope@zope.org/msg24545.html">Re: [Zope] RE: html2pdf truncating html content</a></span></h3> <div class="darkgray font13"> <span class="sender pipe"> <span class=date><a href="/search?l=zope%40zope.org&q=date:20060717&o=newest">2006-07-17</a></span></span> <span class="sender pipe"> <span class=thead><a href="/search?l=zope%40zope.org&q=subject:%22%5C%5BZope%5C%5D+RE%5C%3A+html2pdf+truncating+html+content%22&o=newest">Thread</a></span></span> <span class=name><a href="/search?l=zope%40zope.org&q=from:%22Jonathan%22&o=newest">Jonathan</a></span> </div> <blockquote><span class="msgFragment"> some more wags:   1) remove the html comments from the generated html code (ie. get rid of the tags) 2) remove the body loop and hard code in a 1 liner instead eg. body +='some new text' and see what happens 3) where are the and tags added into the html code you pass to html2pdf? (they wer</span> </blockquote><br> <h3><span class=subject><a href="/zope@zope.org/msg24546.html">RE: [Zope] RE: html2pdf truncating html content</a></span></h3> <div class="darkgray font13"> <span class="sender pipe"> <span class=date><a href="/search?l=zope%40zope.org&q=date:20060717&o=newest">2006-07-17</a></span></span> <span class="sender pipe"> <span class=thead><a href="/search?l=zope%40zope.org&q=subject:%22RE%5C%3A+%5C%5BZope%5C%5D+RE%5C%3A+html2pdf+truncating+html+content%22&o=newest">Thread</a></span></span> <span class=name><a href="/search?l=zope%40zope.org&q=from:%22Smith%2C+Barrett%22&o=newest">Smith, Barrett</a></span> </div> <blockquote><span class="msgFragment"> 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</span> </blockquote><br> <h3><span class=subject><a href="/zope@zope.org/msg24547.html">[Zope] Access error with "manage_copyObjects / manage_pasteObjects" with proxy roles</a></span></h3> <div class="darkgray font13"> <span class="sender pipe"> <span class=date><a href="/search?l=zope%40zope.org&q=date:20060717&o=newest">2006-07-17</a></span></span> <span class="sender pipe"> <span class=thead><a href="/search?l=zope%40zope.org&q=subject:%22%5C%5BZope%5C%5D+Access+error+with+%5C%22manage_copyObjects+%5C%2F+manage_pasteObjects%5C%22+with+proxy+roles%22&o=newest">Thread</a></span></span> <span class=name><a href="/search?l=zope%40zope.org&q=from:%22AnThu+Nguyen%22&o=newest">AnThu Nguyen</a></span> </div> <blockquote><span class="msgFragment"> 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 tracebac</span> </blockquote><br> <h3><span class=subject><a href="/zope@zope.org/msg24548.html">Re: [Zope] Access error with "manage_copyObjects / manage_pasteObjects" with proxy roles</a></span></h3> <div class="darkgray font13"> <span class="sender pipe"> <span class=date><a href="/search?l=zope%40zope.org&q=date:20060717&o=newest">2006-07-17</a></span></span> <span class="sender pipe"> <span class=thead><a href="/search?l=zope%40zope.org&q=subject:%22%5C%5BZope%5C%5D+Access+error+with+%5C%22manage_copyObjects+%5C%2F%09manage_pasteObjects%5C%22+with+proxy+roles%22&o=newest">Thread</a></span></span> <span class=name><a href="/search?l=zope%40zope.org&q=from:%22Jonathan%22&o=newest">Jonathan</a></span> </div> <blockquote><span class="msgFragment"> - Original Message - From: "AnThu Nguyen" <[EMAIL PROTECTED]> To: 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 non-manager p</span> </blockquote><br> <h3><span class=subject><a href="/zope@zope.org/msg24549.html">Re: [Zope] Access error with "manage_copyObjects / manage_pasteObjects" with proxy roles</a></span></h3> <div class="darkgray font13"> <span class="sender pipe"> <span class=date><a href="/search?l=zope%40zope.org&q=date:20060717&o=newest">2006-07-17</a></span></span> <span class="sender pipe"> <span class=thead><a href="/search?l=zope%40zope.org&q=subject:%22%5C%5BZope%5C%5D+Access+error+with%09%5C%22manage_copyObjects+%5C%2F%09manage_pasteObjects%5C%22+with+proxy+roles%22&o=newest">Thread</a></span></span> <span class=name><a href="/search?l=zope%40zope.org&q=from:%22AnThu+Nguyen%22&o=newest">AnThu Nguyen</a></span> </div> <blockquote><span class="msgFragment"> 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 ca</span> </blockquote><br> <h3><span class=subject><a href="/zope@zope.org/msg24550.html">RE: [Zope] RE: html2pdf truncating html content</a></span></h3> <div class="darkgray font13"> <span class="sender pipe"> <span class=date><a href="/search?l=zope%40zope.org&q=date:20060717&o=newest">2006-07-17</a></span></span> <span class="sender pipe"> <span class=thead><a href="/search?l=zope%40zope.org&q=subject:%22RE%5C%3A+%5C%5BZope%5C%5D+RE%5C%3A+html2pdf+truncating+html+content%22&o=newest">Thread</a></span></span> <span class=name><a href="/search?l=zope%40zope.org&q=from:%22Smith%2C+Barrett%22&o=newest">Smith, Barrett</a></span> </div> <blockquote><span class="msgFragment"> 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</span> </blockquote><br> <h3><span class=subject><a href="/zope@zope.org/msg24551.html">[Zope] ZSQL Method Question</a></span></h3> <div class="darkgray font13"> <span class="sender pipe"> <span class=date><a href="/search?l=zope%40zope.org&q=date:20060717&o=newest">2006-07-17</a></span></span> <span class="sender pipe"> <span class=thead><a href="/search?l=zope%40zope.org&q=subject:%22%5C%5BZope%5C%5D+ZSQL+Method+Question%22&o=newest">Thread</a></span></span> <span class=name><a href="/search?l=zope%40zope.org&q=from:%22Benjamin+Menking%22&o=newest">Benjamin Menking</a></span> </div> <blockquote><span class="msgFragment"> 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 a</span> </blockquote><br> <h3><span class=subject><a href="/zope@zope.org/msg24552.html">Re: [Zope] Access error with "manage_copyObjects / manage_pasteObjects" with proxy roles</a></span></h3> <div class="darkgray font13"> <span class="sender pipe"> <span class=date><a href="/search?l=zope%40zope.org&q=date:20060717&o=newest">2006-07-17</a></span></span> <span class="sender pipe"> <span class=thead><a href="/search?l=zope%40zope.org&q=subject:%22%5C%5BZope%5C%5D+Access+error+with+%5C%22manage_copyObjects%09%5C%2F%09manage_pasteObjects%5C%22+with+proxy+roles%22&o=newest">Thread</a></span></span> <span class=name><a href="/search?l=zope%40zope.org&q=from:%22Jonathan%22&o=newest">Jonathan</a></span> </div> <blockquote><span class="msgFragment"> - Original Message - From: "AnThu Nguyen" <[EMAIL PROTECTED]> To: "Jonathan" <[EMAIL PROTECTED]>; 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 user </span> </blockquote><br> <h3><span class=subject><a href="/zope@zope.org/msg24553.html">Re: [Zope] ZSQL Method Question</a></span></h3> <div class="darkgray font13"> <span class="sender pipe"> <span class=date><a href="/search?l=zope%40zope.org&q=date:20060717&o=newest">2006-07-17</a></span></span> <span class="sender pipe"> <span class=thead><a href="/search?l=zope%40zope.org&q=subject:%22%5C%5BZope%5C%5D+ZSQL+Method+Question%22&o=newest">Thread</a></span></span> <span class=name><a href="/search?l=zope%40zope.org&q=from:%22Jonathan%22&o=newest">Jonathan</a></span> </div> <blockquote><span class="msgFragment"> 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 r</span> </blockquote><br> <h3><span class=subject><a href="/zope@zope.org/msg24554.html">Re: [Zope] Access error with "manage_copyObjects / manage_pasteObjects" with proxy roles</a></span></h3> <div class="darkgray font13"> <span class="sender pipe"> <span class=date><a href="/search?l=zope%40zope.org&q=date:20060717&o=newest">2006-07-17</a></span></span> <span class="sender pipe"> <span class=thead><a href="/search?l=zope%40zope.org&q=subject:%22%5C%5BZope%5C%5D+Access+error+with%09%5C%22manage_copyObjects+%5C%2F%09manage_pasteObjects%5C%22+with+proxy+roles%22&o=newest">Thread</a></span></span> <span class=name><a href="/search?l=zope%40zope.org&q=from:%22AnThu+Nguyen%22&o=newest">AnThu Nguyen</a></span> </div> <blockquote><span class="msgFragment"> 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 uploade</span> </blockquote><br> <h3><span class=subject><a href="/zope@zope.org/msg24555.html">[Zope] Pierugo Massolo/IT/ITC/ALSTOM is out of the office.</a></span></h3> <div class="darkgray font13"> <span class="sender pipe"> <span class=date><a href="/search?l=zope%40zope.org&q=date:20060717&o=newest">2006-07-17</a></span></span> <span class="sender pipe"> <span class=thead><a href="/search?l=zope%40zope.org&q=subject:%22%5C%5BZope%5C%5D+Pierugo+Massolo%5C%2FIT%5C%2FITC%5C%2FALSTOM+is+out+of+the+office.%22&o=newest">Thread</a></span></span> <span class=name><a href="/search?l=zope%40zope.org&q=from:%22pierugo+.+massolo%22&o=newest">pierugo . massolo</a></span> </div> <blockquote><span class="msgFragment"> 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! **</span> </blockquote><br> <h2></h2> </div> <div class="aside" role="complementary"> <div class="logo"> <a href="/"><img src="/logo.png" width=247 height=88 alt="The Mail Archive"></a> </div> <h2>25 matches</h2> <br> <form class="overflow" action="/search" method=get> <input type="hidden" name="a" value="1"> <input type="hidden" name="l" value="zope@zope.org"> <label class="hidden" for="haswords">Has the words</label> <input class="submittext" type="text" maxlength="1024" id="haswords" value='' name="haswords" placeholder="Has the words"> <input class="submitbutton" id="submit" type="image" src="/submit.png" alt="Submit"> <label class="hidden" for="from">From</label> <input class="submittext" type="text" maxlength="1024" id="from" value="" name="from" placeholder="From"> <label class="hidden" for="subject">Subject</label> <input class="submittext" type="text" maxlength="1024" id="subject" value="" name="subject" placeholder="Subject"> <select name="datewithin"> <option value="1d" >Date within 1 day of</option> <option value="3d" >Date within 3 days of</option> <option value="1w" >Date within 1 week of</option> <option value="2w" >Date within 2 weeks of</option> <option value="1m" >Date within 1 month of</option> <option value="2m" >Date within 2 months of</option> <option value="6m" >Date within 6 months of</option> <option value="1y" >Date within 1 year of</option> </select> <label class="hidden" for="date">e.g. Jul 18 2006 or 8/14/03</label> <input class="submittext" type="text" size="20" maxlength="50" id="date" value="2006-07-17" name="date" placeholder="e.g. Jul 18 2006 or 8/14/03"> <label class="hidden" for="notwords">Doesn't have</label> <input class="submittext" type="text" maxlength="1024" id="notwords" value="" name="notwords" placeholder="Doesn't have"> <select name="o"> <option value="relevance" selected="selected">Sort by relevance</option> <option value="newest" >Sort by date</option> </select> </form> <div class="nav margintop" id="nav" role="navigation"> <h2 class="hidden"> Site Navigation </h2> <ul class="icons font16"> <li class="icons-home"><a href="/">The Mail Archive home</a></li> <li class="icons-list"> <a href="/zope@zope.org" title="c" id="c">zope - all messages</a></li> <li class="icons-about"> <a href="/zope@zope.org/info.html">zope - about the list</a></li> <li class="icons-expand"><a href="/search?l=zope%40zope.org&q=date%3A20060717&f=1&a=1" title="e" id="e">Expand</a></li> </ul> </div> <div class="listlogo margintopdouble"> <h2 class="hidden"> Mail list logo </h2> </div> </div> <div class="footer" role="contentinfo"> <h2 class="hidden"> Footer information </h2> <ul> <li><a href="/">The Mail Archive home</a></li> <li><a href="/faq.html#newlist">Add your mailing list</a></li> <li><a href="/faq.html">FAQ</a></li> <li><a href="/faq.html#support">Support</a></li> <li><a href="/faq.html#privacy">Privacy</a></li> </ul> </div> <script language="javascript" type="text/javascript"> document.onkeydown = NavigateThrough; function NavigateThrough (event) { if (!document.getElementById) return; if (window.event) event = window.event; if (event.target.tagName == 'INPUT') return; if (event.ctrlKey || event.metaKey) return; var link = null; switch (event.keyCode ? event.keyCode : event.which ? event.which : null) { case 69: link = document.getElementById ('e'); break; } if (link && link.href) document.location = link.href; } </script> </body> </html>