(cls, user)
return c
Retrieves credentials for a given app engine User instance.
        
        :user:
            The User object to get credentials for.
Retrieves credentials for a given app engine User instance.
        
        :user:
            The User object to get credentials for.
Retrieves credentials for a given app engine User instance . : user : The User object to get credentials for .
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
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