[Checkins] SVN: grok/branches/philikon-grokcore.component/src/grok/_grok.py Cosmetics: put the things that the subscriber listens to on the subscriber,

Philipp von Weitershausen philikon at philikon.de
Thu Aug 23 20:52:26 EDT 2007


Log message for revision 79199:
  Cosmetics: put the things that the subscriber listens to on the subscriber,
  not in the registration.
  

Changed:
  U   grok/branches/philikon-grokcore.component/src/grok/_grok.py

-=-
Modified: grok/branches/philikon-grokcore.component/src/grok/_grok.py
===================================================================
--- grok/branches/philikon-grokcore.component/src/grok/_grok.py	2007-08-24 00:50:17 UTC (rev 79198)
+++ grok/branches/philikon-grokcore.component/src/grok/_grok.py	2007-08-24 00:52:25 UTC (rev 79199)
@@ -31,14 +31,14 @@
 def bootstrap():
     # register a subscriber for when grok.Sites are added to make them
     # into Zope 3 sites
-    component.provideHandler(
-        addSiteHandler, adapts=(grok.Site, grok.IObjectAddedEvent))
+    component.provideHandler(addSiteHandler)
 
     # now grok the grokkers
     martian.grok_module(scan.module_info_from_module(meta), the_module_grokker)
     martian.grok_module(scan.module_info_from_module(grokcore.component.grokkers),
                         the_module_grokker)
 
+ at component.adapter(grok.Site, grok.IObjectAddedEvent)
 def addSiteHandler(site, event):
     sitemanager = LocalSiteManager(site)
     # LocalSiteManager creates the 'default' folder in its __init__.



More information about the Checkins mailing list