Re: [Zope-dev] Are Versions Reliable?
Chris, can you explain this phenomena a little more (I'll put it in the docs). Hi Chris, I think it was a documented bug in CST that was causing the problem. Upgrading to CST 0.8 (that was gonna be released soon? ;-) seems to have solved the problem, it also solved the problems with session being randomly dropped. I still got a stack of post-its relating to Python Script grief but I need to get them reproducable before I post :-( cheers, Chris ___ 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 )
[Zope-dev] cl.exe with MySQL-python-0.3.5
Title: cl.exe with MySQL-python-0.3.5 Hi! I just tried a build of the MySQL-python-0.3.5 module and I get a file not found error because I don't have a cl.exe, which is apparently something I need to finish the build. Does anyone know what I'm missing? I have Python 2.0 and MySQL 3.23.33 on win2000 Thanks, mike -- [[EMAIL PROTECTED] chikoon]$ whoami [whoami] Mike Blake Web Developer / CellNetwork, Spain [e-mail] [EMAIL PROTECTED] [icq] 103631268 [mobile] 678 642 392 [direct office phone] 91 761 4913 [office] Plaza Alonso Martinez 3, 4ª Planta, 28004 Madrid
Re: [Zope-dev] cl.exe with MySQL-python-0.3.5
cl.exe with MySQL-python-0.3.5Mike, Can I ask a favour of you first? Please don't send HTML formatted mail to the list, thanks. Now onto your problem. You need Microsoft Visual C (6.x?) to compile what you want. If you haven't got it, give me a few hours and I'll comple it for you. Phil - Original Message - From: Mike Blake To: '[EMAIL PROTECTED]' Sent: Wednesday, April 04, 2001 12:56 PM Subject: [Zope-dev] cl.exe with MySQL-python-0.3.5 Hi! I just tried a build of the MySQL-python-0.3.5 module and I get a file not found error because I don't have a cl.exe, which is apparently something I need to finish the build. Does anyone know what I'm missing? I have Python 2.0 and MySQL 3.23.33 on win2000 Thanks, mike -- [[EMAIL PROTECTED] chikoon]$ whoami [whoami] Mike Blake Web Developer / CellNetwork, Spain [e-mail] [EMAIL PROTECTED][icq] 103631268 [mobile] 678 642 392 [direct office phone] 91 761 4913 [office] Plaza Alonso Martinez 3, 4 Planta, 28004 Madrid ___ 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 )
[Zope-dev] BTree upgrading
Hi, I see the new catalog stuff makes use of new BTrees. I presume the big advantages the new catalog has are from these new BTrees. I know of a few products which also use these BTrees (Squishdot and some internal ones here spring to mind) so I guess they should be upgraded too? Well, I had a look at the _convertBTrees method in Catalog.py and it all made sense, so I'm guessing the folowing would be the correct way to convert some BTrees? from BTrees import IOBTree, BTree, convert myBTree if type(myBTree is not IOBTree): mynewBTree = IOBTree() convert(myBTree,mynewBTree, 200) ...or.. if type(myBTree is not BTree): mynewBTree = BTree() convert(myBTree,mynewBTree, 200) I'm guessing the 200 is how many items get put in each bucket? What should influence the choice of this number? cheers, Chris ___ 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] BTree upgrading
Chris McDonough wrote: This looks about right. Threshhold is the number of key-value pairs moved before a subcommit and cache flush, I believe. So 200 should be OK... probably higher, even. Cool... I feel a new point release of Squishdot brewing :-S cheers, Chris ___ 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] BTree upgrading
This looks about right. Threshhold is the number of key-value pairs moved before a subcommit and cache flush, I believe. So 200 should be OK... probably higher, even. - Original Message - From: "Chris Withers" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 04, 2001 9:51 AM Subject: [Zope-dev] BTree upgrading Hi, I see the new catalog stuff makes use of new BTrees. I presume the big advantages the new catalog has are from these new BTrees. I know of a few products which also use these BTrees (Squishdot and some internal ones here spring to mind) so I guess they should be upgraded too? Well, I had a look at the _convertBTrees method in Catalog.py and it all made sense, so I'm guessing the folowing would be the correct way to convert some BTrees? from BTrees import IOBTree, BTree, convert myBTree if type(myBTree is not IOBTree): mynewBTree = IOBTree() convert(myBTree,mynewBTree, 200) ...or.. if type(myBTree is not BTree): mynewBTree = BTree() convert(myBTree,mynewBTree, 200) I'm guessing the 200 is how many items get put in each bucket? What should influence the choice of this number? cheers, Chris ___ 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 ) ___ 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] BTree upgrading
Chris McDonough wrote: from BTrees import BTree gak! I get an import error here. What happened to the bog standard BTree? I need to map strings to objects, what should I use now? cheers, Chris ___ 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] BTree upgrading
Oops... from BTrees import OOBTree b = OOBTree.OOBTree() - Original Message - From: "Chris Withers" [EMAIL PROTECTED] To: "Chris McDonough" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, April 04, 2001 10:45 AM Subject: Re: [Zope-dev] BTree upgrading Chris McDonough wrote: from BTrees import BTree gak! I get an import error here. What happened to the bog standard BTree? I need to map strings to objects, what should I use now? cheers, Chris ___ 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 )
[Zope-dev] REQUEST and values stored there
Hia guys, the recent changes to the HTTPRequest class breaks some of my code. I may have missed some notifications, but why wasn't this made clear as it could obviously break code? -Morten ___ 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] MySQL-python-0.3.5 with ZMySQLDA
Title: RE: [Zope-dev] MySQL-python-0.3.5 with ZMySQLDA mike wrote: I just tried a build of the MySQL-python-0.3.5 module and I get a file not found error because I don't have a cl.exe, which is apparently something I need to finish the build. Does anyone know what I'm missing? I have Python 2.0 and MySQL 3.23.33 on win2000 phil wrote: You need Microsoft Visual C (6.x?) to compile what you want. Ok, I installed Microsoft Visual C++ from Studio 6, and after I did a successful build and install of the setup.py file for the MySQL-python-0.3.5 I installed it in a folder in my python directory: C:\Python20\win32comext\MySQL-python-0.3.5 But the reason I was compiling this module is because it is required for the installation of the ZMySQLDA database adaptor. Installation The Z MySQL database adapter uses the MySQLdb package. This must be installed before you can use the Z MySQL DA. Instructions on building the extension modules are given in the the README.txt file in the source directory. Ok, I got this far, but I extract the ZMySQLDA to the zope-root/lib/pyton/products directory, and the product doesn't install properly. It appears broken in the products list. Here is the error it gives on startup: Traceback (innermost last): File C:\zopes\chikoon\lib\python\OFS\Application.py, line 536 in import_products (Object: string) File C:\zopes\chikoon\lib\python\Products\ZMySQLA\__init__.py, line 91, in ? File C:\zopes\chikoon\lib\python\Products\ZMySQLA\DA.py, line 91, in ? File C:\zopes\chikoon\lib\python\Products\ZMySQLA\db.py, line 89, in ? Any ideas??? Is there something else besides the MySQLdb that I must compile for the product to be successfully installed? Thanks, mike -- [[EMAIL PROTECTED] chikoon]$ whoami [whoami] Mike Blake Web Developer / CellNetwork, Spain [e-mail] [EMAIL PROTECTED] [icq] 103631268 [mobile] 678 642 392 [direct office phone] 91 761 4913 [office] Plaza Alonso Martinez 3, 4ª Planta, 28004 Madrid
Re: [Zope-dev] MySQL-python-0.3.5 with ZMySQLDA
Mike Blake wrote: PLEASE don't post HTML email to the list. Thank you. Michael Bernstein ___ 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] REQUEST and values stored there
On Wed, 4 Apr 2001, Chris McDonough wrote: What breaks? There was no intention to break code or change the API. Code that looked like this: REQUEST['key_name1'] REQUEST['key_name2'] Now has to be changed to this: REQUEST.form['key_name1'] REQUEST.form['key_name2'] (The former method raises a KeyError.) These problems started to appear in the 2.3.x tree. -Morten ___ 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] REQUEST and values stored there
Wha? What are 'key_name1' and 'key_name2' in reality? - Original Message - From: "Morten W. Petersen" [EMAIL PROTECTED] To: "Chris McDonough" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, April 04, 2001 2:30 PM Subject: Re: [Zope-dev] REQUEST and values stored there On Wed, 4 Apr 2001, Chris McDonough wrote: What breaks? There was no intention to break code or change the API. Code that looked like this: REQUEST['key_name1'] REQUEST['key_name2'] Now has to be changed to this: REQUEST.form['key_name1'] REQUEST.form['key_name2'] (The former method raises a KeyError.) These problems started to appear in the 2.3.x tree. -Morten ___ 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 )
[Zope-dev] dtml-in performance
What can I do to maximize the peformance of a dtml-in statement? When iterating over a 2000 row database query, it takes about 20 seconds - time mostly spent doing security checks, and calling __getitem__ in DT_InSV.py. Is the performance of dtml-in just slow? -Brett ___ 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 )
[Zope-dev] .zexp format deprecated?
Hi all, Someone just mentioned on the #zope IRC channel that they saw a comment to the effect that the 'zexp format was 'deprecated'. Can anyone confirm this? what release will no longer support the format? Michael Bernstein. ___ 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] Help !
the zcatalog is built to search items in the ZODB, it cannot search unrelated data storages, like databases, out of the box. jens on 4/4/01 22:22, Honey George at [EMAIL PROTECTED] wrote: Hello, I am not able to search a postgres database using Z Catalog. I am not clear of the procedure basically. If you could help me in this regard please reply. I am a programmer from India.If I get an example it will be great. Regards, Honey __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ ___ 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 ) ___ 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 )