Exemple #1
0
 def initialize(self, request, response):
     self.creator = None
     current_user = users.get_current_user()
     if current_user:
         self.creator = Creator.get_by_key_name(current_user.user_id()) or Creator.get_or_insert(current_user.user_id(), user = current_user)
     return super(ExtendedHandler, self).initialize(request, response)
Exemple #2
0
 def make_creator(self):
     user = users.get_current_user()
     return Creator.get_or_insert(user.user_id(), user = user)