[Zope-dev] How to develope a ZObject to connect to an socket server?

2002-08-22 Thread Juan Carlos CORUÑA
connection objects to find out the mechanism used. If anybody has interesting information or knows where to achieve docs about this, please could you advise me? Juan Carlos Coruña [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http

[Zope] type in python methods

2001-01-11 Thread Juan Carlos Coruña
How can I compare the type of 2 variables in a python method? The instruction "if type(var1) == type(var2): " doesn't work. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding!

RE: [Zope] type in python methods

2001-01-11 Thread Juan Carlos Coruña
Yes, it works. Thanks. -Mensaje original- De: Evan Simpson [mailto:[EMAIL PROTECTED]] Enviado el: jueves, 11 de enero de 2001 15:49 Para: Juan Carlos Corua; [EMAIL PROTECTED] Asunto: Re: [Zope] type in python methods From: Juan Carlos Corua [EMAIL PROTECTED] How can I compare the

RE: [Zope] type in python methods

2001-01-11 Thread Juan Carlos Coruña
-Mensaje original- De: Luciano Ramalho [mailto:[EMAIL PROTECTED]] Enviado el: jueves, 11 de enero de 2001 15:21 Para: Juan Carlos Coruña CC: [EMAIL PROTECTED] Asunto: Re: [Zope] type in python methods The instruction if type(var1) == type(var2): doesn't work. It does work

[Zope] How to set a REQUEST variable inside a PythonMethod?

2001-01-09 Thread Juan Carlos Coruña
Hello all! I have another question related with PythonMethod. This time I tried: REQUEST.update({'NoRows': 4}) and I tried: REQUEST['NoRows'] = 4 and I tried: REQUEST.set('NoRows', 4) but without success. (I passed the REQUEST object in the parameter list.) Anybody has set a REQUEST

[Zope] Intercept exceptions in Python Methods

2001-01-08 Thread Juan Carlos Coruña
I try to intercept exceptions in a Python Method without success. The following code works well: try: a = int('a') except: return 'exception.' but the next doesn't work: try: a = int('a') except ValueError: return 'exception' How can I intercept a concrete exception?

[Zope] How to split a string in a python method?

2001-01-05 Thread Juan Carlos Coruña
Is there any way to split a string in a PythonMethod without passing the object _.string as an argument? I have tried to "import string" but Zope generates an ImportError: ImportError: __import__ not found I'm using PythonMethod 0.1.7 ___ Zope

[Zope] Problem with ZClient

2000-07-11 Thread Juan Carlos Coruña
Title: Problem with ZClient I'm testing ZClient to access a ZSQL method on a NT box from a Linux box since Linux can't access any odbc (propietary) database. As ressult i become a bci.ServerError. This is the output: [root@ecom ZPublisher]# ./Client.py -u username:password

[Zope] Who has compiled _mysql.pyd?

2000-06-23 Thread Juan Carlos Coruña
Title: Who has compiled _mysql.pyd? I use to develop on linux, but in this moment I need to setup a Zope server on NT with ZmySQLDA 1.2.0. On linux I don't have problems to compile _mysqlmodule.so, but on NT I don't have a compiler nor experience. Anyone has already compiled _mysql.pyd for NT?

[Zope-dev] Zope 2.2.0b1 not authorized

2000-06-21 Thread Juan Carlos Coruña
Title: Zope 2.2.0b1 not authorized I have a ZSQL method embedded into another ZSQL method and when I execute it I become the following error: Error, Unauthorized: You are not authorized to access SQL. If I execute the embedded ZSQL method alone I become no errors. The two methods have the same

[Zope-dev] Re: [Zope] Please test this Zope 2.2 beta 1 ZSQLMethods fix...

2000-06-21 Thread Juan Carlos Coruña
Title: Re: [Zope] Please test this Zope 2.2 beta 1 ZSQLMethods fix... Mensaje original El 21/06/00, 17:25:39, Brian Lloyd [EMAIL PROTECTED] escribi sobre el tema [Zope] Please test this Zope 2.2 beta 1 ZSQLMethods fix...: Hi all, Several folks have reported problems in beta 1 with

[Zope] Q: xml-rpc and zsql

2000-06-19 Thread Juan Carlos Coruña
Title: Q: xml-rpc and zsql Have anyone experience using zsql methods with xml-rpc? How do you pass arguments to a zsql mthod with xml-rpc?

[Zope] Problems using zope as a xml-rpc server

2000-06-16 Thread Juan Carlos Coruña
Title: Problems using zope as a xml-rpc server Hello Zopistas, I'm trying to implement a xml-rpc server with zope. If I try to retrieve a default index_html from python with xmlrpclib there is no problem, but if I try to retrieve a dtml method with a zsql method inside it responds: