[Zope] Choosing printer in client computer

2008-03-18 Thread rieh25
I need an application to choose a specific printer in a client computer (not the server) for printing reports. Internet explorer uses register entries to configure the default printer, but the problem is that an external script would do this changes in the server, not the local computer. Or

[Zope] How do I increment the number of entries in the Undo list?

2007-08-25 Thread rieh25
I nedd to undo an action that appears in the second page, but apparently I need to undo all the later actions in order to make it work. Thanks. -- View this message in context: http://www.nabble.com/How-do-I-increment-the-number-of-entries-in-the-Undo-list--tf4327989.html#a12326167 Sent from

Re: [Zope] How do I increment the number of entries in the Undo list?

2007-08-25 Thread rieh25
I just found out it can be done in steps. rieh25 wrote: I nedd to undo an action that appears in the second page, but apparently I need to undo all the later actions in order to make it work. Thanks. -- View this message in context: http://www.nabble.com/How-do-I-increment-the-number

Re: [Zope] Why doesn't os.system(command) work?

2007-08-17 Thread rieh25
I'm trying to insert a large amount of records into a database table based on a query. When I try doing it directly from a Zope programm it gives a time out, because the query takes too much time. Therefore I thought of doing it from a python script with an odbc connection, called with

Re: [Zope] Why doesn't os.system(command) work?

2007-08-17 Thread rieh25
I'm going to do it this way instead of using some other tool... Thanks to all Reinoud van Leeuwen wrote: On Thu, Aug 16, 2007 at 10:40:45PM -0700, rieh25 wrote: I think it's finding the programm because I'm using the complete path. And when I test it using the wrong programm name

[Zope] Why doesn't os.system(command) work?

2007-08-16 Thread rieh25
I have an external method like this: import os def ext_programm(): os.system('notepad.exe') But it doesn't work. -- View this message in context: http://www.nabble.com/Why-doesn%27t-os.system%28command%29-work--tf4283613.html#a12193786 Sent from the Zope - General mailing list archive at

Re: [Zope] Why doesn't os.system(command) work?

2007-08-16 Thread rieh25
What is a search path and how do I set it? -- View this message in context: http://www.nabble.com/Why-doesn%27t-os.system%28command%29-work--tf4283613.html#a12194033 Sent from the Zope - General mailing list archive at Nabble.com. ___ Zope maillist

Re: [Zope] Why doesn't os.system(command) work?

2007-08-16 Thread rieh25
I think it's finding the programm because I'm using the complete path. And when I test it using the wrong programm name, it returns a 1. But instead, when I pass it the right name, it just hangs. In the task manager there is an entry for the program, but it doesn't seem to execute. Thanks for the

[Zope] Who wants an excel report generator?

2007-08-08 Thread rieh25
It generates herarchical reports, (master-detail-detail from detail,etc...) Download from http://zapwiz.objectis.net/Main/Archivos/Utilidades.zexp Once you installed Utilidades.zexp, go to Excel/ReportesExcel/Tipo_Jerarquia/prueba_py That script generates the resulting excel file, according to

Re: [Zope] Who wants an excel report generator?

2007-08-08 Thread rieh25
It also needs a template (excel xml file), which must be constructed in the way shown by Plantilla1_txt. Open Plantilla1_txt (rename it as Plantilla.xml and open it with Excel) so that you can see how the template must be defined. -- View this message in context:

Re: [Zope] SOAP - Integration?

2007-08-08 Thread rieh25
External method for Zope 2.7.5 import sys, httplib def envia_mensaje(m): #construct and send the header if m['tipo'] == 'HTTP': webservice = httplib.HTTP(m['pagina'], 80) elif m['tipo'] == 'HTTPS': webservice = httplib.HTTPS(m['pagina'], 443) webservice.putrequest(POST, m['post'])

[Zope] how to add a role and a user to a folder

2007-06-23 Thread rieh25
how do you add a role with certain permissions and a user to a folder through python? -- View this message in context: http://www.nabble.com/how-to-add-a-role-and-a-user-to-a-folder-tf3969697.html#a11267632 Sent from the Zope - General mailing list archive at Nabble.com.

[Zope] Modify contents of a page template through a python script

2007-05-03 Thread rieh25
I need to modify the contents of a page template through a python script. Or create a new page template object with content specified in the python script. Thanks. -- View this message in context:

Re: [Zope] Modify contents of a page template through a python script

2007-05-03 Thread rieh25
The reason why I need this is because I'm working in an application that controls various aspects of applications (menu's, security, forms, etc.), and wanted to automatically generate zpt's too. But I do need to alter the actual zpt's (that way they are customizable through variables, in regards

Re: [Zope] Modify contents of a page template through a python script

2007-05-03 Thread rieh25
Thanks for the help. I found it's done with .pt_edit(text, content_type) -- View this message in context: http://www.nabble.com/Modify-contents-of-a-page-template-through-a-python-script-tf3688038.html#a10313689 Sent from the Zope - General mailing list archive at Nabble.com.

[Zope] How to call a script by it's name stored in a variable.

2007-02-20 Thread rieh25
How can I do something like this? var = '/Projects/test_py' return call_by_name(var) Thanks. -- View this message in context: http://www.nabble.com/How-to-call-a-script-by-it%27s-name-stored-in-a-variable.-tf3264614.html#a9074816 Sent from the Zope -

[Zope] How can I install PyWin32 with Zope?

2007-01-15 Thread rieh25
I tried doing it with Zope 2.7 (python 2.3.5), and it didn't work. Would it be easier to do with a higher version? First I had to register Zope's python, which gave me problems. Then I included Zope's path with Set Path, and moved the installer to the bin folder, and it worked. It said

Re: [Zope] Database connectors

2006-11-16 Thread rieh25
I wanted to do it because for some reason, my oracle connector (DCOracle) keeps disconnecting, and so I thought maybe it would be possible to define a python method to periodically check on it and reconnect it if necessary. I imagined it wouldn't be so easy, but anyways I think I may be capable

Re: [Zope] Transient Object Container

2006-11-16 Thread rieh25
Thanks! Maciej Wisniowski wrote: Well, I hope this is the right place to post this question... I'm trying to learn how to use the Transient Object Container to use it for session data managing. I searched on Google for it, and I found some instructions, but it has me puzzled the one