[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 should I
just give up trying to use Zope and use an external utility (MS Access
perhaps) to manage the printing part of the application?
-- 
View this message in context: 
http://www.nabble.com/Choosing-printer-in-client-computer-tp16130952p16130952.html
Sent from the Zope - General mailing list archive at Nabble.com.

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Zfuncionalidad

2007-09-02 Thread rieh25

In case someone wants to test my Zfuncionalidad thing that I did for Zope (to
manage users, forms, menus, etc.)... it's in spanish though.

http://zfunc.freeweb7.com/
-- 
View this message in context: 
http://www.nabble.com/Zfuncionalidad-tf4369918.html#a12455415
Sent from the Zope - General mailing list archive at Nabble.com.

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


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-of-entries-in-the-Undo-list--tf4327989.html#a12326257
Sent from the Zope - General mailing list archive at Nabble.com.

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[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 the Zope - General mailing list archive at Nabble.com.

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


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

2007-08-17 Thread rieh25

It works when I start Zope with runzope, instead of starting it a a server.
It's not really a problem to me because I can create a windows shceduled
task to start zope everytime the server is turned on. I need to do it from
Zope because the user needs to specify some parameters for the query, so 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, 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
>> help.
> 
> How is your Zope running? If it is running as a system service it has 
> nothing to do with the current logged on user that has a desktop open. So 
> Windows will not show notepad on the desktop... 
> The question is: what is the problem you are trying to solve with this? 
> Why should the webserver open a notepad? Try playing with a commandline 
> program that does something usefull but does not need interaction (a batch 
> file or something like that)
> 
> -- 
> __
> "Nothing is as subjective as reality"
> Reinoud van Leeuwen[EMAIL PROTECTED]
> http://www.xs4all.nl/~reinoud
> __
> ___
> 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
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Why-doesn%27t-os.system%28command%29-work--tf4283613.html#a12201181
Sent from the Zope - General mailing list archive at Nabble.com.

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


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 os.system() within
an external method. When I execute it from cmd it works, but when I try to
call it from an external method it hangs.
-- 
View this message in context: 
http://www.nabble.com/Why-doesn%27t-os.system%28command%29-work--tf4283613.html#a12200029
Sent from the Zope - General mailing list archive at Nabble.com.

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


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

-- 
View this message in context: 
http://www.nabble.com/Why-doesn%27t-os.system%28command%29-work--tf4283613.html#a12194312
Sent from the Zope - General mailing list archive at Nabble.com.

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


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  -  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
 http://mail.zope.org/mailman/listinfo/zope-dev )


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

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


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'])
  webservice.putheader("Host", m['host'])
  webservice.putheader("Content-type", m['content-type'])
  webservice.putheader("Content-length", "%d" % len(m['mensaje']))
  webservice.putheader("SOAPAction", m['SOAPAction'])


  webservice.endheaders()

  webservice.send(m['mensaje'])

  # get the response

  statuscode, statusmessage, header = webservice.getreply()

  r = {}
  r['Response'] = {'statuscode': statuscode, 'statusmessage': statusmessage}
  r['header'] = header
  r['res'] = webservice.getfile().read()
  return r
-- 
View this message in context: 
http://www.nabble.com/SOAP---Integration--tf4211042.html#a12061157
Sent from the Zope - General mailing list archive at Nabble.com.

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


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: 
http://www.nabble.com/Who-wants-an-excel-report-generator--tf4238606.html#a12060589
Sent from the Zope - General mailing list archive at Nabble.com.

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[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 the parameter
passed to crea_paneles()
-- 
View this message in context: 
http://www.nabble.com/Who-wants-an-excel-report-generator--tf4238606.html#a12060429
Sent from the Zope - General mailing list archive at Nabble.com.

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[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 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
 http://mail.zope.org/mailman/listinfo/zope-dev )


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 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
 http://mail.zope.org/mailman/listinfo/zope-dev )


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
to aspects that are extraneous to the functionality of my application).
-- 
View this message in context: 
http://www.nabble.com/Modify-contents-of-a-page-template-through-a-python-script-tf3688038.html#a10311361
Sent from the Zope - General mailing list archive at Nabble.com.

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[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: 
http://www.nabble.com/Modify-contents-of-a-page-template-through-a-python-script-tf3688038.html#a10310242
Sent from the Zope - General mailing list archive at Nabble.com.

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[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 - General mailing list archive at Nabble.com.

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[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 "installation successful", but when I tried
use a library to try Excel things, it gave me a "Loader error" or something
like that.
-- 
View this message in context: 
http://www.nabble.com/How-can-I-install-PyWin32-with-Zope--tf3018037.html#a8381763
Sent from the Zope - General mailing list archive at Nabble.com.

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


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 that adds objects to the TOC,
>> because the key is specified, but the object to be contained isn't.
> In general you don't have to think about
> TransientObjectContainer at all. You simply use something like:
> 
> session = container.REQUEST.SESSION
> 
> to get access to session.
> 
> session['something']='bbb'
> 
> to save something to session.
> 
> Session expiration time may be set in zope.conf. Thats all until you
> need something specific.
> 
> Take look at the link below - this is definitely worth reading:
> http://www.plope.com/Books/2_7Edition/Sessions.stx
> 
> -- 
> Maciej Wisniowski
> ___
> 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
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Transient-Object-Container-tf2647376.html#a7389239
Sent from the Zope - General mailing list archive at Nabble.com.

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Transient Object Container

2006-11-16 Thread rieh25

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 that adds objects to the TOC,
because the key is specified, but the object to be contained isn't.

This is the afore mentioned instruction: new(self, k)

Can somebody indicate to me a place to learn about this subject in more
detail?

Thanks...
-- 
View this message in context: 
http://www.nabble.com/Transient-Object-Container-tf2647376.html#a7387442
Sent from the Zope - General mailing list archive at Nabble.com.

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


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 of
convincing ppl at work to buy a mxodbc license...

thanks.



Maciej Wisniowski wrote:
> 
>> Could somebody tell me how to close/open a database connection through
>> python instructions?
> If you want to close database connections from Zope then it may be not
> so easy. Depends on DatabaseAdapter how it is resolved. I mean that Zope
> DatabaseAdapters usually use volatile attributes like _v_db_connection
> bound to specific ZODB connection's - thus this may be difficult
> to definitely close all opened connections.
> 
> There is Zope-DB list for database specific questions.
> 
> -- 
> Maciej Wisniowski
> ___
> 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
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Database-connectors-tf2644648.html#a7387390
Sent from the Zope - General mailing list archive at Nabble.com.

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )