Re: [Zope] SQL delimiter?

2001-01-18 Thread Jose Soares
You need to insert the following line between two SQL statements. dtml-var sql_delimiter Remember you can't use it with more than one SELECT. sql_delimiter is usefull only to separate more than one INSERT, UPDATE, DELETE. Jos Andy McKay wrote: Ive looked through the docs and Im sure I saw

[Zope] Error, Exceptions.SystemError: unknown opcode

2000-12-27 Thread Jose Soares
Hi all, I'm trying to insert data into a MySQL table using a SQL Method without success. Zope return me the following message: "Error, Exceptions.SystemError: unknown opcode" Any ideas? Thanks José ___ Zope maillist - [EMAIL PROTECTED]

Re: [Zope] multiple selects are not allowed

2000-12-13 Thread Jose Soares
from ZSQL Methods User's Guide, last row on pag. 22: "Note that no more than one SQL select statement may be used in a single SQL Database Method." Diny van Gool wrote: Hi, I want to execute multiple SQL statements in one SQL-Method. In the mailinglist archives i found the answer but

Re: [Zope] Last day of Month

2000-12-13 Thread Jose Soares
Use an External Method like this one. # Perché non usare un metodo esterno? from DateTime import Date def lastDay(year,month): try: last = Date(year,month+1,1)-1 return last.day except: return 31 José Eric Walstad wrote: Hi Paolo, I have a Python Metho... er

Re: [Zope] Patch to avoid hypenation variables and more

2000-12-11 Thread Jose Soares
Tino Wildenhain wrote: Hi, anybody had time for testing? May be we could have it in the next zope release. Any comments, remarks? How about an alternatively or extra "name"-attribute wich defaults to "sequence" ? Another issue: what about an alias for dtml-var called something like:

Re: [Zope] New user - couple of questions

2000-12-06 Thread Jose Soares
Paolo Quaglia wrote: Hi to all,I'm a new Zope user/developer ... Zope has impressed me very much!Ihave a couple of questions.I want to build a new intranet site for my company using Zope, but:1. How can I import and use Python modulesFor example I want to use the function sleep(secs) that

Re: [Zope] how to get the created table names

2000-11-24 Thread Jose Soares
There isn't a SQL standard command to show the tables in the database. Thus evry database has a different command to do such job. For example: DBMaker: to show TABLES: select * from SYSTABLE to show COLUMNS: SELECT COLUMN_NAME,TYPE_NAME,PRECISION FROM SYSCOLUMN WHERE

Re: [Zope] How to access column names in DTML Methods

2000-11-14 Thread Jose Soares
Great! Thank you very much Curtis. Curtis Maloney wrote: On Tue, 14 Nov 2000, Jose Soares wrote: Hi all, I'm trying to display the column names of a Record object without success. I'm able to access column data using sequence-item but I don't know how to display column names

[Zope] How to access column names in DTML Methods

2000-11-13 Thread Jose Soares
Hi all, I'm trying to display the column names of a Record object without success. I'm able to access column data using sequence-item but I don't know how to display column names. dtml-var standard_html_header dtml-in "desc(cmd=cmd_sql)" size=50 start=query_start dtml-if sequence-start