Re: [Zope-DB] use of cx_oracle adapter from within python script ?

2007-11-16 Thread Maciej Wisniowski
---t3039608.html -- Maciej Wisniowski ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db

Re: [Zope-DB] Automatic capture of user ids for auditing

2007-11-07 Thread Maciej Wisniowski
. You may take a look at CCZSQLMethods as they are example of extending ZSQLMethods. -- Maciej Wisniowski ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db

Re: [Zope-DB] case insensitive ZSQL queries

2007-09-06 Thread Maciej Wisniowski
thanks -- it now works like a charm AFAIR 'ilike' in postgres doesn't properly support i18n characters, so be carefull with that. -- Maciej Wisniowski ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db

Re: [Zope-DB] updating fields in a zsql method programmatically

2007-08-27 Thread Maciej Wisniowski
) or even: context.insertNew(field1='something', field2=other_variable) It is more clear than getting values from context I think. -- Maciej Wisniowski ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db

Re: [Zope-DB] updating fields in a zsql method programmatically

2007-08-27 Thread Maciej Wisniowski
onsombal napisaƂ(a): I tried the techniques you suggested and it results in the same error -- KeyError: 'form.submitted' You didn't tell about this kind of error before. Post a full traceback, please. I suppose that error is somewhere else... -- Maciej Wisniowski

Re: [Zope-DB] Reference DTML-sqlvar in ZPT?

2007-07-30 Thread Maciej Wisniowski
/name/div /div -- Maciej Wisniowski ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db

[Zope-DB] Re: [Zope] Conflict errors

2007-07-27 Thread Maciej Wisniowski
Could anyone suggest whats happening here that cause this error. Look at list archives. You may try to incerase session-resolution-seconds to 300 in your instances zope.conf and see if there is less of these errors. BTW. Zope-DB is about Zope and relational databases only. -- Maciej

Re: [Zope-DB] Using dtml-vars in ZSQL methods?

2007-06-18 Thread Maciej Wisniowski
be harmful unless you're sure that it is not possible to do sql injection. -- Maciej Wisniowski ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db

Re: [Zope-DB] Using dtml-vars in ZSQL methods?

2007-06-18 Thread Maciej Wisniowski
? It may be used to do 'where colname in ' statements. -- Maciej Wisniowski ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db

Re: [Zope-DB] Seeking a suitable ZpsycopgDA

2007-05-01 Thread Maciej Wisniowski
zope instance Products/ this will work (if only you will have correct version). -- Maciej Wisniowski ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db

Re: [Zope-DB] Unified DA for Zope 2 using SQLAlchemy?

2007-03-26 Thread Maciej Wisniowski
) is a nice idea :) -- Maciej Wisniowski ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db

Re: [Zope-DB] Unified DA for Zope 2 using SQLAlchemy?

2007-03-25 Thread Maciej Wisniowski
from databases. How does SQLAlchemy support this? Another thing, what about speed of ORMs in comparision to traditional queries with ZSQLMethods? -- Maciej Wisniowski ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db

Re: [Zope-DB] DCOracle2 and x86_64

2007-03-22 Thread Maciej Wisniowski
servers in order to avoid segfaults :) ) but I'll try when it'll be possible. -- Maciej Wisniowski ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db

Re: [Zope-DB] DCOracle2 with a Stored Procedure that Returns REFCURSOR / ORA TIMESTAMP DataType Issue

2007-03-20 Thread Maciej Wisniowski
systems everything was ok. Is your problem with TimeStamp related to 64 bit platform or it happens on 32 bit platforms too? -- Maciej Wisniowski ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db

Re: [Zope-DB] form-controllerPythonScript-ZSQL

2007-03-07 Thread Maciej Wisniowski
zsql: how to do it Have you read 'Relational database connectivity' chapter of Zope Book? -- Maciej Wisniowski ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db

Re: [Zope-DB] How to export data from ZODB to MYSQL

2007-02-25 Thread Maciej Wisniowski
database connectivity at http://www.plope.com/Books/2_7Edition/) 2. You want to use MySQL instead of ZODB (alternative storage) So, what do you want to do? -- Maciej Wisniowski ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman

Re: [Zope-DB] Extract Files from ZODB

2007-02-13 Thread Maciej Wisniowski
stores objects... BTW. This list is for relational database connectivity and zope not for ZODB issues. -- Maciej Wisniowski ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db

Re: RE : Re: [Zope-DB] modifications on a query

2007-01-26 Thread Maciej Wisniowski
any suggestions? Write a procedure in the database that does this and just call this procedure from Zope. -- Maciej Wisniowski ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db

Re: RE : [Zope-DB] How lunch SQL request from python script ?

2007-01-19 Thread Maciej Wisniowski
it to your database. Create external method like: def callSQL(self, statement): conn = self.myconnection() return conn.query(statement) -- Maciej Wisniowski ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db

Re: RE : [Zope-DB] How lunch SQL request from python script ?

2007-01-19 Thread Maciej Wisniowski
calling ZSQLMethod? -- Maciej Wisniowski ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db

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

2007-01-10 Thread Maciej Wisniowski
connection to the pool here # if your DA uses one If you'll have to do something more with database, then do it after calling this function otherwise it will be commited or rolled back during call to callSQLtransactionSet method. I'm not sure that this will work. -- Maciej Wisniowski

Re: [Zope-DB] Basic tsql example using MxODBC Zope DA adaptor?

2007-01-05 Thread Maciej Wisniowski
without any mxODBCZopeDA features (there are examples in mxODBC docs). Just write a python script (without zope) that does what you need and then plug it into Zope as external method (or product). -- Maciej Wisniowski Maciej, Thank you for your assistance. I plugged in the new code, using

Re: [Zope-DB] Sybase Adapter error :: alternatives?

2006-12-27 Thread Maciej Wisniowski
b) any alternatives to get connect to a Sybase DB? How about mxODBC? There is also SQLRelay that should work with Sybase -- Maciej Wisniowski ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db

[Zope-DB] DCOracle2 and x86_64

2006-12-05 Thread Maciej Wisniowski
/instancje/kfk_kw_testa/Products/DCOracle2/src' -- Maciej Wisniowski ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db

Re: [Zope-DB] [ANN] Modified version of DCOracle2 is available

2006-12-04 Thread Maciej Wisniowski
. Unfortunatelly I have no Solaris. But would be nice if you can check dco2.c from this version on Solaris machine. At last I'll add a note about this Solaris issue into INSTALL file. -- Maciej Wisniowski ___ Zope-DB mailing list Zope-DB@zope.org http

Re: AW: [Zope-DB] [ANN] Modified version of DCOracle2 is available

2006-11-24 Thread Maciej Wisniowski
into dco2.c. Thank you very much for these fixes. -- Maciej Wisniowski ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db

Re: [Zope-DB] [ANN] Modified version of DCOracle2 is available

2006-11-22 Thread Maciej Wisniowski
version, with some code from ChrisW branch (reconnect after connection is broken) is now at: https://dcoracle2da.googlecode.com/svn/branches/sqlalchemypool In general all this code is considered 'under developement'. There is nothing in tags/ yet. -- Maciej Wisniowski

Re: [Zope-DB] [ANN] Modified version of DCOracle2 is available

2006-11-22 Thread Maciej Wisniowski
, but there are no parts of it's code here. Seems this is same as need to have Oracle Client installed in system in order to use DCOracle2. -- Maciej Wisniowski ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db

Re: [Zope-DB] [ANN] Modified version of DCOracle2 is available

2006-11-21 Thread Maciej Wisniowski
already has such statement. -- Maciej Wisniowski ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db

[Zope-DB] [ANN] Modified version of DCOracle2 is available

2006-11-17 Thread Maciej Wisniowski
THAT THIS WILL WORK FOR YOU, SO BE CAREFULL :) -- Maciej Wisniowski ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db

[Zope-DB] Re: Zope database connectivity

2006-10-09 Thread Maciej Wisniowski
with transactions integrity in this situation. -- Maciej Wisniowski ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db

[Zope-DB] Zope3.3.0 - zope.rdb implementation - bug, feature or what?

2006-10-09 Thread Maciej Wisniowski
useful...? Is this issue a bug or feature or something else. I'm not able to recognise them myself (especially after submitting request.locale issue on z3-five list :)). I would like to know your's opinions before submiting a bug and/or trying to create a patch. -- Maciej Wisniowski

Re: [Zope-DB] working with zope rdbms transaction mgmt

2006-10-09 Thread Maciej Wisniowski
Upsss... sorry It's really old post... My sort order failed or something... -- Maciej Wisniowski ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db

Re: [Zope-DB] Zope database connectivity

2006-10-05 Thread Maciej Wisniowski
. As a result if we have a lot of SP calls during one request there is a lot of commits (rollbacks) to the same db connection. Maybe it's something about caching procedure objects in volatile attributes. -- Maciej Wisniowski ___ Zope-DB mailing list Zope-DB

Re: [Zope-DB] Zope database connectivity

2006-09-27 Thread Maciej Wisniowski
database was restarted shouldn't be too difficult too. -- Maciej Wisniowski ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db

Re: [Zope-DB] Zope database connectivity

2006-09-27 Thread Maciej Wisniowski
() for this? Isn't Transaction something persistent? Or maybe its better to use request object instead (sounds a bit ugly but why not?)? Seems to be too simple so I've possibly missed something :) Any ideas? -- Maciej Wisniowski ___ Zope-DB mailing list Zope-DB

Re: [Zope-DB] Zope database connectivity

2006-09-24 Thread Maciej Wisniowski
('Shared.DC.ZRDB.Connection', ERROR, 'Error connecting to relational database.', error=exc_info()) Do you have 'connect_' defined elsewhere or it is expected to raise an exception here and just log this? -- Maciej Wisniowski

Re: [Zope-DB] Zope database connectivity

2006-09-22 Thread Maciej Wisniowski
of TransactionManager is called - it may close the database connection like SQLRelayDA: def _finish(self, *ignored): self.con.commit() self.con.close() or just commit a connection (DCOracle2). -- Maciej Wisniowski

Re: [Zope-DB] TAL and empty sql-list

2006-03-21 Thread Maciej Wisniowski
If you really have to do it in TAL try: div tal:define=results python:here.project(uname=username) tal:content=python: results and results[0].project or '---' / -- Maciej Wisniowski ___ Zope-DB mailing list Zope-DB@zope.org http

Re: [Zope-DB] Checkboxes selecting records...

2006-02-12 Thread Maciej Wisniowski
: select * from table_horses where horse_id in (1, 3, 4, 6) You can find how to write such ZSQLMethod in Zope Book (chapter about relational database connectivity). Hope I understood you correctly :) -- Maciej Wisniowski ___ Zope-DB mailing list Zope

Re: [Zope-DB] dealing with dropped database connections

2006-01-22 Thread Maciej Wisniowski
-discussion. - Maciej Wisniowski ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db

Re: [Zope-DB] can't Show More than 20 records

2005-12-30 Thread Maciej Wisniowski
'resolved' bugs in collector hth -- Maciej Wisniowski ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db

[Zope-DB] DCOracle2 and ConnectionReleasedError

2005-07-13 Thread Maciej Wisniowski
._v_connection_id ) db.rollback() returnConnection( self._v_connection_id ) self._v_connection_id = None #--- -- Maciej Wisniowski

Re: [Zope-DB] Zope 2.8 and DCOracle2 Stored Procedures

2005-06-23 Thread Maciej Wisniowski
return 1 to Procedure class in SP.py (and to DB class in db.py - just in case) and it seems to work now :) Tomorrow I'll try with chrisw version too. -- Maciej Wisniowski ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope