コード例 #1
0
ファイル: __init__.py プロジェクト: asksandipd/gae-suggestify
    def __init__ (self, min_perms='read') :

        # This is really dumb since config gets stored
        # globally and is instantly reset everytime
        # someone calls any of the 'write' handlers which
        # is why the define 'read' above even though it's
        # in the bloody config (until it's not). This
        # needs to be cleaned up and fixed...
        
        if min_perms :
            config['flickr_minperms'] = min_perms
            
        FlickrAppRequest.__init__(self, config)

        logging.basicConfig(level=logging.INFO)

        self.settings = None
コード例 #2
0
    def check_logged_in (self, min_perms) :

        if not FlickrAppRequest.check_logged_in(self, min_perms) :
            return False

        settings = ffbp.Settings.get_settings_for_user(self.user.nsid)
        self.user.settings = settings

        return True
コード例 #3
0
ファイル: __init__.py プロジェクト: asksandipd/gae-suggestify
    def check_logged_in (self, min_perms) :

        if not FlickrAppRequest.check_logged_in(self, min_perms) :
            return False

        settings = Settings.get_settings_for_user(self.user.nsid)
        self.settings = settings
        
        return True
コード例 #4
0
 def __init__ (self) :
     FlickrAppRequest.__init__(self, config)
コード例 #5
0
    def check_logged_in (self, min_perms) :

        if not FlickrAppRequest.check_logged_in(self, min_perms) :
            return False

        return True