[Zope] MailingLogger 3.8.0 Released!

2014-01-28 Thread Chris Withers
I'm pleased to announce a new release of Mailinglogger. Mailinglogger provides two handlers for the standard python logging framework that enable log entries to be emailed either as the entries are logged or as a summary at the end of the running process. The handlers have the following

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] CookieCrumbler, any new versions or replacement?

2012-02-10 Thread Chris Withers
On 03/02/2012 19:20, Tres Seaver wrote: What is the main advantage of PAS over cookie crumbler over SSL out of interest? It's even more complicated and maintained just as little ;-) I'll grant the complicated, as PAS is a framework which makes pretty much evey part of the authentication

Re: [Zope] CookieCrumbler, any new versions or replacement?

2012-02-03 Thread Chris Withers
On 02/02/2012 22:57, Richard Harley wrote: What is the main advantage of PAS over cookie crumbler over SSL out of interest? It's even more complicated and maintained just as little ;-) Chris -- Simplistix - Content Management, Batch Processing Python Consulting -

[Zope] MailingLogger 3.7.0 Released!

2012-01-18 Thread Chris Withers
I'm pleased to announce a new release of Mailinglogger. Mailinglogger provides two handlers for the standard python logging framework that enable log entries to be emailed either as the entries are logged or as a summary at the end of the running process. The handlers have the following

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

[Zope] MailingLogger 3.6.0 Released!

2011-11-25 Thread Chris Withers
I'm pleased to announce a new release of Mailinglogger. Mailinglogger provides two handlers for the standard python logging framework that enable log entries to be emailed either as the entries are logged or as a summary at the end of the running process. The handlers have the following

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] 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] Database Authentication

2011-11-02 Thread Chris Withers
On 02/11/2011 09:34, John Harrow wrote: What's the best way to authenticate against a database in Zope 2 these days? SUF and XUF are the two I've briefly looked at. I'm coming back to an old project so bit out of the Zope loop! What version of Zope are you using or migrating to? cheers,

Re: [Zope] Database Authentication

2011-11-02 Thread Chris Withers
, 2011 at 9:49 AM, Chris Withers ch...@simplistix.co.uk mailto:ch...@simplistix.co.uk wrote: On 02/11/2011 09:34, John Harrow wrote: What's the best way to authenticate against a database in Zope 2 these days? SUF and XUF are the two I've briefly looked at. I'm coming back

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] Urgent:utilsation of paybox with fora zope application

2011-10-20 Thread Chris Withers
On 20/10/2011 16:36, Diana Lenar wrote: pls respond me quickly its very urgent Not to us it isn't. http://catb.org/~esr/faqs/smart-questions.html#urgent Chris -- Simplistix - Content Management, Batch Processing Python Consulting - http://www.simplistix.co.uk

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

[Zope] MailingLogger 3.5.0 Released!

2011-09-24 Thread Chris Withers
I'm pleased to announce a new release of Mailinglogger. Mailinglogger provides two handlers for the standard python logging framework that enable log entries to be emailed either as the entries are logged or as a summary at the end of the running process. The handlers have the following

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] threadlock module import error

2011-08-28 Thread Chris Withers
On 26/08/2011 14:32, Henk wrote: I have a zope server 2.10.2 running. After upgrading to a 2.13.4 version of Zope and importing a .zexp folder from the old version I get the import error: No module named ThreadLock. In version 2.13 the module ThreadLock was removed it states in the changes

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

Re: [Zope] MailingLogger 3.4.0 Released!

2011-08-22 Thread Chris Withers
Heh, of course, I forgot the setuptools-git extension to make include_package_data=True work, so this release was pretty useless, other than the docs on packages.python.org/testfixtures ;-) Anyway, 3.4.1 has now been released which fixes this! cheers, Chris On 17/08/2011 23:37, Chris Withers

[Zope] MailingLogger 3.4.0 Released!

2011-08-18 Thread Chris Withers
I'm pleased to announce a new release of Mailinglogger. Mailinglogger provides two handlers for the standard python logging framework that enable log entries to be emailed either as the entries are logged or as a summary at the end of the running process. The handlers have the following

[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] Unused options for buildout: 'eggs'.

2011-07-15 Thread Chris Withers
On 09/07/2011 00:21, Fernando Martins wrote: I installed zope 2.13.8 per instructions on http://docs.zope.org/zope2/releases/2.13/INSTALL-buildout.html Which bit? I'd recommend: http://docs.zope.org/zope2/releases/2.13/INSTALL-buildout.html#creating-a-buildout-based-zope-instance ...or

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] 2.13 upgrade problems

2011-06-03 Thread Chris Withers
On 03/06/2011 15:25, Martijn Pieters wrote: On Fri, Jun 3, 2011 at 12:42, Peter Bengtssonm...@peterbe.com wrote: I'm getting the error below when trying to boot up a zope 2.13.7 using a Data.fs I took from a zope 2.8.12 instance. You may want to try to boot up the instance on intermediary

Re: [Zope] SSO

2011-05-17 Thread Chris Withers
Hi Sabine, On 17/05/2011 07:07, Sabine Grabner wrote: I try to set up Zope with Shibboleth SSO. What are you using to do the Shibboleth auth? Therefore I need to delegate authentication to Apache which should then pass the REMOTE_USER environment variable to Zope. Am I understanding right,

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] Forum

2011-01-06 Thread Chris Withers
On 06/01/2011 11:09, Richard Harley wrote: Are there any current forums which integrate into Zope nicely? I have tried Zforum and Squishdot in the past but I don't think either of these two have been updated in quite a while? What version of Zope are you using? I still run plenty of Squishdot

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

Re: [Zope] problem installing Openflow product of zope on LINUX

2010-11-28 Thread Chris Withers
On 28/11/2010 10:24, Riccardo Lemmi wrote: If you need a workflow engine modern and up-to-date I counsel to integrate openwfe (now 'route': http://ruote.rubyforge.org/) ...which is Ruby, right? How do you get that to work with Zope? Chris -- Simplistix - Content Management, Batch Processing

[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

Re: [Zope] Asynchronous triggering of events

2010-10-22 Thread Chris Withers
On 19/10/2010 19:44, Jeff Peterson wrote: Nope, Bluebream (formerly known as Zope3) is the new Zope, though Zope2 is alive and very well. Might consider peeking at Grok as well. Though I don't know if either of those will help you. I wouldn't recommend anything other than repoze.bfg myself!

Re: [Zope] Asynchronous triggering of events

2010-10-18 Thread Chris Withers
On 18/10/2010 20:51, Brian Sullivan wrote: I am back working with Zope 2.9.1 (yes I know it is long in the tooth but I am trying to avoid adding the pain of upgrading, having products fail and all the usually comes with upgrading if I can). I I would just use zopectl run and a script of your

Re: [Zope] Asynchronous triggering of events

2010-10-18 Thread Chris Withers
On 18/10/2010 22:25, Brian Sullivan wrote: zopetcl -- is that a unix program? I am using Windows unfortunately. It might well be on your version of Zope, it works fine in later versions, though... That said, if you take a look at Stepper, you'll see that I documented how to get it all to work

[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] ZSyncer 1.0.3 Released!

2010-10-07 Thread Chris Withers
Hi All, This is purely a bug fix release for problems I experienced when replacing local objects by absolute path. Installable from: http://pypi.python.org/pypi/Products.ZSyncer Subversion source repository: https://secure.simplistix.co.uk/svn/ZSyncer/ Documentation:

Re: [Zope] Need some newbie tal help

2010-10-05 Thread Chris Withers
On 05/10/2010 18:20, Mark Phillips wrote: I have a table and I am putting data into the cells using tal. I want to bold the data under a certain condition. I tried this, but it didn't work: td tal:content=string:${player/name}b tal:condition=python:str(player['name']) == 'Team'name/b/td The

[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

[Zope] Zope 2 Instance 1.1 Released!

2010-09-23 Thread Chris Withers
Hi All, New release out, this one brings compatability with zc.recipe.rhrc... This package provides a buildout recipe for creating a Zope 2 instance based around a deployment. The deployment concept originates from zc.recipe.deployment and allows the deployment to control where resources of a

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] ZSyncer 1.0.2 Released!

2010-09-22 Thread Chris Withers
Hi All, Another new release... Small fixes this time: - Add warning about use relative paths mode - Change default back to not using relative paths - Fix icons for remote objects Installable from: http://pypi.python.org/pypi/Products.ZSyncer Subversion source repository:

[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

  1   2   3   4   5   6   7   8   9   10   >