Added a document in the test user's user space
authorSverre Rabbelier <srabbelier@gmail.com>
Sat, 21 Feb 2009 00:30:53 +0000
changeset 1415 d34768bf62d8
parent 1414 69c812b91d37
child 1416 6c94a1531ead
Added a document in the test user's user space This makes it easier to test editing documents. Patch by: Sverre Rabbelier
app/soc/models/seed_db.py
--- a/app/soc/models/seed_db.py	Fri Feb 20 23:59:23 2009 +0000
+++ b/app/soc/models/seed_db.py	Sat Feb 21 00:30:53 2009 +0000
@@ -265,6 +265,22 @@
   home_document.put()
 
 
+  document_properties = {
+      'key_name': 'user/test/notes',
+      'link_id': 'notes',
+      'scope_path': 'test',
+      'scope': current_user,
+      'prefix': 'user',
+      'author': current_user,
+      'title': 'My Notes',
+      'short_name': 'Notes',
+      'content': 'These are my notes',
+      'modified_by': current_user,
+      }
+
+  notes_document = Document(**document_properties)
+  notes_document.put()
+
   site.home = home_document
   site.put()