def _getphoto_originalsize(self,pid):
logger.debug('<STR_LIT>'%(pid))<EOL>width=None<EOL>height=None<EOL>resp=self.flickr.photos_getSizes(photo_id=pid)<EOL>if resp.attrib['<STR_LIT>']!='<STR_LIT>':<EOL><INDENT>logger.error("<STR_LIT>",resp.attrib['<STR_LIT>']);<EOL>return (None,None)<EOL><DEDENT>for size in resp.find('<STR_LIT>').findall('<STR_LIT:size>'):<EOL><INDENT>if size.attrib['<STR_LIT:label>']=="<STR_LIT>":<EOL><INDENT>width=int(size.attrib['<STR_LIT:width>'])<EOL>height=int(size.attrib['<STR_LIT>'])<EOL>logger.debug('<STR_LIT>'%(pid,width,height))<EOL><DEDENT><DEDENT>return (width,height)<EOL>
Asks flickr for photo original size
        returns tuple with width,height