Esempio n. 1
0
    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
Esempio n. 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
Esempio n. 3
0
    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
Esempio n. 4
0
 def __init__ (self) :
     FlickrAppRequest.__init__(self, config)
Esempio n. 5
0
    def check_logged_in (self, min_perms) :

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

        return True