parameters: (cls, user)
return_statement: return c
docstring: Retrieves credentials for a given app engine User instance.
          
          :user:
              The User object to get credentials for.
docstring_summary: Retrieves credentials for a given app engine User instance.
          
          :user:
              The User object to get credentials for.
docstring_tokens: Retrieves credentials for a given app engine User instance . : user : The User object to get credentials for .
function: def get_for_user(cls, user):
          """ Retrieves credentials for a given app engine User instance.
          
          :user:
              The User object to get credentials for.
          """
          c = None
          if user:
              q = db.Query(UserCredentials)
              q.filter('user =', user)
              c = q.get()
              if c is None:
                  c = UserCredentials(
                      user = user,
                      authorized_user = False,
                  )
                  c.put()
          return c
function_tokens: def get_for_user ( cls , user ) : c = None if user : q = db . Query ( UserCredentials ) q . filter ( 'user =' , user ) c = q . get ( ) if c is None : c = UserCredentials ( user = user , authorized_user = False , ) c . put ( ) return c