[Checkins] SVN: grokui.admin/trunk/ The application creation process now triggers the ApplicationInitializedEvent.

Souheil CHELFOUH souheil at chelfouh.com
Thu May 27 13:25:23 EDT 2010


Log message for revision 112783:
  The application creation process now triggers the ApplicationInitializedEvent.
  This is a quite major change, so I changed the version to 0.7.0. We probably need tests for the event triggering.
  

Changed:
  U   grokui.admin/trunk/CHANGES.txt
  U   grokui.admin/trunk/setup.py
  U   grokui.admin/trunk/src/grokui/admin/views.py

-=-
Modified: grokui.admin/trunk/CHANGES.txt
===================================================================
--- grokui.admin/trunk/CHANGES.txt	2010-05-27 15:04:08 UTC (rev 112782)
+++ grokui.admin/trunk/CHANGES.txt	2010-05-27 17:25:23 UTC (rev 112783)
@@ -1,11 +1,17 @@
 grokui.admin changes
 ********************
 
-0.6.3 (unreleased)
+0.7.0 (unreleased)
 ==================
 
-* None yet...
+* The ApplicationInitializedEvent newly introduced in Grok is now
+  triggered while an application is created and persisted. This is an
+  important event, allowing to hook handlers that need local utilities
+  and catalog indexes that are not yet present at the
+  ObjectCreatedEvent stage.
 
+* ...
+
 0.6.2 (2010-05-19)
 ==================
 

Modified: grokui.admin/trunk/setup.py
===================================================================
--- grokui.admin/trunk/setup.py	2010-05-27 15:04:08 UTC (rev 112782)
+++ grokui.admin/trunk/setup.py	2010-05-27 17:25:23 UTC (rev 112783)
@@ -14,7 +14,7 @@
     return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
 
 setup(name='grokui.admin',
-      version='0.6.3dev',
+      version='0.7.0dev',
       description="The Grok administration and development UI",
       long_description=(
           read(os.path.join('src', 'grokui', 'admin', 'README.txt')) +

Modified: grokui.admin/trunk/src/grokui/admin/views.py
===================================================================
--- grokui.admin/trunk/src/grokui/admin/views.py	2010-05-27 15:04:08 UTC (rev 112782)
+++ grokui.admin/trunk/src/grokui/admin/views.py	2010-05-27 17:25:23 UTC (rev 112783)
@@ -74,6 +74,7 @@
             new_app = app()
             grok.notify(grok.ObjectCreatedEvent(new_app))
             self.context.root[name] = new_app
+            grok.notify(grok.ApplicationInitializedEvent(new_app))
             self.flash(u'Added %s `%s`.' % (application, name))
         except (DuplicationError, KeyError):
             self.flash(u'Name `%s` already in use. '



More information about the checkins mailing list