Re: [Zope] getting a unique object id
--On 29. März 2007 17:50:24 -0700 David Bear <[EMAIL PROTECTED]> wrote: I am needing to write an external cache mechanism for rss feeds from zope/plone. My thinking was to use feedparser, then grab the set of object attributes for the item from zope. Then, grab the actual document the feed pointed to and save it. When naming the document that I store locally, I was looking for a simple way to map the zope objectId to the file name hoping it would be unique. However, if this is not unique, is there another attribute from a zope object that I can get that would be? If so, how would I get it? The path of the object? -aj pgpsfffFZN9r2.pgp Description: 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] getting a unique object id
I am needing to write an external cache mechanism for rss feeds from zope/plone. My thinking was to use feedparser, then grab the set of object attributes for the item from zope. Then, grab the actual document the feed pointed to and save it. When naming the document that I store locally, I was looking for a simple way to map the zope objectId to the file name hoping it would be unique. However, if this is not unique, is there another attribute from a zope object that I can get that would be? If so, how would I get it? -- David Bear phone: 602-496-0424 fax:602-496-0955 College of Public Programs/ASU University Center Rm 622 411 N Central Phoenix, AZ 85007-0685 "Beware the IP portfolio, everyone will be suspect of trespassing" ___ 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] Announcing the Release of Zope version 2.8.9.1
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On behalf of Zope Corporation and the Zope community I am pleased to announce the release of Zope 2.8.9.1. You can download the sources from "http://www.zope.org/Products/Zope/2.8.9.1/";, http://www.zope.org/Products/Zope/2.8.9.1 This bugfix release corrects a problem introduced in 2.8.9, which prevented starting Zope in "background" / "daemonized" mode. New features of Zope 2.8.x - ZODB 3.4 with MVCC (multi version concurrency control) support. MVCC solves nearly every problem with ZODB read-conflict errors which is very important for high-traffic Zope sites. - Extension Classes were rewritten as Python new-style classes making all features of Python new-style classes available in Zope objects. This includes support for cyclic garbage collection. - Integration of Zope 3 technologies through Five (see http://codespeak.net/z3/five/) More Information For more information on what is new in this release, see the CHANGES.txt files for the release: "http://www.zope.org/Products/Zope/2.8.9.1/CHANGES.txt";, http://www.zope.org/Products/Zope/2.8.9.1/CHANGES.txt See also: "http://www.zope.org/Wikis/DevSite/Projects/Zope2.8/OverView"; http://www.zope.org/Wikis/DevSite/Projects/Zope2.8/OverView For more information on the available Zope releases, guidance for selecting the right distribution and installation instructions, please see: "http://www.plope.com/Books/2_7Edition/InstallingZope.stx";, http://www.plope.com/Books/2_7Edition/InstallingZope.stx Reporting Bugs Please report all the bugs you have found to the Zope bugtracker: "http://collector.zope.org/Zope";, http://collector.zope.org/Zope Supported Python versions At this time the only **supported** and **recommended** Python versions are 2.3.5 and 2.3.6. Using Python 2.4.X is **not supported** and **not recommended** at this time. Python 2.4.X will be supported when a security audit takes place. This means that you are using Python 2.4 + Zope 2.8 at **your own risk**. This warning also applies to binary packages that install Zope packages ogether with a system wide Python 2.4 installation (e.g. Fedora, SuSE...). Such installations are in general not supported. In addition there some third-party products and Python packages that don't work with Python 2.4 and can cause trouble when using Python 2.4. - -- === Tres Seaver +1 540-429-0999 [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGDCIL+gerLs4ltQ4RAjV8AJ4qc4gChSxhoDQC2E+l+5UbbTr2kgCgiDZf f23x570Y4wNvsWcS55QZ8+o= =CNr8 -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 )
Re: [Zope] Problem with __before_publishing_traverse__
Peter Bengtsson wrote at 2007-3-28 10:40 +0100: > ... >Removing the CookieCrumbler object obviously isn't a good enough >solution because we need it for pretty logins. At the moment I don't >understand how CookieCrumbler could have anything to do with it. It's >stuff it does surrounding the REQUEST looks sane and I don't understand >how it could effect my application. A "CookieCumbler" is setting up itself as a (one of the) "__before_publishing_traverse__" hook of its container. Thus, it may cause problems from a __before_publishing_traverse__" call. As you found out, it does not do so normally. Special (and rare) circumstances are necessary. It may be enough to recreate the "CookieCrumbler" instance. -- Dieter ___ 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: Re: [Zope] dynamically generating sql queries?
Hi, Thank you very much for your answer. As you suggested, i concatenate the string with an integer to create a fieldname and then pass it to zsql object along with language argument. I do everything inside a Script (Python) object that accepts 3 arguments (field,index,language)now. - result=field+str(index) res=context.select_sql(field=result, language=language) print res[0].result return printed - I test this python script inside ZMI and run into problems. It works only if I explicitly specify the columname like "print res[0].author_1". another question- how can one specify row index here?(res[row index]). Each language has one row. thanks _ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ ___ 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: presenting content in Zope generated outside
Hi Laurence, thanks a lot for your help. I studied the examples and other programs and did a sort of solution to my problem based on iFrame. Besides, it's always fun to know something new about zope. Thanks again. Cheers, Alan Date: Mon, 26 Mar 2007 16:58:05 +0100 From: Laurence Rowe <[EMAIL PROTECTED]> Subject: [Zope] Re: presenting content in Zope generated outside Hi Alan, I had a similar requirement a few years ago and wrote it up here: http://plone.org/documentation/how-to/integrate-external-content/ Reading the comments it seems as if someone has made it into a product. There is also a product called Windowz which uses iframes: http://plone.org/products/windowz And yes, zope will work with frames (they're just html). @import is css not html. You need xslt to do that sort of thing with xhtml. Hope that helps, Laurence ___ 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 )