Re: [Zope3-dev] future of fssync (was: RE: [SpringCleaning07])

2007-01-24 Thread Uwe Oestermeier
Sorry for replying so late. I have just checked in some bug fixes for fssync (r72206). This was indeed not much work. Jim Fulton <[EMAIL PROTECTED]> wrote: >I don't think a whole lot is needed to make fssync a reality: > >1. Cure any bitrot that has set in. It would also ne nice to replace >exi

Re: [Zope3-dev] future of fssync (was: RE: [SpringCleaning07])

2007-01-24 Thread Jegenye 2001 Bt (Miklós Prisznyák)
2007/1/24, Uwe Oestermeier <[EMAIL PROTECTED]>: Perhaps the maintenance can be made easier if we can change the code without deprecation warnings. Nobody seems to have used fssync in the last two years. I think you can take that granted. fssync has been pretty useless so far. -- Best regards,

Re: [Zope3-dev] future of fssync (was: RE: [SpringCleaning07])

2007-01-24 Thread Jim Fulton
On Jan 24, 2007, at 7:18 AM, Uwe Oestermeier wrote: Sorry for replying so late. I have just checked in some bug fixes for fssync (r72206). No apologies needed. Thanks for picking this up! This was indeed not much work. Jim Fulton <[EMAIL PROTECTED]> wrote: I don't think a whole lot is nee

Re: [Zope3-dev] future of fssync (was: RE: [SpringCleaning07])

2007-01-24 Thread Uwe Oestermeier
Jim Fulton <[EMAIL PROTECTED]> on Mittwoch, 24. Januar 2007 at 16:48 Uhr +0100 wrote: > >Maybe, but I like your idea of using utilities below. My original >thinking was >along these lines: fssync should strive to serialize "all" object >data. (Note that it isn't always obvious what data is in

[Zope3-dev] calling interface returns object, calling queryAdapter returns None?

2007-01-24 Thread Chris Withers
Hot on the heels of my multi-adapter problem: http://mail.zope.org/pipermail/zope3-dev/2007-January/021600.html ...which I'm still waiting for guidance on, I now find that queryAdapter and calling an interface behave unexpectedly differently in the case where an object directly implements an i

[Zope3-dev] Re: calling interface returns object, calling queryAdapter returns None?

2007-01-24 Thread Laurence Rowe
Chris Withers wrote: Hot on the heels of my multi-adapter problem: http://mail.zope.org/pipermail/zope3-dev/2007-January/021600.html ...which I'm still waiting for guidance on, I now find that queryAdapter and calling an interface behave unexpectedly differently in the case where an object di

Re: [Zope3-dev] Re: calling interface returns object, calling queryAdapter returns None?

2007-01-24 Thread Chris Withers
Laurence Rowe wrote: From the Interface.__call__ docstring: "If an object already implements the interface, then it will be returned" queryAdapter is looking in the adapter registry. You have not registered any adapters. So this looks like the expected behaviour to me. Documented maybe, ex

Re: [Zope3-dev] Re: calling interface returns object, calling queryAdapter returns None?

2007-01-24 Thread Jim Fulton
On Jan 24, 2007, at 5:37 PM, Chris Withers wrote: Laurence Rowe wrote: From the Interface.__call__ docstring: "If an object already implements the interface, then it will be returned" queryAdapter is looking in the adapter registry. You have not registered any adapters. So this looks like t

Re: [Zope3-dev] Re: calling interface returns object, calling queryAdapter returns None?

2007-01-24 Thread Fred Drake
On 1/24/07, Chris Withers <[EMAIL PROTECTED]> wrote: queryAdapter, for me, is "starting with the supplied object, get me something that implements the supplied interface and return None if no such object can be obtained". o = IFoo(ob, None) if os is not None: ... If there's another funct

Re: [Zope3-dev] Re: calling interface returns object, calling queryAdapter returns None?

2007-01-24 Thread Chris Withers
Jim Fulton wrote: If there's another function which does this, fine, if not, then I maintain the current behaviour is not correct... Chris, documented behavior is not incorrect just because you expect otherwise. Indeed, sorry, that's not what I meant, although I can see it came across like

Re: [Zope3-dev] Re: calling interface returns object, calling queryAdapter returns None?

2007-01-24 Thread Chris Withers
Fred Drake wrote: On 1/24/07, Chris Withers <[EMAIL PROTECTED]> wrote: queryAdapter, for me, is "starting with the supplied object, get me something that implements the supplied interface and return None if no such object can be obtained". o = IFoo(ob, None) if os is not None: Ah, now that

Re: [Zope3-dev] View permissions

2007-01-24 Thread Marius Gedminas
On Mon, Jan 22, 2007 at 05:46:48PM -0500, Jim Fulton wrote: > I might even hack the TextWidget so I could just do: > >factory=".TextWidget" >permission="zope.Public" >/> +1 > I'd be happy to deprecate the view directive. +1 Caveats: won't it seem strange to newcomer

[Zope3-dev] Re: calling interface returns object, calling queryAdapter returns None?

2007-01-24 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris Withers wrote: > Fred Drake wrote: >> On 1/24/07, Chris Withers <[EMAIL PROTECTED]> wrote: >>> queryAdapter, for me, is "starting with the supplied object, get me >>> something that implements the supplied interface and return None if no >>> such