[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! **

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 uploade

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 r

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]>; 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

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

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

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 ca

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: 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

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

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

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

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

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, t

[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/msg24541.html">Re: [Zope] question on simple_send in MailHost</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+question+on+simple_send+in+MailHost%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: "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</span> </blockquote><br> <h3><span class=subject><a href="/zope@zope.org/msg24540.html">RE: [Zope] Recreating catalog contents</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+Recreating+catalog+contents%22&o=newest">Thread</a></span></span> <span class=name><a href="/search?l=zope%40zope.org&q=from:%22Sinang%2C+Danny%22&o=newest">Sinang, Danny</a></span> </div> <blockquote><span class="msgFragment"> 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</span> </blockquote><br> <h3><span class=subject><a href="/zope@zope.org/msg24539.html">[Zope] Re: Zope performance experiences</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+Zope+performance+experiences%22&o=newest">Thread</a></span></span> <span class=name><a href="/search?l=zope%40zope.org&q=from:%22Nick+Davis%22&o=newest">Nick Davis</a></span> </div> <blockquote><span class="msgFragment"> 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</span> </blockquote><br> <h3><span class=subject><a href="/zope@zope.org/msg24538.html">Re: [Zope] question on simple_send in MailHost</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+question+on+simple_send+in+MailHost%22&o=newest">Thread</a></span></span> <span class=name><a href="/search?l=zope%40zope.org&q=from:%22knitti%22&o=newest">knitti</a></span> </div> <blockquote><span class="msgFragment"> 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</span> </blockquote><br> <h3><span class=subject><a href="/zope@zope.org/msg24537.html">Re: [Zope] question on simple_send in MailHost</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+question+on+simple_send+in+MailHost%22&o=newest">Thread</a></span></span> <span class=name><a href="/search?l=zope%40zope.org&q=from:%22Andreas+Jung%22&o=newest">Andreas Jung</a></span> </div> <blockquote><span class="msgFragment"> 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</span> </blockquote><br> <h3><span class=subject><a href="/zope@zope.org/msg24536.html">Re: [Zope] question on simple_send in MailHost</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+question+on+simple_send+in+MailHost%22&o=newest">Thread</a></span></span> <span class=name><a href="/search?l=zope%40zope.org&q=from:%22knitti%22&o=newest">knitti</a></span> </div> <blockquote><span class="msgFragment"> 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</span> </blockquote><br> <h3><span class=subject><a href="/zope@zope.org/msg24535.html">Re: [Zope] question on simple_send in MailHost</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+question+on+simple_send+in+MailHost%22&o=newest">Thread</a></span></span> <span class=name><a href="/search?l=zope%40zope.org&q=from:%22knitti%22&o=newest">knitti</a></span> </div> <blockquote><span class="msgFragment"> 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</span> </blockquote><br> <h3><span class=subject><a href="/zope@zope.org/msg24534.html">RE: [Zope] Recreating catalog contents</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+Recreating+catalog+contents%22&o=newest">Thread</a></span></span> <span class=name><a href="/search?l=zope%40zope.org&q=from:%22Andreas+Jung%22&o=newest">Andreas Jung</a></span> </div> <blockquote><span class="msgFragment"> 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@</span> </blockquote><br> <h3><span class=subject><a href="/zope@zope.org/msg24533.html">RE: [Zope] Recreating catalog contents</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+Recreating+catalog+contents%22&o=newest">Thread</a></span></span> <span class=name><a href="/search?l=zope%40zope.org&q=from:%22Sinang%2C+Danny%22&o=newest">Sinang, Danny</a></span> </div> <blockquote><span class="msgFragment"> 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"</span> </blockquote><br> <h3><span class=subject><a href="/zope@zope.org/msg24532.html">Re: [Zope] Recreating catalog contents</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+Recreating+catalog+contents%22&o=newest">Thread</a></span></span> <span class=name><a href="/search?l=zope%40zope.org&q=from:%22Andreas+Jung%22&o=newest">Andreas Jung</a></span> </div> <blockquote><span class="msgFragment"> --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.</span> </blockquote><br> <h3><span class=subject><a href="/zope@zope.org/msg24531.html">[Zope] Recreating catalog contents</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+Recreating+catalog+contents%22&o=newest">Thread</a></span></span> <span class=name><a href="/search?l=zope%40zope.org&q=from:%22Sinang%2C+Danny%22&o=newest">Sinang, Danny</a></span> </div> <blockquote><span class="msgFragment"> 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 </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> <ul><li><a href="/search?l=zope%40zope.org&q=date%3A20060717&a=1&o=newest">Advanced search</a></li></ul> <form class="overflow" action="/search" method="get"> <input type="hidden" name="l" value="zope@zope.org"> <label class="hidden" for="q">Search the list</label> <input class="submittext" type="text" id="q" name="q" placeholder="Search zope" value="date:20060717"> <input class="submitbutton" id="submit" type="image" src="/submit.png" alt="Submit"> </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&o=newest&f=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>