Re: XML export/import is cool! (Was Re: [Zope-dev] Deprecating XML export/import?)
--On 25. März 2006 21:40:48 +0100 Yoshinori Okuji [EMAIL PROTECTED] wrote: On Saturday 25 March 2006 15:56, Andreas Jung wrote: Zope 2.7 throws a BadPickleGet, 12 exception, Zope 2.8 throws BadPickleGet, 13 and Zope 2.9 raises the described UnicodeDecodeError. I don't expect that the import functionality works for even more complex objects. So I consider the whole functionality as totally broken. The generated XML might be useful to perform any processing outside Zope but using it for re-importing it into another Zope systems definitely does _not_ work. So if the functionality should remain in Zope then it should be fixed for Zope 2.10 lately. Here is a quick patch for this problem (against 2.9.1). There were two different problems: - the id attributes were not generated, because the conditional was reverse. - unlike xmllib, expat always returns Unicode data, so simply concatenating binary values generates Unicode objects with non-ascii characters. Thanks for the patch (commited for Zope 2.8, 2.9. trunk). This solves at least the import problems on my side. Unfortunately there are no tests for export/import so fixing issues is like flying blindfolded. -aj pgpux7LfpurMA.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: XML export/import is cool! (Was Re: [Zope-dev] Deprecating XML export/import?)
--On 26. März 2006 09:58:07 +0100 Andreas Jung [EMAIL PROTECTED] wrote: Thanks for the patch (commited for Zope 2.8, 2.9. trunk). This solves at least the import problems on my side. Unfortunately there are no tests for export/import so fixing issues is like flying blindfolded. Although the patch does not help to export a complete Plone site as XML. This fails with: Traceback (innermost last): * Module ZPublisher.Publish, line 113, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 40, in call_object * Module OFS.ObjectManager, line 547, in manage_exportObject * Module OFS.XMLExportImport, line 58, in exportXML * Module OFS.XMLExportImport, line 33, in XMLrecord * Module Shared.DC.xml.ppml, line 263, in load * Module pickle, line 872, in load * Module Shared.DC.xml.ppml, line 418, in load_binput AttributeError: 'unicode' object has no attribute 'id' -aj pgp5HnhJqBQvt.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-dev] Re: Wishlist Item
Andreas Jung wrote: CMF or not - if one need such a functionality one can download CMF or a related product. If such functionality should belong into the core than it should be implemented in a reusable way and frameworks like CMF should be build on top of it. So -1 for the request. Indeed, I'm -1 on FileSystemSite, but it'd be _great_ to see the DirectoryView stuff move from the CMF into the core. That way we'd stop having several different implementations that newbies are forced to pick from. CMF could indeed then move onto using this... Where should I raise an issue? CMF or Zope collector? Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ 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] How to delete dodgy zope.org issues
Hi All, Just so people know, if you see spoor in the collectors, Tres wrote a handy script/template to let you delete them. You'll need to be a manager in /Collectors or above. If you are, just go to: http://www.zope.org/Collectors/remove_dodgy_issue Fill in the boxes and click the button. cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ 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] Re: Wishlist Item
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris Withers wrote: Andreas Jung wrote: CMF or not - if one need such a functionality one can download CMF or a related product. If such functionality should belong into the core than it should be implemented in a reusable way and frameworks like CMF should be build on top of it. So -1 for the request. Indeed, I'm -1 on FileSystemSite, but it'd be _great_ to see the DirectoryView stuff move from the CMF into the core. I don't get what you mean: FilesystemSite *is* a separate packaging of the DirectoryView /FS{DTMLMethod/PythonScript/PageTemplate/SQLMethod} stuff, without any CMF dependencies. Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFEJpQ++gerLs4ltQ4RAp+WAKDDwDaiC2ogIYbAKyD2a7BRgN5OuwCguBPi aSdYR/uDJPmHKH0DHi6zXC0= =PUz0 -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 )
Re: [Zope-dev] Re: Wishlist Item
Chris Withers wrote: Andreas Jung wrote: CMF or not - if one need such a functionality one can download CMF or a related product. If such functionality should belong into the core than it should be implemented in a reusable way and frameworks like CMF should be build on top of it. So -1 for the request. Indeed, I'm -1 on FileSystemSite, but it'd be _great_ to see the DirectoryView stuff move from the CMF into the core. That way we'd stop having several different implementations that newbies are forced to pick from. Maybe its just me but I personally dont like direct filesystem access in the core - if someone wants it, (s)he can pick from the 3rd party products - maybe there can be a list of recommended (active maintained) products? Direct access products should also carry some easily understandable warnings. Regards Tino ___ 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] Re: Wishlist Item
Tino Wildenhain wrote: Maybe its just me but I personally dont like direct filesystem access in the core - if someone wants it, (s)he can pick from the 3rd party products - maybe there can be a list of recommended (active maintained) products? Direct access products should also carry some easily understandable warnings. I can understand that point of view for products that allow writing to the filesystem, but, conceptually, what's the difference between read-only filesystem access and a standard filesystem product? None, I think, but then I may have misunderstood the purpose of FileSystemSite, and friends. Tim ___ 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] Re: XML export/import is cool! (Was Re: Deprecating XML export/import?)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yoshinori Okuji wrote: On Saturday 25 March 2006 15:56, Andreas Jung wrote: Zope 2.7 throws a BadPickleGet, 12 exception, Zope 2.8 throws BadPickleGet, 13 and Zope 2.9 raises the described UnicodeDecodeError. I don't expect that the import functionality works for even more complex objects. So I consider the whole functionality as totally broken. The generated XML might be useful to perform any processing outside Zope but using it for re-importing it into another Zope systems definitely does _not_ work. So if the functionality should remain in Zope then it should be fixed for Zope 2.10 lately. Here is a quick patch for this problem (against 2.9.1). There were two different problems: - the id attributes were not generated, because the conditional was reverse. - unlike xmllib, expat always returns Unicode data, so simply concatenating binary values generates Unicode objects with non-ascii characters. For the latter problem, I'm not sure if my patch is enough. But this patch works with a simple dtml export/import. I have extended your patch with a unit test (there weren't any for OFS.XMLExportImport), as well as modifying XMLExportImport to open files in binary mode. Before your patch, my tests fail, with the same Unicode error. Afterwards, they pass. Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFEJuQf+gerLs4ltQ4RAjaRAJ9tT6Xv0yIJpPx2SixFSKdghtVcrwCfU6Yk VrofPZTcbr1RzTu5knxSwJs= =mRAe -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] Re: SVN: Zope/branches/2.9/lib/python/ update to latest revision of ZODB 3.6 for upcoming release
Tres Seaver wrote: Philipp von Weitershausen wrote: Log message for revision 66185: update to latest revision of ZODB 3.6 for upcoming release Should'nt we be tagging a ZODB release for this? I *really* don't like the practice of releasing a product which has non-tagged dependencies linked as externals, bound only to a meaning-free revision ID. Which is why I once suggested to the SVN developers to allow revision IDs have a human-readable alias :). Anyways, since both the 2.9.x and the 3.2.0 release used a meaning-free revision ID of ZODB, I didn't bother and change this practice for 2.9.3/3.2.1 now. If you want to create a ZODB 3.6.1 release, please do so, but it's a lot of work for me right now. I also didn't feel like peeing in someone else's pool since the ZODB was sort of Tim's territory in the past. Philipp ___ 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] Re: SVN: Zope/branches/2.9/lib/python/ update to latest revision of ZODB 3.6 for upcoming release
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Philipp von Weitershausen wrote: Log message for revision 66185: update to latest revision of ZODB 3.6 for upcoming release Should'nt we be tagging a ZODB release for this? I *really* don't like the practice of releasing a product which has non-tagged dependencies linked as externals, bound only to a meaning-free revision ID. Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFEJuwM+gerLs4ltQ4RAiGHAJ90bCZUCwRwPMHQoBwmEsnUX7ExWgCgq4kt aHOz3965RO2An6A2pgkvcNQ= =mnaF -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 )
Re: [Zope-dev] Re: SVN: Zope/branches/2.9/lib/python/ update to latest revision of ZODB 3.6 for upcoming release
--On 26. März 2006 14:31:25 -0500 Tres Seaver [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Philipp von Weitershausen wrote: Log message for revision 66185: update to latest revision of ZODB 3.6 for upcoming release Should'nt we be tagging a ZODB release for this? I *really* don't like the practice of releasing a product which has non-tagged dependencies linked as externals, bound only to a meaning-free revision ID. +1 -aj pgpcasjW17W3n.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-dev] [Fwd: [Zope] Can not install signal handlers. Please install (or upgrade) your pywin32 installation (https://sf.net/projects/pywin32)]
I notice the 2.9.1 binary a rolled a couple of weeks back seems to emit this warning every time I start Zope. Is there something I've done wrong or is something else causing this? What version of pywin32 did you use for the build? Is an earlier one already installed on the target box with the problem? This generally means an ImportError referencing a name in the win32api module. Mark ___ 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.8.7] with Five 1.0 or Five 1.2
Hi, Zope 2.8 ships/shipped with Five 1.0 which is very old and no longer actively maintained. Most ppl doing currently development with Zope 2.8 are using Five 1.2. Should we upgrade the Five version in Zope 2.8 to Five 1.2 to make their lives a bit easier? There is possibly a compatiblity problem involved and it is against the general rule for major upgrades of a package or product for a minor Zope release..I have no opinion on this issue...I just had this thought Andreas P.S. Zope 2.8.7 will be delayed so far for some days (until next weekend or so) pgpFnyeXV4cUM.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 )
[Zope-dev] Re: pywin32 - Can not install signal handlers
Hi Mark, I see you replied, but I missed this first time round: http://mail.zope.org/pipermail/zope-dev/2006-March/027166.html What version of pywin32 did you use for the build? http://svn.zope.org/Zope/trunk/inst/WinBuilders/README.txt?rev=65838view=auto ...shows the exact list of instructions I followed. So I would have used: pywin32-207.win32-py2.4.exe Is an earlier one already installed on the target box with the problem? Sorry, do you mean the box where the Zope 2.9.1 distro was built or the one where I was installing it? If the former, tell me what to do to fix it ;) If the latter, how dowe fix Zope so it doesn't get tripped up by other pywin32 distros on the same box? cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ 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 )