[Zope] How to create a file and send it by e-mail ?

2005-10-11 Thread Nicolas Georgakopoulos
Hello all, I'm developing using ZPT and I need to create a file (CSV format) but I'm having some problems: * 1. *I only know how to create files with python but I get an *Error Type: NameError* *Error Value: global name 'file' is not defined. * I think ZOPE doe's not allow python to

[Zope] help with MailTemplates 1.0.0

2005-10-11 Thread Nicolas Georgakopoulos
I installed the MailTemplates product to Zope and try to run the example from the readme file: -- Simple Example This example sends a simple templated mail to a specific address. Add the following to a Mail Template called my_mt:

Re: [Zope] help with MailTemplates 1.0.0

2005-10-11 Thread Nicolas Georgakopoulos
of the list with my beginner problem... Nicolas Georgakopoulos wrote: Your documentation have anothe problem , you forgot to set a subject in your example :( Oh dear, yes, I remember, I recently made subject required :-S I'll have to fix that soon... After I set a subject it say's : strongError

Re: [Zope] help with MailTemplates 1.0.0

2005-10-11 Thread Nicolas Georgakopoulos
Chris Withers wrote: Nicolas Georgakopoulos wrote: Sorry for that , it was on purpose.. I'm new to Zope and thought that it wasn't right to bother the rest of the list with my beginner problem... The opposite is true.. by keeping this on the list, not only can other people help out

Re: [Zope] help with MailTemplates 1.0.0

2005-10-12 Thread Nicolas Georgakopoulos
Chris Withers wrote: Nicolas Georgakopoulos wrote: Whatever you have selected is resolving to a string instead of a MailHost object :-S I have selected a Zope mailhost object Please explain exactly what you did, including how you create the MailHost, the Mail Template

[Zope] MailTemplate attachment problem..

2005-10-13 Thread Nicolas Georgakopoulos
Trying to send an attachment I get another error: strongError Type: Unauthorized/strongbr/ strongError Value: You are not allowed to access 'add_file' in this context/strongbr/ and the traceback: Traceback (innermost last): Module ZPublisher.Publish, line 113, in publish Module

Re: [Zope] help with MailTemplates 1.0.0

2005-10-13 Thread Nicolas Georgakopoulos
Chris Withers wrote: And to send the attachment I get another error: strongError Type: Unauthorized/strongbr/ strongError Value: You are not allowed to access 'add_file' in this context/strongbr/ The user executing the python script that calls add_file needs to have the 'Use mailhost

[Zope] error trying to import smtplib (unauthorized)

2005-10-13 Thread Nicolas Georgakopoulos
Trying to execute the following code from a python script from smtplib import SMTP from email.MIMEText import MIMEText I get a error: *Error Type: ImportError* *Error Value: import of SMTP from smtplib is unauthorized. You are not allowed to access 'SMTP' in this context * Why I can't access

Re: [Zope] error trying to import smtplib (unauthorized)

2005-10-13 Thread Nicolas Georgakopoulos
Chris Withers wrote: Nicolas Georgakopoulos wrote: Trying to execute the following code from a python script from smtplib import SMTP from email.MIMEText import MIMEText I get a error: *Error Type: ImportError* *Error Value: import of SMTP from smtplib is unauthorized. You are not allowed

Re: [Zope] error trying to import smtplib (unauthorized)

2005-10-13 Thread Nicolas Georgakopoulos
David Convent wrote: Python scripts are run in a restricted environment, move your code to either an external method or a python zope product built on the filesystem How can I move the code to another python zope product ? ___ Zope maillist -

Re: [Zope] error trying to import smtplib (unauthorized)

2005-10-13 Thread Nicolas Georgakopoulos
Chris Withers wrote: Nicolas Georgakopoulos wrote: I will try VerboseSecurity for a last chance ... if it doesn't work I will install the lates Zope release. No, you haven't anyway taken me through, step by step, what you've done to get where you are... What release of Zope are you

Re: [Zope] error trying to import smtplib (unauthorized)

2005-10-14 Thread Nicolas Georgakopoulos
Chris Withers wrote: Nicolas Georgakopoulos wrote: I will try VerboseSecurity for a last chance ... if it doesn't work I will install the lates Zope release. No, you haven't anyway taken me through, step by step, what you've done to get where you are... What release of Zope are you

Re: [Zope] error trying to import smtplib (unauthorized)

2005-10-14 Thread Nicolas Georgakopoulos
*continues banging head against brick wall* My friend you have made me an official MailTemplate product beta tester ;-) Because it has no security declarations. If you bothered to install VerboseSecurity it would have told you this... MailHosts are how you send mail in Zope...

Re: [Zope] error trying to import smtplib (unauthorized)

2005-10-14 Thread Nicolas Georgakopoulos
Chris Withers wrote: Nicolas Georgakopoulos wrote: FINALLY it work's! I installed VerboseSecurity and repeat the same action'sit just work. Right, well, that's not good news ;-) As Jens pointed out VerboseSecurity shouldn't be installed in 2.8, which I only just found out

[Zope] batching help

2005-12-15 Thread Nicolas Georgakopoulos
Hello all , I'm trying to display on the same page a table with (3 columns) with content from a list . I'm trying to batch the results so that every 3 elements anothe row is created. Can anyone give me a clue how to do that ? this is my code: table tal:define=Rnumber

Re: [Zope] batching help

2005-12-15 Thread Nicolas Georgakopoulos
=slice python:someobject.get_grouped_list(yourlist) td tal:repeat=item slice span tal:replace=item / /td /tr Hope this will help. Dragos Nicolas Georgakopoulos wrote: Hello all , I'm trying to display on the same page a table with (3 columns) with content from a list . I'm trying

Re: [Zope] batching help

2005-12-19 Thread Nicolas Georgakopoulos
Thanks a lot , I did it with my 'ugly' way but that was exactly what I was looking for. cheers.. Martijn Pieters wrote: On 12/15/05, Nicolas Georgakopoulos [EMAIL PROTECTED] wrote: Hello all , I'm trying to display on the same page a table with (3 columns) with content from a list . I'm

Re: [Zope] Re: Leave the ivory tower now!

2005-12-23 Thread Nicolas Georgakopoulos
Michael Haubenwallner wrote: Nicolas Georgakopoulos wrote: Here are my ideas to make Zope 3 the most successful framework ever: Make them love Zope at the very first look: * Make installing Zope a double-click or one-command-only experience and * offer a 30 minutes tutorial

Re: [Zope] Re: Leave the ivory tower now!

2005-12-25 Thread Nicolas Georgakopoulos
Bakhtiar A Hamid wrote: On 12/24/05, *Michael Haubenwallner* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: The batch limit is set to '300', limiting the display of a sorted result set. Here are numbers from the database: old style howtos : 1986

Re: [Zope] Leave the ivory tower now!

2006-01-16 Thread Nicolas Georgakopoulos
Rakotomandimby Mihamina wrote: On Mon, 2006-01-09 at 14:29 +0100, Garito wrote: I thing DTML and ZClasses will disapear someday You think, I hope :-) I beg ;-) . ___ Zope maillist - Zope@zope.org

[Zope] image processing site quidance...

2006-02-20 Thread Nicolas Georgakopoulos
Hello Zopistas, I need a little guidance for a site that must make image processing on the fly. Users should be able to upload image files and after some pixels manipulation they should see the image preview after the changes and download it. I have installed PIL successfully for that reason

Re: [Zope] image processing site quidance...

2006-02-21 Thread Nicolas Georgakopoulos
Tino Wildenhain wrote: Nicolas Georgakopoulos schrieb: Hello Zopistas, I need a little guidance for a site that must make image processing on the fly. Users should be able to upload image files and after some pixels manipulation they should see the image preview after the changes

Re: [Zope] image processing site quidance...

2006-02-23 Thread Nicolas Georgakopoulos
Chris Withers wrote: Nicolas Georgakopoulos wrote: I don't have any experience writing external products... should be easy if I finish the python programming part as a simple traditional python release and then to implement it as a Zope product ? Yeah, sure be easy enough... and we're