Re: [Zope-DB] Zope - Oracle Database Connection

2008-12-01 Thread Dieter Maurer
Nachiyappan wrote at 2008-12-1 10:12 +0530: > ... >i have installed DCOracleda for oracle . but i didn't make connection in zope >to oracle ! Zope won't display the connection adapter . Something went wrong with your installation. First of all "DCOracleDA" needs "DCOracle" to be installed. "DCO

Re: [Zope-DB] zope2 rdb and reconnect

2007-12-10 Thread Dieter Maurer
[EMAIL PROTECTED] wrote at 2007-12-9 13:42 -0500: >Found the problem. >I back ported this connector from a zope3 app. For the retry, being >raised was rdb.interfaces.Retry, I changed it to raise ZPublisher.Retry, >which works for zope2. > >Maybe there is a better way for zope2, but this works. A

Re: [Zope-DB] compiling dco2.c with Oracle 10g using mingw on Windows XP - interesting errror

2007-12-07 Thread Dieter Maurer
Maan M. Hamze wrote at 2007-12-5 18:32 -0600: >I compiled dco2.c on Solaris 9 with Oracle 9i and Oracle 10g with no >problems. >On Windows XP, compiling dco2.c with Oracle9i is fine. > >With Oracle 10g on Windows XP (using Mingw C compiler), I ran into following >errors: ># >In

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

2007-11-16 Thread Dieter Maurer
banaouas wrote at 2007-11-16 07:15 -0800: >I know there is many restrictions when writing python scripts. Only "Script (Python)" and derived classes are restricted. Python in normal Python modules/packages or "External Method"s are not restricted. >But is it possible to access to oracle (import

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

2007-08-27 Thread Dieter Maurer
onsombal wrote at 2007-8-27 06:59 -0700: > ... > ... >It's easy to insert and update Z SQL Methods directly from form field >results. > >It's easy to read form field results (e.g. request.field2) and do >comparisons, etc. > >I am struggling to understand how one can change a form field result wit

Re: [Zope-DB] Migration from Windows to Linux. How to do it?

2007-07-06 Thread Dieter Maurer
Mongolkhuu Baatar wrote at 2007-7-5 18:26 -0700: >I am newbie and sorry for if I ask too simple question. > > I have designed my Plone site on my localhost (Windows server) machine. Then > I need to move my real Zope and Plone server running on the Linux machine. > How do I to do this? > > My

RE: [Zope-DB] Using s in ZSQL methods?

2007-06-17 Thread Dieter Maurer
Ken Winter wrote at 2007-6-16 16:03 -0400: > ... >Exception Type >KeyError >Exception Value >'id_list' > >Traceback (innermost last): > ... >* Module Products.CMFCore.FSPythonScript, line 164, in _exec >* Module None, line 4, in people_delete_control > /DAgroups/portal_factory/

Re: [Zope-DB] FileMaker with Zope

2007-05-23 Thread Dieter Maurer
David Daniel Estévez Durey wrote at 2007-5-23 10:52 +0100: > ... >> There used to be a "ZODBCDA" database adapter as Zope product. >> However, maintenance by "zope.com" stopped and some interested >> people took it over. Maybe, you try to search for it. >> Or you pay the XXX Euro and buy the eGenix

Re: [Zope-DB] FileMaker with Zope

2007-05-22 Thread Dieter Maurer
David Daniel Estévez Durey wrote at 2007-5-22 13:54 +0100: > ... >I'm trying to connect FileMaker with Zope through ODBC, but I'm not >sure if I could do this for free, without buying any driver or >software. Can anyone explain to me how to do it or if it isn't >possible? To access any database

Re: [Zope-DB] Unable to fix a POSKeyError

2007-05-20 Thread Dieter Maurer
Ben Lobo wrote at 2007-5-18 17:33 +0100: > ... >I'm getting a POSKeyError when I try to access a particular file in a Plone >site within the ZMI (see error report at >http://hobointernet.com/POSKeyError.htm). You replace this file by a new object using an interative Python interpreter: contai

Re: [Zope-DB] Connecting FileMaker with Zope

2007-05-04 Thread Dieter Maurer
David Daniel Estévez Durey wrote at 2007-5-3 10:44 +0100: >I am trying to connect my FileMaker database with Zope, so I need a >Zope Database Adapter for FileMaker. I haven't founded any in the Zope >site, in exception of mxODBC Zope DA, but this bridge isn't free. I >would be so pleased if anyo

Re: [Zope-DB] Unicode charset problems dealing with the ZmySQLDA product

2007-04-30 Thread Dieter Maurer
Miguel Sánchez Beato wrote at 2007-4-30 12:33 +0200: >I'm having problems when I retrieve data from the database because the >data is not rendered using the unicode charset when the zope instance is >in a vserver (with a Gentoo Linux distribution), so I get weird >characters like 'á' instead o

Re: [Zope-DB] ZMySQLDA thinks that MySQL has gone away

2007-03-27 Thread Dieter Maurer
Pedro León López wrote at 2007-3-26 23:56 +0200: > ... > - Module Products.ZMySQLDA.db, line 389, in _abort > >error: release unlocked lock > >Other people with the problem: >http://mail.zope.org/pipermail/zope/2005-June/159762.html >http://dev.plone.org/plone/ticket/6263 > >It will be possible f

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

2007-03-27 Thread Dieter Maurer
Andreas Jung wrote at 2007-3-27 03:02 +0200: > ... >Well you know that Zope does not skip with any DA (except the one >for Gadyfly). So I am not in the position to replace anything in the Zope >core that does not exist :-) You might have attacked "Shared.DC.ZRDB" which is the base of Z SQL Methods

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

2007-03-26 Thread Dieter Maurer
Andreas Jung wrote at 2007-3-25 17:49 +0200: >In the Zope 2 worlds we have dedicated database adapters >for different databases. Fortunately the Python world made us a >wonderful present called SQLAlchemy that abstracts the different >databases. In the Zope world we have some wrappers like >z3c.zal

Re: [Zope-DB] ZMySQLDA on solaris10

2007-03-12 Thread Dieter Maurer
Comunian Alessandro wrote at 2007-3-12 15:01 +0100: > ... >ImportError: ld.so.1: python: fatal: relocation error: >file >/home/wwhypda/.python-eggs/MySQL_python-1.2.2-py2.4-solaris-2.10-sun4u.egg-tmp/_mysql.so: > >symbol mysql_set_character_set: referenced symbol not found I expect that your "M

Re: [Zope-DB] what is Inappropriate file type -- trying to install ZMySQLDA

2007-03-09 Thread Dieter Maurer
David Kurtz wrote at 2007-3-8 23:13 +: > ... >import _mysql > File "build/bdist.macosx-10.3-i386/egg/_mysql.py", line 7, in ? > File "build/bdist.macosx-10.3-i386/egg/_mysql.py", line 6, in __bootstrap__ >ImportError: Inappropriate file type for dynamic loading An "inappropriate file typ

Re: [Zope-DB] ZMySQLDA on solaris10

2007-02-22 Thread Dieter Maurer
Comunian Alessandro wrote at 2007-2-22 12:30 +0100: > ... >import _mysql >ImportError: ld.so.1: python: fatal: relocation error: >file /home/wwhypda/plone/instance_test01/lib/python/_mysql.so: symbol >mysql_errno: referenced symbol not found You MySQL-python does not fit with your MySQL vers

Re: [Zope-DB] Please help me about driver adapter

2007-02-16 Thread Dieter Maurer
Nguyen Viet Minh Quang wrote at 2007-2-16 12:42 +0700: > ... >I would like to use pymssql and another one, although I try >to install it more times but it's not working. Can you help me to install >it? No. I do not have an MS SQL server (I do not like MicroSoft and do not want to pay them any mone

Re: [Zope-DB] Please help me

2007-02-14 Thread Dieter Maurer
Nguyen Viet Minh Quang wrote at 2007-2-14 04:52 +0700: > ... >I would like to develop a new product running on Plone that can get data >from relational databases (SQL Server and Oracle). I know also to connect to >relational databases to install driver adapter. > >Yes, I found some driver adapter a

Re: [Zope-DB] mayday: zope does not start with ERROR ZODB.Connection Couldn't load state for 0x01 error

2007-02-08 Thread Dieter Maurer
robert rottermann wrote at 2007-2-6 18:55 +0100: >sorry for crossposting. >after stoping and restarting zope one of the zeo/zope instances does >not start anymore, and stop with an error. > >what could be the reason. how can we fix it. >fstest.py does not report any error. The object with oid "0x

Re: [Zope-DB] Can I change the ZSQL max_rows default value?

2007-02-08 Thread Dieter Maurer
Robert-Reinder Nederhoed wrote at 2007-2-6 10:29 +0100: >Good day, > > >We use Zope 2.8, still from ZMI. We ran into the 1000 limit several >times. Instead of remembering to set it to a higher value, I would >like to change the ZSQL max_rows default to 5000. > >Is it possible to do this? It is

Re: [Zope-DB] sql query works in database connector but not in ZSQL method

2007-01-17 Thread Dieter Maurer
robert rottermann wrote at 2007-1-17 15:42 +0100: > ... >when I execute this directly in the test "window" of the database >connection, it works fine. >when i execute the same line in the test window of a ZSQL Method >then I get an error: > >Error, Products.mxODBCZopeDA.ZopeDA.ReplayTransaction: Op

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

2006-12-31 Thread Dieter Maurer
Pablo Avalos wrote at 2006-12-27 11:28 -0300: >Sadly I'm stuck here at work with some Sybase DB, and I need to get some >info to the intranet plone-site.. I have recently seen a new announcement of a "Sybase" module on "db-sig@python.org". Search the archive. -- Dieter

Re: [Zope-DB] Problem wiith dtml-sqltest variable and multiples values into one parametert ???

2006-11-29 Thread Dieter Maurer
CERETTO Thierry wrote at 2006-11-29 09:15 +0100: > ... >Also, I test with "test" tab of "Z SQL method", it's the same, when I >put "f1" in parameter field, that's work but if I put "f1,f2" (list) >that's doesn't work (I get message above) (alos I tried : "f1","f2" and >'f1','f2', etc, etc, but with

Re: [Zope-DB] dtml-let variables in sql queries

2006-11-23 Thread Dieter Maurer
Andreas Tille wrote at 2006-11-23 16:06 +0100: > >Unfortunately > >does not seem to work transparently in the SQL-Method Right. "ZSQL Method"s take their parameters either from explicitly passed keyword arguments or from the request but not from the DTML namespace. -- Dieter __

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

2006-11-22 Thread Dieter Maurer
Maciej Wisniowski wrote at 2006-11-22 15:12 +0100: > ... >I'm especially interested in licensing. >SQLAlchemy is on MIT license, so I think if it will be >possible to use SQLAlchemy pool implementation then >then this DCOracle2 version may be ZPL. Am I right? I fear that there is a rule that every

Re: [Zope-DB] Pitfall: mxODBCZopeDA and test runner in 2.9+

2006-10-18 Thread Dieter Maurer
M.-A. Lemburg wrote at 2006-10-18 12:02 +0200: > ... >As I understand it, the only case that the PYC cleaner is trying >to work around here is a local configuration problem which only >occurs if some PY file was removed upstream. > >In such a case, checking in the PYC files seems like the >proper f

Re: [Zope-DB] Zope and MySQL talking on Windows

2006-10-02 Thread Dieter Maurer
shahrzad khorrami wrote at 2006-9-30 12:42 +: > ... > I Installed "The Zope MySQL Database Adapter (ZMySQLDA)" and >" The Python MySQL Database Interface (MySQLdb)" to Zope's Products directory >(/lib/python/Products) , but it didn't work ! In principle, it should work. Have you followed

Re: [Zope-DB] Zope database connectivity

2006-09-29 Thread Dieter Maurer
Maciej Wisniowski wrote at 2006-9-28 23:05 +0200: > ... >I don't know how abort of ZODB resource managers works but >doesn't rollback of ZODB resource manager remove _v_ variables? Usually not. An abort only deactivates (and deactivation kills the "_v_" variables together with other content) thos

Re: [Zope-DB] Getting a cursor?

2006-09-28 Thread Dieter Maurer
Paul Winkler wrote at 2006-9-27 17:44 -0400: >I have the impression that there is no standard way to get access to a >cursor from a Zope DA. >Is that true? True. But you can get at a cursor for each DA using DA specific implementation details, as the DA needs a cursor itself. And as most Zope

Re: [Zope-DB] Zope database connectivity

2006-09-28 Thread Dieter Maurer
Maciej Wisniowski wrote at 2006-9-27 22:40 +0200: > ... >> It can lead to nasty, apparently non-deterministic effects. >> You may lose your database connection mid transaction >> and part of what you think is a transaction (i.e. atomical) can be lost. >> >> >What are the circumstances under

Re: [Zope-DB] Zope database connectivity

2006-09-28 Thread Dieter . Maurer
Maciej Wisniowski wrote at 2006-9-27 21:38 +0200: > ... >To be able to finish whole transaction >for the relational DB... No. There are two reasons: 1. that later operations see the effects of earlier operations in the same request and more importantly 2. to avoid deadlocks.

Re: [Zope-DB] Zope database connectivity

2006-09-27 Thread Dieter Maurer
Maciej Wisniowski wrote at 2006-9-27 17:49 +0200: > ... >Thanks again for explanations. Seems that I'll change my DA's >(DCOracle2 and ZCxOracleDA) to use connection pool like psycopg >does. After quick look at their (psycopg) solution I think it is really good >and solves (or may solve) few other

Re: [Zope-DB] Zope database connectivity

2006-09-26 Thread Dieter Maurer
Maciej Wisniowski wrote at 2006-9-25 20:09 +0200: > >>It uses a private ZODB extension to prevent "_v_" attributes to be lost >>mid transaction (which can have nasty, partly non deterministic and >>very difficult to understand effects) and then calls "connect". >> >> >Does this mean that there is

Re: [Zope-DB] KeyError from Shared.DC.DA.DA

2006-09-25 Thread Dieter Maurer
FAIRS, Dan, GBM wrote at 2006-9-25 08:58 +0100: > ... >Here's the salient part of the traceback: > > File "/opt/intranet/cbfmnet/zope_home/Products/Membership/Member.py", line >118, in _getDBValue >values = self._getDBValues(attributes=[attribute]) > File "/opt/intranet/cbfmnet/zope_home/Prod

Re: [Zope-DB] Zope database connectivity

2006-09-25 Thread Dieter Maurer
Maciej Wisniowski wrote at 2006-9-24 22:00 +0200: > ... >Do you have 'connect_' defined elsewhere or it is expected to raise >an exception here and just log this? Sure, I have defined "connect_". It uses a private ZODB extension to prevent "_v_" attributes to be lost mid transaction (which can ha

Re: [Zope-DB] Zope database connectivity

2006-09-24 Thread Dieter Maurer
Maciej Wisniowski wrote at 2006-9-23 00:27 +0200: > > You could recode DA's to close the connection at the end of every > > transaction and reopen them on demand, >Seems for me that difference betwen "connect on load" >and "connect on demand" is in _begin, _finish and >__init__ methods of Transacti

Re: [Zope-DB] Zope database connectivity

2006-09-22 Thread Dieter Maurer
Chris Withers wrote at 2006-9-22 10:48 +0100: >Dieter Maurer wrote: >> M.-A. Lemburg wrote at 2006-9-20 23:00 +0200: >>> ... >>> I'll correct that slightly: Zope DAs usually open the connection >>> as soon as the connection object is loaded into memory, e.

Re: [Zope-DB] Zope database connectivity

2006-09-21 Thread Dieter Maurer
M.-A. Lemburg wrote at 2006-9-20 23:00 +0200: > ... >I'll correct that slightly: Zope DAs usually open the connection >as soon as the connection object is loaded into memory, e.g. >if you look at the folder contents containing the connection >object. In my view, this is a bug in Zope's DA code. H

Re: [Zope-DB] Some help about introductory Zope concepts.

2006-09-07 Thread Dieter Maurer
Jose Carlos Balderas Alberico wrote at 2006-9-6 08:42 +0200: > >I've been reading documentation for a month, and although I think I >understand what Zope is used for, there's still something I can't embrace, >which is Zope's interaction with Apache. Please read the "virtual hosting" section i

Re: [Zope-DB] ZOPE and "find in files feature"

2006-08-20 Thread Dieter Maurer
Harry Spier wrote at 2006-8-20 05:51 -0400: >I am building a website with a MYSQL database of text documents (several >thousand). I need to construct a feature similar to a "find in files" of a >text editor. Looks as if you would need text indexing in MySQL. Check whether MySQL does support thi

Re: [Zope-DB] Properly quoting string in ZSQLMethod for Postgresql (psycopg2)

2006-08-09 Thread Dieter Maurer
Maciej Zi-Bęba wrote at 2006-8-9 12:53 +0200:-A >I need to insert a python string into Postgresql's text field. I'm using >a ZSQLMethod with ZPsycopgDA and the template looks like this: > > >'INSERT INTO records (zope_id, title, long_description) >VALUES (, >, >)' > > >long_description is the tex

Re: [Zope-DB] Fw: mxODBC Installation problem in Zope2.7.8

2006-08-02 Thread Dieter Maurer
Sudesh Soni wrote at 2006-8-1 17:14 +0530: >I get the following error while installing mxODBC 1.0 in zope 2.7.8 : > ... >50, in makeLockFile >os.unlink(lock_filename) >OSError: [Errno 13] Permission denied: 'd:\\Zope1\\var\\Z2.lock' Check why the Zope process cannot unlink "d:\...\Z2.lock"...

Re: [Zope-DB] Operation Error : Using Zope2.6.1 and mxODBCZopeDA

2006-06-22 Thread Dieter Maurer
Sudesh Soni wrote at 2006-6-22 10:39 +0530: > ... >Yes , i have SonicWall VPN Client version 2.2.2.210 running on our SQL >server. If this is the reason then, do i have to make some changes in the >settings/properties in Sonic wall ? Usually, firewalls have an option to configure how long the conn

Re: [Zope-DB] Operation Error : Using Zope2.6.1 and mxODBCZopeDA

2006-06-21 Thread Dieter Maurer
Sudesh Soni wrote at 2006-6-21 18:13 +0530: >I get the below error : > > >OperationalError on "DSN=Zope" thread 2476/2476 at 0x27150c4>: ('08S01', 11, '[Microsoft][ODBC SQL >Server Driver][DBNETLIB]General network error. Check your network >documentation.', 6108) Do you have a firewall between Z

Re: [Fwd: Re: [Zope-DB] Multiple databases connection]

2006-06-08 Thread Dieter Maurer
Andreas Jung wrote at 2006-6-8 10:12 +0200: > ... >I am pretty sure you can do it with little coding. Since the DA (or its >ID is just a property or attribute (check the implemenation) you should be >able to modify it. And someone already did this: he had implemented a special "Z SQL Method" clas

Re: [Zope-DB] Zope, DCOracle2, concurrent transactions, etc.

2006-05-03 Thread Dieter Maurer
Please always stay on the list! Michael Mauws wrote at 2006-5-2 14:39 -0600: > ... >In light of the above, I don't think it's a GIL problem (without >having a clue what a GIL actually is) This is the "Global Interpreter Lock". It prevents more than a single thread to run Python code at the same t

Re: [Zope-DB] Zope, DCOracle2, concurrent transactions, etc.

2006-05-02 Thread Dieter Maurer
Michael Mauws wrote at 2006-5-1 19:02 -0600: > ... >However, the problem I'm having is that it's not just the >"update request" that hangs. Rather, it's the whole Zope that hangs >until this one request has been satisfied. Even Zope requests that have nothing to do with Oracle? This would indic

Re: [Zope-DB] Re: Database connection in a file system product

2006-04-27 Thread Dieter Maurer
Jonas Nielsen wrote at 2006-4-27 11:56 +0200: > ... >The sense is that I would like to find an easy way to install my product >without setting up the database connection manually. I guess the way to >do it is to add some code in install.py then ? That would work if you have a persistent object y

Re: [Zope-DB] Help request from a non-developer

2006-04-14 Thread Dieter Maurer
Christophe Appell wrote at 2006-4-14 17:43 +0200: >On 4/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> Well, this is one reason that I strongly prefer keeping my code >> on the file system. The availability of change-control software >> is the other. I happen to like git. > >Well, we are

Re: [Zope-DB] mysql / zope db connection issue

2006-04-07 Thread Dieter Maurer
Andreas Jung wrote at 2006-4-6 20:52 +0200: >>[Dieter] >>> We switched to Postgres, MySQL is used only for legacy components. > >Huh...google will tell you that it runs even on Windows. I probably should have written: we currently use MySQL only for remaining legacy components. I did not want to s

Re: [Zope-DB] mysql / zope db connection issue

2006-04-06 Thread Dieter Maurer
Jamie O'Keefe wrote at 2006-4-5 13:54 -0400: > ... >What version of MySQL are you using? An old one... We switched to Postgres, MySQL is used only for legacy components. -- Dieter ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/

Re: [Zope-DB] mysql / zope db connection issue

2006-04-05 Thread Dieter Maurer
Jamie O'Keefe wrote at 2006-4-5 01:32 -0400: >I have written a series of zope pages for a person to update their >record in our mysql database. They use a zpt->python->db sql->db >driver->db flow and work pretty well. > >Unfortunately, if enough people use it, the number of open db >connections g

Re: [Zope-DB] Oracle 9i, Zope 2.9.0 and Windows

2006-04-04 Thread Dieter Maurer
[EMAIL PROTECTED] wrote at 2006-4-4 13:08 CES: > ... >I've found the wiki page: >http://zopewiki.org/Oracle >and it seems that DOracle2 would be the best thing for my needs (I only n= >eed simple inserts and querries, nothing really fancy). But as I see ther= >e is no binary for Python 2.4 and Wind

Re: [Zope-DB] DCOracle2 on AIX5.2 -- issues

2006-03-15 Thread Dieter Maurer
[EMAIL PROTECTED] wrote at 2006-3-15 09:17 -0500: > ... >If you fix someone's C code, you really have to wonder if you did it >correctly, and you also have to wonder if the next release will contain >code that is even more difficult to fix. In short, you can hardly trust >software for industrial u

Re: [Zope-DB] DCOracle2 on AIX5.2 -- issues

2006-03-14 Thread Dieter Maurer
[EMAIL PROTECTED] wrote at 2006-3-13 13:32 -0500: > ... >However, during compilation of cdo2.o, I did encounter these symptoms: > >cc_r -DNDEBUG -O -I/oracle/product/9.2.0.6/rdbms/demo >-I/oracle/product/9.2.0.6/network/public -I/oracle/product/9.2.0.6 >/plsql/public -I/oracle/product/9.2.0.6/rdbms

Re: [Zope-DB] zope 2.8 with MySQL 5.0 extended passwords

2006-03-03 Thread Dieter Maurer
Please always stay on the list! Never send questions to me privately (usually, I do not answer them!). List readded... [EMAIL PROTECTED] wrote at 2006-3-3 09:00 +0100: >which means recompiling exactly what ??? The Python MySQL adapter is usually called "MySQL-python-". Sources can be found on So

Re: [Zope-DB] zope 2.8 with MySQL 5.0 extended passwords [Virus checked]

2006-03-02 Thread Dieter Maurer
[EMAIL PROTECTED] wrote at 2006-3-2 16:18 +0100: >After upgrading the passwords in an 5.0 MySQL database, zope 2.8 cannot >reconnect, because the client parts of mysql changed. >After changing all my C(++) clients (by using the updated include and libs) >all if fine, but the ZOPE stuff. Obviously,

Re: [Zope-DB] How I can connect MySQL database?

2006-02-09 Thread Dieter Maurer
G E R R I T wrote at 2006-2-9 10:01 +0800: >How I can connect MySQL database from my zope web project? Read the relevant chapter in the Zope Book (2.7 editon, online). BTW: Why to you attach an image when you post to a technical newsgroup? -- Dieter ___

Re: [Zope-DB] external ZODB from Zope interface

2006-02-02 Thread Dieter Maurer
gyro funch wrote at 2006-2-2 04:34 -0800: >I am a Zope newbie with some Python experience. We have a large amount of >scientific data that we are planning to load into several ZODBs. >>From the Zope interface, how can I access these 'external' >databases? To access additional storages, you use "P

Re: [Zope-DB] regarding zope database

2006-01-30 Thread Dieter Maurer
"<-bhavana ->" <[EMAIL PROTECTED]> wrote at 2006-1-30 10:27 +0700: > ... >How to communicate with zope database? You use Zope (or scripts using the Zope codebase). >the documents that we post in Plone >have id, ya? There are lots of "id"s around. The "id" used in Plone is not a universal id,

Re: [Zope-DB] help appreciated [Virus checked]

2006-01-13 Thread Dieter Maurer
[EMAIL PROTECTED] wrote at 2006-1-12 15:03 +0100: >After creating about 20 ZSQL Methods and polishing them out, > >I tried some changes in "opt/Zope-2.8/lib/python/Shared/DC/ZRDB" which >worked fine. >But then these Objects all appreared like this: >Abrechnung (This object from the ZSQLMethods prod

Re: [Fwd: Re: [Zope-DB] database connection]

2006-01-13 Thread Dieter Maurer
Martin Krallinger wrote at 2006-1-10 16:57 +0100: >thanks for the info. I am actually using zope 2.7 but still I >encountered this problem. I think the poster wrote: "fixed in Zope > 2.7". Maybe, you try 2.8.5 or 2.9? -- Dieter ___ Zope-DB mailing li

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

2005-12-29 Thread Dieter Maurer
Rajesh wrote at 2005-12-29 13:37 +0530: > 1. can not show more than 20 records (Roman Page) >... >KeyError: 'query' >Traceback (innermost last): A bug which should be fixed in quite recent Zope versions -- Dieter ___ Zope-DB mailing list Zope-DB@zo

Re: [Zope-DB] Z SQL equivelant of MySQL's SQL_CALC_FOUND_ROWS?

2005-11-30 Thread Dieter Maurer
Kevin Monceaux wrote at 2005-11-29 13:20 -0600: >I'm new to Zope so forgive me if the answer to this question is obvious. If >one performs a select with a limit clause is it possible to determine how >many results would have been returned if there was no limit? For example, >if I wanted to select

Re: [Zope-DB] insert failing without raising exception: postgresql, psycopg

2005-11-23 Thread Dieter Maurer
[EMAIL PROTECTED] wrote at 2005-11-23 06:51 -0800: > ... >I regret that I have not yet learned how to "add logging" to >ZPsycopgDA, and will appreciate learning how to do so. It looks like this ("ZPsycopgDA/db.py"): from zLOG import LOG, ERROR, INFO, PROBLEM ... LOG('Postgres', INFO, sum

Re: [Zope-DB] ZPsycopgDA looses db connection

2005-11-22 Thread Dieter Maurer
Ulrich Wisser wrote at 2005-11-22 13:25 +0100: >I have a very strange error. From time to time ZPsycopgDA will loose the >connection to the database (used as authentication source). Subsequently >Zope does still answer requests, but no authentication is possible and >all requests are answered wi

Re: [Zope-DB] insert failing without raising exception: postgresql, psycopg

2005-11-22 Thread Dieter Maurer
[EMAIL PROTECTED] wrote at 2005-11-22 03:27 -0800: >Problem: > Database inserts that worked previously are now failing, > without raising exceptions! I expect that something in your application catches exceptions. To verify this, I would add logging to "ZPsycopgDA" (indeed, I did in o

Re: [Zope-DB] Getting a newly created record

2005-11-18 Thread Dieter Maurer
Sean Fulmer wrote at 2005-11-17 17:04 +: >How can I insert a new record and have the new record immediately returned to >me >as an object? You must use database means for this. If your database system supports the "sequence" datatype (and you use it to generate a unique id) then you can use

Re: [Zope-DB] DCOracle2 for Python2.4

2005-11-18 Thread Dieter Maurer
Matthew Cahn wrote at 2005-11-16 13:02 -0500: >I have an application which uses DCOracle2. I wonder if anyone has >built dco2.pyd for Python 2.4. The 2.3 version built by Mikey at Zope >has been working great. You can use the extension build for Python 2.3 for Python 2.4, too. But version are

RE: [Zope-DB] Closing idle DCoracle2 Connections?

2005-11-02 Thread Dieter Maurer
Germer, Carsten wrote at 2005-10-24 13:32 +0200: >Ok, that's a bit much for my question I guess... >I gather from all your mails that I can not "close" a database >connection periodically or on event from Zope (Script or whatever)? Modulo bugs, this happens automatically (when the DA object is flu

Re: [Zope-DB] Closing idle DCoracle2 Connections?

2005-10-22 Thread Dieter Maurer
Matthew T. Kromer wrote at 2005-10-21 20:39 -0400: > ... >What happens with Zope and DCOracle2 I think is when the DA >connection object is ghosted, it doesn't know about it, and thus >doesn't close its connection. Why not? When the DA instance is ghosted, the "db" object is deleted (last

Re: [Zope-DB] Closing idle DCoracle2 Connections?

2005-10-21 Thread Dieter Maurer
Chris Withers wrote at 2005-10-21 16:27 +0100: > ... >Well, it depends, there can be a need for lots of infrequently used DA's >connecting to the same database. What prevents to replace these DA's by a single instance? Looks much easier than a sophisticated connection pool management... >Having

Re: [Zope-DB] Closing idle DCoracle2 Connections?

2005-10-21 Thread Dieter Maurer
Cynthia Kiser wrote at 2005-10-20 19:09 -0700: > ... >I am pretty sure there is a bug in DCOracle2. If you can, try using >DCOracle2 from the python prompt and close the connection. Now, can >you still talk to the database? It seemed to me that I could when I >tried that. > >For my particular circ

Re: [Zope-DB] Closing idle DCoracle2 Connections?

2005-10-20 Thread Dieter Maurer
Germer, Carsten wrote at 2005-10-20 11:16 +0200: > ... >As we start to use our zope-Ora connection more frequently our database >administrator complains that he sees a lot of idle conections. > >I know theres "connection.close()" in DCOra2 but does anyone know of a >way to autmatically close a DCOr

Re: [Zope-DB] setting up user privileges

2005-09-29 Thread Dieter Maurer
Marvin Calingacion wrote at 2005-9-29 21:30 +0800: >I would like to ask for some advice and tips on how to set-up >user-privileges on the site I made with Zope. These privileges will be based >on some sections of a given page while others will require a whole page. > >Example: > >-> Page 1 >- Secti

Re: [Zope-DB] Data.fs too huge

2005-09-23 Thread Dieter Maurer
Please stay on the list -- readded... [EMAIL PROTECTED] wrote at 2005-9-23 16:59 +0200: > ... >I have thought of another solution, if there is not enough space : it's to >mount an external nfs patition (as big as possible) and tell zope in >zope.conf that the database storage is in this partition

Re: [Zope-DB] Data.fs too huge

2005-09-22 Thread Dieter Maurer
[EMAIL PROTECTED] wrote at 2005-9-22 16:46 +0200: > ... >The problem is that it's now 25 GB (yes!) and I have to pack it, you >certainly understand why. But I've understood that when packing, zope >creates a backup file named data.fs.old, which is , logically, the size of >the previous database. >B

Re: [Zope-DB] Help with a Postgres and Psycopg in Win200

2005-09-07 Thread Dieter Maurer
Jose Z N wrote at 2005-9-7 01:54 -0500: > ... >After I unzip the file I found tree directories, I read what todo with the dll >and mx folders BUT later It says "Place the database adapter folder in Zope >products directory" I don`t Know exactly what to do. The "database adapter folder" has the

Re: [Zope-DB] psycopg + zope problem

2005-09-07 Thread Dieter Maurer
Martin Konicek wrote at 2005-9-7 17:26 +0200: > ... >* ls /var/lib/zope/lib/python/Products/ZPsycopgDA/ > [ ...output ommited...] Provided that Zope looks there for its products, you should see any problems with the import of "ZPsycopgDA" in your Zope logfile. I cannot tell you where the Zope lo

Re: [Zope-DB] Restore Data.fs.tmp ?

2005-08-10 Thread Dieter Maurer
Nokin Jérôme wrote at 2005-8-9 15:09 +0200: >I have zope 2.7.3 (on redhat enterprise 3) > >Our zope instance has run one week without the 'Data.fs' file (a human error). >All transactions ware apparently written to 'Data.fs.tmp'. So zope has >continued to run without any problem. "Data.fs.tmp" o

Re: [Zope-DB] Problem Adding Plone Users (PostgreSQL/APE)

2005-07-29 Thread Dieter Maurer
Winn, Steven J wrote at 2005-7-28 14:15 -0400: >I am running Plone using a PostgreSQL database and it works fine with the >exception of adding new users. When I attempt to add a user from the Plone >Configuration page, I get the following error: > >This site encountered an error trying to fulfill

Re: [Zope-DB] Deleting a ZCatalog Object from ZODB

2005-07-08 Thread Dieter Maurer
Takahashi, Michael wrote at 2005-7-7 09:27 -0700: >But there must be another more efficient way to delete >just the single object in the ZCatalog. Indeed: If you look at the catalog API (e.g. in the source or via "DocFinder"), you will find the "uncatalog_object" method. -- Dieter _

Calling function with variable arguments from ZPublisher (was: Re: [Zope-DB] Using psycopg directly in Zope Python script)

2005-07-04 Thread Dieter Maurer
Jørgen Frøjk Kjærsgaard wrote at 2005-7-4 11:04 +0200: > ... >Another question: When I define an external method to process form data, >I have to do it like this: > >def process_form_data(self, name, address, zip, ...): > ... > >What I would like to do is: > >def process_form_data(self, **args):

Re: [Zope-DB] Using psycopg directly in Zope Python script

2005-07-03 Thread Dieter Maurer
Jørgen Frøjk Kjærsgaard wrote at 2005-7-1 23:28 +0200: >I need to be able to access a Postgresql database directly from Zope >Python scripts (Z SQL Methods is not an option as the SQL code occurs in >modules that must be re-usable in a non-Zope context). > ... >import psycopg >dbcon = psycopg.con

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

2005-06-23 Thread Dieter Maurer
Maciej Wisniowski wrote at 2005-6-23 10:28 +0200: > ... >Module Products.DCOracle2.SP, line 301, in __call__ >TypeError: unbound method _lobConvert() must be called with DB instance >as first argument (got list instance instead) > >On Zope 2.7.x everything is OK. Any ideas what is wrong?? Look at

Re: [Zope-DB] Accessing the MySQL data dictionary

2005-06-01 Thread Dieter Maurer
Ken Winter wrote at 2005-5-31 21:21 -0400: > ... >The nicest way would be to just do SQL SELECTs against the data dictionary >tables. What happened when you tried the nicest way? ;-) -- Dieter ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.

Re: [Zope-DB] Zope - SQL authorisation model

2005-05-31 Thread Dieter Maurer
Terry Kerr wrote at 2005-5-31 19:02 +1000: > ... >For example, the person who is authenticated to the site (will be >authenticated via my user folder looking at the credentials in the >person record in the person table), is only allowed to update records in >a specific table that they own, as de

Re: [Zope-DB] DCoracle2 - truncates UTF-8 string with national characters

2005-05-23 Thread Dieter Maurer
Maciej Wi-Bśniowski wrote at 2005-5-23 14:54 +0200:-A >We're using DCOracle2 with Zope. On the client machine I've >NLS_LANG = polish_poland.UTF8. > >The problem appears when I'have 30 characters long column in database, >and the text stored in this column contains national characters and is full

Re: [Zope-DB] MySQL ZSQL Transactions or Commit in Zope?

2005-05-17 Thread Dieter Maurer
Michael Schwartz wrote at 2005-5-15 16:30 -0400: >I am trying to find sample code for performing transactions in ZSQL with >mysql 4.1. I'd like to do something like this: > >1 - Insert record A into USER table >2 - Get auto_increment id for record A >3 - Insert record B into WIDGET table with aut

Re: [Zope-DB] Calling a Z SQL method using a previous returned values

2005-05-17 Thread Dieter Maurer
Jason Walsh wrote at 2005-5-17 14:57 +0100: >I have the following ZPT code > > > > > > > >What I want to do is use the results from the first sqlMethod as a parameter >to the second to get a string that should be displayed. The problem is that >it says it does not know the variable os_id w

Re: [Zope-DB] Zope and MySQL problem

2005-05-13 Thread Dieter Maurer
Henk Laloli wrote at 2005-5-12 18:25 +0200: >There have been some questions concerning the myssql adapter under Zope >2.7.5. before on this list. I have been trying out >MySQL-python-1.0.0.win32-py2.3.zip with ZMySQLDA-2.0.8.tar.gz. I use >Windows XP. But they give the error: > >Traceback (most re

Re: [Zope-DB] Zope 2.7.5, ZMySQL2.0.8 and MySQL-Python 1.0.0

2005-05-12 Thread Dieter Maurer
Nilesh wrote at 2005-5-11 15:12 -0700: > ... >from db import DB > File "/usr/lib/plone2/lib/python/Products/ZMySQLDA/db.py", >line 89, >in ? >import _mysql >ImportError: _mysql: init failed Zope could not import "_mysql" -- maybe because the MySQL client shared object could not be located

Re: [Zope-DB] DCOralcle2 "Invalid connection string"

2005-04-06 Thread Dieter Maurer
Federica Gomiero wrote at 2005-4-6 17:23 +0200: > ... > Invalid connection string: user_name/[EMAIL PROTECTED] >with this error.log: >Traceback (innermost last): > ... > Module Products.ZOracleDA.DCOracle2.DCOracle2, line 185, in connect >BadRequest: Invalid connection string: /[EMAIL >PROTE

Re: [Zope-DB] Connection to Oracle DB

2005-04-05 Thread Dieter Maurer
Umashankar Rao wrote at 2005-4-5 11:27 -0400: > ... >But how to define my database connection parameters like >username/passwd and SID? Read the Zope Book (2.6 or 2.7 edition, online) -- especially the chapter about database integration... -- Dieter __

Re: [Zope-DB] ZODB/ZEO question.

2005-04-04 Thread Dieter Maurer
Willadsens wrote at 2005-4-3 19:10 -0400: > ... >Correct, and very intentional. The current question is: semaphore or >trap error and retry? The standard way is to catch the "ConflictError", abort the transaction and then retry the transaction. Of course, you can try to serialize your transactio

Re: [Zope-DB] ZODB/ZEO question.

2005-04-03 Thread Dieter Maurer
Willadsens wrote at 2005-4-1 15:13 -0500: > ... >Here is (1) the original trace, failing on the commit: > >Traceback (most recent call last): > ... > File "/usr/local/lib/python2.4/site-packages/ZODB/Connection.py", line >610, in commit > raise ConflictError(object=obj) >ZODB.POSException.Conflic

Re: [Fwd: Re: [Zope-DB] Status and future of OracleStorage]

2005-03-30 Thread Dieter Maurer
Tim Peters wrote at 2005-3-28 14:09 -0500: >[Shane Hathaway] >> Ape works just fine, so it doesn't need us much maintenance as it used to. >> The storage comparison chart is out of date--it's no longer in alpha. > >Feel free to check in updates on Zope-2_7-branch: > >http://cvs.zope.org/ZODB3/D