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-DB] SQLAlchemy

2010-08-30 Thread Chris Withers
M.-A. Lemburg wrote: If you want yet another abstraction layer between your code and the database, that's the way to go, yes :-) SA does provides a general abstraction layer, not the application specific one I was talking about. To be honest, I'd prefer to use a powerful, lean, well tested

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

2010-08-26 Thread Chris Withers
Hi All, I'm relieved(!) to announce the release of ZSyncer 1.0.0. This is the first release I've made and I hope no-one is upset about the work I've done (Paul Winkler, you still around?). The big changes: - now a normal python package - Zope 2.12+ compatible - docs have been Sphinx-ified

[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

[Zope] ZSyncer 1.0.0 Released!

2010-08-26 Thread Chris Withers
Hi All, I'm relieved(!) to announce the release of ZSyncer 1.0.0. This is the first release I've made and I hope no-one is upset about the work I've done (Paul Winkler, you still around?). The big changes: - now a normal python package - Zope 2.12+ compatible - docs have been Sphinx-ified

[Zope] SimpleUserFolder 2.0.0 Released!

2010-08-26 Thread Chris Withers
Hi All, Rolling on with more releases :-) SimpleUserFolder is a scriptable, subclassable, fully documented and tested user folder implementation. This release features: - Repackaged as a python package with Sphinx docs - Targets Zope 2.12+ - Sphinx-ified docs For more information, please

Re: [Zope-DB] SQLAlchemy

2010-08-26 Thread Chris Withers
M.-A. Lemburg wrote: I'd suggest to use a Python class as abstraction layer Sounds like an ORM to me ;-) Seriously, SQLAlchemy lets you do all of the things you're worried about, performance and flexibility wise, as well as map your sql onto objects (or not, if you don't actually want

[Zope-Annce] MailTemplates 2.0.0 Released!

2010-08-23 Thread Chris Withers
Hi All, After quite a long break, I'm proud to announce a new release of MailTemplates. This new release brings shiny new Sphinx docs, compatibility with Zope 2.12 and above and a couple of bug fixes. The docs are here: http://packages.python.org/Products.MailTemplates/ The full package info

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] MailTemplates 2.0.0 Released!

2010-08-21 Thread Chris Withers
Hi All, After quite a long break, I'm proud to announce a new release of MailTemplates. This new release brings shiny new Sphinx docs, compatibility with Zope 2.12 and above and a couple of bug fixes. The docs are here: http://packages.python.org/Products.MailTemplates/ The full package info

[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-Annce] Zope 2 Instance 1.0 Released!

2010-08-16 Thread Chris Withers
Hi All, I'm proud to announce the first release of Zope 2 Instance. 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

[Zope] Zope 2 Instance 1.0 Released!

2010-08-16 Thread Chris Withers
Hi All, I'm proud to announce the first release of Zope 2 Instance. 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

[Zope-Checkins] SVN: Zope/trunk/src/Zope2/Startup/zopectl.py restore ability to set sockname from command line

2010-08-10 Thread Chris Withers
Log message for revision 115616: restore ability to set sockname from command line Changed: U Zope/trunk/src/Zope2/Startup/zopectl.py -=- Modified: Zope/trunk/src/Zope2/Startup/zopectl.py === ---

[Zope] MailingLogger 3.3.3 Released!

2010-08-10 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] 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:

Re: [Zope] (also) ConflictError from Products.Transience.Transience.Increaser

2010-08-04 Thread Chris Withers
Maciej Wisniowski wrote: You may try to incerase session_resolution_seconds (eg. to 300) at your zope.conf to get rid of these conflict errors. Is that a root zope.conf setting or does it live in some special section? cheers, Chris -- Simplistix - Content Management, Batch Processing

[Zope-Checkins] SVN: Zope/trunk/src/Zope2/Startup/zopectl.py allow the -p option to zopectl to work again, handy for buildout-based zope instances

2010-08-02 Thread Chris Withers
Log message for revision 115377: allow the -p option to zopectl to work again, handy for buildout-based zope instances Changed: U Zope/trunk/src/Zope2/Startup/zopectl.py -=- Modified: Zope/trunk/src/Zope2/Startup/zopectl.py

Re: [Zope-dev] zopectl's -p options

2010-07-31 Thread Chris Withers
Chris Withers wrote: Hanno Schlichting wrote: On Mon, Jul 26, 2010 at 7:36 PM, Chris Withers ch...@simplistix.co.uk wrote: ...is currently useless, as far as I can see. I thought the -p option was an artifact of zdaemon, which zopectl just didn't support. I took it as a case of the lower

Re: [Zope-dev] zopectl's -p options

2010-07-27 Thread Chris Withers
Hanno Schlichting wrote: On Mon, Jul 26, 2010 at 7:36 PM, Chris Withers ch...@simplistix.co.uk wrote: ...is currently useless, as far as I can see. I thought the -p option was an artifact of zdaemon, which zopectl just didn't support. I took it as a case of the lower level API's leaking

[Zope] ConflictError from Products.Transience.TransientObject.TransientObject

2010-07-27 Thread Chris Withers
Hi All, I have an old Zope 2.9.8 instance which has recently started throwing the following unresolved ConflictErrors: Traceback (innermost last): Module Zope2.App.startup, line 173, in zpublisher_exception_hook Module ZPublisher.Publish, line 121, in publish Module Zope2.App.startup,

[Zope] (also) ConflictError from Products.Transience.Transience.Increaser

2010-07-27 Thread Chris Withers
Chris Withers wrote: To my knowledge, the request that throws this isn't touching the session or temp_folder, but I guess something is. How can I find out what code is actually touch this and so causing this conflict? In similar circumstances, I also see: Traceback (innermost last

[Zope-dev] zopectl's -p options

2010-07-26 Thread Chris Withers
...is currently useless, as far as I can see. This stops you specifying a different location for runzope, which is handy if you're doing buildout-based stuff that uses a deployment. I think the attached patch fixes this, but I'm wondering: - are these are tests for this area - why does

Re: [Zope] [JOB][OT?] Position for a Python/Zope developer in Pula, Cagliari (CA), Italy

2010-07-13 Thread Chris Withers
Marco Bizzarri wrote: I won't start a religious war on IDE editors :) You already did by putting such a ridiculous requirement in a job ad. Chris -- Simplistix - Content Management, Batch Processing Python Consulting - http://www.simplistix.co.uk

Re: [Zope] [JOB][OT?] Position for a Python/Zope developer in Pula, Cagliari (CA), Italy

2010-07-13 Thread Chris Withers
Peter Bengtsson wrote: Anyway, best of luck Marco! Yes, you're gonna need it ;-) Chris -- Simplistix - Content Management, Batch Processing Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org

Re: [Zope-dev] zope.sendmail and critical transaction errors.

2010-06-24 Thread Chris Withers
Tres Seaver wrote: Patches attached for comment. - -sys.maxint to changing the mail delivery to a non-transactional form. Switching to a before commit hook is the *worst* of the optoins: it defeats the whole point of using zope.sendmail in the first place, which was to avoidi multiple

Re: [Zope-dev] deciding whether to do work in tpc_vote or tpc_finish

2010-06-22 Thread Chris Withers
Laurence Rowe wrote: After-commit hook -- Sometimes, applications want to execute code after a transaction is committed or aborted. Okay, but they're not going to be able to do that with an after commit hook, since they're never called from abort. The name hints at that,

Re: [Zope-dev] ZTK Package Metadatas

2010-06-20 Thread Chris Withers
Justin Ryan wrote: As the Framework :: thing, does anyone object to two additions on top of Zope3: Framework :: Zope Toolkit Framework :: BlueBream Obviously this would need some coordination with catalog-sig, and I redacted my willingness to work with them this week after in the

Re: [Zope] buildout question

2010-06-15 Thread Chris Withers
Jim Pharis wrote: I'm using collective.recipe.patch to patch plone.recipe.zeoserver Wow, this just screams buildout abuse :-( Chris ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding!

Re: [Zope-dev] deciding whether to do work in tpc_vote or tpc_finish

2010-06-13 Thread Chris Withers
Laurence Rowe wrote: On 8 June 2010 12:59, Chris Withers ch...@simplistix.co.uk wrote: Laurence Rowe wrote: it fails you will end up in an inconsistent state whatever. It's just that with the maildir implementation, it pretty much can't fail as it is only a rename and that should always

Re: [Zope-dev] deciding whether to do work in tpc_vote or tpc_finish

2010-06-13 Thread Chris Withers
Jim Fulton wrote: I guess my concern is that the benefits from implementing this should outweigh the cost in higher complexity. I don't think it really increases complexity all that much. I agree the potential benefit is pretty limited. I think, given the transaction packages increasing

[Zope-dev] transaction_manager attribute of transaction.interfaces.IDataManager

2010-06-08 Thread Chris Withers
Hi All, What is this attribute actually used for? I see it present on IDataManager but I notice that zope.sqlalchemy's SessionDataManager doesn't have this attribute, with no apparent ill effect. cheers, Chris ___ Zope-Dev maillist -

Re: [Zope-dev] transaction_manager attribute of transaction.interfaces.IDataManager

2010-06-08 Thread Chris Withers
Laurence Rowe wrote: transaction_manager = zope.interface.Attribute( The transaction manager (TM) used by this data manager. This is a public attribute, intended for read-only use. The value is an instance of ITransactionManager, typically set by the data

Re: [Zope-dev] transaction_manager attribute of transaction.interfaces.IDataManager

2010-06-08 Thread Chris Withers
Laurence Rowe wrote: On 8 June 2010 11:25, Chris Withers ch...@simplistix.co.uk wrote: Laurence Rowe wrote: transaction_manager = zope.interface.Attribute( The transaction manager (TM) used by this data manager. This is a public attribute, intended for read-only use

Re: [Zope-dev] deciding whether to do work in tpc_vote or tpc_finish

2010-06-08 Thread Chris Withers
Laurence Rowe wrote: Committing in tpc_vote is right so long as you ensure your data manager sorts last, and that there are no other data managers in the transaction which are using the same trick. Why does the latter part matter? (It is, of course, the situation I'm in, where

Re: [Zope-dev] deciding whether to do work in tpc_vote or tpc_finish

2010-06-08 Thread Chris Withers
Laurence Rowe wrote: On 8 June 2010 09:51, Chris Withers ch...@simplistix.co.uk wrote: Hi All, I need to write a data manger that interacts with a transactional system that doesn't support two phase commit. Looking for inspiration, I went to look at zope.sqlalchemy and zope.sendmail

Re: [Zope-dev] deciding whether to do work in tpc_vote or tpc_finish

2010-06-08 Thread Chris Withers
Christian Theune wrote: If you have more than one then it can happen that the first one committed, but the second one doesn't and then you can't properly roll back. Okay, but this is quite a common occurrence now. For example, many projects will use zope.sendmail and zope.sqlalchemy

Re: [Zope-dev] deciding whether to do work in tpc_vote or tpc_finish

2010-06-08 Thread Chris Withers
Laurence Rowe wrote: it fails you will end up in an inconsistent state whatever. It's just that with the maildir implementation, it pretty much can't fail as it is only a rename and that should always succeed. Really, it should register as an after commit hook instead. How do I do that?

[Zope-dev] zope.testing/zc.recipe.testrunner causing deprecationwarnings in itself again?!

2010-06-02 Thread Chris Withers
I just tried to buildout and run the tests for mailinglogger so I could apply a patch I'd received. I have a section like this: [test] recipe = zc.recipe.testrunner eggs = mailinglogger Running the resulting bin/test gives: bin/test:17: DeprecationWarning: zope.testing.testrunner is

Re: [Zope-dev] [ZODB-Dev] Problem with handling of data managers that join transactions after savepoints

2010-05-11 Thread Chris Withers
Jim Fulton wrote: I plan to implement A soon if there are no objections. Unless someone somehow convinced me to do D, I'll also add an assertion in the Transaction.join method to raise an error if a data manager joins more than once. Option A sounds sensible. It also means I won't have to

Re: [Zope] cron like service

2010-05-05 Thread Chris Withers
Garry Saddington wrote: Can anyone suggest the easiest way to automatically have a python script fire at set times of the day/month/year. I just use Stepper and fire it from cron ;-) http://www.simplistix.co.uk/software/zope/stepper Chris -- Simplistix - Content Management, Batch

Re: [Zope] Zope for .NET

2010-04-20 Thread Chris Withers
Brian Sullivan wrote: Is there something about IronPython that I might be missing? Well, it can interoperate with stuff in C#. But yeah, you're doomed. Enjoy. Chris -- Simplistix - Content Management, Batch Processing Python Consulting - http://www.simplistix.co.uk

Re: [Zope] Zope for .NET

2010-04-19 Thread Chris Withers
Brian Sullivan wrote: Yes -- would love to use it here too but unfortunately it doesn't fit the scenario. What about it doesn't fit? You could probably try repzoe.bfg on IronPython... Chris -- Simplistix - Content Management, Batch Processing Python Consulting -

Re: [Zope] Zope for .NET

2010-04-19 Thread Chris Withers
Brian Sullivan wrote: It doesn't fit because the customer already has a system using .NET that has to tightly integrate and has said they want a .NET system. And IronPython isn't .NET how exactly?! Chris -- Simplistix - Content Management, Batch Processing Python Consulting -

Re: [Zope-dev] ZConfig + SMTP Auth email logger

2010-04-10 Thread Chris Withers
Christian Zagrodnick wrote: I just added SMTP authentication to the email notification logger in ZConfig. Would somebody make a release please or give me (zagy) the proper PyPI rights? Why don't you just use mailinglogger, which has all this and a lot more,*including* ZConfig support,

Re: [Zope] Opening Old .zexp Files

2010-03-14 Thread Chris Withers
Susan Day wrote: I have inherited some very old *.zexp files that I can't open in a Zope instance. Apparently they were built on 2.10 or even older. The problem appears to be that there were all sorts of products packed into the Products folder that crash everything and I don't know which

Re: [Zope-Checkins] SVN: Zope/branches/2.12/doc/ Merge 'tseaver-clarify_install_docs' branch.

2010-03-11 Thread Chris Withers
Tres Seaver wrote: Log message for revision 109858: Merge 'tseaver-clarify_install_docs' branch. Thanks for waiting until there was consensus on this :-( That'll teach me to put any effort into helping with documentation and packaging... Chris -- Simplistix - Content Management, Batch

Re: [Zope-dev] [Zope-Checkins] SVN: Zope/branches/2.12/doc/ Merge 'tseaver-clarify_install_docs' branch.

2010-03-11 Thread Chris Withers
Tres Seaver wrote: That'll teach me to put any effort into helping with documentation and packaging... I didn't take out the buildout docs, I just separated them out from the ones using virtualenv (mixing them up was hugely confusing for people). Yeah, 'cos we all agreed that virtualenv

Re: [Zope-dev] [Zope-Checkins] SVN: Zope/branches/tseaver-clarify_install_docs/doc/ Split out docs for 'normal' installation from those using 'zc.buildout'.

2010-03-11 Thread Chris Withers
Marius Gedminas wrote: That is a curious observation. I find it much easier to understand what virtualenv does and how it does it: the underlying model is simpler. How do I go from a checkout to a working system in virtualenv? How do I lock down to particular versions with virtualenv? Maybe

Re: [Zope-dev] [Zope-Checkins] SVN: Zope/branches/tseaver-clarify_install_docs/doc/ Split out docs for 'normal' installation from those using 'zc.buildout'.

2010-03-11 Thread Chris Withers
yuppie wrote: Hi Chris! Chris Withers wrote: yuppie wrote: I consider the self-contained scenario still as experimental. You might, I don't. I've deployed this happily in production with a few customer now. Just because you don't happen to like it yourself, please don't belittle

Re: [Zope-dev] [Zope-Checkins] SVN: Zope/branches/tseaver-clarify_install_docs/doc/ Split out docs for 'normal' installation from those using 'zc.buildout'.

2010-03-11 Thread Chris Withers
Tres Seaver wrote: I recommend virtualenv to anybody who just wants to install and run the Zope2 appserver, without needing to drink a lot of kool-aid: How do you get them using the set of eggs specified in the appropriate versions.cfg using this recommendation? Activate is a completely

Re: [Zope-dev] [Zope-Checkins] SVN: Zope/branches/tseaver-clarify_install_docs/doc/ Split out docs for 'normal' installation from those using 'zc.buildout'.

2010-03-11 Thread Chris Withers
Tres Seaver wrote: I recommend virtualenv to anybody who just wants to install and run the Zope2 appserver, without needing to drink a lot of kool-aid: How do you get them using the set of eggs specified in the appropriate versions.cfg using this recommendation? You install from the index

Re: [Zope-dev] [Zope-Checkins] SVN: Zope/branches/tseaver-clarify_install_docs/doc/ Split out docs for 'normal' installation from those using 'zc.buildout'.

2010-03-03 Thread Chris Withers
yuppie wrote: I consider the self-contained scenario still as experimental. You might, I don't. I've deployed this happily in production with a few customer now. Just because you don't happen to like it yourself, please don't belittle it... Chris -- Simplistix - Content Management, Batch

Re: [Zope-dev] [Zope-Checkins] SVN: Zope/branches/tseaver-clarify_install_docs/doc/ Split out docs for 'normal' installation from those using 'zc.buildout'.

2010-03-02 Thread Chris Withers
Tres Seaver wrote: Installing Zope -=== +--- -Unless using buildout to build a zope instance as described -:ref:`below buildout-instances`, you will need to install Zope -separately. If you want to create a buildout-based Zope instance, -please skip directly to

Re: [Zope-dev] [Zope-Checkins] SVN: Zope/branches/tseaver-clarify_install_docs/doc/ Split out docs for 'normal' installation from those using 'zc.buildout'.

2010-03-02 Thread Chris Withers
Tres Seaver wrote: - - The docs are intended primarily for folks who want to install and run Zope, rather than hack on it. Says who? The last comment I had on those docs was from Marius when he had to go back to a Zope 2 project and wanted to make it buildout based. I've also used those docs

Re: [Zope] quickinstaller strange behavior

2010-03-02 Thread Chris Withers
iarly selbir | ski0s wrote: Does someone experienced with that? You'll likely get better help on a the Plone lists... Chris -- Simplistix - Content Management, Batch Processing Python Consulting - http://www.simplistix.co.uk ___ Zope

Re: [Zope-dev] patterns for using sphinx with the Zope Toolkit?

2010-01-12 Thread Chris Withers
Martijn Faassen wrote: I am interested in creating sphinx-driven documentation for Zope Toolkit packages. I'd like to maintain the documentation for a package (say, zope.component) in that package, in a 'doc' directory. I have a couple of packages that make good use of the my current

Re: [Zope-dev] windows newslines in doctests

2010-01-11 Thread Chris Withers
Benji York wrote: Manuel 1.0.3 -- available on PyPI -- opens files in universal newline mode. I hope that fixes your newline problem Seems to have for now, I've removed my use of from zc.buildout.testing.normalize_endings and all tests still pass. I'll let you know if I hit any other issues

Re: [Zope-dev] windows newslines in doctests

2010-01-04 Thread Chris Withers
Benji York wrote: Manuel uses Python's doctest module for the actual work, but the file reading is done by Manuel itself. I could switch to using universal new line mode, but since I haven't seen an example of a filing test I can't be sure if it'll help or not. Easy way to test: - create a

Re: [Zope-dev] zope.testing 3.8.6 emits deprecation warnings from itself?

2010-01-01 Thread Chris Withers
Lennart Regebro wrote: zope.testing runs a lot of doctests. Lot's and lot's. In the Python 3 branch I've moved them over to using stdlibs doctest. There was two bugs that are fixed in Zopes doctest that is not fixed in Pythons doctest. Are there open issues for these in the python bug

Re: [Zope-dev] zope.testing 3.8.6 emits deprecation warnings from itself?

2010-01-01 Thread Chris Withers
Marius Gedminas wrote: It should be simple to monkey-patch this too, by setting DocTestCase.failureException, so we can support Python 2.5 through 3.1 How mechanical can such a transformation be? Is it sufficient to replace zope.testing.doctest.DocFileSuite('foo.txt', **kw) with

Re: [Zope-dev] windows newslines in doctests

2010-01-01 Thread Chris Withers
Benji York wrote: On Tue, Dec 29, 2009 at 2:15 PM, Chris Withers ch...@simplistix.co.uk wrote: Fred Drake wrote: It's interesting to note that Python 2.6's doctest doesn't use universal newlines, but zope.testing.doctest. Interestingly, the doctests I referred to in my original post were

Re: [Zope-dev] Zope 2.12.2 SyntaxError on installation

2009-12-29 Thread Chris Withers
Marius Gedminas wrote: Well. You didn't specify a database file in your zope,conf it seems. Without a declaration, there's no database. Makes sense, in a rather user-unfriendly way. May I suggest the documentation be amended to supply a closer-to-working zope.conf? I'm referring to this

[Zope-dev] zope.testing 3.8.6 emits deprecation warnings from itself?

2009-12-29 Thread Chris Withers
Hi, I hate DeprecationWarnings at the best of times, since no one actually does anything about them until whatever they're bleating about is actually gone anyway, but zope.testing has outdone itself. Whoever introduced that warning, if you're going to do so, please solve any problems with

Re: [Zope-dev] windows newslines in doctests

2009-12-29 Thread Chris Withers
Fred Drake wrote: It's interesting to note that Python 2.6's doctest doesn't use universal newlines, but zope.testing.doctest. Good think we haven't just deprecated zope.testing.doctest and defecated on zope.testing in the process... ...oh wait. Interestingly, the doctests I referred to

Re: [Zope-dev] zope.testing 3.8.6 emits deprecation warnings from itself?

2009-12-29 Thread Chris Withers
Marius Gedminas wrote: * Meanwhile there are discussions about issues switching from old zope.testing.doctest to stdlib's doctest with Windows and newlines. * I'd rather revert back the state of things as of zope.testing 3.8.4 with the legacy zope.testing.doctestunit imports

Re: [Zope-dev] Zope 2.12.2 SyntaxError on installation

2009-12-29 Thread Chris Withers
Marius Gedminas wrote: Or we could put a sample zope.conf somewhere on the web (heck, in svn is fine, using those nice *checkout* urls we've already used for downloading buildout's bootstrap.py or the Zope 2.12.2 versions.cfg). Sphinx also supports the ability to insert a link to a file. Maybe

Re: [Zope-dev] Zope 2.12.2 SyntaxError on installation

2009-12-29 Thread Chris Withers
Hanno Schlichting wrote: Well, either you use mkzopeinstance, which indeed generates an instance for you with all things included, or if you use buildout you use a recipe like plone.recipe.zope2instance, in which case all it takes is: [instance] recipe = plone.recipe.zope2instance eggs =

Re: [Zope-dev] Zope 2.12.2 SyntaxError on installation

2009-12-29 Thread Chris Withers
Hanno Schlichting wrote: To be honest the reason that recipe isn't mentioned there, is because Chris Withers worked on that section and didn't feel like it belongs there. And nobody else cared a great deal. Exactly. That section is for people who are moving existing Zope instances to 2.12

Re: [Zope-dev] Zope 2.12.2 SyntaxError on installation

2009-12-29 Thread Chris Withers
Marius Gedminas wrote: What do y'all Zope-2-maintainer-people think about this patch? Index: doc/INSTALL.rst === --- doc/INSTALL.rst (revision 107265) +++ doc/INSTALL.rst (working copy) @@ -136,11 +136,16 @@

Re: [Zope-dev] zope.testing 3.8.6 emits deprecation warnings from itself?

2009-12-29 Thread Chris Withers
Marius Gedminas wrote: +1 for all the changes, but AFAICS if people move from zope.testing.doctest to stdlib's doctest they lose at least two things: * custom doctest exception formatting * support for the INTERPRET_FOOTNOTES feature and since zope.testing.doctest still reimplements

Re: [Zope-dev] windows newslines in doctests

2009-12-28 Thread Chris Withers
Benji York wrote: On Mon, Dec 14, 2009 at 9:02 AM, Chris Withers ch...@simplistix.co.uk wrote: I've run into problems with Windows newlines in doctests a couple of times now and so thought I'd ask what people do in general to work around this... I don't think line ending problems happen

[Zope-dev] windows newslines in doctests

2009-12-14 Thread Chris Withers
Hi All, I've run into problems with Windows newlines in doctests a couple of times now and so thought I'd ask what people do in general to work around this... Do you: - make sure .txt that ends up being doctested only has \n line endings in it? - use zope.testing.renormalizing to replace

Re: [Zope] Zope 2.12.2 IContentType

2009-12-09 Thread Chris Withers
Roberto Allende wrote: Hello I'm trying to make a very simple package in Zope 2.12.2 What's 2.12.2? As far as I know, the latest release is 2.12.1... Chris -- Simplistix - Content Management, Batch Processing Python Consulting - http://www.simplistix.co.uk

Re: [Zope-dev] implementing zope.component 4.0

2009-11-27 Thread Chris Withers
Martijn Faassen wrote: Simple adaptation: IFoo(adapted) Is there an implied default of None here or would a ComponentLookupError be raised? Named adaptation: IFoo(adapted, name=foo) Adaptation with a default IFoo(adapted, default=bar) Multi-adaptation: IFoo(one,

Re: [Zope-dev] implementing zope.component 4.0

2009-11-27 Thread Chris Withers
Martijn Faassen wrote: +0.5 --- I can live with it. Backwards incompatibility with IFoo(one, default) will be a slight inconvenience. There were proposals I liked more (IFoo.adapt(), IFoo.utility()) and proposals I liked less (IFoo((one, two, we_like_parentheses,

Re: [Zope-dev] implementing zope.component 4.0

2009-11-27 Thread Chris Withers
Marius Gedminas wrote: What's the motivation? The utilities must be singletons logic hardcoded in the ZCA. provideAdapter(factory, adapts=(one, two, three)) provideAdapter(factory, adapts=(one, two)) provideAdapter(factory, adapts=(one, )) The natural progression, to me, is

Re: [Zope-dev] Releasing zope.browserresource

2009-11-25 Thread Chris Withers
Thomas Lotze wrote: Stephan Richter wrote: On Tuesday 24 November 2009, Thomas Lotze wrote: Could somebody please give me PyPI rights for zope.browserresource? I'd like to release a new version of it which includes the recent fixes to its dependencies. Thank you very much. I am in the

Re: [Zope-dev] Releasing zope.browserresource

2009-11-25 Thread Chris Withers
Michael Howitz wrote: Am 25.11.2009 um 15:49 schrieb Chris Withers: [...] Yes, PyPI is broken if you're an admin of many packages, feel free to me too on this issue: http://sourceforge.net/tracker/?func=detailaid=2793544group_id=66150atid=513503 It's fixed since yesterday. Well, by some

Re: [Zope-dev] Handling instance specific configuration files with buildout

2009-11-18 Thread Chris Withers
Charlie Clark wrote: There is, however, one thing I haven't quite worked out how to do is add stuff to the instance's etc folder. We have some configuration files which are instance specific which we have so far kept in in etc/config. Do I need to create a recipe that does this for this

Re: [Zope-dev] Handling instance specific configuration files with buildout

2009-11-18 Thread Chris Withers
Charlie Clark wrote: You have a few options: 1 - just leave them as they are I just need to link/copy from something parts/instance/etc/config to say src/config or downloads/config I don't understand what you're trying to say :-S 3 - go the deployment route using zc.recipe.deployment

<    1   2   3   4   5   6   7   8   9   10   >