[Zope-dev] coding style: using zapi recommended?

2008-04-14 Thread yuppie
Hi! Products.Five.browser.adding is basically a copy of zope.app.container.browser.adding. Over time they became more out of sync than necessary. I'd like to fix that, but have one question: In the Five version from zope.app import zapi factory = zapi.getUtility(IFactory, type_name)

AW: [Zope-dev] coding style: using zapi recommended?

2008-04-14 Thread Roger Ineichen
Hi yuppie Betreff: [Zope-dev] coding style: using zapi recommended? [...] In the Five version from zope.app import zapi factory = zapi.getUtility(IFactory, type_name) was replaced by import zope.component factory = zope.component.getUtility(IFactory, type_name) Use

Re: AW: [Zope-dev] coding style: using zapi recommended?

2008-04-14 Thread Jim Fulton
On Apr 14, 2008, at 7:29 AM, Roger Ineichen wrote: Feel free to replace zapi everywhere in all packages if you change something. +1 Jim -- Jim Fulton Zope Corporation ___ Zope-Dev maillist - Zope-Dev@zope.org

Re: [Zope-dev] Re: AW: Heads up: Dependencies!

2008-04-14 Thread Stephan Richter
On Sunday 13 April 2008, Jim Fulton wrote: FWIW, I think using test extras is a necessary evil when testing   dependencies are significant.  I wouldn't use it just to avoid a   dependency on zope.testing, but I would and have used test extras to   avoid more extensive dependencies. +1

[Zope-dev] buildout not setting exit status

2008-04-14 Thread Adam GROSZER
Hello, Making a mistake in setup.py like this: ... 'foo.bar [test]' 'foo.lib', ... (note the missing ,) Makes buildout unhappy: Develop: '...' error in foo.other setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings

[Zope-dev] A permanent log for buildouts

2008-04-14 Thread David Pratt
Has anyone already setup a more permanent log for buildouts. I am wanting a more permanent record of what has happened when buildout is run. I believe this likely ought to be part of zc.buildout so that you identify a buildout.log location. Many thanks. Regards, David

[Zope-dev] Re: Five and browser-oriented components

2008-04-14 Thread Philipp von Weitershausen
Malthe Borch wrote: On Z2, certain imports need to come from Products.Five, to play nicely with ZPublisher and friends. Not really. You can inherit from zope.publisher.browser.BrowserView and Five's browser:page / directive will magically slap Acquisition.Explicit into a newly-created

[Zope-dev] Re: Five and browser-oriented components

2008-04-14 Thread Philipp von Weitershausen
Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin Aspeli wrote: Martijn Faassen wrote: Technically, I think that this is going to be hard. You'd need to patch in the magic acquisition base class. Acquisition is the main reason that some of the code needed to be

Re: [Zope-dev] Re: Five and browser-oriented components

2008-04-14 Thread Chris McDonough
Philipp von Weitershausen wrote: *IF* you'd like to be pragmatic, I'd suggest we clean up those failing Plone tests, merge the branch and be on our way. +1 - C ___ Zope-Dev maillist - Zope-Dev@zope.org

Re: [Zope-dev] A permanent log for buildouts

2008-04-14 Thread Jim Fulton
On Apr 14, 2008, at 12:39 PM, David Pratt wrote: Has anyone already setup a more permanent log for buildouts. I am wanting a more permanent record of what has happened when buildout is run. I believe this likely ought to be part of zc.buildout so that you identify a buildout.log location.

Re: [Zope-dev] Re: Five and browser-oriented components

2008-04-14 Thread Jens Vagelpohl
On Apr 14, 2008, at 19:11 , Philipp von Weitershausen wrote: *IF* you'd like to be pragmatic, I'd suggest we clean up those failing Plone tests, merge the branch and be on our way. +1 jens ___ Zope-Dev maillist - Zope-Dev@zope.org

[Zope-dev] Re: Five and browser-oriented components

2008-04-14 Thread Martin Aspeli
Philipp von Weitershausen wrote: *IF* you'd like to be pragmatic, I'd suggest we clean up those failing Plone tests, merge the branch and be on our way. Yes, we *might* be plastering over a potential problem in the patch, but the other tests didn't seem to be affected and intensive alpha

Re: [Zope-dev] A permanent log for buildouts

2008-04-14 Thread David Pratt
Hi Jim. Yes, I definitely want a logging configuration also. I'm at least hoping to look into the logging setup in the next couple of days in between some other things. Many thanks. Regards, David Jim Fulton wrote: On Apr 14, 2008, at 12:39 PM, David Pratt wrote: Has anyone already setup a

[Zope-dev] Re: Five and browser-oriented components

2008-04-14 Thread Alexander Limi
On Mon, 14 Apr 2008 10:11:11 -0700, Philipp von Weitershausen [EMAIL PROTECTED] wrote: *IF* you'd like to be pragmatic, I'd suggest we clean up those failing Plone tests, merge the branch and be on our way. I'm also happy to make it visible on the Plone agenda, as long as it's made clear