app/soc/models/seed_db.py
changeset 1415 d34768bf62d8
parent 1390 34e00afd0eac
child 1429 cfa0c3f2dc19
equal deleted inserted replaced
1414:69c812b91d37 1415:d34768bf62d8
   263 
   263 
   264   home_document = Document(**document_properties)
   264   home_document = Document(**document_properties)
   265   home_document.put()
   265   home_document.put()
   266 
   266 
   267 
   267 
       
   268   document_properties = {
       
   269       'key_name': 'user/test/notes',
       
   270       'link_id': 'notes',
       
   271       'scope_path': 'test',
       
   272       'scope': current_user,
       
   273       'prefix': 'user',
       
   274       'author': current_user,
       
   275       'title': 'My Notes',
       
   276       'short_name': 'Notes',
       
   277       'content': 'These are my notes',
       
   278       'modified_by': current_user,
       
   279       }
       
   280 
       
   281   notes_document = Document(**document_properties)
       
   282   notes_document.put()
       
   283 
   268   site.home = home_document
   284   site.home = home_document
   269   site.put()
   285   site.put()
   270 
   286 
   271   return
   287   return
   272 
   288