def _update_config_tags(self,directory,files=None):
if not self._connectToFlickr():<EOL><INDENT>print(("<STR_LIT>"%(directory)))<EOL>return False<EOL><DEDENT>logger.debug("<STR_LIT>"%(directory))<EOL>_tags=self._load_tags(directory)<EOL>db = self._loadDB(directory)<EOL>for fn in db:<EOL><INDENT>if files and fn not in files:<EOL><INDENT>logger.debug('<STR_LIT>',fn)<EOL>continue<EOL><DEDENT>logger.info("<STR_LIT>" %(fn,_tags))<EOL>pid=db[fn]['<STR_LIT>']<EOL>resp=self.flickr.photos_setTags(photo_id=pid,tags=_tags)<EOL>if resp.attrib['<STR_LIT>']!='<STR_LIT>':<EOL><INDENT>logger.error("<STR_LIT>",resp.attrib['<STR_LIT>']);<EOL>return False<EOL><DEDENT>else:<EOL><INDENT>return True<EOL><DEDENT><DEDENT>return False<EOL>
Loads tags information from file and updates on flickr, 
only reads first line. Format is comma separated eg.
travel, 2010, South Africa, Pretoria
If files is None, will update all files in DB, otherwise
will only update files that are in the flickr DB and files list