-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Philipp von Weitershausen wrote: > Christian Theune wrote: >>>> Isn't the global site manager something else then zope.component? >>> No. The global site manager (we prefer to call it global component >>> registry nowadays) is defined in zope.component. It is always htere. >>> >>>> Because zope.component uses the current thread-local site-manager, >>>> depending on what was set during traversal etc., isn't it? >>> Nope. zope.component knows nothing about thread-local site managers. >>> That's zope.app.component (which hooks its knowledge of thread-local >>> site managers into zope.component). >> >> So why does zope.component.getUtility return local utilities then? > > Lol, do I have to write everything twice? > > Last sentence, in the parentheses: > > "zope.app.component hooks its knowledge of thread-local site managers > into zope.component" > > Basically, look at zope.app.component.hooks, especially setHooks. Unless > setHooks is actually executed, zope.component knows NOTHING about local > utilities.
LOL. Man. I have to check my eyes ... I better re-read that whole thread. - -- gocept gmbh & co. kg - forsterstraße 29 - 06112 halle/saale - germany www.gocept.com - [EMAIL PROTECTED] - phone +49 345 122 9889 7 - fax +49 345 122 9889 1 - zope and plone consulting and development -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFE+awZdUt9X/gknwIRAsCQAKDISeSCIdQXw2b+bskq/khy9ZVtPgCgsqv/ z698rDtXM0mWGcZY/F2Mh7o= =0S6v -----END PGP SIGNATURE----- _______________________________________________ Zope3-dev mailing list [email protected] Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
