def _update_config(self,directory,filename):
        """Manages FB config files"""
        basefilename=os.path.splitext(filename)[0]
        ext=os.path.splitext(filename)[1].lower()
        #if filename==LOCATION_FILE:
            #return self._update_config_location(directory)
        #FIXME
        #elif filename==TAG_FILE:
            #return self._update_config_tags(directory)
        if filename==SET_FILE:
            print("%s - Moving photos to album"%(filename))
            return self._upload_media(directory,movealbum_request=True)
        elif filename==MEGAPIXEL_FILE:
            print("%s - Resizing photos"%(filename))
            return self._upload_media(directory,resize_request=True)
        elif ext in self.FB_META_EXTENSIONS:
            print("%s - Changing photo title"%(basefilename))
            return self._upload_media(directory,basefilename,changetitle_request=True)

        return False
def _update_config ( self , directory , filename ) : basefilename = os . path . splitext ( filename ) [ 0 ] ext = os . path . splitext ( filename ) [ 1 ] . lower ( ) if filename == SET_FILE : print ( "%s - Moving photos to album" % ( filename ) ) return self . _upload_media ( directory , movealbum_request = True ) elif filename == MEGAPIXEL_FILE : print ( "%s - Resizing photos" % ( filename ) ) return self . _upload_media ( directory , resize_request = True ) elif ext in self . FB_META_EXTENSIONS : print ( "%s - Changing photo title" % ( basefilename ) ) return self . _upload_media ( directory , basefilename , changetitle_request = True ) return False
Manages FB config files