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
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
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
def __init__ (self) : FlickrAppRequest.__init__(self, config)
def check_logged_in (self, min_perms) : if not FlickrAppRequest.check_logged_in(self, min_perms) : return False return True