def _getphotosets_forphoto(self,pid):
resp=self.flickr.photos_getAllContexts(photo_id=pid)<EOL>if resp.attrib['<STR_LIT>']!='<STR_LIT>':<EOL><INDENT>logger.error("<STR_LIT>",resp.attrib['<STR_LIT>']);<EOL>return None<EOL><DEDENT>lphotosets=[]<EOL>for element in resp.findall('<STR_LIT>'):<EOL><INDENT>lphotosets.append(element.attrib['<STR_LIT:title>'])<EOL><DEDENT>logger.debug('<STR_LIT>',pid,lphotosets)<EOL>return lphotosets<EOL>
Asks flickr which photosets photo with
        given pid belongs to, returns list of
        photoset names