Ali Afshar avatar Ali Afshar committed 233ef08

Tiny bit more documentation

Comments (0)

Files changed (3)

 .pida-metadata
 Fom.egg-info/
 MANIFEST
+ve/
 
-doc.build:
+!opt ve={{ve_name}}
+!opt ve_name=ve
+
+ve.new ve="":
+    virtualenv --no-site-packages $ve_name
+
+ve.install deps=ve.new:
+    pip install sphinx
+    python setup.py develop
+
+doc.build deps=ve.install:
     sphinx-build docs build/sphinx
 
 doc.upload deps=doc.build:
 
 As we can see, the namespace already exists, and cannot be created again.
 
+Creating child namespace
+~~~~~~~~~~~~~~~~~~~~~~~~
+
+If you have an existing namespace, you can create child namespaces of it by
+using the create_namespace method of a namespace, for example::
+
+    >>> ns = Namespace('test')
+    >>> ns.create_namespace(u'apple', u'The apple namespace')
+    <fom.mapping.Namespace object at 0x7fe7781e2a50>
+
+Which is exactly equivalent to having done::
+
+    >>> ns = Namespace(u'test/apple')
+    >>> ns.create(u'The apple namespace')
+
+Listing child namespaces
+~~~~~~~~~~~~~~~~~~~~~~~~
+
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.