Re: [Zope] How do I write to a text file from Python?

2008-09-02 Thread Jakob Schou Jensen
Hi Dieter By file object I meant the OFS.Image.File kind. I had two problems creating and modifying the file (at least). The first was that the manage_addFile() function that you mention seemed to insist on a os-file like object for the file parameter. I got some kind of seek error when trying to

Re: [Zope] How do I write to a text file from Python?

2008-09-02 Thread Dieter Maurer
Jakob Schou Jensen wrote at 2008-9-2 09:25 +0200: By file object I meant the OFS.Image.File kind. I had two problems creating and modifying the file (at least). The first was that the manage_addFile() function that you mention seemed to insist on a os-file like object for the file parameter. It

[Zope-dev] Zope Tests: 5 OK

2008-09-02 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list. Period Mon Sep 1 11:00:00 2008 UTC to Tue Sep 2 11:00:00 2008 UTC. There were 5 messages: 5 from Zope Tests. Tests passed OK --- Subject: OK : Zope-2.8 Python-2.3.6 : Linux From: Zope Tests Date: Mon Sep 1 20:49:48 EDT 2008 URL:

Re: [Zope-dev] zipped versus unzipped eggs (was: Re: SVN: Zope2.buildout/trunk/ Don't pin setuptools.)

2008-09-02 Thread Jim Fulton
On Aug 30, 2008, at 2:03 AM, Dieter Maurer wrote: Tres Seaver wrote at 2008-8-28 15:22 -0400: I don't think zipped eggs are a win in any real scenario, except possibly the goofy file-count-limited GAE. I would strongly prefer that you revert this one change (you can override it in

Re: [Zope-dev] Make simple ISource usable

2008-09-02 Thread Jim Fulton
On Aug 29, 2008, at 9:01 AM, Roger Ineichen wrote: I'll try to make the ISource API smooth and usable for other components. Right now ISource provides no simple API for work with terms. Since a ISource only provides a __contains__ method and the IterableSource the __iter__ method, there

Re: [Zope-dev] Make simple ISource usable

2008-09-02 Thread Jim Fulton
On Aug 30, 2008, at 10:54 AM, Roger Ineichen wrote: But zope.schema does already know about term. This was a mistake. ... ISource uses ITerm as items. No it doesn't. Jim -- Jim Fulton Zope Corporation ___ Zope-Dev maillist -

Re: [Zope-dev] Make simple ISource usable

2008-09-02 Thread Stephan Richter
On Tuesday 02 September 2008, Jim Fulton wrote: This whould not affect other implementations like the ISourceQueriables etc. It only offers the a way to implement reusable simple ISource components without the need that every UI framework needs to implement their own interfaces for query

Re: [Zope-dev] Make simple ISource usable

2008-09-02 Thread Roger Ineichen
Hi Stephan Betreff: Re: [Zope-dev] Make simple ISource usable On Tuesday 02 September 2008, Jim Fulton wrote: This whould not affect other implementations like the ISourceQueriables etc. It only offers the a way to implement reusable simple ISource components without the need that

Re: [Zope-dev] Make simple ISource usable

2008-09-02 Thread Roger Ineichen
Hi Jim Betreff: Re: [Zope-dev] Make simple ISource usable On Aug 30, 2008, at 10:54 AM, Roger Ineichen wrote: But zope.schema does already know about term. This was a mistake. Let's fix that mistake and do it right. That's all I'm asking for. Just saying no that's bad doesn't help.

Re: [Zope-dev] Make simple ISource usable

2008-09-02 Thread Jim Fulton
On Aug 31, 2008, at 4:51 PM, Marius Gedminas wrote: On Sun, Aug 31, 2008 at 10:23:00PM +0200, Christian Zagrodnick wrote: Wait. zope.schema really shouldn't know about terms. Terms are about the user interface, hence title/token. That has really *nothing* to do with zope.schema. For

Re: [Zope-dev] zope.component: calling an Interface and calling queryAdapter give differing results

2008-09-02 Thread Jim Fulton
On Sep 1, 2008, at 12:33 PM, Philipp von Weitershausen wrote: El 1 Sep 2008, a las 17:23 , Chris Withers escribió: Philipp von Weitershausen wrote: I've personally thought for some time that it would be quite nice if all you had to do was call an interface to look up a utility (which is

Re: [Zope-dev] Make simple ISource usable

2008-09-02 Thread Jim Fulton
On Sep 2, 2008, at 10:38 AM, Stephan Richter wrote: On Tuesday 02 September 2008, Jim Fulton wrote: This whould not affect other implementations like the ISourceQueriables etc. It only offers the a way to implement reusable simple ISource components without the need that every UI framework

Re: [Zope-dev] Make simple ISource usable

2008-09-02 Thread Stephan Richter
On Tuesday 02 September 2008, Jim Fulton wrote: An alternative to Roger's proposal would be to move the ITerms   declaration and any possible generic implementation of such into its own package   zope.terms. I don't have a problem with that. :) That's what I thought. Impasse resolved?

Re: [Zope-dev] Make simple ISource usable

2008-09-02 Thread Roger Ineichen
Hi Jim, Stephan Betreff: Re: [Zope-dev] Make simple ISource usable On Tuesday 02 September 2008, Jim Fulton wrote: An alternative to Roger's proposal would be to move the ITerms declaration and any possible generic implementation of such into its own package zope.terms. I

Re: [Zope-dev] zope.component: calling an Interface and calling queryAdapter give differing results

2008-09-02 Thread Martin Aspeli
Jim Fulton wrote: Some people who use zope.interface reply on being able to singly adapt tuples I've heard this before, but I've always been curious: why? when is this a pattern you'd want to use? Martin -- Author of `Professional Plone Development`, a book for developers who want to

[Zope-dev] Dependencies and future of zope 3

2008-09-02 Thread David Pratt
Hi there. I have been developing with zope3 for about 4 years and would like to see zope continue in a healthy way into the future. The last couple of years particularly have brought significant change in how we deploy zope particularly with wsgi with or without the zodb. In addition, there is