Browse files

fix incorrect docs

  • Loading branch information...
1 parent 52f35e2 commit 29472c287b7237c1bc0bbcc7d77d64f344702b28 @mcdonc mcdonc committed Mar 29, 2013
Showing with 5 additions and 4 deletions.
  1. +5 −4 docs/cataloging.rst
@@ -129,13 +129,14 @@ name.
Once you've done this, you can then add the catalog to the database in any bit
of code that has access to the database. For example, in an event handler when
-the system starts up:
+the root object is created for the first time.
.. code-block:: python
- from import ApplicationCreated, subscriber
+ from substanced.root import Root
+ from substanced.event import subscribe_created
- @subscriber(ApplicationCreated)
+ @subscribe_created(Root)
def created(event):
root = event.object
service = root['catalogs']
@@ -336,4 +337,4 @@ indexing is mixed in. And last, the "undo" facility introduces its own
Thus, the approach in Substance D is the result of multiple feats of
-juggling and refactoring.
+juggling and refactoring.

0 comments on commit 29472c2

Please sign in to comment.