Re: [Zope] Using Zope DB connection from a Python class
Hi, is there anybody who did alter the ZOBCDA to work under Linux using one of the free open source adapters? I would like to share (get ;-) the code. Tnanks! Andrew Kenneth Milton wrote: +[ Tino Wildenhain ]- | Hi Ivan, | | 3. Zope 2.1.7 | Z ODBC DA 3.0.3 | Solid dev kit 2.3 | RedHat Linux 6.1 on i386 | | How to use Z ODBC DA on Linux? I only found a windows binary. You need to do a few things: First the ZODBCDA comes with src for the python ODBC wrapper. You can alter this src to use your ODBC library rebuild it and move the .so file up a directory. For UNIX ODBC libraries you have some choices:- OpenSource -- iODBC-- works OK unixODBC -- I had problems with this, but, it's not a very mature product, I didn't really stick with it at the time either (time constraints). -- connection reset by Peer ___ Dr. Peer Griebel Tel. +49 7581 4831 23 Geschäftsführer Fax. +49 7581 4831 11 Knoll Informationssysteme GmbH http://www.knoll-is.de Dreiköniggasse 17 mailto:[EMAIL PROTECTED] 88348 Saulgauprivat: mailto:[EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope-dev] Compiled Python as an Extension file
Hi, I managed to patch zope to accept compiled python files in the Extensions directory. I don't know what to do with my path. Where could I put it - into the Wiki pages? -- connection reset by Peer ___ Dr. Peer Griebel Tel. +49 7581 4831 23 Geschäftsführer Fax. +49 7581 4831 11 Knoll Informationssysteme GmbH http://www.knoll-is.de Dreiköniggasse 17 mailto:[EMAIL PROTECTED] 88348 Saulgauprivat: mailto:[EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Data.fs corruption (reproducable)
FYI: I managed to solve the problem. I simply took the third parameter out of the parameter list and initialized the variable inside the function: def FormatPreis( v, n=2, thou=regex.compile( "\([0-9]\)\([0-9][0-9][0-9]\([,.]\|$\)\)").search) becomes def FormatPreis( v, n=2 ) The new code is a little bit less efficient. But this doesn't hurt us. Special thanks to Pavlos Christoforou [EMAIL PROTECTED]! -- connection reset by Peer _______ Dr. Peer Griebel Tel. +49 7581 4831 23 Geschäftsführer Fax. +49 7581 4831 11 Knoll Informationssysteme GmbH http://www.knoll-is.de Dreiköniggasse 17 mailto:[EMAIL PROTECTED] 88348 Saulgauprivat: mailto:[EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope] Cache
Jonothan Farr wrote: How can I disable the browser cache in my zope documents ? One thing you can do is set the 'Expires' header like so: dtml-call "RESPONSE.setHeader('Expires', _.DateTime().rfc822())" This works using Netscape. But for IE I had to use: dtml-call "RESPONSE.setHeader('Expires', '-1')" dtml-call "RESPONSE.setHeader('Cache-Control', 'no-cache')" dtml-call "RESPONSE.setHeader('Pragma', 'no-cache')" I think the last Pragma can be left out. But the Cache-Control header ist neccessary. I got the information out of rfc2616. -- connection reset by Peer ___________ Dr. Peer Griebel Tel. +49 7581 4831 23 Geschäftsführer Fax. +49 7581 4831 11 Knoll Informationssysteme GmbH http://www.knoll-is.de Dreiköniggasse 17 mailto:[EMAIL PROTECTED] 88348 Saulgauprivat: mailto:[EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )