[Checkins] SVN: grok/trunk/ Splitted out the catalog

Souheil Chelfouh cvs-admin at zope.org
Sun Apr 29 14:46:30 UTC 2012


Log message for revision 125393:
  Splitted out the catalog
  

Changed:
  U   grok/trunk/buildout.cfg
  U   grok/trunk/src/grok/interfaces.py
  U   grok/trunk/src/grok/meta.py

-=-
Modified: grok/trunk/buildout.cfg
===================================================================
--- grok/trunk/buildout.cfg	2012-04-29 14:41:53 UTC (rev 125392)
+++ grok/trunk/buildout.cfg	2012-04-29 14:46:27 UTC (rev 125393)
@@ -22,6 +22,7 @@
 [versions]
 grok =
 grokcore.catalog =
+grokcore.site = 
 
 [interpreter]
 recipe = z3c.recipe.scripts

Modified: grok/trunk/src/grok/interfaces.py
===================================================================
--- grok/trunk/src/grok/interfaces.py	2012-04-29 14:41:53 UTC (rev 125392)
+++ grok/trunk/src/grok/interfaces.py	2012-04-29 14:46:27 UTC (rev 125393)
@@ -192,12 +192,3 @@
 class IContainer(IContext, IContainerBase):
     """A Grok container.
     """
-
-
-class IApplicationInitializedEvent(IObjectEvent):
-    """A Grok Application has been created with success and is now ready
-    to be used.
-
-    This event can be used to trigger the creation of contents or other tasks
-    that require the application to be fully operational : utilities installed
-    and indexes created in the catalog."""

Modified: grok/trunk/src/grok/meta.py
===================================================================
--- grok/trunk/src/grok/meta.py	2012-04-29 14:41:53 UTC (rev 125392)
+++ grok/trunk/src/grok/meta.py	2012-04-29 14:46:27 UTC (rev 125393)
@@ -99,20 +99,3 @@
                 args=(permission, name),
                 )
         return True
-
-
-class ApplicationGrokker(martian.ClassGrokker):
-    """Grokker for Grok application classes."""
-    martian.component(grok.Application)
-    martian.priority(500)
-
-    def grok(self, name, factory, module_info, config, **kw):
-        # XXX fail loudly if the same application name is used twice.
-        provides = grokcore.site.interfaces.IApplication
-        name = '%s.%s' % (module_info.dotted_name, name)
-        config.action(
-            discriminator=('utility', provides, name),
-            callable=component.provideUtility,
-            args=(factory, provides, name),
-            )
-        return True



More information about the checkins mailing list