Re: [Zope-dev] zope.component: calling an Interface and calling queryAdapter give differing results
Brandon Craig Rhodes wrote: I'm encouraged by the fact that this time it looks like people with time are interested enough to actually begin producing code? At the time that I made the 2007 proposal I was still very new to the code base and never got the courage up (or time available) to start making changes... The changes we're talking about are only really syntactic sugar so not really that scary. I'm left wondering where to put the tests, since while I know zope.component relies on zope.interface, is the reverse true? I guess it must be, since calling an interface already does some adaptation. Can anyone else confirm this and give me a hint as to where the tests and code should go? cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] zope.component: calling an Interface and calling queryAdapter give differing results
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris Withers wrote: Brandon Craig Rhodes wrote: I'm encouraged by the fact that this time it looks like people with time are interested enough to actually begin producing code? At the time that I made the 2007 proposal I was still very new to the code base and never got the courage up (or time available) to start making changes... The changes we're talking about are only really syntactic sugar so not really that scary. I'm left wondering where to put the tests, since while I know zope.component relies on zope.interface, is the reverse true? I guess it must be, since calling an interface already does some adaptation. No, there is no dependency: zope.interface defines a hook point that zope.component uses. In the absence of zope.component, zope.interface uses a default implementation. Can anyone else confirm this and give me a hint as to where the tests and code should go? Tests likely belong in 'zope.interface.tests.test_adapter'. Tres. - -- === Tres Seaver +1 540-429-0999 [EMAIL PROTECTED] Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFI4j4l+gerLs4ltQ4RAiiEAJ0Vp4RP1HeEdwu7YUyaY+Vsa6DAjwCdGeuO eHQbGlp8geoKGPoC4IKniYc= =amZR -END PGP SIGNATURE- ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] zope.component: calling an Interface and calling queryAdapter give differing results
Chris Withers wrote at 2008-9-22 19:41 +0100: Shane Hathaway wrote: +1 from me as well on IFoo.adapt() with the signature Chris suggested. zope.component.getMultiAdapter() is only easy to remember if you're a die-hard Zope coder, while IFoo.adapt() seems more useful to the larger Python community. So if we're all in agreement, what happens next? We find a volunteer to work on this. For some time still, I will be very busy with gardening and have not much time for programming. Thus, I will not be a volunteer (in the near future). But, I have seen that you started work already :-) -- Dieter ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Sphinx extension for zope.interface?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Has anybody packaged up an extension to allow extracting APIs / docstrings cleanly from Zope interfaces in Sphinx? I found Chris McDonough's patch from back in April, but it no longer applies cleanly, and besides, as he notes, it should really be done as a standalone extension. Tres. - -- === Tres Seaver +1 540-429-0999 [EMAIL PROTECTED] Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFI4tYX+gerLs4ltQ4RAhtiAJ9++cN/gwiXcI566tiFC6p/Y9MnXQCfaB8E aRaEnUBa07Pri23kUTIDraA= =IMQn -END PGP SIGNATURE- ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )