[Zope3-Users] Re: Seeking a ZCML Example for a CSSViewlet
Thierry Florac wrote: Le samedi 07 octobre 2006 à 17:00 +1300, Darryl Cousins a écrit : configure zcml:: Maybe I'm wrong, but it seems that the "weight" parameter is not used by the default implementation of the CSS viewlet manager... Correct ? Correct, but look at z3c.viewlet. Jürgen ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] make check [OSX v3.3.0]
I get the following error and it is the only one: Error in test checkVerificationInvalidationPersists (ZEO.tests.testConnection.MappingStorageConnectionTests) Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/unittest.py", line 260, in run testMethod() File "/usr/local/src/Zope-3.3.0/build/lib.macosx-10.4-fat-2.4/ZEO/tests/ConnectionTests.py", line 534, in checkVerificationInvalidationPersists self._storage = self.openClientStorage('test') File "/usr/local/src/Zope-3.3.0/build/lib.macosx-10.4-fat-2.4/ZEO/tests/ConnectionTests.py", line 186, in openClientStorage realm=realm) File "/usr/local/src/Zope-3.3.0/build/lib.macosx-10.4-fat-2.4/ZEO/ClientStorage.py", line 321, in __init__ self._wait(wait_timeout) File "/usr/local/src/Zope-3.3.0/build/lib.macosx-10.4-fat-2.4/ZEO/ClientStorage.py", line 342, in _wait assert self._connection.is_async() AttributeError: 'NoneType' object has no attribute 'is_async' Is that a big deal? Robert ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Unable to start new Zope3 instance - missing meta.zcml
Howdy, Zope3 trunk, r 70593 on W2K I get a traceback when trying to start Zope3 from a newly created instance. The instance is created in a new directory. Suggestions? C:\Python24\Lib\site-packages\zope3-trunk\bin>python mkzopeinstance -d \tmp\z3 Please choose a username for the initial administrator account. Verify password: C:\Python24\Lib\site-packages\zope3-trunk\bin>cd \tmp\z3\bin C:\tmp\z3\bin>runzope C:\Python24\Lib\site-packages\zope3-trunk\src\zope\configuration\config.py:204: DeprecationWarning: zope.app.mail has moved to zope.sendmail. Import of zope.app .mail will become unsupported in Zope 3.5 return __import__(mname+'.'+oname, *_import_chickens) Traceback (most recent call last): File "C:\tmp\z3\bin\runzope", line 48, in ? run() File "C:\tmp\z3\bin\runzope", line 44, in run main(["-C", CONFIG_FILE] + sys.argv[1:]) File "C:\Python24\Lib\site-packages\zope3\src\zope\app\twisted\main.py", line 73, in main File "C:\Python24\Lib\site-packages\zope3\src\zope\app\twisted\main.py", line 142, in setup File "c:\Python24\Lib\site-packages\zope3\src\zope\app\appsetup\appsetup.py", line 110, in config File "C:\Python24\Lib\site-packages\zope3-trunk\src\zope\configuration\xmlconf ig.py", line 587, in file include(context, name, package) File "C:\Python24\Lib\site-packages\zope3-trunk\src\zope\configuration\xmlconf ig.py", line 523, in include processxmlfile(f, context) File "C:\Python24\Lib\site-packages\zope3-trunk\src\zope\configuration\xmlconf ig.py", line 378, in processxmlfile parser.parse(src) File "C:\Python24\lib\site-packages\xml\sax\expatreader.py", line 109, in pars e xmlreader.IncrementalParser.parse(self, source) File "C:\Python24\lib\site-packages\xml\sax\xmlreader.py", line 123, in parse self.feed(buffer) File "C:\Python24\lib\site-packages\xml\sax\expatreader.py", line 216, in feed self._parser.Parse(data, isFinal) File "C:\Python24\lib\site-packages\xml\sax\expatreader.py", line 364, in end_ element_ns self._cont_handler.endElementNS(pair, None) File "C:\Python24\Lib\site-packages\zope3-trunk\src\zope\configuration\xmlconf ig.py", line 357, in endElementNS self.context.end() File "C:\Python24\Lib\site-packages\zope3-trunk\src\zope\configuration\config. py", line 542, in end self.stack.pop().finish() File "C:\Python24\Lib\site-packages\zope3-trunk\src\zope\configuration\config. py", line 690, in finish actions = self.handler(context, **args) File "C:\Python24\Lib\site-packages\zope3-trunk\src\zope\configuration\xmlconf ig.py", line 523, in include processxmlfile(f, context) File "C:\Python24\Lib\site-packages\zope3-trunk\src\zope\configuration\xmlconf ig.py", line 378, in processxmlfile parser.parse(src) File "C:\Python24\lib\site-packages\xml\sax\expatreader.py", line 109, in pars e xmlreader.IncrementalParser.parse(self, source) File "C:\Python24\lib\site-packages\xml\sax\xmlreader.py", line 123, in parse self.feed(buffer) File "C:\Python24\lib\site-packages\xml\sax\expatreader.py", line 216, in feed self._parser.Parse(data, isFinal) File "C:\Python24\lib\site-packages\xml\sax\expatreader.py", line 364, in end_ element_ns self._cont_handler.endElementNS(pair, None) File "C:\Python24\Lib\site-packages\zope3-trunk\src\zope\configuration\xmlconf ig.py", line 357, in endElementNS self.context.end() File "C:\Python24\Lib\site-packages\zope3-trunk\src\zope\configuration\config. py", line 542, in end self.stack.pop().finish() File "C:\Python24\Lib\site-packages\zope3-trunk\src\zope\configuration\config. py", line 690, in finish actions = self.handler(context, **args) File "C:\Python24\Lib\site-packages\zope3-trunk\src\zope\configuration\xmlconf ig.py", line 516, in include f = openInOrPlain(path) File "C:\Python24\Lib\site-packages\zope3-trunk\src\zope\configuration\xmlconf ig.py", line 427, in openInOrPlain fp = open(filename) zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "C:\tmp\z3\etc\site .zcml", line 3.2-3.50 ZopeXMLConfigurationError: File "C:\tmp\z3\etc\package-includes\mail-meta.zc ml", line 1.0-1.51 IOError: [Errno 2] No such file or directory: 'C:\\Python24\\Lib\\site-packa ges\\zope3-trunk\\src\\zope\\app\\mail\\meta.zcml' ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Seeking a ZCML Example for a CSSViewlet
On Mon, 2006-10-09 at 18:50 +0200, Thierry Florac wrote: > Maybe I'm wrong, but it seems that the "weight" parameter is not used > by the default implementation of the CSS viewlet manager... > Correct ? > > Thierry Florac > Hi, Yes you are right. Sorry for throwing in the confusion. Regards, Darryl ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Seeking a ZCML Example for a CSSViewlet
Le samedi 07 octobre 2006 à 17:00 +1300, Darryl Cousins a écrit : configure zcml:: name="layout.css" for=""> manager="barrysmithgallery.layer.public.ICSS" permission="zope.Public" class="..BRSPublicLayerLayoutCSSViewlet" layer="barrysmithgallery.layer.public.IBRSPublicBrowserLayer" weight="2" /> Maybe I'm wrong, but it seems that the "weight" parameter is not used by the default implementation of the CSS viewlet manager... Correct ? Thierry Florac -- Chef de projet intranet/internet Office National des Forêts - Département Informatique 2, Avenue de Saint-Mandé 75570 PARIS Cedex 12 Mél : [EMAIL PROTECTED] Tél. : +33 01.40.19.59.64 Fax. : +33 01.40.19.59.85 ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] How to find something in the apidoc ?
At 12:14 PM 10/9/2006, Stephan Richter wrote: On Sunday 08 October 2006 09:06, Christophe Combelles wrote: > Hi, > > the /++apidoc++ is the main and greatest source of documentation for the > zope 3 API, but sometimes I spend a lot of time to find something. So I > have 3 questions: > > Take an example: Say I've heard about the function getMultiAdapter, and I > want to know how to use it. So I first go to the apidoc and: > > 1) if I don't know which component this function is part of, how do I > quickly find it? You can't at the moment. There is no generic search feature at this point. Actually you can easily search for packages, modules, and classes using the Code Browser, but not functions and methods. Maybe we should create an efficient index to search these things too? I would be happy for a detailed proposal of the features users would like to see for the code browser. Perhaps Google's new code searching will be some help getting started? http://www.google.com/codesearch?q=getMultiAdapter+lang%3Apython&btnG=Search+Code Certainly there should be ways to narrow this down more effectively, say limiting search to a specific body of code (which I have not done). I've not explored much yet, but already with this Google tool I have found several cases where other people are publishing modified versions of software that I had originated that I had no idea were out there. Not that I needed to know, but it is interesting to find when someone likes what you've done enough to push it toward new limits. +lupa+ ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] How to find something in the apidoc ?
On Sunday 08 October 2006 09:06, Christophe Combelles wrote: > Hi, > > the /++apidoc++ is the main and greatest source of documentation for the > zope 3 API, but sometimes I spend a lot of time to find something. So I > have 3 questions: > > Take an example: Say I've heard about the function getMultiAdapter, and I > want to know how to use it. So I first go to the apidoc and: > > 1) if I don't know which component this function is part of, how do I > quickly find it? You can't at the moment. There is no generic search feature at this point. Actually you can easily search for packages, modules, and classes using the Code Browser, but not functions and methods. Maybe we should create an efficient index to search these things too? I would be happy for a detailed proposal of the features users would like to see for the code browser. > Then I find two code examples calling it, one from > zope.component.getMultiAdapter, and the other from > zope.app.zapi.getMultiAdapter Right, both will work. They are exactly the same function. However, we will eventually deprecate zope.app.zapi altogether. > 2) How can I know which one to use, and whether they're identical or not? > > To be sure, I go to the Code Browser: I click on "zope", then on > "component". Here, nothing that looks like getMultiAdapter. I guess this > function is defined in an interface, so I click on "interfaces" and I find > at least 15 interfaces. After 5 more minutes, I finally find the function > in IComponentArchitecture. The problem here is that the API is hidden in some deferred import magic that apidoc cannot resolve further. > I do the same for zope.app.zapi but this time it's easier since there is > only one interface zope.app.zapi.interfaces.IZAPI in which I can find the > wanted getMultiAdapter function. > > Another more difficult example: zope.schema.getFields(). > When you go to zope->schema->interfaces, there are 57 entries. Where is > getFields()? And is it related to zope.app.apidoc.interface.getFields() ? Again, I would like to see some concrete suggestions on how things can be improved. Note that APIDOC cannot do magic, but it tries very hard to collect and organize every bit of useful information. > So my last question is: > > 3) How can I quickly find zope.something.example.function in the doc ? Ditto to 1. Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Zope 3.3.0 - Adding Utilities to Content Space
Baiju M wrote: On 10/9/06, Philipp von Weitershausen <[EMAIL PROTECTED]> wrote: > Then, can we move up zope.app.component.interfaces.ISite to > zope.component.interfaces.ISite or any other place? Perhaps zope.site. I just tried this in my checkout, it only took 30 minutes. That's nice. Note that zope.site should perhaps also contain more stuff, such as the whole sitemanager-in-a-thread-local stuff, and possibly a local site manager implementation that can be used in Zope 2 and 3 (much of what LocalSiteManager does currently). So, in the end, zope.site would more or less contain what zope.app.component currently contains. The move might not be worth it. All tests passed except src/zope/app/component/tests/test_registration.py which make use src/zope/app/component/tests/gen3.fs How can I regenerate this file ? Dunno. Perhaps you should write another evolvement script? The patch against current trunk is here: http://zissue.berlios.de/z3/zope-site.diff Now I wonder whether I should go for a formal proposal. Any chance to get +1 Dunno, try it :). Though I would suggest bringing up this whole issue on [EMAIL PROTECTED] We oughta discuss the whole package-dependency-and-move-around issue sooner or later anyways. Jim recently suggested that perhaps we make zope.app a namespace package in which case zope.app.component could perhaps be distributed individually. Then zope.location would only depend on zope.app.component, not all of zope.app. This is required for complete eggification of Zope 3. Not really. It would just make things easier to reuse. Zope 3 could easily be eggified as it is, zope.app would probably just have to be a big monolithic egg. For smaller and more reusable eggs, it looks like we have the following two scenarios: a) we continue to move reusable stuff out of zope.app OR b) we dig through zope.app and make the reusable stuff less dependent on the rest of zope.app. Then, those things can become their own eggs, after having made zope.app a namespace package. Philipp ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Zope 3.3.0 - Adding Utilities to Content Space
On 10/9/06, Philipp von Weitershausen <[EMAIL PROTECTED]> wrote: > Then, can we move up zope.app.component.interfaces.ISite to > zope.component.interfaces.ISite or any other place? Perhaps zope.site. I just tried this in my checkout, it only took 30 minutes. All tests passed except src/zope/app/component/tests/test_registration.py which make use src/zope/app/component/tests/gen3.fs How can I regenerate this file ? The patch against current trunk is here: http://zissue.berlios.de/z3/zope-site.diff Now I wonder whether I should go for a formal proposal. Any chance to get +1 Jim recently suggested that perhaps we make zope.app a namespace package in which case zope.app.component could perhaps be distributed individually. Then zope.location would only depend on zope.app.component, not all of zope.app. This is required for complete eggification of Zope 3. Regards, Baiju M ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Zope 3.3.0 - Adding Utilities to Content Space
Baiju M wrote: On 9/28/06, Philipp von Weitershausen <[EMAIL PROTECTED]> wrote: Lennart Regebro wrote: > On 9/28/06, Tom Dossis <[EMAIL PROTECTED]> wrote: >> I've noticed the following changes in the zope 3.3 ZMI >> >> Zope 3.3 - Can add utilities anywhere, e.g. to Folders (content space). >> Zope 3.2 - Can only add utilities to a Site Mgmt Folder > > You can see it like this: The difference between a folder and a site > has lessened. > Folders are no more or less content space than sites. Any thing you > can browse too is content. ;-) No, Lennart, this is wrong. A site is still very much a site (ISite determines "site-ness", nothing else). They're still regular folders that contain content. The only difference between sites and folders is that sites are a palce where you can make local component registrations. This is still the same in Zope 3.3, only the constraint *where* these components live has changed. So, the concept of 'site' is part of component architecture and not specific to application server? It is specific to the application server. The Component Architecture only knows IComponentRegistry + IComponentLookup = IComponents. Then, can we move up zope.app.component.interfaces.ISite to zope.component.interfaces.ISite or any other place? Perhaps zope.site. Jim recently suggested that perhaps we make zope.app a namespace package in which case zope.app.component could perhaps be distributed individually. Then zope.location would only depend on zope.app.component, not all of zope.app. If we can do like this, the zope.location's dependency on zope.app can be removed. Yes. ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users