[Zope-Coders] Zope tests: 7 OK, 1 Failed
Summary of messages to the zope-tests list. Period Thu Oct 6 11:01:02 2005 UTC to Fri Oct 7 11:01:02 2005 UTC. There were 8 messages: 8 from Zope Unit Tests. Test failures - Subject: FAILED (errors=1) : Zope-trunk Python-2.4.1 : Linux From: Zope Unit Tests Date: Thu Oct 6 22:45:22 EDT 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-October/003270.html Tests passed OK --- Subject: OK : Zope-2_6-branch Python-2.1.3 : Linux From: Zope Unit Tests Date: Thu Oct 6 22:34:52 EDT 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-October/003263.html Subject: OK : Zope-2_6-branch Python-2.3.5 : Linux From: Zope Unit Tests Date: Thu Oct 6 22:36:22 EDT 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-October/003264.html Subject: OK : Zope-2_7-branch Python-2.3.5 : Linux From: Zope Unit Tests Date: Thu Oct 6 22:37:52 EDT 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-October/003265.html Subject: OK : Zope-2_7-branch Python-2.4.1 : Linux From: Zope Unit Tests Date: Thu Oct 6 22:39:22 EDT 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-October/003266.html Subject: OK : Zope-2_8-branch Python-2.3.5 : Linux From: Zope Unit Tests Date: Thu Oct 6 22:40:52 EDT 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-October/003267.html Subject: OK : Zope-2_8-branch Python-2.4.1 : Linux From: Zope Unit Tests Date: Thu Oct 6 22:42:22 EDT 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-October/003268.html Subject: OK : Zope-trunk Python-2.3.5 : Linux From: Zope Unit Tests Date: Thu Oct 6 22:43:52 EDT 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-October/003269.html ___ Zope-Coders mailing list Zope-Coders@zope.org http://mail.zope.org/mailman/listinfo/zope-coders
Re: [Zope-dev] [Zope 2.8.2] Minor delay
[Andreas Jung] I originally scheduled Zope 2.8.2 for October 12th but I have to delay the release for some days (possibly one week) because of unforeseeable travel and a lot of important work. I hope this is fine for everyone. Works for me ;-) Is Zope 2.7.8 also affected (2.7.8 was also scheduled for October 12)? I need to know in advance so I can get matching ZODB 3.2.10 and 3.4.2 releases made and stitched in at the right times. ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] [Zope 2.8.2] Minor delay
--On 7. Oktober 2005 15:35:00 -0400 Tim Peters [EMAIL PROTECTED] wrote: [Andreas Jung] I originally scheduled Zope 2.8.2 for October 12th but I have to delay the release for some days (possibly one week) because of unforeseeable travel and a lot of important work. I hope this is fine for everyone. Works for me ;-) Is Zope 2.7.8 also affected (2.7.8 was also scheduled for October 12)? I need to know in advance so I can get matching ZODB 3.2.10 and 3.4.2 releases made and stitched in at the right times. Yes, the same applies to Zope 2.7.8. Andreas pgpJlTKCIlAPi.pgp Description: PGP signature ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
RE: [Zope] Zope Scalability
--On 5. Oktober 2005 17:37:08 +0100 Tom Wilde [EMAIL PROTECTED] wrote: Hi folks, I've been using Zope for a while now and found it to be an excellent solution however I've got a few enterprise questions about the scalability of Zope that just need to be answered. [ nb: I'm using V2.72 at the moment, not having moved over to V3 ] ExtFile Managed to serve 500,000 files through extfile - anybody come across an upper limit here? Planning to serve larger sites off a SAN hopefully - has anyone tried this? no idea For static content we still use Apache. Zeo and Cataloging If I have my site on one server and ZCatalog (using TextIndexNG) on another server (connected by ZEO) where does the actual index operation occur? Do just the results get propogated to the catalog? The indexing work is always happens on the ZEO clients, not on the server. Just the results are transferred to the ZEO Server. LDAP Authentication I understand that can use the LDAPUserFolder Product to provide authentication against an ldap server. Could I throw,say, 5+ users at zope using this system? This should work in general. Possibly it requires some tweaking here and there depending on your usecases. We use LDAPUserFolder as the backend authentication store for our online learning environment here at newcastle. It copes rather well with several thousand students and many groups - I'd imagine it will scale as well as your LDAP setup can. (Our LDAP server is a pretty low-end Sun V60 - single Xeon 2.8GHz with 2Gb of ram and is very rarely under any significant load). Load Balancing and Cookie Based Sessions Currently we use cookie based sessions via cookie crumbler presumably in a load balanced server setup we'd have to host acl_users ona ZEO'd izope instance somewhere on the backend? I don't see what sessions have to do with acl_users. In your ZEO setup you have identical data except sessions on every ZEO client. You just have to ensure somehow that users get to the same ZEO client for the lifetime of the session. How this is done depends basically on the load balancer. We initially tied users sessions to individual ZEO clients (6 x dual Opteron nodes) and it worked well. However we have since migrated the session information to be served via the ZEO server in the same manner as the data.fs; we now get the benefit of much finer grained load balancing and are very pleased with the performance we get. As a side effect, it means we can host multiple ZEO clients from different systems on one box without fear of a particular ZEO client bringing the box to it's knees. As an aside, we find management of ZEO clients much easier if each ZEO client of a particular system shares the same products and external methods via an NFS share. That way we can untar one product and push it out to all of the clients simultaneously. -John -- Faculty of Medical Sciences Computing University of Newcastle upon Tyne ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope Scalability
As an aside, we find management of ZEO clients much easier if each ZEO client of a particular system shares the same products and external methods via an NFS share. That way we can untar one product and push it out to all of the clients simultaneously. I'd be a little afraid of creating a single point of failure with NFS. I have used setups like that before, but personally prefer some simple distribution mechanism instead. If you use CVS or SVN for your software you could write simple SSH scripts to visit hosts and do a cvs/svn up in the right place and then restart the clients. rsync is a good candidate as well. jens ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Zope Scalability
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jens Vagelpohl Sent: 07 October 2005 09:04 To: Zope ML Subject: Re: [Zope] Zope Scalability As an aside, we find management of ZEO clients much easier if each ZEO client of a particular system shares the same products and external methods via an NFS share. That way we can untar one product and push it out to all of the clients simultaneously. I'd be a little afraid of creating a single point of failure with NFS. I have used setups like that before, but personally prefer some simple distribution mechanism instead. If you use CVS or SVN for your software you could write simple SSH scripts to visit hosts and do a cvs/svn up in the right place and then restart the clients. rsync is a good candidate as well. jens We don't have anything that complex :-) Most sites that we host probably have less than 20 external python methods (a lot have none at all!), with common products shared by all the sites installed on each system in the master zope lib/python/products directory structure. The majority of complexity is in each systems ZODB. All of our boxes are on a private network, on the same gbit switch as the ZEO server, so performance/service interruption, network timeouts etc.. is never a factor. The NFS shares (products, extensions, file upload areas[uploads via zope, and these areas are then served back out via Apache] and user home directories[again, using our ldap systems for authentication]) are from the same ZEO server (primary storage is handled by a multi-terabyte SATA). We're running about ~50 individual Zope systems at the moment (all as ZEO clients, many have multiple ZEO clients across several nodes, with incoming requests load balanced via Pound).. and I must say, this setup is way better than our old Sun E3500 that used to (try) to handle all of this! ZEO is the way to go for sure though we are now hitting problems when trying to integrate the Internet2's Shibboleth single sign on authentication system into a load-balanced setup... but that's a story for another time :-) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Packaging a zope application
Joshua Burvill wrote: Hello All, I have a zope application which operates on data in an external relational database (Firebird), as well as containing lots of folders, dtml docs, scripts, zsql methods etc within the zope db I would like to get suggestions on the best way to package the whole application so that it is easy to set up from scratch. Currently there is a three step process: 1. install correct version of zope 2. unzip a zip file which I maintain that contains all the added libraries, products, .zexp file, and external methods into their correct paths in the zope root folder on the filesystem, then restart zope 3. Log into zope as admin and import the .zexp file into the zope root folder in the zope db MAybe have a look at the GenericSetup product being developed as part of the fssync work for CMF? cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: Presentations Available
Rob Miller wrote: this strikes me as a bit unfair. to quote stefan holek from a post on plone-dev earlier today, most reported migration problems are due to: - Upgrading to Zope 2.8 without reading the release notes. *shrugs* I've not had need to read he release notes yet, what am I missing? - Third party products that are not yet fully compatible with Plone 2.1 and/or Zope 2.8. Well yes, see comments about the state of third party products, particularly for Plone elsewhere... - Sites that have customized parts of Plone they shouldn't have touched in the first place. Was there anything to tell them not to? People often code by copying and pasting and far too often Plone seems to give the impression well, you shouldn't do this, but we have to, so we are riding roughshod over their own APIs, not to mention those of Zope, and using some truly horrendous coding style which people who base their projects on Plone unfortunately learn from... - Plone Team stupidity. no comment ;-) as for the broken products, that is a pandemic within the open source community, hardly unique to plone. *shrugs* this is more philosophical and which I covered in the talk. Plone has been all inclusive in its welcoming to potential developers, this builds a a great community at the expense of software quality, imnsho... follow-through. the suggestion you make in your talk of having a peer rating process for add-on products is a good one, certainly, and one that's been discussed before, but getting there takes some effort. ...probably worth someone senior in the Plone community making that effort though ;-) AT's problems are entirely recognized by those of us who use it heavily, and i can assure you that the AT developer pool has no intention of continuing to pile more cruft on top of a shaky stack. Really? ;-) the first iterations of this will probably also have some warts. but please don't assume that plone/AT developers don't see the same problems that you see, and that they aren't willing and able to learn from their mistakes. Yes, but there are simple to fix bugs and horribleness in AT that have been there over multiple releases now, your comments don't really gel with that reality... Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: INSTALLING gcc (and ZOPE) on DEBIAN
Hello, Ok, does this error message mean that it is just a swap problem so that I wont have to install gcc, Python anymore? Having run top, I could dectect that there is 10,241,428k total Swap. About 3,856,000k of it is actually being used and approximately 6,384,000k is free and about 463,000k is cached. I expect the 6,384,000k free space not to be enough - right? But what processes am I allowed to kill? Are there any processes that are absolutely neccessary? Ben Nikko Wolf [EMAIL PROTECTED] schrieb am 06.10.05 17:00:38: Jens Vagelpohl wrote: On 6 Oct 2005, at 11:39, [EMAIL PROTECTED] wrote: virtual memory exhausted: Nicht genügend Hauptspeicher verfügbar error: command 'gcc' failed with exit status 1 make *** [build] Fehler 1 Have you actually *read* the output? It tells you, quite clearly, even in German, that you don't have enough memory on that machine. Indeed, although it's virtual memory (a.k.a. swap space or swap -- although more RAM might help) Not meaning to insult you, but see: http://de.wikipedia.org/wiki/Virtuelle_Speicherverwaltung At the command prompt, run top and look at the Swap: line, which should show large values for total and free such as: Swap: 1959888k total, 356276k used, 1603612k free, 124196k cached If total is high, but free is not, you can have 'ps' list the virtual memory used by each process and sort it in increasing usage with something like: ps -Ao pid,user,stime,vsize,args | sort +3n Cheers, N __ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193 ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: INSTALLING gcc (and ZOPE) on DEBIAN
On 10/7/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Ok, does this error message mean that it is just a swap problem so that I wont have to install gcc, Python anymore? Having run top, I could dectect that there is 10,241,428k total Swap. About 3,856,000k of it is actually being used and approximately 6,384,000k is free and about 463,000k is cached. I seriousy doubt you are using 3 GB of swap, you probably mean 3,856K. :) Meaning that you have a total of 10MB of swap which is very little. I expect the 6,384,000k free space not to be enough - right? But what processes am I allowed to kill? Are there any processes that are absolutely neccessary? A good rule of thumb is to have the same amount of swap as you have internal memory. This should be somewhere between 128MB and several GB for any reasonably configured computer. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] No cache headers
This might be a FAQ but I've searched and just found a bunch of different results. Some old and some even older. What do you use to stop caching? IE users of my current project have reported problems of pages on updating. I'm not setting any caching at all so that's what IE does out of the box. (Firefox is not having a problem). Currently I'm using this: now = DateTime().toZone('GMT').rfc822() response.setHeader('Expires', now) response.setHeader('Last-Modified', now) response.setHeader('Cache-Control','no-cache') By inspection with LiveHTTPHeaders in Firefox it sets them all but I'm not 100% certain they will work. There's also the concern that I think M$ IE might have a bug in relation to that 'Cache-Control' header. There's some strange and now I just can't remember it or find out about it on google. So, what do you people use? Willing to share some of that? -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Presentations Available
Hello Some thoughts : - Upgrading to Zope 2.8 without reading the release notes. I followed the release notes but this didn't fix catalog errors. I am not the only one. This is apparently fixed in Zope 2.8.2 but that doesn't look like it can be downloaded yet. - Third party products that are not yet fully compatible with Plone 2.1 and/or Zope 2.8. Should this perhaps be the other way around? If those products used the APIs correctly, perhaps a new release of Zope/Plone should still support old APIs and/or deprecate them gradually and with warning? This is a difficult problem to address but sometimes it may be better to hold back on releasing something new if it causes things that depend on it to break. On the other hand I can understand peoples desire to release something new and cool (even if not quite ready) . ;-) And its hard to know quickly what the bugs are if you don't release it to the real world. So hard to know what to do.. - Sites that have customized parts of Plone they shouldn't have touched in the first place. This is an important issue. It is difficult not to touch things that one shouldn't. A trivial example - If you want your breadcrumbs to just list the breadcrumbs instead of say you are here you have to copy across global_pathbar.pt and take out you are here. There is not another easy way to do it that I can see. If you then migrate to 2.1, that .pt has changed so you have to copy the new one and re-do it otherwise nothing renders. If you want to add another logo on the right of the header you have to hack Plone's templates further. Each change is in itself trivial but they add up and when you migrate, you;re left with stuff that doesn't work and spend quite a while resolving it. And thats for those of us savvy enough to use the filesystem. Those who customised through the ZMI will have a bigger headache. as for the broken products, that is a pandemic within the open source community, hardly unique to plone. True. AT's problems are entirely recognized by those of us who use it heavily, and i can assure you that the AT developer pool has no intention of continuing to pile more cruft on top of a shaky stack. . the first iterations of this will probably also have some warts. but please don't assume that plone/AT developers don't see the same problems that you see, and that they aren't willing and able to learn from their mistakes. It would seem Archetypes has improved over time. My real worry is when we do have a new release of Plone sitting on top of Zope 3 we'll have a whole new set of bleeding edge code sitting on top of other bleeding edge code, while stuff that did work with a mature AT1.3.x (or 1.4.x or whatever) suddenly stops working. Hopefully this will prove to be an unjustified fear! Probably this is no-one's fault. It is the nature of open source. To compare, have to admit I tried to get Bricolage to work a while back, and ran into CPAN dependency hell. I wonder if perhaps the real problem is trying to do so much with so few resources. Linux has a very mature platform as much of its base, and a lot of commercial support which helps. Perl and the CPAN is quite mature now and also had quite a lot of commercial support. The good thing about commercial support is people being paid to do grunt work and run loads of tests and update documents. Both Linux and CPAN are very modular. It is relatively easy to change one part without knowing about other parts. I think it would be easier to find someone who could patch a broken CPAN module, than someone who could delve inside Zope and Plone. This is because many of us don't understand the various components of the underlying architecture, and a lot is changing for Zope 3. Also many Perl modules are widely used by many applications, whereas a lot of Zope code is only used by other Zope code. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] No cache headers
On Fri, Oct 07, 2005 at 11:01:29AM +0100, Peter Bengtsson wrote: What do you use to stop caching? IE users of my current project have reported problems of pages on updating. You should also set the Pragma header to 'no-cache', for HTTP 1.0 compatibility. See http://www.google.nl/search?hl=nlq=pragma+no-cache+cache-control+%22internet+explorer%22meta= which lists: http://support.microsoft.com/support/kb/articles/Q234/0/67.ASP http://www.web-caching.com/msiebugs.html Regards, Pieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] How to make a table with sortable colmns?
Hello all, i am using the following to get some data from Database and show them in a table: head META HTTP-EQUIV=Content-Type CONTENT=text/html; charset=ISO-8859-7 /head style type=text/css media=screen!-- @import url(/plone.css); --/style style type=text/css media=screen!-- @import url(/ploneColumns.css); --/style style type=text/css media=all!-- @import url(/ploneCustom.css); --/style dtml-var standard_html_header table id=sortable class=listing summary=Content listing cellpadding=0 cellspacing=0 thead dtml-in expr=GetHeader(sysDSN=sysDSN, usr=usr, mypass=mypass, sTable=sTable) th class= dtml-in sequence-item nbsp;dtml-var sequence-itemnbsp; /dtml-in /th /dtml-in /thead dtml-in expr=GetData(sysDSN=sysDSN, usr=usr, mypass=mypass, sTable=sTable) dtml-if sequence-even tr class=even dtml-else tr class=odd /dtml-if dtml-in sequence-item !-- td input type=checkbox title=dtml-var sequence-item /td-- tddtml-var sequence-item/td /dtml-in /tr /dtml-in /table dtml-var standard_html_footer But how can i tell the table to sort the column i click on just like plone does with the members list? Thanks in advance Thomas Apostolou ___ Χρησιμοποιείτε Yahoo!; Βαρεθήκατε τα ενοχλητικά μηνύματα (spam); Το Yahoo! Mail διαθέτει την καλύτερη δυνατή προστασία κατά των ενοχλητικών μηνυμάτων http://login.yahoo.com/config/mail?.intl=gr ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Presentations Available
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nick Davis wrote: snip - Third party products that are not yet fully compatible with Plone 2.1 and/or Zope 2.8. Should this perhaps be the other way around? If those products used the APIs correctly, perhaps a new release of Zope/Plone should still support old APIs and/or deprecate them gradually and with warning? Zope and CMF already adopt this practice for public APIS. Some of the incompatibilities people report come from reliance on non-public implementation details; others are bugs in Zope or CMF. I don't know what Plone's policy is about deprecating APIs / features. This is a difficult problem to address but sometimes it may be better to hold back on releasing something new if it causes things that depend on it to break. On the other hand I can understand peoples desire to release something new and cool (even if not quite ready) . ;-) And its hard to know quickly what the bugs are if you don't release it to the real world. So hard to know what to do.. - Sites that have customized parts of Plone they shouldn't have touched in the first place. This is an important issue. It is difficult not to touch things that one shouldn't. A trivial example - If you want your breadcrumbs to just list the breadcrumbs instead of say you are here you have to copy across global_pathbar.pt and take out you are here. There is not another easy way to do it that I can see. If you then migrate to 2.1, that .pt has changed so you have to copy the new one and re-do it otherwise nothing renders. If you want to add another logo on the right of the header you have to hack Plone's templates further. Each change is in itself trivial but they add up and when you migrate, you;re left with stuff that doesn't work and spend quite a while resolving it. And thats for those of us savvy enough to use the filesystem. Those who customised through the ZMI will have a bigger headache. There are real tensions here, especially when dealing with UI code: - Maintainability is a virtue for the programmer, but often drives a factoring of the templates which make them useless for other stakeholders, such as designers. - Reusability is always confounded when policy and mechanism are mixed together: UI is very much policy-centric, which makes reusing its mechanisms *very* hard. snip My real worry is when we do have a new release of Plone sitting on top of Zope 3 we'll have a whole new set of bleeding edge code sitting on top of other bleeding edge code, while stuff that did work with a mature AT1.3.x (or 1.4.x or whatever) suddenly stops working. Hopefully this will prove to be an unjustified fear! Zope3 itself will hardly be bleeding edge at that point; the path we are taking to get there (the Goldegg initiative), should make the size of each change set more manageable. Probably this is no-one's fault. It is the nature of open source. To compare, have to admit I tried to get Bricolage to work a while back, and ran into CPAN dependency hell. I wonder if perhaps the real problem is trying to do so much with so few resources. Linux has a very mature platform as much of its base, and a lot of commercial support which helps. Perl and the CPAN is quite mature now and also had quite a lot of commercial support. The good thing about commercial support is people being paid to do grunt work and run loads of tests and update documents. Both Linux and CPAN are very modular. It is relatively easy to change one part without knowing about other parts. I think it would be easier to find someone who could patch a broken CPAN module, than someone who could delve inside Zope and Plone. This is because many of us don't understand the various components of the underlying architecture, and a lot is changing for Zope 3. Also many Perl modules are widely used by many applications, whereas a lot of Zope code is only used by other Zope code. One of the major promises of Zope3 is that it makes for more modular code, because its component architecture makes it easy and natural to break apart monolithic classes into components related by well-defined interfaces. Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDRnzC+gerLs4ltQ4RApayAJ9fvkj3rPFmM1wxl2agDOf+WFqvHwCeN7/I 4FwWQPNsmxo0Urxjq+52Q8A= =MgUC -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Mysql 5? Just curious.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Greg Fischer wrote: I guess it's not a matter of should, but rather a preference. I am running it just fine on Linux. Had to do some tweeks to the ZMySQLDA, but it works great. Stored Procedures and everything. I just havent seen hardly anyone testing it, so I thought I would ask around and see if others are running it too. Cool. Could you send the patches for your tweaks to the ZMySQLDA maintainer (Andy Dustman, I believe)? Maybe it would be better to upload them to the SourceForge patches page: - Project homepage: http://sourceforge.net/projects/mysql-python - Patch collector: http://sourceforge.net/tracker/?group_id=22307atid=374934 Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDRpQZ+gerLs4ltQ4RAvxlAJ9Cm9Wrfn06b5HCQwMAa0VAI9/QxACdERIl GZH4eqPjLy2joh7vSV8XD+8= =gUnY -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Write log file from script
I am looking for a simple strategy to write a debug log file from a python script. I used to have such a beast but somewhere in a shuffle it got lost -- and my brain seems to be dead this morning trying to figure it out. Anybody out there have something like this or a url explaining how to do it? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Write log file from script
How about creating a string or list, then appending your debug info to the string/list, then returning the string/list to the calling routine which then displays the string/list? Jonathan - Original Message - From: Brian Sullivan To: zope@zope.org Sent: Friday, October 07, 2005 11:42 AM Subject: [Zope] Write log file from script I am looking for a simple strategy to write a debug log file from a python script. I used to have such a beast but somewhere in a shuffle it got lost -- and my brain seems to be dead this morning trying to figure it out. Anybody out there have something like this or a url explaining how to do it? ___Zope maillist - Zope@zope.orghttp://mail.zope.org/mailman/listinfo/zope** No cross posts or HTML encoding! **(Related lists - http://mail.zope.org/mailman/listinfo/zope-announcehttp://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Write log file from script
Depends upon what you want to do and how much access you have. For debugging purposes I often use an external procedure def debugWindow( data ): fd = open('/tmp/debugWindow,'a') fd.write( str(data)) fd.close() and look at the output with tail -f /tmp/debugWindow Or, you can use the same approach to write to syslog using the Python logging module Or you can piggyback into the Zope logging mechanism--see the sources for that exercise. I find the external procedure approach to be useful in its simplicity On Fri, 7 Oct 2005, Brian Sullivan wrote: I am looking for a simple strategy to write a debug log file from a python script. I used to have such a beast but somewhere in a shuffle it got lost -- and my brain seems to be dead this morning trying to figure it out. Anybody out there have something like this or a url explaining how to do it? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] No cache headers
2005/10/7, PieterB [EMAIL PROTECTED]: On Fri, Oct 07, 2005 at 11:01:29AM +0100, Peter Bengtsson wrote: What do you use to stop caching? IE users of my current project have reported problems of pages on updating. You should also set the Pragma header to 'no-cache', for HTTP 1.0 compatibility. Thanks. Now I'm using all 3: Expires (because msdn recommends it) Cache-Control Pragma (because ms ie is buggy) See http://www.google.nl/search?hl=nlq=pragma+no-cache+cache-control+%22internet+explorer%22meta= which lists: http://support.microsoft.com/support/kb/articles/Q234/0/67.ASP http://www.web-caching.com/msiebugs.html Regards, Pieter -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Write log file from script
On 10/7/05, Dennis Allison [EMAIL PROTECTED] wrote: Depends upon what you want to do and how much accessyou have.Fordebugging purposes I often use an external procedure def debugWindow( data ):fd = open('/tmp/debugWindow,'a')fd.write( str(data))fd.close()and look at the output withtail -f /tmp/debugWindowOr, you can use the same approach to write to syslog using the Python logging moduleOr you can piggyback into the Zope logging mechanism--see the sources forthat exercise.I find the external procedure approach to be useful in its simplicity OK -- thanks to those that replied (many with a similar solution). I do have access to the server (Win2000 in my case) so I can pretty well do anything I want. It comes back now -- I did something like that but then called it through a gateway Python script that allowed me to turn off all logging in one spot easily (by modifying the script) in case I wanted to leave the debug statements there temporarily and not incur the expense of a huge log file. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] external editor
I do not seem to be able to edit more than one file at a time in an external editor. Is this normal behaviour or am I missing something? regards Garry ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Write log file from script
On Fri, Oct 07, 2005 at 11:42:16AM -0400, Brian Sullivan wrote: I am looking for a simple strategy to write a debug log file from a python script. I used to have such a beast but somewhere in a shuffle it got lost -- and my brain seems to be dead this morning trying to figure it out. Anybody out there have something like this or a url explaining how to do it? Why not zLOG? Look at: Zope-2.8.1-home/lib/python/zLOG/__init__.py There are lots of examples of the use of the LOG function, defined in that file, scattered throughout the Zope code. And, your_instance/etc/zope.conf enables you to control the logging output. Dave -- Dave Kuhlman http://www.rexx.com/~dkuhlman ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] external editor
You are missing something. I can edit multiple objects with both dreamweaver and xjed. PS. I don't _use_ dreamweaver but I need to test it sometimes for clients :) 2005/10/7, Garry Saddington [EMAIL PROTECTED]: I do not seem to be able to edit more than one file at a time in an external editor. Is this normal behaviour or am I missing something? regards Garry ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Write log file from script
Am Freitag, den 07.10.2005, 09:03 -0700 schrieb Dennis Allison: Depends upon what you want to do and how much access you have. For debugging purposes I often use an external procedure def debugWindow( data ): fd = open('/tmp/debugWindow,'a') fd.write( str(data)) fd.close() Actually this is a bit dangerous if you dont lock the file. import zLOG def log(self,message): zLOG.LOG(PythonScript, zLOG.INFO, message) as external method should be enough. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] INSTALLING gcc (and ZOPE) on DEBIAN
Because that, I assume that I have to kill certain processes in order to get more free swap - am I right? Probably not, no. Why not? I dont understand - killing processes does not mean getting their space? But what processes am I allowed to kill? Are there any processes that are absolutely neccessary? Only the ones you have started. I do not understand your answer at all. So I cannot kill any processes that are running on my Vserver (since I have not started any of them)?!? But do you advise me to do? __ XXL-Speicher, PC-Virenschutz, Spartarife mehr: Nur im WEB.DE Club! Jetzt gratis testen! http://freemail.web.de/home/landingpad/?mc=021130 ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Write log file from script
On 10/7/05, Tino Wildenhain [EMAIL PROTECTED] wrote: Am Freitag, den 07.10.2005, 09:03 -0700 schrieb Dennis Allison: Depends upon what you want to do and how much accessyou have.For debugging purposes I often use an external procedure def debugWindow( data ):fd = open('/tmp/debugWindow,'a')fd.write( str(data))fd.close()Actually this is a bit dangerous if you dont lock the file.import zLOGdef log(self,message): zLOG.LOG(PythonScript, zLOG.INFO, message)as external method should be enough. And where does this log information end up? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Write log file from script
We are running on a linux host. The file information ends upon in the local file system in the /tmp directory. On Fri, 7 Oct 2005, Brian Sullivan wrote: On 10/7/05, Tino Wildenhain [EMAIL PROTECTED] wrote: Am Freitag, den 07.10.2005, 09:03 -0700 schrieb Dennis Allison: Depends upon what you want to do and how much access you have. For debugging purposes I often use an external procedure def debugWindow( data ): fd = open('/tmp/debugWindow,'a') fd.write( str(data)) fd.close() Actually this is a bit dangerous if you dont lock the file. import zLOG def log(self,message): zLOG.LOG(PythonScript, zLOG.INFO http://zLOG.INFO, message) as external method should be enough. And where does this log information end up? -- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] external editor
Peter Bengtsson wrote: You are missing something. I can edit multiple objects with both dreamweaver and xjed. PS. I don't _use_ dreamweaver but I need to test it sometimes for clients :) 2005/10/7, Garry Saddington [EMAIL PROTECTED]: I do not seem to be able to edit more than one file at a time in an external editor. Is this normal behaviour or am I missing something? regards Garry ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com Have you had two documents in one instance of an editor (eg tabs) or multiple instances of the same editor? I have tried Oxygen, Crimson editor and Boxer all on XP and all with tabs for the different documents. The first opened doc can be saved but any others are not saved. regards Garry ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Write log file from script
On 10/7/05, Dennis Allison [EMAIL PROTECTED] wrote: We are running on a linux host.The file information ends uponin the local file system in the /tmp directory. import zLOG def log(self,message): zLOG.LOG(PythonScript, zLOG.INFO http://zLOG.INFO, message) as external method should be enough. And where does this log information end up?-- I was referring to the zLOG info. Where does it go? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] INSTALLING gcc (and ZOPE) on DEBIAN
On 07.10.05 19:34:32, [EMAIL PROTECTED] wrote: Because that, I assume that I have to kill certain processes in order to get more free swap - am I right? Probably not, no. Why not? I dont understand - killing processes does not mean getting their space? if you can kill them... But what processes am I allowed to kill? Are there any processes that are absolutely neccessary? Only the ones you have started. I do not understand your answer at all. So I cannot kill any processes that are running on my Vserver (since I have not started any of them)?!? That depends on wether you have the rights to kill them, i.e. do you have root-rights? If you do, you should be cautious to not kill the wrong processes, i.e. sshd, you current shell or init. But do you advise me to do? I think you should get a good book in linux administration to start with that, the stuff discussed here has nothing to do with Zope. Andreas -- Today is National Existential Ennui Awareness Day. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Write log file from script
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian Sullivan wrote: On 10/7/05, Dennis Allison [EMAIL PROTECTED] wrote: We are running on a linux host. The file information ends upon in the local file system in the /tmp directory. import zLOG def log(self,message): zLOG.LOG(PythonScript, zLOG.INFO http://zLOG.INFO http://zLOG.INFO, message) as external method should be enough. And where does this log information end up? -- I was referring to the zLOG info. Where does it go? Wherever you configure it in your zope.conf file. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDRsCB+gerLs4ltQ4RAmfIAJwKY6LD41TCJpTV0SVChnuOMSCraQCfaA9c +S0/kddAoFQeYvYrOIa3kJk= =bzfo -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Write log file from script
as external method should be enough.And where does this log information end up? -- I was referring to the zLOG info. Where does it go?Wherever you configure it in your zope.conf file.- OK -- that is useful information. I didn't understand how this worked -- I will have a look at the config file. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] reading zope.config file for ClientStorage
To initialize ZEO clients with ClientStorage I need info such as host, port, etc. All the needed stuff is tucked away nicely in the zope.config file and I would like to be using the zope machinery access it. I know that what I need is in there somewhere, but when I try to follow how it happens in say the Zope startup, I get lost in all the dependencies and my head starts swirling. I would like to be able to use something like is in ZODB/config.py: class ZEOClient(BaseConfig): def open(self): from ZEO.ClientStorage import ClientStorage # config.server is a multikey of socket-address values # where the value is a socket family, address tuple. L = [server.address for server in self.config.server] return ClientStorage( L, storage=self.config.storage, cache_size=self.config.cache_size, name=self.config.name, client=self.config.client, var=self.config.var, min_disconnect_poll=self.config.min_disconnect_poll, max_disconnect_poll=self.config.max_disconnect_poll, wait=self.config.wait, read_only=self.config.read_only, read_only_fallback=self.config.read_only_fallback, username=self.config.username, password=self.config.password, realm=self.config.realm) here BaseConfig has that bit of magic that has self.config. I guess I need to know how to instantiate this class. Any ideas? David P. Mika ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Presentations Available
Nick Davis wrote: Hello Some thoughts : - Upgrading to Zope 2.8 without reading the release notes. I followed the release notes but this didn't fix catalog errors. I am not the only one. This is apparently fixed in Zope 2.8.2 but that doesn't look like it can be downloaded yet. in some cases the problem will go away if you simply execute a 'len(catalog)' command, either from a script or from zopectl debug. YMMV. - Third party products that are not yet fully compatible with Plone 2.1 and/or Zope 2.8. Should this perhaps be the other way around? If those products used the APIs correctly, perhaps a new release of Zope/Plone should still support old APIs and/or deprecate them gradually and with warning? This is a difficult problem to address but sometimes it may be better to hold back on releasing something new if it causes things that depend on it to break. On the other hand I can understand peoples desire to release something new and cool (even if not quite ready) . ;-) And its hard to know quickly what the bugs are if you don't release it to the real world. So hard to know what to do.. the problem is not with the APIs... those we have taken care to deprecate. the problems lie within template code (such as the problem you describe below), where it's much harder to maintain backward compatibility and still move forward. - Sites that have customized parts of Plone they shouldn't have touched in the first place. This is an important issue. It is difficult not to touch things that one shouldn't. A trivial example - If you want your breadcrumbs to just list the breadcrumbs instead of say you are here you have to copy across global_pathbar.pt and take out you are here. There is not another easy way to do it that I can see. If you then migrate to 2.1, that .pt has changed so you have to copy the new one and re-do it otherwise nothing renders. If you want to add another logo on the right of the header you have to hack Plone's templates further. Each change is in itself trivial but they add up and when you migrate, you;re left with stuff that doesn't work and spend quite a while resolving it. And thats for those of us savvy enough to use the filesystem. Those who customised through the ZMI will have a bigger headache. tres responded to this more eloquently than i'd be able to... as for the broken products, that is a pandemic within the open source community, hardly unique to plone. True. AT's problems are entirely recognized by those of us who use it heavily, and i can assure you that the AT developer pool has no intention of continuing to pile more cruft on top of a shaky stack. . the first iterations of this will probably also have some warts. but please don't assume that plone/AT developers don't see the same problems that you see, and that they aren't willing and able to learn from their mistakes. It would seem Archetypes has improved over time. My real worry is when we do have a new release of Plone sitting on top of Zope 3 we'll have a whole new set of bleeding edge code sitting on top of other bleeding edge code, while stuff that did work with a mature AT1.3.x (or 1.4.x or whatever) suddenly stops working. Hopefully this will prove to be an unjustified fear! as tres said, z3 isn't really bleeding edge any more. i'm not saying that there won't be migration bumps.. i expect there will be. but there are a lot of folks with a lot of working code dependent on this stack, and we'll all be working together to get to the next level. Probably this is no-one's fault. It is the nature of open source. To compare, have to admit I tried to get Bricolage to work a while back, and ran into CPAN dependency hell. I wonder if perhaps the real problem is trying to do so much with so few resources. this is, to me, the crux of the problem. there are a million things that could be better. i've got far more ideas for improvement than i have the time to give those ideas... we've all still got to get billable hours in. that being said, things are getting better with time, and i expect them to continue to do so. Linux has a very mature platform as much of its base, and a lot of commercial support which helps. Perl and the CPAN is quite mature now and also had quite a lot of commercial support. The good thing about commercial support is people being paid to do grunt work and run loads of tests and update documents. Both Linux and CPAN are very modular. It is relatively easy to change one part without knowing about other parts. I think it would be easier to find someone who could patch a broken CPAN module, than someone who could delve inside Zope and Plone. This is because many of us don't understand the various components of the underlying architecture, and a lot is changing for Zope 3. Also many Perl modules are widely used by many applications, whereas a lot of Zope code is only used by other Zope code. again, tres hit
[Zope] Re: Mysql 5? Just curious.
Oh, just read a little better... wanted to clarify... It doesnt work with stored procedures though. I put a patch up on sourceforge in July, for the ZMySQLDA. Mysql-python works fine fine, as you said Andy, it's just the Zope DA. Greg (I hate it when reply-all doesnt send to zope list too)On 10/7/05, Greg Fischer [EMAIL PROTECTED] wrote: It doesnt work with stored procedures though. I put a patch up on sourceforge in July, for the ZMySQLDA. http://sourceforge.net/tracker/index.php?func=detailaid=1242842group_id=22307atid=374934 I probably didnt do it right, but I at least wanted to get the info up there. (maybe should have listed a bug?) MySQLdb works fine directly from python, but the DA doesnt open a connection with the right client_flags. It needs MULTI_STATEMENTS. I just added this to db.py in _parse_connection_string, right before it parses the socket. (line 234, I think) if not items: return kwargs kwargs['client_flag'], items = int(items[0]), items[1:] One caveat, you must use a dash to turn off transactions. I don't know why that is, or how to get around it. But, with that patch, and a connection string like the one below, it works great! -adatabase auser apassword 65536 /tmp/mysql.sock I just wanted to specify the client_flags before the socket. Before you couldnt specify them at all. On Linux this was fine, but on Windows, if memory serves, the mysql.c had some issues. Maybe needs compiled with new libs? Anyway, like I said on that patch post, there is probably a better way to tackle the issue. I just did it this way, and it works for me. Though, the transaction thing needs attention. Greg On 10/7/05, Andy Dustman [EMAIL PROTECTED] wrote: On 10/7/05, Tres Seaver [EMAIL PROTECTED] wrote: Greg Fischer wrote: I guess it's not a matter of should, but rather a preference. I am running it just fine on Linux. Had to do some tweeks to the ZMySQLDA, but it works great. Stored Procedures and everything. I just havent seen hardly anyone testing it, so I thought I would ask around and see if others are running it too. Cool.Could you send the patches for your tweaks to the ZMySQLDA maintainer (Andy Dustman, I believe)?Maybe it would be better to upload them to the SourceForge patches page: I've done a small amount of testing with MySQLdb-1.2.0 and MySQL-5.0,and there don't seem to be any issues, so ZMySQLDA-2.0.9 (latest beta)ought to work as well. There is a bugfix that needs to be applied (for the tried to unlock unlocked lock issue), but this should already bein the bug tracker on sourceforge.--Computer interfaces should never be made of meat. http://www.terrybisson.com/meat.html-- Greg Fischer1st Byte Solutions http://www.1stbyte.com -- Greg Fischer1st Byte Solutionshttp://www.1stbyte.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to make a table with sortable colmns?
There is the sort attribute of the dtml-in tag. You'll have to read the DTML Reference for more info on that. However, it was a little iffy for me once, and now I do something like this: 1. Setup table header with a response back to sort that column. 2. Change the ZSQL method to use that value dynamically. Maybe not the best/most efficient way, but it works great for my use. So on your table header, either add forms with submit links, or add a link with query strings. I usually add a query string, so my table header looks like this: tr tda href="" URL0?sortby=colACol A/td tda href="" URL0?sortby=colBCol B/td /tr Then in your ZSQL method, setup an argument for sortby. Make sure you name colA or colB exactly like your table columns. In the method, I create a dtml-if at the end of the query: Select dtml-if _.has_key('sortby') Order by dtml-var sortby, LastName dtml-else Order by LastName /dtml-if OR Select dtml-if _.has_key('sortby') Order by dtml-var sortby /dtml-if I have LastName there because I always wanted that column to be a second sort. You obviously would have a different one. There's probably a little more to this I am not thinking of at the moment, but I hope it helps you towards your goal. You could also get real fancy and add ascending and descending to the mix. (click to sort, click again to sort desc) Greg On 10/7/05, Thomas Apostolou [EMAIL PROTECTED] wrote: Hello all,i am using the following to get some data fromDatabaseand show them in a table:headMETA HTTP-EQUIV=Content-Type CONTENT=text/html;charset=ISO-8859-7 /headstyle type=text/css media=screen!-- @importurl(/plone.css); --/stylestyle type=text/css media=screen!-- @import url(/ploneColumns.css); --/stylestyle type=text/css media=all!-- @importurl(/ploneCustom.css); --/styledtml-var standard_html_headertable id=sortable class=listing summary=Content listing cellpadding=0 cellspacing=0theaddtml-in expr=GetHeader(sysDSN=sysDSN, usr=usr,mypass=mypass, sTable=sTable)th class= dtml-in sequence-itemdtml-var sequence-item/dtml-in/th/dtml-in/theaddtml-in expr=GetData(sysDSN=sysDSN, usr=usr, mypass=mypass, sTable=sTable)dtml-if sequence-eventr class=evendtml-elsetr class=odd/dtml-if dtml-in sequence-item!--td input type=checkbox title=dtml-varsequence-item /td--tddtml-var sequence-item/td /dtml-in/tr/dtml-in/tabledtml-var standard_html_footerBut how can i tell the table to sort the column iclick on just like plone does with the members list? Thanks in advanceThomas Apostolou___Χρησιμοποιείτε Yahoo!;Βαρεθήκατε τα ενοχλητικά μηνύματα (spam); Το Yahoo! Mail διαθέτει την καλύτερη δυνατή προστασία κατά των ενοχλητικώνμηνυμάτων http://login.yahoo.com/config/mail?.intl=gr___ Zope maillist-Zope@zope.orghttp://mail.zope.org/mailman/listinfo/zope** No cross posts or HTML encoding!** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )-- Greg Fischer1st Byte Solutionshttp://www.1stbyte.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] external editor
I have the same prob. Crimson Editor wont do it when using tabs. You have to specify to open multiple instances in the Crimson preferences. Then it works fine. GregOn 10/7/05, Garry Saddington [EMAIL PROTECTED] wrote: Peter Bengtsson wrote:You are missing something. I can edit multiple objects with bothdreamweaver and xjed.PS. I don't _use_ dreamweaver but I need to test it sometimes for clients :) 2005/10/7, Garry Saddington [EMAIL PROTECTED]:I do not seem to be able to edit more than one file at a time in an external editor. Is this normal behaviour or am I missing something?regardsGarry___Zope maillist- Zope@zope.orghttp://mail.zope.org/mailman/listinfo/zope** No cross posts or HTML encoding!**(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )--Peter Bengtsson,work www.fry-it.comhome www.peterbe.com hobby www.issuetrackerproduct.comHave you had two documents in one instance of an editor (eg tabs) ormultiple instances of the same editor? I have tried Oxygen, Crimson editor and Boxer all on XP and all with tabs for the differentdocuments. The first opened doc can be saved but any others are not saved.regardsGarry___ Zope maillist-Zope@zope.orghttp://mail.zope.org/mailman/listinfo/zope** No cross posts or HTML encoding!**(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )-- Greg Fischer1st Byte Solutionshttp://www.1stbyte.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope-DB] Re: Which objects can be stored in Data.fs
ok thanks, The software responsible for this problem is Nuxeo CPS (Collaborative Portal Server), which is based upon CMF (I think CMF itself is well-tested enough not to be accused of being responsible) and is very similar to the maybe best-known Plone. (By the way does anyone would know if this happens also with plone ?) Anyway, I'm gonna ask on CPS mailing lists to see if this is a (hopefully corrected in new realeases) bug or if this is not well known. Thanks all again for your help... ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db
Re: [Zope-DB] Re: Which objects can be stored in Data.fs
Josef Meile wrote: 2) is it possible to tell zope NOT to store some things in the database (for instance in zope.conf-I've looked but not too closely and found nothing) Why don't you run a cron job that packs the database, let's say each month? You could also do a backup before packing; just in case you want to undo something later. Urm, in this case, I'd suggest the guy should really find out what's causing those writes, they're likely impacting heavily on performance, if nothing else... Something that would be nice, would be to be able to store transactions in a separate file before packing, but I don't think it is posible in Zope. You may have to write something to do this. Huh? not sure what you mean... if you keep the .old file created during packing, that has all the transactions in it that would have been packed away... cheers, Chris PS: Any chance this thread could move to a more appropriate list, oh, I dunno, say zodb-dev@zope.org or [EMAIL PROTECTED] -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db
[Zope-DB] Re: Which objects can be stored in Data.fs
Something that would be nice, would be to be able to store transactions in a separate file before packing, but I don't think it is posible in Zope. You may have to write something to do this. Huh? not sure what you mean... if you keep the .old file created during packing, that has all the transactions in it that would have been packed away... I was just thinking about only keeping a log file with the transactions without the data and let's say apply it to a packed Data.fs. It was just a nice-to-have idea, nothing else. But I think for the OP would be enough to keep the Data.fs.old as you said. ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db