Re: [Zope] ZSQL not shown in list to add new method

2011-06-27 Thread c k
Now i installed zope2 2.13.7 and just added products.zsqlmethods in buildout.cfg and also added entry as products.sqlmethods = 2.13.3 in versions.cfg. Then run the buildout and mkzopeinstance. After instance is created, checked to add new zsql method. But still there is no option to add it. Also

Re: [Zope] ZSQL not shown in list to add new method

2011-06-27 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/27/2011 12:49 PM, c k wrote: Now i installed zope2 2.13.7 and just added products.zsqlmethods in buildout.cfg and also added entry as products.sqlmethods = 2.13.3 in versions.cfg. Then run the buildout and mkzopeinstance. After instance is

Re: [Zope] ZSQL not shown in list to add new method

2011-06-27 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/27/2011 02:39 PM, Tres Seaver wrote: On 06/27/2011 12:49 PM, c k wrote: Now i installed zope2 2.13.7 and just added products.zsqlmethods in buildout.cfg and also added entry as products.sqlmethods = 2.13.3 in versions.cfg. Then run the

[Zope] ZSQL not shown in list to add new method

2011-06-26 Thread c k
Hello all, I am trying to install zsql methods in zope 2.13. After many retries i am able to install it using buildout. Now it is not shown in the add listbox to add new zsql methods. What is going wrong? Normally when it is installed using buildout, it should be available in the listbox to add

Re: [Zope] ZSQL not shown in list to add new method

2011-06-26 Thread c k
Now i installed zope2 2.13.7 and just added products.zsqlmethods in buildout.cfg and also added entry as products.sqlmethods = 2.13.3 in versions.cfg. Then run the buildout and mkzopeinstance. After instance is created, checked to add new zsql method. But still there is no option to add it. Also

Re: [Zope-dev] [Zope] Zsql and oracle CLOB column

2009-05-27 Thread harshad behere
harshad behere wrote: Dear list, While inserting data into one of the oracle table's CLOB column using zsql via python script, we observed that zope process (running in debug mode) is getting terminated/killed if length of text data = 4094 with message on command prompt Input string too

[Zope] Zsql and oracle CLOB column

2009-05-27 Thread harshad behere
Dear list, While inserting data into one of the oracle table's CLOB column using zsql via python script, we observed that zope process (running in debug mode) is getting terminated/killed if length of text data = 4094 with message on command prompt Input string too long, limit 4096 Whereas

Re: [Zope] Zsql and oracle CLOB column

2009-05-27 Thread harshad behere
harshad behere wrote: Dear list, While inserting data into one of the oracle table's CLOB column using zsql via python script, we observed that zope process (running in debug mode) is getting terminated/killed if length of text data = 4094 with message on command prompt Input string too

Re: [Zope-DB] [Zope] Zsql and oracle CLOB column

2009-05-27 Thread harshad behere
harshad behere wrote: Dear list, While inserting data into one of the oracle table's CLOB column using zsql via python script, we observed that zope process (running in debug mode) is getting terminated/killed if length of text data = 4094 with message on command prompt Input string too

Re: [Zope] ZSQL, call for early beta testers

2007-04-02 Thread Peter Bengtsson
Maciej Wisniowski wrote: It works something like this:: (...) If in the folder 'sql/Userstuff' you have a file called 'select_users.sql' you will the be able to just run: # select users: print SQLUser.select_users() # same but first printed the final SQL used print

[Zope] ZSQL, call for early beta testers

2007-04-01 Thread Peter Bengtsson
I've developed a little module that makes it really easy to plug in .sql files into a python product class as ZSQLMethods. It's extremely easy to use and doesn't require any CMF or ZODB stuff. It also has support for memcache for those of you with slow db queries that you need to repeat. It

Re: [Zope] ZSQL, call for early beta testers

2007-04-01 Thread Maciej Wisniowski
It works something like this:: (...) If in the folder 'sql/Userstuff' you have a file called 'select_users.sql' you will the be able to just run: # select users: print SQLUser.select_users() # same but first printed the final SQL used print SQLUser.select_users(debug__=True) # save

[Zope] ZSQL Methods and transaction control

2007-01-10 Thread robert rottermann
Hi there, I am implementing a tool to handle userdata that is stored in a MySQL db. The underlaying logic of the stored procedures used to maintain the db content dictate that I have to control the transactions myself. I understand that there is a way to handle transaction controll in the ZMySQL

Re: [Zope] ZSQL Methods and transaction control

2007-01-10 Thread Tino Wildenhain
robert rottermann schrieb: Hi there, I am implementing a tool to handle userdata that is stored in a MySQL db. The underlaying logic of the stored procedures used to maintain the db content dictate that I have to control the transactions myself. Can you elaborate on that? I dont see a reason

Re: [Zope] ZSQL Methods and transaction control

2007-01-10 Thread Peter Bengtsson
Are you sure it doesn't do it out of the box? I know it does for ZPsycopgDA which is the Postgresq Zope database adapter. With that one I don't have to come near handling the SQL transactions. What Zope commits and rollsback is done for SQL too automatically. robert rottermann wrote: Hi

Re: [Zope] ZSQL Methods and transaction control

2007-01-10 Thread Dieter Maurer
robert rottermann wrote at 2007-1-10 09:00 +0100: ... I am implementing a tool to handle userdata that is stored in a MySQL db. The underlaying logic of the stored procedures used to maintain the db content dictate that I have to control the transactions myself. If you know what you do, then you

[Zope-DB] [Zope] ZSQL Methods and transaction control

2007-01-10 Thread robert rottermann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi there, I am implementing a tool to handle userdata that is stored in a MySQL db. The underlaying logic of the stored procedures used to maintain the db content dictate that I have to control the transactions myself. I understand that there is a

Re: [Zope-DB] [Zope] ZSQL Methods and transaction control

2007-01-10 Thread Charlie Clark
Am 10.01.2007, 13:00 Uhr, schrieb robert rottermann [EMAIL PROTECTED]: I understand that there is a way to handle transaction control in the ZMySQL methods. However I find no documentation at all on how to use it. This is incorrect. ZSQL methods are called within Zope transactions so you

Re: [Zope-DB] [Zope] ZSQL Methods and transaction control

2007-01-10 Thread Maciej Wisniowski
thanks charlie, so that means, that the _commit and _abort methods are only for zope's transaction controll. Yes, and with good reason. But I think that if you know what your'e doing you may use them althought it may be tricky. It is better to try external method like Charlie suggested for

Re: [Zope] ZSQL Method's Precision

2006-10-24 Thread Maciej Wisniowski
In a PostgreSQL DB I have a Numeric data type with a precision of two decimal places. If I have 1.33 in as the result from my query, it's everything is good. However, if I have 1.30 it reduces the precision to one decimal place and I get 1.3. Not so good when dealing with currency ( I don't

Re: [Zope] ZSQL Method's Precision

2006-10-24 Thread Tino Wildenhain
Maciej Wisniowski schrieb: In a PostgreSQL DB I have a Numeric data type with a precision of two decimal places. If I have 1.33 in as the result from my query, it's everything is good. However, if I have 1.30 it reduces the precision to one decimal place and I get 1.3. Not so good when dealing

[Zope] ZSQL Method's Precision

2006-10-23 Thread Jason C. Leach
Hi: In a PostgreSQL DB I have a Numeric data type with a precision of two decimal places. If I have 1.33 in as the result from my query, it's everything is good. However, if I have 1.30 it reduces the precision to one decimal place and I get 1.3. Not so good when dealing with currency ( I don't

Re: [Zope] ZSQL Method's Precision

2006-10-23 Thread Gabriel Genellina
At Tuesday 24/10/2006 01:05, Jason C. Leach wrote: In a PostgreSQL DB I have a Numeric data type with a precision of two decimal places. If I have 1.33 in as the result from my query, it's everything is good. However, if I have 1.30 it reduces the precision to one decimal place and I get 1.3.

Re: [Zope] ZSQL Method's Precision

2006-10-23 Thread David H
Jason C. Leach wrote: Hi: In a PostgreSQL DB I have a Numeric data type with a precision of two decimal places. If I have 1.33 in as the result from my query, it's everything is good. However, if I have 1.30 it reduces the precision to one decimal place and I get 1.3. Not so good when dealing

Re: [Zope] ZSQL Method Question

2006-07-19 Thread John Schinnerer
Aloha, I think so, for the moment anyhow! Thanks all, John S. Cliff Ford wrote: Comment on Peter's suggestion: I am no expert on these things, but it is my understanding that for MySQL LAST_INSERT_ID() fetches the last autoincrement value made by the current insert, so the outcome is not

Re: [Zope] ZSQL Method Question

2006-07-18 Thread Cliff Ford
This is how it works for MySQL: insert into org (org_name, org_phone) values ('x', 'y') dtml-var sql_delimiter select LAST_INSERT_ID() as org_id You have to have the select LAST_INSERT_ID call in the same query as the insert, and you have to have the sql_delimiter. I assume you know that the

Re: [Zope] ZSQL Method Question

2006-07-18 Thread Peter Bengtsson
What if you have 1,000,000 requests/sec? What if between the INSERT and the LAST_INSERT_ID() another INSERT is made? I use PostgreSQL and with postgres you can always ask the sequence what the next id is going to be. It goes something like this:: next_id = context.GetNextId()[0].next_id

Re: [Zope] ZSQL Method Question

2006-07-18 Thread Tino Wildenhain
Peter Bengtsson wrote: What if you have 1,000,000 requests/sec? What if between the INSERT and the LAST_INSERT_ID() another INSERT is made? I use PostgreSQL and with postgres you can always ask the sequence what the next id is going to be. It goes something like this:: next_id =

Re: [Zope] ZSQL Method Question

2006-07-18 Thread John Schinnerer
Aloha, Is this even easier solution only for postgreSQL, or is it for MySQL? I am going to have to start working with integrating MySQL into zope-based stuff soon so I'm trying to get a head start... :-) thanks, John S. Tino Wildenhain wrote: Peter Bengtsson wrote: What if you have

Re: [Zope] ZSQL Method Question

2006-07-18 Thread Cliff Ford
Comment on Peter's suggestion: I am no expert on these things, but it is my understanding that for MySQL LAST_INSERT_ID() fetches the last autoincrement value made by the current insert, so the outcome is not affected by virtually simultaneous requests. And I don't think MySQL accepts a value

[Zope] ZSQL Method Question

2006-07-17 Thread Benjamin Menking
New to python/Zope, old-timer on PHP I'm using MySQL and a ZSQL method to insert data into the database. ex: insert into org (org_name, org_phone) values ('x', 'y') What I'm trying to figure out is that org_id (also part of the org table, but not specified in the sql statement) is an

Re: [Zope] ZSQL Method Question

2006-07-17 Thread Jonathan
= ',rstat.data_dictionary()print 'rstat.dictionaries= ',rstat.dictionaries() hth Jonathan - Original Message - From: Benjamin Menking To: zope@zope.org Sent: Monday, July 17, 2006 1:01 PM Subject: [Zope] ZSQL Method Question New to python/Zope, old-timer

Re: [Zope] ZSQL with different user

2005-12-20 Thread Pier Luigi Fiorini
Alle 18:42, lunedì 19 dicembre 2005, hai scritto: Pier Luigi Fiorini wrote: Hello, I'm developing a Zope application that uses a PostgreSQL connection and several ZSQL objects. People should log in using a Postgres user and ZSQL object should be executed by the user that's logged in.

Re: [Zope] ZSQL with different user

2005-12-20 Thread J Cameron Cooper
Pier Luigi Fiorini wrote: Alle 18:42, lunedì 19 dicembre 2005, hai scritto: Pier Luigi Fiorini wrote: Hello, I'm developing a Zope application that uses a PostgreSQL connection and several ZSQL objects. People should log in using a Postgres user and ZSQL object should be executed by the user

[Zope] ZSQL with different user

2005-12-19 Thread Pier Luigi Fiorini
Hello, I'm developing a Zope application that uses a PostgreSQL connection and several ZSQL objects. People should log in using a Postgres user and ZSQL object should be executed by the user that's logged in. Multiple people can be logged at the same time. Unfortunately it is not possible

Re: [Zope] ZSQL with different user

2005-12-19 Thread Tino Wildenhain
Pier Luigi Fiorini schrieb: Hello, I'm developing a Zope application that uses a PostgreSQL connection and several ZSQL objects. People should log in using a Postgres user and ZSQL object should be executed by the user that's logged in. Multiple people can be logged at the same time.

Re: [Zope] ZSQL with different user

2005-12-19 Thread Reinoud van Leeuwen
On Mon, Dec 19, 2005 at 03:39:51PM +0100, Tino Wildenhain wrote: Pier Luigi Fiorini schrieb: Hello, I'm developing a Zope application that uses a PostgreSQL connection and several ZSQL objects. People should log in using a Postgres user and ZSQL object should be executed by the user that's

Re: [Zope] ZSQL with different user

2005-12-19 Thread Andreas Jung
--On 19. Dezember 2005 15:32:46 +0100 Pier Luigi Fiorini [EMAIL PROTECTED] wrote: Hello, I'm developing a Zope application that uses a PostgreSQL connection and several ZSQL objects. People should log in using a Postgres user and ZSQL object should be executed by the user that's logged in.

Re: [Zope] ZSQL with different user

2005-12-19 Thread Tino Wildenhain
Am Montag, den 19.12.2005, 15:43 +0100 schrieb Reinoud van Leeuwen: The postgresql commandline tool psql has a command /user to change the details of the current connection. Wouldn't it be easier to use a command like that at the beginning of each database request? Well this \connect

Re: [Zope] ZSQL batching with dtml-in

2005-12-09 Thread Chris Withers
Ed Colmar wrote: Will the database be queried for all results, and only have 20 displayed, or will the database just return the 20 that are needed? The database will get hammered every time ;-) There was a thread between myself and Charlie from eGenix on the zope-db list earlier this

[Zope] ZSQL batching with dtml-in

2005-12-08 Thread Ed Colmar
Do ZSQL methods communicate with the dtml-in call and understand the size attribute? for example, in this dtml-in statement: dtml-in SQL_get_large_list size=20 start=query_start /dtml-in Will the database be queried for all results, and only have 20 displayed, or will the database just return

Re: [Zope] ZSQL batching with dtml-in

2005-12-08 Thread David H
Ed Colmar wrote: Do ZSQL methods communicate with the dtml-in call and understand the size attribute? for example, in this dtml-in statement: dtml-in SQL_get_large_list size=20 start=query_start /dtml-in Will the database be queried for all results, and only have 20 displayed, or will the

Re: [Zope] ZSQL batching with dtml-in

2005-12-08 Thread Tino Wildenhain
Am Donnerstag, den 08.12.2005, 13:46 -0800 schrieb Ed Colmar: Do ZSQL methods communicate with the dtml-in call and understand the size attribute? Not really. for example, in this dtml-in statement: dtml-in SQL_get_large_list size=20 start=query_start /dtml-in Will the database be

[Zope] ZSQL pluggable brains

2005-09-23 Thread Chris Hoy
Hi I have been using ZSQLMethods object some with some without pluggable brains. I have come across a problem where the results of the sql query are not refreshed even thought the database is updated. I have noticed that the problem only occurs to those ZSQLMethods that have pluggable

[Zope] ZSQL Methods in ZClasses...

2001-01-21 Thread Curtis Maloney
Green things, Am I missing something, or should I just simply not be using ZSQL methods in my ZClass? If I try to add one, I get an error about there not being a DB connection object (which makes sense) and won't let me add the object. I was planning on making the constructor find all

[Zope] ZSQL: postgres, SELECT INTO

2001-01-20 Thread Steve Drees
Has anybody selectively used SELECT INTO with zope/postgres? Zope version: Zope 2.1.6 (binary release, python 1.5.2, linux2-x86) Python version: 1.5.2 (#10, Dec 6 1999, 12:16:27) [GCC 2.7.2.3] System Platform: linux2 ZPyGreSQLDA-0-0-3 I'm trying something like: SELECT DISTINCT song,

RE: [Zope] ZSQL: postgres, SELECT INTO

2001-01-20 Thread Steve Drees
Has anybody selectively used SELECT INTO with zope/postgres? Make that succesfully. Zope version: Zope 2.1.6 (binary release, python 1.5.2, linux2-x86) Python version: 1.5.2 (#10, Dec 6 1999, 12:16:27) [GCC 2.7.2.3] System Platform: linux2 ZPyGreSQLDA-0-0-3 I'm trying something

Re: [Zope] ZSQL: postgres, SELECT INTO

2001-01-20 Thread Andrew Kenneth Milton
+---[ Steve Drees ]-- | Has anybody selectively used SELECT INTO with zope/postgres? It's probably dying because there can only be ONE SELECT clause in a ZSQL Method. The SELECT ... INTO will be triggering a false positive. -- Totally Holistic Enterprises Internet|

[Zope] Calling ZSQL from PythonMethods (was RE: [Zope] ZSQL, Python methods and XMLRPC)ods and XMLRPC)

2001-01-19 Thread Mayers, Philip J
Centre for Computing Services| | Imperial College | +--+ -Original Message- From: Mayers, Philip J [mailto:[EMAIL PROTECTED]] Sent: 18 January 2001 22:37 To: '[EMAIL PROTECTED]' Subject: [Zope] ZSQL, Python methods and XMLRPC I've three questions

[Zope] ZSQL, Python methods and XMLRPC

2001-01-18 Thread Mayers, Philip J
I've three questions (but I'm making progress!): 1) In 2.2.5, how can I call a ZSQL method from a Python Method - I'm passing the method in as a parameter, and the furthest I get says "__call__ not defined". Do PythonScripts obivate the need for this? I assume I can just do this: for record in

[Zope] ZSQL database connection (ZPoPy) not giving expected results

2001-01-09 Thread Mark N. Gibson
Ok, here's the situation. I create a folderish object. I insert some info into the postgresql database related to this folderish object. I create a ZPopy database connection within this folderish object. All of this is done through a python method. If I do a query using this new database

[Zope] ZSQL is killing me...

2000-11-08 Thread Hugo Ramos
Yellow ppl, I think everybody already had this problem... Suppose you have a DB connection in /root/subfolder/DB_conn then you build lots of zsql objects from that point down... then you move the DB connection object up to the root. result: all ZSQL's have to be changed to assume the DB_conn

Re: [Zope] ZSQL is killing me...

2000-11-08 Thread Andy McKay
Wednesday, November 08, 2000 4:00 AM Subject: [Zope] ZSQL is killing me... Yellow ppl, I think everybody already had this problem... Suppose you have a DB connection in /root/subfolder/DB_conn then you build lots of zsql objects from that point down... then you move the DB connection object

[Zope] ZSql Strange Error

2000-11-02 Thread Cesar A. K. Grossmann
Hi! I'm trying to emulate an outter join in a Z SQL, but Zope crashes every time I try the query. The query is defined as: -*-*- parameters: username query definition: select codigo, nome, 'T' as select from cad_exportacao where codigo in ( select codigo from user_codigo

RE: [Zope] ZSql Strange Error

2000-11-02 Thread Casey Duncan
Cesar A. K. Grossmann wrote: Hi! I'm trying to emulate an outter join in a Z SQL, but Zope crashes every time I try the query. ... What is wrong? What I can do to get the job done (I need to fill an multiselect with 'codigo', 'nome' from 'cad_exportacao', and if exists any 'codigo' for

Re: [Zope] ZSql Strange Error

2000-11-02 Thread Cesar A. K. Grossmann
I'm not sure why this should *crash* zope, but you can do it with a much simpler query and a little DTML coding. The following should work (UNTESTED): It cannot help me. I have two tables. One called cad_exportacao, and the other is called user_codigo. The table user_codigo maps every

RE: [Zope] ZSql Strange Error

2000-11-02 Thread Casey Duncan
, November 02, 2000 12:08 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [Zope] ZSql Strange Error I'm not sure why this should *crash* zope, but you can do it with a much simpler query and a little DTML coding. The following should work (UNTESTED): It cannot help me. I have

Re: [Zope] ZSql Strange Error

2000-11-02 Thread Cesar A. K. Grossmann
Casey Duncan wrote: Duh, maybe I should learn to read. :-) Let me know if this is any better, It worked! Thanks. []s -- César A. K. Grossmann http://members.xoom.com/ckant/ ___ Zope maillist - [EMAIL PROTECTED]

[Zope] ZSQL ? PoPy

2000-10-31 Thread Mark Twiddy
Hi all Can someone please tell me what is going on here? I have an query that selects data into a temp table. It then deletes some stuff from the temp table Then is deletes some more stuff Then i select the remaining records and drop the table The problem is that when i try to select the

[Zope] ZSQL Method AUTHENTICATED_USER

2000-10-18 Thread Aaron Straup Cope
Hi, I'm trying to perform a simple MySQL lookup based on the AUTHENTICATED_USER. When I test the ZSQL method from the management interface, everything works fine. However, when I try to call the method from a DTML document, [it] returns nothing. Is this a namespace issue? I'm stumped and hoping

Re: [Zope] ZSQL Method AUTHENTICATED_USER

2000-10-18 Thread Jon Prettyman
I'm pretty sure that all variables have to be passed in explicitly with SQLMethods. Namespaces are not passed in. Try specifying username as an argument in the ZSQLMethods edit form and pass it in like this: dtml-in expr= "lookup_by_username(username=REQUEST.AUTHENTICATED_USER.getUserName()"

Re: [Zope] ZSQL Method AUTHENTICATED_USER

2000-10-18 Thread Aaron Straup Cope
sigh / Thanks. It was a syntax issue. I think I tried every single variation on passing variables to the method except that one. Sorry for the bother, folks... :-) On 18 Oct 2000, Jon Prettyman wrote: I'm pretty sure that all variables have to be passed in explicitly with SQLMethods.

RE: [Zope] ZSQL Method AUTHENTICATED_USER

2000-10-18 Thread steve smith
meter list for this SQL method as well, though it may not need to be... Steve -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jon Prettyman Sent: Thursday, 19 October 2000 8:18 To: [EMAIL PROTECTED] Subject: Re: [Zope] ZSQL Method AUTHENTICATED_USER I'm p

[Zope] ZSQL question

2000-10-17 Thread George Osvald
I have a table with lots of data in my Gadfly database. I would like to add a couple of new columns to that table. Is it at all possible to add columns to existing table or do I have to create a new table all together? Regards, George ___ Zope

Re: [Zope] ZSQL question

2000-10-17 Thread Paul Zwarts
I have a table with lots of data in my Gadfly database. I would like to add a couple of new columns to that table. Is it at all possible to add columns to existing table or do I have to create a new table all together? Nope, ALTER TABLE TABLE_NAME ADD COLUMN_NAME FORMAT_TYPE i think should

[Zope] ZSQL Method Timings/Profiling or MySQL SQL Execution Timing Statistics

2000-10-09 Thread knight
Greetings, I have a lot of past experience with tuning and timing on Oracle (quite simple), but I seem to have hit a hurdle with timing my sql statements in MySQL. Getting these timings are _incredibly_ important to finding bottlenecks in a web site's performance... Now, first, is it possible

Re: [Zope] ZSQL Method Timings/Profiling or MySQL SQL ExecutionTiming Statistics

2000-10-09 Thread knight
I'm answering myself because I found a solution to my problem, and I wanted to share the results with the list, in case someone is struggling to try to do the same thing... The problem with mysql (go easy, we're not talking about the fact that mysql is primitive and overall does not match up to

[Zope] ZSQL returns integer only

2000-10-06 Thread wmiller
The Oracle8i recordset I'm retrieving includes a few columns which are NUMBER(10,0) format which are milliseconds. I would like to divide each by 1000 and use the ROUND function to return a result with one decimal place, e.g. ROUND(column1/1000, 1). This works as expected in SQL*Plus. It

Re: [Zope] ZSQL

2000-09-13 Thread Dieter Maurer
Tom Deprez writes: ... nested Z SQL method call ... I do not understand fully, what you want to do. But the following FAQ may also be your problem: Z SQL methods do *NOT* use the DTML namespace for parameters. You must either pass the parameters explicitly:

[Zope] ZSQL and database locking

2000-09-12 Thread Arjan de Knegt
Dear all, I'm a happy Zope user (in a private environment), experienced in client-server application development but still quite green regarding to Zope. I'm trying to figure out how I can use database locking using ZSQL and MySQL. What is the case? I would like to implement a multi-user update

[Zope] ZSQL

2000-09-12 Thread Tom Deprez
Hi, I use an ZSQLMethod to query a database. In the result report I try to insert the results of another ZSQLMethod per each record of the first result report. The problem is that the first record shows the correct result of the second result, but that the following records all show the second

[Zope] ZSQL returning a trailing L

2000-08-14 Thread didier georgieff
Hello, I get a trailng "L" on smallint variables from ZSQL/MySQL on 2.1.4 (prod server) but not on 2.1.6 (developt server). I do remember a post some times ago about that, BUT i can't find it again on the archives despite my (weak ?) efforts.. Any info/tip would be great as the production 2.1.4

[Zope] ZSQL-ERROR

2000-07-12 Thread Mario Premke
Hi, I have installed Openticket an the appropiate database .. when I now go into Openticket and select the "sqlGenTicketId" - ZSQL-method for testing the database-connection I get: Error, exceptions.KeyError: unhandled SQL used: select max(ticket_id)+1 as new_ticket_id from tickets In the

[Zope] ZSQL newbie question

2000-06-21 Thread kamon ayeva
Hi, I have a text file object containing data I want to use to update a MySQL table. I can get the data using the LocalFS object product and the howto from jfarr, but I don't know how to use ZSQL method and DTML method to inject this data in the table. Any help would be appreciated. Regards,

Re: [Zope] ZSQL method broken on 2.1.6

2000-06-11 Thread Dieter Maurer
Andreas writes: ZSQLMethod's "advanced" property 'Maximum number of rows retrieved' makes no sense to me. It prevents stupid queries to kill Zope. Assume, such a query returns 100.000.000 records. This probably will let Zope require several GB memory. As I know so far there is no way to

RE: [Zope] ZSQL method broken on 2.1.6

2000-06-11 Thread Ron Bickers
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Andreas Sent: Saturday, June 10, 2000 1:59 AM To: Umesh Soni Cc: Phill Hugo; [EMAIL PROTECTED] Subject: Re: [Zope] ZSQL method broken on 2.1.6 (using zope 2.1.6 with ZMySQLDA-2.0.0a1

Re: [Zope] ZSQL method broken on 2.1.6

2000-06-09 Thread Phill Hugo
Umesh Soni wrote: (using zope 2.1.6 with ZMySQLDA-2.0.0a1 and MySQLdb-0.2.1) Hi there, I had this ZSQL method (simplified for clarity) working on 2.1.4 select id, nickname from bboard where id=50 order by id desc limit 30 Remove either the limit 30 or the LIMIT 1000 Advanced

Re: [Zope] ZSQL method broken on 2.1.6

2000-06-09 Thread Umesh Soni
Umesh Soni wrote: (using zope 2.1.6 with ZMySQLDA-2.0.0a1 and MySQLdb-0.2.1) Hi there, I had this ZSQL method (simplified for clarity) working on 2.1.4 select id, nickname from bboard where id=50 order by id desc limit 30 Remove either the limit 30 or the LIMIT

Re: [Zope] ZSQL method broken on 2.1.6

2000-06-09 Thread Andreas
Umesh Soni wrote: Umesh Soni wrote: (using zope 2.1.6 with ZMySQLDA-2.0.0a1 and MySQLdb-0.2.1) Hi there, I had this ZSQL method (simplified for clarity) working on 2.1.4 select id, nickname from bboard where id=50 order by id desc limit 30 Remove either

RE: [Zope] ZSQL-Methods: last inserted id

2000-05-18 Thread Ron Bickers
newid /dtml-in ___ Ron Bickers Logic Etc, Inc. [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Andy Sent: Wednesday, May 17, 2000 7:45 PM To: [EMAIL PROTECTED] Subject: [Zope] ZSQL-Methods: last inserted id

RE: [Zope] zsql method??/

2000-05-18 Thread Eric L. Walstad
PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of // Jonathan Park // Sent: Thursday, May 18, 2000 1:35 PM // To: [EMAIL PROTECTED] // Subject: [Zope] zsql method??/ // // // Hello everyone! // // I have a dtml method that calls in the sql method like this //dtml-in sql method // the result I