Re: [Zope-dev] Location of RelStorage

2013-04-12 Thread Chris Withers
On 14/03/2013 08:01, Marius Gedminas wrote: What's the official location of RelStorage? I see two source trees: * http://zope3.pov.lt/trac/browser/relstorage/trunk * https://github.com/zodb/relstorage They have the same commits (~1 year old). ..and one more just for good measure:

[Zope-dev] when did transaction lose the ability to be usable as a context manager?

2013-02-06 Thread Chris Withers
Hi All, I used to do this: import transaction with transaction: ... print 'hello' ... Traceback (most recent call last): File console, line 1, in module AttributeError: __exit__ When did that stop working and what should I now do instead? cheers, Chris -- Simplistix - Content

Re: [Zope-dev] when did transaction lose the ability to be usable as a context manager?

2013-02-06 Thread Chris Withers
On 06/02/2013 11:47, Wichert Akkerman wrote: You can also use the transaction manager directly instead of the bound methods transaction lifts out of it: import transaction with transaction.manager: pass yeah, this is what I'll do. Chris -- Simplistix - Content Management, Batch

Re: [Zope-dev] How to signal that projects have moved to github

2013-01-11 Thread Chris Withers
On 10/01/2013 20:48, Jim Fulton wrote: It isn't just CI: people may have projects running from SVN checkouts, which we break without warning (the Plone devs have been notorious for causing such breakage for years). I still think breakage is better. If they're using trunk, without pinning a

Re: [Zope-dev] [Checkins] SVN: zc.buildout/ Moved to github

2012-08-18 Thread Chris Withers
Hi Jens, On 18/08/2012 09:39, Jens Vagelpohl wrote: Legally this must be a fork then and I'm not sure it can be released as official Zope Foundation software anymore if you make releases from GitHub. Reason: the ZF can no longer ascertain that only official ZF contributor agreement signers

Re: [Zope-dev] [Checkins] SVN: zc.buildout/ Moved to github

2012-08-18 Thread Chris Withers
I'm not going to dignify this with a fuller response other than to say that Jean-Paul Smets' entire email is nothing but bullshit written to try and promote an inferior competing product ;-) Chris On 18/08/2012 13:31, Jean-Paul Smets wrote: Hi, I approve your position Jens. Moving to git

[Zope-dev] Can't compile zope.interface 4.0.1 extensions on Mac OS with Py2.7

2012-07-01 Thread Chris Withers
Hi All, Got this: Getting distribution for 'zope.interface'. In file included from /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/unicodeobject.h:4, from /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:85,

Re: [Zope-dev] working with different requirements depending on python version

2012-07-01 Thread Chris Withers
On 30/06/2012 18:12, Tres Seaver wrote: How have other people solved this? For repoze.sendmail, I did two fixups for Python 2.5: - - I changed 'install_requires' in setup.py based on sys.version_info https://github.com/repoze/repoze.sendmail/blob/master/setup.py - - I pinned the verstion

[Zope-dev] working with different requirements depending on python version

2012-06-30 Thread Chris Withers
Hi All, While trying to debug another problem, I re-ran some Jenkins jobs for two of my packages, which promptly failed under Python 2.5: http://jenkins.simplistix.co.uk/job/testfixtures-buildout/ http://jenkins.simplistix.co.uk/job/checker-buildout/ Now, the issue here is that

Re: [Zope-dev] zope.server still used?

2012-01-07 Thread Chris Withers
On 20/12/2011 10:44, Jim Fulton wrote: What's wrong with mod_wsgi? Debugging with it seems to be a pain, so you end up using different servers in development and production. I'm pretty sure if you ask Graham there'll be a simple way to run Apache mod_wsgi in a way that lets you debug in

Re: [Zope-dev] ZConfig: multi-line values

2012-01-06 Thread Chris Withers
On 05/01/2012 21:07, Fred Drake wrote: On Thu, Jan 5, 2012 at 1:47 PM, Chris Withersch...@simplistix.co.uk wrote: Is there any way in ZConfig to allow a file that looks like this: ... ...or some other way of spelling multi-line values for a key? Nope, sorry. I played with adding that at

[Zope-dev] ZConfig: multi-line values

2012-01-05 Thread Chris Withers
Hi Fred, Is there any way in ZConfig to allow a file that looks like this: somesection key1 value1 key2 multi line value /key2 /somesection ...or some other way of spelling multi-line values for a key? If so, how do I phrase it in the schema? cheers, Chris -- Simplistix - Content

Re: [Zope-dev] zope.server still used?

2011-12-19 Thread Chris Withers
On 20/12/2011 07:08, Wolfgang Schnerring wrote: as advanced as we've come to know. What do people use here, what are your experiences and ideas? What's wrong with mod_wsgi? Chris -- Simplistix - Content Management, Batch Processing Python Consulting - http://www.simplistix.co.uk

Re: [Zope-dev] Zope 4 release management

2011-11-17 Thread Chris Withers
On 17/11/2011 16:32, Tres Seaver wrote: Note that this question is *not* suitable for loudest voice on zope-dev wins ressolution. The software belongs to the Zope Foundation, which will make any such decision. Small point: the software is open source and anyone who wants can maintain it

Re: [Zope-dev] [TIP] zope.testrunner and nose count doctests differently

2011-11-12 Thread Chris Withers
On 09/11/2011 13:17, Benji York wrote: If this is the case, perhaps Manuel shouldn't do anything with countTestCases? (I know it would drop the test count, but that's not *that* important, right? ;-) - and at least all the test runners would agree...) Meh. Having a good count in complaint

Re: [Zope-dev] [TIP] zope.testrunner and nose count doctests differently

2011-11-09 Thread Chris Withers
Hi Benji, On 08/11/2011 11:10, Jonathan Lange wrote: Mark has somewhat misdirected the thread here, either that or I've got in a muddle, anyway, the issue at hand is that nose ignores TestCase.countTestCases(). Any nose people know what that is? Not a nose person, but it's usual to report on

[Zope-dev] Undelivered Mail Returned to Sender

2011-11-09 Thread Chris Withers
Any idea what mx1.emailsrvr.com doesn't like? Is it Bejni's address, the email in question or that isn't coming from server1.simplistix.co.uk? cheers, Chris (trying again to get around the crazy zope.org obsession with banning .eml attachments - ie: Thunderbird and others forwarded

Re: [Zope-dev] [TIP] zope.testrunner and nose count doctests differently

2011-11-08 Thread Chris Withers
Hi All, On 07/11/2011 22:25, Michael Foord wrote: On 07/11/2011 19:51, Mark Sienkiewicz wrote: On 11/07/11 12:53, Chris Withers wrote: The only hiccup is that nose doesn't respect a test_suite function by default, so I wrote a plugin to make it do the right thing: Nose people: any idea *why

Re: [Zope-dev] zope.testrunner and nose count doctests differently

2011-11-07 Thread Chris Withers
Hi Benji, On 03/11/2011 12:31, Benji York wrote: If you will tell me how you wired up Manuel and nose, I'd love to add a how-to section to the Manuel docs. The only hiccup is that nose doesn't respect a test_suite function by default, so I wrote a plugin to make it do the right thing:

[Zope-dev] zope.testrunner and nose count doctests differently

2011-11-03 Thread Chris Withers
Hi All, I'm experimenting with using nose as an alternative to zope.testrunner so I can take advantage of the junit and cobertura compatible xml output offered. However, it appears that doctest counting is different between the two: $ bin/test -m testfixtures.tests.test_docs Running

Re: [Zope-dev] zope.testrunner and nose count doctests differently

2011-11-03 Thread Chris Withers
Hi Michael, On 03/11/2011 09:12, Michael Howitz wrote: Run both test runners with the option -vv to see which tests are run. (I did this for your code and the list of tests seems to be equal.) Cool, I'd done this already, but it's good to have someone else verify this :-) Though this is no

Re: [Zope-dev] zope.testrunner and nose count doctests differently

2011-11-03 Thread Chris Withers
On 03/11/2011 10:54, Matthew Wilkes wrote: On 2011-11-03, at 0025, Chris Withers wrote: I'm experimenting with using nose as an alternative to zope.testrunner so I can take advantage of the junit and cobertura compatible xml output offered. Using http://pypi.python.org/pypi

Re: [Zope-dev] zope.testrunner and nose count doctests differently

2011-11-03 Thread Chris Withers
On 03/11/2011 11:05, Jim Fulton wrote: On Thu, Nov 3, 2011 at 5:14 AM, Chris Withersch...@simplistix.co.uk wrote: Hi Michael, On 03/11/2011 09:12, Michael Howitz wrote: Run both test runners with the option -vv to see which tests are run. (I did this for your code and the list of tests

Re: [Zope-dev] Zope 4 publisher/traversal, sprint topic

2011-10-28 Thread Chris Withers
On 28/10/2011 08:46, yuppie wrote: Is that the fault of the publisher? AFAICT the biggest security problem of Zope2 is this line in OFS.SimpleItem.Item: # Allow (reluctantly) access to unprotected attributes __allow_access_to_unprotected_subobjects__=1 I'm not familiar with the

Re: [Zope-dev] zope.sqlalchemy+py3 test failures.

2011-09-29 Thread Chris Withers
On 29/09/2011 15:22, Laurence Rowe wrote: On 29 September 2011 10:33, Chris McDonoughchr...@plope.com wrote: On Tue, 2011-09-27 at 12:40 -0400, Tres Seaver wrote: This bootstrap is from Jim's '2' branch of zc.buildout:

Re: [Zope-dev] access to create z.i and z.c releases

2011-09-27 Thread Chris Withers
On 23/09/2011 19:16, Charlie Clark wrote: Am 23.09.2011, 09:36 Uhr, schrieb Chris Withersch...@simplistix.co.uk: t tried zope.interface 3.8.0 on MacOS X Lion and got: Oh you brave boy! Given what Apple managed with Snow Leopard I've held off Lion so far and I always use the MacPorts

Re: [Zope-dev] zope.sqlalchemy+py3 test failures.

2011-09-27 Thread Chris Withers
On 27/09/2011 02:47, Chris McDonough wrote: In case anyone is interested, I've made a stab at porting zope.sqlalchemy to Python 3 at http://svn.zope.org/zope.sqlalchemy/branches/chrism-py3/ . Several tests still fail. I could use some help fixing them. Have you tried running the tests by

Re: [Zope-dev] access to create z.i and z.c releases

2011-09-23 Thread Chris Withers
On 22/09/2011 10:10, Chris McDonough wrote: On Thu, 2011-09-22 at 10:10 +0200, Hanno Schlichting wrote: On Thu, Sep 22, 2011 at 9:03 AM, Chris McDonoughchr...@plope.com wrote: I've made tags for zope.interface 3.8.0 and zope.component 3.11.0, as described in a recent thread to this list, but

Re: [Zope-dev] RFC: Proposal for merging jbohman-zope.registry branch of zope.component

2011-09-16 Thread Chris Withers
On 15/09/2011 07:11, Chris McDonough wrote: zope.registry also currently provides a minor API in the way of an adapts decorator. This could (and should) be moved back into zope.component; it's actually not used internally by zope.registry now (although some decoy imports would make you think

Re: [Zope-dev] RFC: Proposal for merging jbohman-zope.registry branch of zope.component

2011-08-26 Thread Chris Withers
On 26/08/2011 02:17, Charlie Clark wrote: Regarding Withers suggestion - should we be looking to move these libraries to the WSGI namespace? Or are there real use cases outside the web world? As with Tim, I use both of these libraries plenty of the time outside of web work... cheers, Chris

Re: [Zope-dev] RFC: Proposal for merging jbohman-zope.registry branch of zope.component

2011-08-25 Thread Chris Withers
On 25/08/2011 06:24, Jim Fulton wrote: Maybe something like zope.plugins would be better. When I try to explain zope.component to people, I often explain it as a good generic plugin mechanism. If we're renaming, we could also consider dropping the zope bit. I never will understand the

[Zope-dev] TestFixtures 1.10.0 Released!

2011-07-19 Thread Chris Withers
Hi All, I'm happy to announce a new release of TestFixtures with the following changes: - Removed the dependency on zope.dottedname. - Implement the ability to mock out dict and list items using testfixtures.Replacer and testfixtures.replace. - Implement the ability to remove attributes

Re: [Zope-dev] TestFixtures 1.10.0 Released!

2011-07-19 Thread Chris Withers
Hmm, might have been helpful to include docs for these new bits: On 19/07/2011 09:36, Chris Withers wrote: - Implement the ability to mock out dict and list items using testfixtures.Replacer and testfixtures.replace. - Implement the ability to remove attributes and dict items using

Re: [Zope-dev] versions on zope.org and launchpad.net

2011-06-28 Thread Chris Withers
On 28/06/2011 18:28, Johannes Raggam wrote: on http://www.zope.org/Products/Zope/swpackage_releases there are zope 2.8.12, 2.9.12, 2.10.13 and 2.11.8 available, where on launchpad they are not. Not to mention that http://www.zope.org/Products/ is out of date and lists Zope 2.11.4 as the

[Zope-dev] weird intermittent error with apache2 and mod_wsgi

2011-06-27 Thread Chris Withers
Hi All, Apologies for the cross post, but this problem is occurring with a repoze.bfg app running on apache using mod_wsgi, and the exception is suggesting something zope.interface related... So, firstly, it only happens intermittently, and I haven't been able to figure out any pattern to the

Re: [Zope-dev] component registry navelgazing

2011-06-13 Thread Chris Withers
On 12/06/2011 21:48, Chris McDonough wrote: Currently if you ask a registry to singly-adapt an object to an interface, and the object you're trying to adapt implements that interface, here's what happens: from zope.component.registry import Components c = Components() from zope.interface

Re: [Zope-dev] component registry navelgazing

2011-06-13 Thread Chris Withers
On 13/06/2011 15:26, Charlie Clark wrote: In order to get the object itself back from such an adaptation, you need to use the default= argument. I know that the question has been answered but your question makes me ask another: why would you want to adapt an object with itself? I have

Re: [Zope-dev] beta.zope.org (www.zope.org relaunch project)

2011-05-10 Thread Chris Withers
Hi All, I found a link off the new site (which looks great, btw) to: http://zodb.zope.org/ ...but this name doesn't resolve for me, does it for other people? Chris On 10/05/2011 05:55, Andreas Jung wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi there, I am happy to announce

Re: [Zope-dev] beta.zope.org (www.zope.org relaunch project)

2011-05-10 Thread Chris Withers
On 10/05/2011 22:31, Jens Vagelpohl wrote: ...but this name doesn't resolve for me, does it for other people? The link is incorrect. It should point to www.zodb.org. Where would I got to fix it? cheers, Chris -- Simplistix - Content Management, Batch Processing Python Consulting

Re: [Zope-dev] beta.zope.org (www.zope.org relaunch project)

2011-05-10 Thread Chris Withers
On 11/05/2011 06:45, Andreas Jung wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris Withers wrote: On 10/05/2011 22:31, Jens Vagelpohl wrote: ...but this name doesn't resolve for me, does it for other people? The link is incorrect. It should point to www.zodb.org. Where would I

Re: [Zope-dev] beta.zope.org (www.zope.org relaunch project)

2011-05-10 Thread Chris Withers
On 11/05/2011 06:52, Andreas Jung wrote: How do existing Zope contributors help out? Please make your notes. We will pick them up and incorporate for the final version. Further changes should be made by the webmaster which is currently Michael Haubenwaller. This sounds a lot like we don't

[Zope-dev] TestFixtures 1.9.2 Released!

2011-04-20 Thread Chris Withers
Hi All, I'm happy to announce a new release of TestFixtures. This release adds a utcnow method to test_datetime that behaves identically to the now method: http://packages.python.org/testfixtures/api.html#testfixtures.tdatetime.utcnow The package is on PyPI and a full list of all the links to

Re: [Zope-dev] [buildout] private releases

2011-03-30 Thread Chris Withers
On 30/03/2011 12:29, Wolfgang Schnerring wrote: (Shameless plug: ;-) gocept.zestreleaser.customupload is a plugin for zest.releaser that allows uploading the created egg via scp. We use this to put our non-public eggs into a folder that's served (and htpasswd protected) by an Apache or

Re: [Zope-dev] [buildout] private releases

2011-03-25 Thread Chris Withers
Hi Christian, On 25/03/2011 16:49, Christian Theune wrote: the German speaking Zope Users Group (DZUG e.V.) organizes a series of 4 sprints this year to support feature development within the proximity of the ZTK and solve problems encountered by Zope, Plone and Python developers. snip

[Zope-dev] can't register adapters for classes with metaclasses

2011-02-27 Thread Chris Withers
Hi All, This is particularly problematic when using the common case of SQLAlchemy declaratively mapped model classes. The attached unit test when run will fail with: Error in test test_provideAdapter (test_sa.TestAdapter) Traceback (most recent call last): File

Re: [Zope-dev] can't register adapters for classes with metaclasses

2011-02-27 Thread Chris Withers
On 27/02/2011 17:22, Tres Seaver wrote: TypeError: 'DeclarativeMeta' object is not iterable Why is that and how should I register an adapter against such a class? UTSL: the 'required' argument passed to 'registerAdapter' is supposed to be a sequence of interfaces or classes, not a single

[Zope-dev] transaction as context manager, exception during commit

2011-02-24 Thread Chris Withers
Hi Jim, The current __exit__ for transaction managers looks like this: def __exit__(self, t, v, tb): if v is None: self.commit() else: self.abort() ..which means that if you're using the transaction package as a context manager and, say, a

Re: [Zope-dev] [ZODB-Dev] transaction as context manager, exception during commit

2011-02-24 Thread Chris Withers
On 24/02/2011 11:38, Laurence Rowe wrote: Hi Jim, The current __exit__ for transaction managers looks like this: def __exit__(self, t, v, tb): if v is None: self.commit() else: self.abort() ..which means that if you're using the

[Zope-dev] TestFixtures 1.9.0 Released!

2011-02-11 Thread Chris Withers
Hi All, I'm happy to announce a new release of TestFixtures. This release adds a helper for tests of code using zope.component: http://packages.python.org/testfixtures/components.html The package is on PyPI and a full list of all the links to docs, issue trackers and the like can be found

Re: [Zope-dev] Manuel and TestFixtures

2011-01-14 Thread Chris Withers
On 08/09/2009 18:04, Chris Withers wrote: Coming back to this ancient thread... ...and once more, only a year and a half later ;-) What I'd really like to do is write a Manuel plugin that will be part of testfixtures' TempDirectory and would handle the following: .. topic:: some/dir

Re: [Zope-dev] Context priority as an alternative to configuration directive overrides

2010-12-03 Thread Chris Withers
On 02/12/2010 08:15, Malthe Borch wrote: I always found configuration overrides (e.g. ZCML'sincludeOverrides directive) to be difficult to manage and hard to get right. How about an alternative where you can put a priority on a configuration context like so: adapter zcml:priority=100 ...

Re: [Zope-dev] logrotation/logreopening in ZTK-based applications

2010-11-29 Thread Chris Withers
On 10/11/2010 14:23, Christian Theune wrote: I'd like to keep this out of the server: rotation is a system administration task where I'd like to rely on the policies and tools provided by the system environment. I just use logrotate's copytruncate option :-) Chris -- Simplistix - Content

[Zope-dev] The mysterious origins of a temp_folder

2010-11-04 Thread Chris Withers
Switching to zope-dev as this has become a Zope question: On 04/11/2010 14:17, Shane Hathaway wrote: On 11/04/2010 06:32 AM, Chris Withers wrote: I have the following config for the temp_folders of my ZODB instances: zodb_db temporary relstorage destination mysql

[Zope-dev] Yet more unicode and page template weirdness

2010-10-13 Thread Chris Withers
Hi All, In Zope 2.12, try putting the following in a TTW ZPT: tal:c content=#8250;/ ...nothing more, nothing less. On save, I get: Compilation failed type 'exceptions.UnicodeEncodeError': 'ascii' codec can't encode character u'\u203a' in position 0: ordinal not in range(128) If I try and

Re: [Zope-dev] Zope 2.12 20% slower than Zope 2.9?!

2010-10-13 Thread Chris Withers
On 11/10/2010 19:00, Alan Runyan wrote: Try with a smaller batch (whatever you are doing) and profile it. I 100% agree with what ajung says. post a profile of your batch run that takes ~30 minutes. Related to this, what http load testing tools do people around here recommend? cheers,

Re: [Zope-dev] Another weird unicode error from Zope 2

2010-10-13 Thread Chris Withers
On 12/10/2010 16:00, Charlie Clark wrote: Traceback (most recent call last): File stdin, line 1, inmodule UnicodeEncodeError: 'latin-1' codec can't encode character u'\u203a' in position 0: ordinal not in range(256) ISO-8859-15 is, of course, Latin-1 + the € Yes, but I don't see why

Re: [Zope-dev] Another weird unicode error from Zope 2

2010-10-13 Thread Chris Withers
On 13/10/2010 11:10, Charlie Clark wrote: Am 13.10.2010, 12:06 Uhr, schrieb Chris Withersch...@simplistix.co.uk: So why on earth is iso8859_15 being picked instead of utf-8? I would guess this is the default-publisher-encoding of your system. I don't have one set. So, is iso-8859-15 the

Re: [Zope-dev] Yet more unicode and page template weirdness

2010-10-13 Thread Chris Withers
On 13/10/2010 11:19, Charlie Clark wrote: Maybe your question is actually why is the XML entity being converted to character data at all? I guess so... My naive experience is that this just works in Zope 2.9 and just breaks in 2.12. Maybe your question is actually why is the XML entity

Re: [Zope-dev] Yet more unicode and page template weirdness

2010-10-13 Thread Chris Withers
On 13/10/2010 13:47, Marius Gedminas wrote: On Wed, Oct 13, 2010 at 08:53:08AM +0100, Chris Withers wrote: Hi All, In Zope 2.12, try putting the following in a TTW ZPT: tal:c content=#8250;/ Are you sure you didn't mean tal:c content=string:#8250;/ Ah, d'oh! Thanks for the catch

[Zope-dev] Another weird unicode error from Zope 2

2010-10-12 Thread Chris Withers
Anyone seen this or know what it means? Traceback (innermost last): Module ZPublisher.Publish, line 130, in publish Module ZServer.HTTPResponse, line 266, in setBody Module ZPublisher.HTTPResponse, line 330, in setBody Module ZPublisher.HTTPResponse, line 485, in _encode_unicode Module

[Zope-dev] Zope 2.12 20% slower than Zope 2.9?!

2010-10-11 Thread Chris Withers
Hi All, Just finished upgrading a medium sized project from Zope 2.9 to 2.12. One part of that does a batch of static copies of a Zope-served site. I guess I was hoping for a bit of a speed up, so was slightly horrified to see the batch, which used to take 11hrs, now takes 13 hrs. This has

Re: [Zope-dev] Zope 2.12 20% slower than Zope 2.9?!

2010-10-11 Thread Chris Withers
On 11/10/2010 13:32, Hanno Schlichting wrote: My only guess here is that you are calling a lot of page templates and those have gotten slower. When we switched to Unicode based templates in Zope 2.10, that move has of course cost some performance. Dealing with Unicode instead of bytes is

Re: [Zope-dev] Zope 2.12 20% slower than Zope 2.9?!

2010-10-11 Thread Chris Withers
On 11/10/2010 16:53, David Glick wrote: Are there any docs on how to get Chameleon to work with classic, ZODB-based page templates? Just use cmf.pt: http://pypi.python.org/pypi/cmf.pt Ah, okay, well, I'm not using anything CMF, so I opted for just five.pt. Unfortunately, this hits a unicode

[Zope-dev] encoding ignored for PageTemplate file uploads

2010-09-30 Thread Chris Withers
Hi All, Unless I'm missing something, the encoding text field that forms part of the file upload form on page template instances is completely ignored since it's not used in the pt_upload method of ZopePageTemplate instances. Am I missing anything? Chris -- Simplistix - Content Management,

Re: [Zope-dev] ZODB history problem with Zope 2.12.7

2010-09-28 Thread Chris Withers
On 28/09/2010 12:55, Tres Seaver wrote: On 09/28/2010 03:36 AM, Chris Withers wrote: On 28/09/2010 00:12, Marius Gedminas wrote: --- ./OFS/History.py.orig 2010-09-28 02:11:56.535745440 +0300 +++ ./OFS/History.py2010-09-28 02:12:00.043764683 +0300 @@ -151,6 +151,9

[Zope-dev] weird Page Template / ZODB history problem with Zope 2.12.7

2010-09-27 Thread Chris Withers
Hi All, Try this: - edit a page template - edit it again - go to the history tab, and use the Copy to present button to bring back your first edit. On the edit tab, you will correctly see the text you brought back. However, if you render the template, the old text will be used. It's only if

Re: [Zope-dev] IUnicodeEncodingConflictResolver moronosity

2010-09-22 Thread Chris Withers
On 21/09/2010 23:59, Marius Gedminas wrote: On Tue, Sep 21, 2010 at 07:39:46PM +0100, Chris Withers wrote: So, would anyone object if I change the default, on both trunk and the 2.12 branch to some variant of: class BasicEncodingConflictResolver(object): implements

Re: [Zope-dev] IUnicodeEncodingConflictResolver moronosity

2010-09-22 Thread Chris Withers
On 22/09/2010 03:50, Andreas Jung wrote: I also strongly object such a change in the default behavior. I'm sorry, but WHAT? I did a lot of testing of the current implementation and configuration with various browsers and Zope applications and add-ons in order to make the Zope 3 ZPT engine

Re: [Zope-dev] IUnicodeEncodingConflictResolver moronosity

2010-09-22 Thread Chris Withers
On 21/09/2010 21:18, Andreas Jung wrote: I can not recall all details but at the time of the integration of the Zope 3 ZPT engine the unicode resolver approach was the best thinkable solution for dealing all possible edgecase where encoding issues may pop *for the sake of backwards

Re: [Zope-dev] IUnicodeEncodingConflictResolver moronosity

2010-09-22 Thread Chris Withers
On 22/09/2010 09:58, Andreas Jung wrote: If you think it is crap then I cam happy to accept that (and I don't mind much because Zope 2 is not my radar right now). You are committer and you can fix my crap. Blame me for having written this crap but you could also blame me for having on this

[Zope-dev] IUnicodeEncodingConflictResolver moronosity

2010-09-21 Thread Chris Withers
Hi All, It's been a a while since I had a good rant on a Zope list, but this really takes the biscuit. Andreas, what on *earth* were you thinking with PreferredCharsetResolver?! I like the idea of IUnicodeEncodingConflictResolver, but PreferredCharsetResolver is in the realms of totally

Re: [Zope-dev] IUnicodeEncodingConflictResolver moronosity

2010-09-21 Thread Chris Withers
On 21/09/2010 19:32, Hanno Schlichting wrote: Because there's not all that many people left using plain Zope 2 and upgrading to new versions. Well, or they assume they must be doing something wrong because of this default. The rest is using Plone, which has its own version of this: def

Re: [Zope-dev] Extending Zope2 bin/instance run

2010-09-20 Thread Chris Withers
On 05/09/2010 15:03, Wichert Akkerman wrote: On 2010-9-4 00:43, Chris Withers wrote: On 03/09/2010 17:21, Tres Seaver wrote: I am not sure if this is best done in plone.recipe.zope2instance or Zope2.Startup.zopectl. They have differing versions of ZopeCmd. Perhaps

Re: [Zope-dev] [ZODB-Dev] attempting to undo an un-undoable transaction gives NotImplementedError with ZODB 3.9.5

2010-09-10 Thread Chris Withers
On 09/09/2010 21:47, Jim Fulton wrote: 2010-08-26 22:49:01 ERROR txn.-1338986496 Failed to abort resource manager:MultiObjectResourceAdapter forZODB.DB.TransactionalUndo object at 0x2d509f0 at 47516176 Traceback (most recent call last): File

Re: [Zope-dev] Extending Zope2 bin/instance run

2010-09-03 Thread Chris Withers
On 03/09/2010 17:21, Tres Seaver wrote: I am not sure if this is best done in plone.recipe.zope2instance or Zope2.Startup.zopectl. They have differing versions of ZopeCmd. Perhaps the plone.recipe.zope2instance code should be merged into Zope2's original as well? I don't know anything about

[Zope-dev] UnicodeDecodeError from PageTemplate rendering after upgrading to Zope 2.12.7

2010-08-31 Thread Chris Withers
Hi All, After a recent upgraded to Zope 2.12, I'm now seeing errors like the following when using IE (version 8) or Safari (version 4.0.3) to view page templates. Chrome and Firefox work fine. Traceback (innermost last): Module ZPublisher.Publish, line 127, in publish Module

Re: [Zope-dev] UnicodeDecodeError from PageTemplate rendering after upgrading to Zope 2.12.7

2010-08-31 Thread Chris Withers
Marco Bizzarri wrote: No solution, actually, but I would suggest to sniff the traffic between you and the server; I suspect different headers cause problems, here. Of that I have no doubt. What does Zope2's publisher do with requested encodings and the like now? Why would this be causing

Re: [Zope-dev] UnicodeDecodeError from PageTemplate rendering after upgrading to Zope 2.12.7

2010-08-31 Thread Chris Withers
Charlie Clark wrote: Am 31.08.2010, 12:05 Uhr, schrieb Chris Withers ch...@simplistix.co.uk: What does Zope2's publisher do with requested encodings and the like now? Why would this be causing problems? I can't remember exactly where but preferred_charset is looked for. It isn't set

Re: [Zope-dev] UnicodeDecodeError from PageTemplate rendering after upgrading to Zope 2.12.7

2010-08-31 Thread Chris Withers
Vladislav Vorobiev wrote: Maybe not the best solution but I use this hack: zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py Indeed, certainly not a good solution. This implies that things should be unicode by the time they get here. Now, the decoding shouldn't be dependent on anything the

Re: [Zope-dev] import of zexp containing Page Template objects causes sudden zope death

2010-08-30 Thread Chris Withers
Laurence Rowe wrote: architecture i386): Mach-O executable i386 This is telling you that the executable contains versions for ppc and i386 (no x86_64, so no 64bit version). Another way to confirm this is at the python prompt with: import sys; sys.maxint That's annoying, I was hoping

Re: [Zope-dev] import of zexp containing Page Template objects causes sudden zope death

2010-08-29 Thread Chris Withers
Tim Hoffman wrote: on linux t...@chrome:~$ file /usr/bin/python2.5 /usr/bin/python2.5: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped t...@chrome:~$ Right, so the linux boxes are 32-bit as I suspected: $ file

Re: [Zope-dev] import of zexp containing Page Template objects causes sudden zope death

2010-08-28 Thread Chris Withers
Tres Seaver wrote: Now, how in gdb do I find out what it was that was trying to be imported? (should any sort of import cause a core dump?!) http://wiki.python.org/moin/DebuggingWithGdb Things you learn, thanks for that :-) Okay, another interesting data point; this appears to be related to

Re: [Zope-dev] testing problem with path expressions in page templates

2010-08-27 Thread Chris Withers
Marius Gedminas wrote: What adapter might that be and what's the right way to get it registered in a unit test? DefaultTraversable, I think, and from zope.app.testing import setup setup.setUpTraversal() Various other features need various other components, e.g. if your

Re: [Zope-dev] import of zexp containing Page Template objects causes sudden zope death

2010-08-27 Thread Chris Withers
Tres Seaver wrote: Binary search is your friend: - - Is it only one of the ZPTs which cause the crash? Dunno this yet, will try and find out... - - Can you trim out parts of its content and make it not crash? Yep, if I leave the ZPTs out, it's fine ;-) Also, you might try exporting to

[Zope-dev] import of zexp containing Page Template objects causes sudden zope death

2010-08-27 Thread Chris Withers
Hi All, So, here the story; I have a zodb that's been around for many years. In it, it has a folder containing a few ZPTs and python scripts. This server is now running Zope 2.12. If I zexp export that folder and import into a clean 2.12 instance, the import works fine, but when I try to go to

Re: [Zope-dev] import of zexp containing Page Template objects causes sudden zope death

2010-08-27 Thread Chris Withers
Tres Seaver wrote: It's the sudden death I have issue with, not a peep of logging anywhere... Two options there: - - Run under gdb. gdb says: Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_PROTECTION_FAILURE at address: 0xb0186cec [Switching to process

[Zope-dev] Undo tab in Zope 2.12

2010-08-26 Thread Chris Withers
...often appears to be empty when it shouldn't be. Has anyone else observed this? Chris -- Simplistix - Content Management, Batch Processing Python Consulting - http://www.simplistix.co.uk ___ Zope-Dev maillist - Zope-Dev@zope.org

Re: [Zope-dev] Undo tab in Zope 2.12

2010-08-26 Thread Chris Withers
Chris Withers wrote: ...often appears to be empty when it shouldn't be. Has anyone else observed this? The answer turned out to be ZODB 2.10b4 being used on the storage server side. I found a clue in the ChangeLog but it sure would be nice if there was some logging of some sort to warn

[Zope-dev] attempting to undo an un-undoable transaction gives NotImplementedError with ZODB 3.9.5

2010-08-26 Thread Chris Withers
Here's an example: 2010-08-26 22:49:01 ERROR txn.-1338986496 Failed to abort resource manager: MultiObjectResourceAdapter for ZODB.DB.TransactionalUndo object at 0x2d509f0 at 47516176 Traceback (most recent call last): File transaction-1.1.0-py2.6.egg/transaction/_transaction.py, line 475,

[Zope-dev] testing problem with path expressions in page templates

2010-08-26 Thread Chris Withers
Hi All, When trying to test a template in a unit test, I get the following exception: - Expression: PathExpr standard:u'options/myobject/SomeProperty' ... File Zope2-2.12.7-py2.6-macosx-10.3-fat.egg/Products/PageTemplates/Expressions.py, line 79, in boboAwareZopeTraverse

Re: [Zope-dev] zc.recipe.egg bug (tracker)?

2010-08-23 Thread Chris Withers
Andreas Jung wrote: /Users/ajung/sandboxes/occ/eggs/zc.recipe.egg-1.3.0-py2.6.egg/zc/recipe/egg/egg.py, line 159, in install if options.query_bool('dependent-scripts', 'false'): AttributeError: 'dict' object has no attribute 'query_bool' Not sure who is in charge and where the related

[Zope-dev] PageTemplate Interfaces in Zope 2.12

2010-08-18 Thread Chris Withers
Hi All, If I got to the Interfaces tab of a Page Template in the ZMI of a plain Zope 2.12 instance, it simply renders the template. Should that tab be there? cheers, Chris -- Simplistix - Content Management, Batch Processing Python Consulting - http://www.simplistix.co.uk

[Zope-dev] Another PageTemplate bug

2010-08-18 Thread Chris Withers
Hi All, If a PageTemplate's content type is set to text/plain, the edit form bombs out with: 2010-08-18 19:40:01 ERROR Zope.SiteErrorLog 1282156801.210.45371719052 http://localhost:8080/index_html/pt_editAction Traceback (innermost last): Module ZPublisher.Publish, line 127, in publish

[Zope-dev] Zope2 Products.PageTemplates.ZopePageTemplate regression in 2.12+

2010-08-17 Thread Chris Withers
Hi All, The pt_edit method of the ZopePageTemplate appears to have sprouted a string.strip() as its first line. While I'm use this is fine for xml and html templating, it's unacceptable for text/plain templates. This appears to have been introduced here:

[Zope-dev] Products in Zope 2.12+

2010-08-04 Thread Chris Withers
Hi All, I'm in the process of egg-ifying some Zope 2 Products of mine (first up is MailTemplates) and I'm curious as to how add-in products work in an egg-based Zope setup. Do I need to include anything in zope.conf or some zcml somewhere? If not how are products picked up? Where can I find

Re: [Zope-dev] docs.zope.org automation

2010-08-04 Thread Chris Withers
Jens Vagelpohl wrote: I understand that. But it must be possible to do that programatically in my code. I mean, setup.py --long-description obviously executes Python code, which I may be able to execute myself in my current interpreter session by importing and executing stuff from setuptools.

Re: [Zope-dev] Products in Zope 2.12+

2010-08-04 Thread Chris Withers
Hanno Schlichting wrote: For a general Python package to be picked up, you would need to add a regular ZCML slug into the etc/package-includes directory of your instance. What does a regular ZCML slug look like? If your package is a namespace package in the 'Products' namespace, then it

Re: [Zope-dev] Products in Zope 2.12+

2010-08-04 Thread Chris Withers
Hanno Schlichting wrote: On Wed, Aug 4, 2010 at 10:55 AM, Chris Withers ch...@simplistix.co.uk wrote: What does a regular ZCML slug look like? My first Google hit is this http://worldcookery.com/files/ploneconf05-five/step2.html :) yeah yeah... Okay, but what about: include package

Re: [Zope-dev] Products in Zope 2.12+

2010-08-04 Thread Chris Withers
Hanno Schlichting wrote: If you have a package, which isn't in the Products namespace and still want its initialize to be called, you need to add some bits to your configure.zcml: five:registerPackage package=. initialize=.initialize / Right, that's the bit I was after :-) Chris --

Re: [Zope-dev] Products in Zope 2.12+

2010-08-04 Thread Chris Withers
Charlie Clark wrote: As you know, I don't use Plone either. I'm also evil but in a different way! The recipe just sets up a Zope 2 instance, which I believe is a bit tricky to work on all platforms. It's a piece of piss and needs no special recipes:

  1   2   3   4   5   6   7   8   9   10   >