app/soc/models/seed_db.py
changeset 2175 8dd78e7015f9
parent 2167 91e622242f2d
child 2184 a1bda9afa5d0
equal deleted inserted replaced
2174:19ed1c42e836 2175:8dd78e7015f9
   382 
   382 
   383 def seed_user(unused_request, i):
   383 def seed_user(unused_request, i):
   384   """Returns the properties for a new user entity.
   384   """Returns the properties for a new user entity.
   385   """
   385   """
   386   properties = {
   386   properties = {
   387       'key_name': 'user_%(num)d' % i,
   387       'key_name': 'user_%d' % i,
   388       'link_id': 'user_%(num)d' % i,
   388       'link_id': 'user_%d' % i,
   389       'account': users.User(email='user_%(num)d@example.com' % i),
   389       'account': users.User(email='user_%d@example.com' % i),
   390       'name': 'User %(num)d' % i,
   390       'name': 'User %d' % i,
   391       }
   391       }
   392 
   392 
   393   return properties
   393   return properties
   394 
   394 
   395 
   395