Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Commit

Permalink
The application creation process now triggers the ApplicationInitiali…
Browse files Browse the repository at this point in the history
…zedEvent.

This is a quite major change, so I changed the version to 0.7.0. We probably need tests for the event triggering.
  • Loading branch information
trollfot committed May 27, 2010
1 parent d350c61 commit 83b1878
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
10 changes: 8 additions & 2 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
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)
==================
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def read(*rnames):
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')) +
Expand Down
1 change: 1 addition & 0 deletions src/grokui/admin/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def render(self, application, name):
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. '
Expand Down

0 comments on commit 83b1878

Please sign in to comment.