[Zope-Checkins] SVN: Zope/trunk/ updated to ZODB 3.9.0b1
Log message for revision 99738: updated to ZODB 3.9.0b1 Changed: U Zope/trunk/doc/CHANGES.rst U Zope/trunk/versions.cfg -=- Modified: Zope/trunk/doc/CHANGES.rst === --- Zope/trunk/doc/CHANGES.rst 2009-05-04 19:00:21 UTC (rev 99737) +++ Zope/trunk/doc/CHANGES.rst 2009-05-04 19:04:59 UTC (rev 99738) @@ -18,6 +18,8 @@ - Removed the dependency on `zope.app.testing` in favor of providing a more minimal placeless setup as part of ZopeTestCase for our own tests. +- updated to ZODB 3.9.0b1 + Features Added ++ Modified: Zope/trunk/versions.cfg === --- Zope/trunk/versions.cfg 2009-05-04 19:00:21 UTC (rev 99737) +++ Zope/trunk/versions.cfg 2009-05-04 19:04:59 UTC (rev 99738) @@ -13,7 +13,7 @@ ClientForm = 0.2.10 RestrictedPython = 3.5.1 ZConfig = 2.6.1 -ZODB3 = 3.9.0a12 +ZODB3 = 3.9.0b1 docutils = 0.5 lxml = 2.2 mechanize = 0.1.11 ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-dev] zope 2.12.0a4 and CMFCore
i followed the directions in this thread: http://www.nabble.com/Zope-2.12.0a4-easy_installable---please-test-td23212708.html installation was fine with stock python2.4 on mandriva 2008.1 easy_install Products.CMFCore: installed without errors. on startup i get the following traceback: ... File /home/xlhost/zope/GeneralProducts/utils/__init__.py, line 12, in ? from Products.TrustedExecutables.TrustedFSPageTemplate import TrustedFSPageTemplate File /home/xlhost/zope/Products/TrustedExecutables/TrustedFSPageTemplate.py, line 3, in ? from Products.CMFCore.FSPageTemplate import FSPageTemplate, registerFileExtension File /home/xlhost/zope/lib/python2.4/site-packages/Products.CMFCore-2.1.2-py2.4.egg/Products/CMFCore/__init__.py, line 26, in ? import PortalFolder File /home/xlhost/zope/lib/python2.4/site-packages/Products.CMFCore-2.1.2-py2.4.egg/Products/CMFCore/PortalFolder.py, line 32, in ? from CMFCatalogAware import CMFCatalogAware File /home/xlhost/zope/lib/python2.4/site-packages/Products.CMFCore-2.1.2-py2.4.egg/Products/CMFCore/CMFCatalogAware.py, line 31, in ? from interfaces import ICallableOpaqueItem File /home/xlhost/zope/lib/python2.4/site-packages/Products.CMFCore-2.1.2-py2.4.egg/Products/CMFCore/interfaces/__init__.py, line 47, in ? from Interface.bridge import createZope3Bridge ImportError: No module named Interface.bridge any hints where to start hunting that bug? is it actually a bug? thanks in advance and best regards! jürgen herrmann -- XLhost.de - eXperts in Linux hosting ® XLhost.de GmbH Jürgen Herrmann, Geschäftsführer Boelckestrasse 21, 93051 Regensburg, Germany Geschäftsführer: Volker Geith, Jürgen Herrmann Registriert unter: HRB9918 Umsatzsteuer-Identifikationsnummer: DE245931218 Fon: +49 (0)700 XLHOSTDE [0700 95467833] Fax: +49 (0)700 XLHOSTDE [0700 95467833] WEB: http://www.XLhost.de IRC: #xlh...@irc.quakenet.org ___ 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.12.0a4 and CMFCore
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On May 4, 2009, at 12:00 , Jürgen Herrmann wrote: /home/xlhost/zope/lib/python2.4/site-packages/ Products.CMFCore-2.1.2-py2.4.egg/Products/CMFCore/interfaces/ __init__.py, line 47, in ? from Interface.bridge import createZope3Bridge ImportError: No module named Interface.bridge any hints where to start hunting that bug? is it actually a bug? No, it's an incompatibility. At present, no released CMFCore egg is compatible with Zope 2.12. Products.CMFCore SVN trunk (meaning CMFCore 2.2.x when it is released) is compatible, though. jens -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (Darwin) iEYEARECAAYFAkn+v1sACgkQRAx5nvEhZLLv3gCeIVyRt5ukD4oB8pKYl5FYoepl Ti0An2suOWx3efnS0AlTRmx2RrrWk0lB =By5b -END 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 )
[Zope-dev] Zope Tests: 8 OK
Summary of messages to the zope-tests list. Period Sun May 3 12:00:00 2009 UTC to Mon May 4 12:00:00 2009 UTC. There were 8 messages: 8 from Zope Tests. Tests passed OK --- Subject: OK : Zope-2.10 Python-2.4.6 : Linux From: Zope Tests Date: Sun May 3 20:44:16 EDT 2009 URL: http://mail.zope.org/pipermail/zope-tests/2009-May/011619.html Subject: OK : Zope-2.11 Python-2.4.6 : Linux From: Zope Tests Date: Sun May 3 20:46:16 EDT 2009 URL: http://mail.zope.org/pipermail/zope-tests/2009-May/011620.html Subject: OK : Zope-trunk Python-2.4.6 : Linux From: Zope Tests Date: Sun May 3 20:48:16 EDT 2009 URL: http://mail.zope.org/pipermail/zope-tests/2009-May/011621.html Subject: OK : Zope-trunk Python-2.5.4 : Linux From: Zope Tests Date: Sun May 3 20:50:17 EDT 2009 URL: http://mail.zope.org/pipermail/zope-tests/2009-May/011622.html Subject: OK : Zope-trunk Python-2.6.1 : Linux From: Zope Tests Date: Sun May 3 20:52:17 EDT 2009 URL: http://mail.zope.org/pipermail/zope-tests/2009-May/011623.html Subject: OK : Zope-trunk-alltests Python-2.4.6 : Linux From: Zope Tests Date: Sun May 3 20:54:17 EDT 2009 URL: http://mail.zope.org/pipermail/zope-tests/2009-May/011624.html Subject: OK : Zope-trunk-alltests Python-2.5.4 : Linux From: Zope Tests Date: Sun May 3 20:56:17 EDT 2009 URL: http://mail.zope.org/pipermail/zope-tests/2009-May/011625.html Subject: OK : Zope-trunk-alltests Python-2.6.1 : Linux From: Zope Tests Date: Sun May 3 20:58:17 EDT 2009 URL: http://mail.zope.org/pipermail/zope-tests/2009-May/011626.html ___ 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] dropping Python 2.4 support in the Zope Toolkit?
Hey, Martijn Faassen wrote: In order to get to a conclusion: I haven't seen convincing arguments yet *not* to drop the Python 2.4 for new releases of the Zope Toolkit libraries. I'd like to phrase the debate in those terms instead of the reverse, because ensuring Python 2.4 compatibility is an additional burden for developers and we need good arguments for *not* dropping this burden. Since I haven't seen such arguments besides the Plone 3.x related ones, I will amend the zope toolkit decisions about this. Regards, Martijn ___ 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 )
[Zope-dev] zope2.12.a04 / relstorage / zodbconvert.py errors
i successfully installed zope 2.12.0a4 via easy_install today. startup and functionality is fine. i installed relstorage via easy_install also, but shipped zodbconvert.py fails with the following traceback: Traceback (most recent call last): File ./lib/python2.4/site-packages/RelStorage-1.1.3-py2.4.egg/relstorage/zodbconvert.py, line 110, in ? main() File ./lib/python2.4/site-packages/RelStorage-1.1.3-py2.4.egg/relstorage/zodbconvert.py, line 68, in main schema = ZConfig.loadSchemaFile(StringIO(schema_xml)) File /home/xlhost/zope/lib/python2.4/site-packages/ZConfig-2.6.1-py2.4.egg/ZConfig/loader.py, line 35, in loadSchemaFile return SchemaLoader().loadFile(file, url) File /home/xlhost/zope/lib/python2.4/site-packages/ZConfig-2.6.1-py2.4.egg/ZConfig/loader.py, line 75, in loadFile return self.loadResource(r) File /home/xlhost/zope/lib/python2.4/site-packages/ZConfig-2.6.1-py2.4.egg/ZConfig/loader.py, line 187, in loadResource schema = ZConfig.schema.parseResource(resource, self) File /home/xlhost/zope/lib/python2.4/site-packages/ZConfig-2.6.1-py2.4.egg/ZConfig/schema.py, line 27, in parseResource xml.sax.parse(resource.file, parser) File /home/xlhost/zope/lib/python2.4/site-packages/RelStorage-1.1.3-py2.4.egg/relstorage/__init__.py, line 31, in parse File /usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py, line 109, in parse File /usr/lib/python2.4/site-packages/_xmlplus/sax/xmlreader.py, line 123, in parse File /usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py, line 216, in feed File /usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py, line 312, in start_element File /home/xlhost/zope/lib/python2.4/site-packages/ZConfig-2.6.1-py2.4.egg/ZConfig/schema.py, line 103, in startElement getattr(self, start_ + name)(attrs) File /home/xlhost/zope/lib/python2.4/site-packages/ZConfig-2.6.1-py2.4.egg/ZConfig/schema.py, line 306, in start_import src = self._loader.schemaComponentSource(pkg, file) File /home/xlhost/zope/lib/python2.4/site-packages/ZConfig-2.6.1-py2.4.egg/ZConfig/loader.py, line 215, in schemaComponentSource filename=file, package=package) ZConfig.SchemaResourceError: import name does not refer to a package Package name: 'relstorage' File name: 'component.xml' Package path: None a debug print before the exception is raised revealed the following: - a __import__('relstorage') on line 204 of ZConfig/loader.py loads the module just fine. - the test hasattr(pkg, __path__) on line 211 fails. - a __import__('relstorage') in my virtualenv's python interpreter imports the module and there it has a __path__ attribute! in a newsgroup posting i read the following sentence: modules don't have __path__, only packages do. wtf??? his is as much information as i can provide. i'm somehow lost and confused now. any hints? thanks in advance and best regards! jürgen -- XLhost.de - eXperts in Linux hosting ® XLhost.de GmbH Jürgen Herrmann, Geschäftsführer Boelckestrasse 21, 93051 Regensburg, Germany Geschäftsführer: Volker Geith, Jürgen Herrmann Registriert unter: HRB9918 Umsatzsteuer-Identifikationsnummer: DE245931218 Fon: +49 (0)700 XLHOSTDE [0700 95467833] Fax: +49 (0)700 XLHOSTDE [0700 95467833] WEB: http://www.XLhost.de IRC: #xlh...@irc.quakenet.org ___ 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] zope2.12.a04 / relstorage / zodbconvert.py errors
Jürgen Herrmann wrote: ZConfig.SchemaResourceError: import name does not refer to a package Package name: 'relstorage' File name: 'component.xml' Package path: None I need to make a new release of RelStorage before this will work. RelStorage 1.1.3 does not work with ZODB 3.9, but the current RelStorage trunk does. I intend to package and release a compatible version today or tomorrow. FWIW, I suspect ZConfig is attempting to import relstorage and getting an ImportError due to the incompatibility, but then ZConfig is converting the ImportError into a strange SchemaResourceError. It would be much better if ZConfig just propagated the ImportError. Shane ___ 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] Executing a text file as a ZPT from a product
(Sun, May 03, 2009 at 09:26:57AM +0200) Jakob Schou Jensen wrote/schrieb/egrapse: Im am writing a product and would like to include ZPT's as part of the product. Is there a way that I can evaluate a piece of text (preferrably stored as a text file in the product folder) as a ZPT? Yes of course you can - and about every guide on writing your own product shows you how to do it. For example just look at my BetaBoring sample product: http://papakiteliatziar.gr/BetaBoring What you do is use PageTemplateFile: from Products.PageTemplates.PageTemplateFile import PageTemplateFile ... _www= os.path.join(os.path.dirname(__file__), 'www') ... index_zpt = PageTemplateFile(_www+'/index.zpt', globals()) Regards, Sascha ___ 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 use ZPT with ad-hoc context?
How to create a template context (here inside ZPT) that is not an object from the ZODB, just a temporary object? This is what I tried: class AdhocContext(Implicit): pt = PageTemplateFile(whatever/path, globals()) ... MyZopeProduct: def whatever(self): Test ctx = AdhocContext().__of__(self) return ctx.pt() The problem I have with this is that I can't access anything in AdhocContext from the ZPT because the security manager blocks it (I didn't forget to security.declarePublic + document what I wanted to access). Is there a simple trick to solve this? (BTW, I will need to invoke some Plone macros from that ZPT too... I hope that will just work if this security matter is solved.) -- Best regards, Daniel Dekany ___ 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 use ZPT with ad-hoc context?
Daniel Dekany wrote: How to create a template context (here inside ZPT) that is not an object from the ZODB, just a temporary object? This is what I tried: class AdhocContext(Implicit): pt = PageTemplateFile(whatever/path, globals()) ... MyZopeProduct: def whatever(self): Test ctx = AdhocContext().__of__(self) return ctx.pt() The problem I have with this is that I can't access anything in AdhocContext from the ZPT because the security manager blocks it (I didn't forget to security.declarePublic + document what I wanted to access). Is there a simple trick to solve this? (BTW, I will need to invoke some Plone macros from that ZPT too... I hope that will just work if this security matter is solved.) You don't have to create the page template as an attribute of a class. You can declare it as a local variable pt = ZopeTwoPageTemplateFile('template.pt') and then do extra_context = {'context': some_context} html = pt.pt_render(extra_context=extra_context) The context variable in your template will then be what you want it to be. If you still encounter security problems then add this line directly after you declare class AdhocContext __allow_access_to_unprotected_subobjects__ = 1 You probably should not use that line too often :) Hedley ___ 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 use ZPT with ad-hoc context?
Monday, May 4, 2009, 11:59:21 AM, Hedley Roos wrote: Daniel Dekany wrote: How to create a template context (here inside ZPT) that is not an object from the ZODB, just a temporary object? This is what I tried: class AdhocContext(Implicit): pt = PageTemplateFile(whatever/path, globals()) ... MyZopeProduct: def whatever(self): Test ctx = AdhocContext().__of__(self) return ctx.pt() The problem I have with this is that I can't access anything in AdhocContext from the ZPT because the security manager blocks it (I didn't forget to security.declarePublic + document what I wanted to access). Is there a simple trick to solve this? (BTW, I will need to invoke some Plone macros from that ZPT too... I hope that will just work if this security matter is solved.) You don't have to create the page template as an attribute of a class. You can declare it as a local variable pt = ZopeTwoPageTemplateFile('template.pt') and then do extra_context = {'context': some_context} html = pt.pt_render(extra_context=extra_context) The context variable in your template will then be what you want it to be. For some reason doing that results in 'str' object is not callable error... but I didn't dig into it much, as using the pt as attribute of the context class is not an issue for me. If you still encounter security problems then add this line directly after you declare class AdhocContext __allow_access_to_unprotected_subobjects__ = 1 That indeed works, thanks! You probably should not use that line too often :) I would prefer doing it correctly/safely, but is there a way? Because it even exposes the unprotected subobjects of the acquired objects... sounds a bit scary to me. Hedley ___ 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 ) -- Best regards, Daniel Dekany ___ 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 use ZPT with ad-hoc context?
Monday, May 4, 2009, 9:18:52 PM, Hedley Roos wrote: __allow_access_to_unprotected_subobjects__ = 1 That indeed works, thanks! You probably should not use that line too often :) I would prefer doing it correctly/safely, but is there a way? Because it even exposes the unprotected subobjects of the acquired objects... sounds a bit scary to me. I don't know what your use case is, but you could either: 1) Expose attributes through methods on your Adhoc class 2) Use a browser view, which is what I'd do. The use-case is that there is a product that collects information from other objects, depending on the current user and on query parameters, and that collected information should be present as a HTML page... so I think 1) won't work here. Regarding 2), I don't know this browser view thing, but I recon that's a Five/Zope 3 feature, is it? Because unfortunately it's a messy 2.7.6 + Plone 2.0 instance here, and it's not like I can migrate it before the current job is done. Hedley ___ 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 ) -- Best regards, Daniel Dekany ___ 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] is there a zope product for generating spreadsheets?
hello all, I am right now browsing through the grok tutorial and found it to be really amaising. I had been confused a few days regarding how I can put my application into zope. Thanks to all you who patiently answered my queries. Now I am wondering whether there is a product which can generate spreadsheet like output for some typicle data such as balance sheets or ledgers (with cell merging capability)? I would also like to know if there is some way I am make grok integrate open office in a way that I can generate open office spreadsheets and send it to a browser or open it in some way? I know there is a python library called odfpy which can fill up spreadsheets with data, but I don't know whether similar things are possible with zope. I have searched but did not find some thing like this. so is any thing of the above possible? happy hacking. Krishnakant. ___ 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] is there a zope product for generating spreadsheets?
On 04.05.09 23:07, Krishnakant wrote: hello all, I am right now browsing through the grok tutorial and found it to be really amaising. I had been confused a few days regarding how I can put my application into zope. Thanks to all you who patiently answered my queries. Now I am wondering whether there is a product which can generate spreadsheet like output for some typicle data such as balance sheets or ledgers (with cell merging capability)? I would also like to know if there is some way I am make grok integrate open office in a way that I can generate open office spreadsheets and send it to a browser or open it in some way? http://lmgtfy.com/?q=python+excel http://pypi.python.org/pypi?%3Aaction=searchterm=excelsubmit=search I know there is a python library called odfpy which can fill up spreadsheets with data, but I don't know whether similar things are possible with zope. Why shouldn't that work?! Zope 2, Zope 3 and Grok allow you to import almost any Python package (as long as it makes sense). So where is the problem? -aj -- ZOPYX Ltd. Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany Web: www.zopyx.com - Email: i...@zopyx.com - Phone +49 - 7071 - 793376 Registergericht: Amtsgericht Stuttgart, Handelsregister A 381535 Geschäftsführer/Gesellschafter: ZOPYX Limited, Birmingham, UK E-Publishing, Python, Zope Plone development, Consulting begin:vcard fn:Andreas Jung n:Jung;Andreas org:ZOPYX Ltd. Co. KG adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbingen;;72070;Germany email;internet:i...@zopyx.com title:CEO tel;work:+49-7071-793376 tel;fax:+49-7071-7936840 tel;home:+49-7071-793257 x-mozilla-html:FALSE url:www.zopyx.com version:2.1 end:vcard ___ 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 )