Module Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ClassDef bases NameLoad body Pass decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad handlers ExceptHandler body Return Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr For NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body If CompareEq AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Assign NameStore Call NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr ListLoad Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad orelse If CompareEq AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body AugAssignAdd AttributeStore NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Call NameLoad If NameLoad body Assign AttributeStore NameLoad attr NameLoad Return Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad decorator_list ClassDef bases body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr For NameStore NameLoad body AugAssignAdd NameStore BinOpAdd NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad kwarg body Assign NameStore BinOpAdd Str Call AttributeLoad NameLoad attr Str Str Assign NameStore BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore BinOpAdd BinOpAdd Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Dict Str Str Str AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad kwarg body Expr Str If BoolOpOr BoolOpAnd CompareEq NameLoad NameLoad CompareEq NameLoad NameLoad BoolOpAnd CompareNotEq NameLoad NameLoad CompareNotEq NameLoad NameLoad body Raise Call NameLoad Str For NameStore Call AttributeLoad NameLoad attr body If BoolOpAnd CompareNotEq NameLoad Str CompareNotEq NameLoad Str CompareNotEq NameLoad Str CompareNotEq NameLoad Str CompareNotEq NameLoad Str CompareNotEq NameLoad Str CompareNotEq NameLoad Str CompareNotEq NameLoad Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Str For NameStore TupleLoad Str Str Str body AugAssignAdd NameStore BinOpMod Str NameLoad AugAssignAdd NameStore BinOpAdd BinOpAdd Str NameLoad Str AugAssignAdd NameStore BinOpMod Str SubscriptLoad NameLoad Index NameLoad For NameStore TupleLoad Str Str Str Str Str Str body If Call AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore BinOpMod Str NameLoad AugAssignAdd NameStore BinOpAdd BinOpAdd Str NameLoad Str AugAssignAdd NameStore BinOpMod Str SubscriptLoad NameLoad Index NameLoad AugAssignAdd NameStore BinOpMod Str NameLoad AugAssignAdd NameStore Str AugAssignAdd NameStore BinOpMod Str NameLoad AugAssignAdd NameStore Str If CompareNotEq NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr orelse Assign NameStore NameLoad Assign NameStore BinOpAdd BinOpAdd Call AttributeLoad NameLoad attr Str NameLoad Call AttributeLoad BinOpMod Str NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareEq SubscriptLoad NameLoad Index Str Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Num decorator_list Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq SubscriptLoad NameLoad Index Str Str body Return SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Str Return Num decorator_list Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq SubscriptLoad NameLoad Index Str Str body Return SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Str Return Str decorator_list Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr ListLoad Str Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr ListLoad Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return AttributeLoad SubscriptLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Index Num attr handlers ExceptHandler type NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str Str body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If CompareNotEq NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad If CompareNotEq SubscriptLoad NameLoad Index Str Str body Assign NameStore NameLoad orelse Assign NameStore AttributeLoad SubscriptLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Index Num attr If BoolOpAnd CompareEq NameLoad Str CompareNotEq NameLoad Str body Assign NameStore NameLoad orelse If BoolOpAnd CompareEq NameLoad Str CompareEq NameLoad Str body Assign NameStore NameLoad If CompareEq NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad SubscriptLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Index Num attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Str Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad For NameStore AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr body Print BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Str Return Num decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr
N/A N/A sys N/A md5 N/A string N/A urllib N/A urllib2 N/A mimetools N/A httplib N/A os.path N/A xml.dom.minidom UploadException N/A Exception N/A N/A N/A XMLNode N/A N/A N/A XMLNode -- generic class for holding an XML node

    xmlStr = """<xml foo="32">
    <name bar="10">Name0</name>
    <name bar="11" baz="12">Name1</name>
    </xml>"""

    f = XMLNode.parseXML(xmlStr)

    print f.elementName              # xml
    print f['foo']                   # 32
    print f.name                     # [<name XMLNode>, <name XMLNode>]
    print f.name[0].elementName      # name
    print f.name[0]["bar"]           # 10
    print f.name[0].elementText      # Name0
    print f.name[1].elementName      # name
    print f.name[1]["bar"]           # 11
    print f.name[1]["baz"]           # 12

     __init__ N/A N/A self N/A N/A N/A Construct an empty XML node. N/A N/A self elementName N/A N/A self elementText N/A N/A self attrib N/A N/A N/A self xml N/A __setitem__ N/A N/A self key item N/A N/A N/A Store a node's attribute in the attrib hash. N/A N/A N/A self attrib N/A key item N/A __getitem__ N/A N/A self key N/A N/A N/A Retrieve a node's attribute from the attrib hash. N/A N/A N/A N/A N/A self attrib N/A key N/A N/A N/A N/A null N/A parseXML N/A N/A cls xmlStr storeXML N/A False N/A N/A Convert an XML string into a nice instance tree of XMLNodes.

        xmlStr -- the XML to parse
        storeXML -- if True, stores the XML string in the root XMLNode.xml

         __parseXMLElement N/A N/A element thisNode N/A N/A N/A Recursive call to process this XMLNode. N/A N/A thisNode elementName N/A element nodeName N/A i N/A range N/A N/A element attributes length N/A N/A an N/A N/A N/A element attributes item i N/A N/A thisNode N/A N/A an name N/A an nodeValue N/A a N/A element childNodes N/A N/A N/A N/A a nodeType N/A N/A N/A xml dom Node ELEMENT_NODE N/A N/A child N/A XMLNode N/A N/A N/A list N/A getattr thisNode N/A a nodeName N/A N/A N/A AttributeError N/A N/A N/A setattr thisNode N/A a nodeName N/A N/A list N/A getattr thisNode N/A a nodeName N/A N/A N/A list append child N/A N/A __parseXMLElement a child N/A N/A N/A N/A a nodeType N/A N/A N/A xml dom Node TEXT_NODE N/A N/A N/A thisNode elementText N/A a nodeValue N/A thisNode N/A N/A dom N/A N/A N/A N/A xml dom minidom parseString xmlStr N/A rootNode N/A XMLNode N/A storeXML N/A N/A N/A rootNode xml xmlStr N/A N/A __parseXMLElement N/A dom firstChild rootNode N/A N/A parseXML N/A classmethod parseXML N/A FlickrAPI N/A N/A N/A Encapsulated flickr functionality.

    Example usage:

      flickr = FlickrAPI(flickrAPIKey, flickrSecret)
      rsp = flickr.auth_checkToken(api_key=flickrAPIKey, auth_token=token)

     N/A flickrHost api.flickr.com N/A flickrRESTForm /services/rest/ N/A flickrAuthForm /services/auth/ N/A flickrUploadForm /services/upload/ __init__ N/A N/A self apiKey secret N/A N/A N/A Construct a new FlickrAPI instance for a given API key and secret. N/A N/A self apiKey apiKey N/A N/A self secret secret N/A N/A self __handlerCache N/A N/A __sign N/A N/A self data N/A N/A N/A Calculate the flickr signature for a set of params.

        data -- a hash of all the params and values to be hashed, e.g.
                {"api_key":"AAAA", "auth_token":"TTTT"}

         N/A dataName N/A self secret N/A keys N/A N/A data keys N/A N/A N/A keys sort N/A a keys N/A N/A dataName N/A a N/A data N/A a N/A hash N/A N/A md5 new N/A N/A N/A hash update dataName N/A N/A N/A hash hexdigest N/A __getattr__ N/A N/A self method N/A arg N/A N/A Handle all the flickr API calls.
        
        This is Michele Campeotto's cleverness, wherein he writes a
        general handler for methods not defined, and assumes they are
        flickr methods.  He then converts them to a form to be passed as
        the method= parameter, and goes from there.

        http://micampe.it/things/flickrclient

        My variant is the same basic thing, except it tracks if it has
        already created a handler for a specific call or not.

        example usage:

                flickr.auth_getFrob(api_key="AAAAAA")
                rsp = flickr.favorites_getList(api_key=flickrAPIKey, \
                        auth_token=token)

         N/A N/A N/A N/A N/A self __handlerCache has_key method N/A handler N/A N/A _self _method N/A self method arg N/A N/A _method N/A flickr. N/A N/A _method replace _ . N/A url N/A N/A http:// N/A FlickrAPI flickrHost N/A FlickrAPI flickrRESTForm N/A N/A arg N/A method _method N/A postData N/A N/A N/A N/A urllib urlencode arg &api_sig= N/A N/A _self __sign arg N/A f N/A N/A urllib urlopen url postData N/A data N/A N/A f read N/A N/A N/A f close N/A N/A N/A XMLNode parseXML data True N/A N/A N/A N/A self __handlerCache N/A method handler N/A N/A N/A self __handlerCache N/A method N/A __getAuthURL N/A N/A self perms frob N/A N/A N/A Return the authorization URL to get a token.

        This is the URL the app will launch a browser toward if it
        needs a new token.
                
        perms -- "read", "write", or "delete"
        frob -- picked up from an earlier call to FlickrAPI.auth_getFrob()

         N/A data N/A api_key frob perms N/A self apiKey frob perms N/A N/A data N/A api_sig N/A N/A self __sign data N/A N/A http://%s%s?%s N/A N/A FlickrAPI flickrHost N/A FlickrAPI flickrAuthForm N/A N/A urllib urlencode data N/A upload N/A N/A self filename jpegData N/A None None arg N/A N/A Upload a file to flickr.

        Be extra careful you spell the parameters correctly, or you will
        get a rather cryptic "Invalid Signature" error on the upload!

        Supported parameters:

        One of filename or jpegData must be specified by name when 
        calling this method:

        filename -- name of a file to upload
        jpegData -- array of jpeg data to upload

        api_key
        auth_token
        title
        description
        tags -- space-delimited list of tags, "tag1 tag2 tag3"
        is_public -- "1" or "0"
        is_friend -- "1" or "0"
        is_family -- "1" or "0"

         N/A N/A N/A N/A filename None N/A jpegData None N/A N/A filename None N/A jpegData None N/A N/A N/A UploadException filename OR jpegData must be specified N/A a N/A N/A arg keys N/A N/A N/A N/A a api_key N/A a auth_token N/A a title N/A a description N/A a tags N/A a is_public N/A a is_friend N/A a is_family N/A N/A N/A N/A N/A sys stderr write N/A FlickrAPI: warning: unknown parameter "%s" sent to FlickrAPI.upload
 a N/A N/A arg N/A api_sig N/A N/A self __sign arg N/A url N/A N/A http:// N/A FlickrAPI flickrHost N/A FlickrAPI flickrUploadForm N/A boundary N/A N/A mimetools choose_boundary N/A body N/A a N/A api_key auth_token api_sig N/A N/A body N/A --%s
 boundary N/A body N/A N/A Content-Disposition: form-data; name=" a "

 N/A body N/A %s
 N/A arg N/A a N/A a N/A title description tags is_public is_friend is_family N/A N/A N/A N/A arg has_key a N/A N/A body N/A --%s
 boundary N/A body N/A N/A Content-Disposition: form-data; name=" a "

 N/A body N/A %s
 N/A arg N/A a N/A body N/A --%s
 boundary N/A body Content-Disposition: form-data; name="photo"; N/A body N/A  filename="%s"
 filename N/A body Content-Type: image/jpeg

 N/A N/A filename None N/A N/A fp N/A file filename rb N/A data N/A N/A fp read N/A N/A N/A fp close N/A N/A data jpegData N/A postData N/A N/A N/A N/A body encode utf_8 data N/A N/A N/A --%s-- boundary encode utf_8 N/A request N/A N/A urllib2 Request url N/A N/A N/A request add_data postData N/A N/A N/A request add_header Content-Type N/A multipart/form-data; boundary=%s boundary N/A response N/A N/A urllib2 urlopen request N/A rspXML N/A N/A response read N/A N/A N/A XMLNode parseXML rspXML N/A testFailure N/A N/A cls rsp exit N/A True N/A N/A Exit app if the rsp XMLNode indicates failure. N/A N/A N/A rsp N/A stat fail N/A N/A N/A N/A N/A sys stderr write N/A %s
 N/A N/A cls getPrintableError rsp N/A exit N/A N/A N/A N/A sys exit 1 N/A N/A testFailure N/A classmethod testFailure getPrintableError N/A N/A cls rsp N/A N/A N/A Return a printed error message string. N/A N/A %s: error %s: %s N/A N/A rsp elementName N/A N/A cls getRspErrorCode rsp N/A N/A cls getRspErrorMsg rsp N/A N/A getPrintableError N/A classmethod getPrintableError getRspErrorCode N/A N/A cls rsp N/A N/A N/A Return the error code of a response, or 0 if no error. N/A N/A N/A rsp N/A stat fail N/A N/A N/A N/A N/A rsp err N/A 0 N/A code N/A 0 N/A N/A getRspErrorCode N/A classmethod getRspErrorCode getRspErrorMsg N/A N/A cls rsp N/A N/A N/A Return the error message of a response, or "Success" if no error. N/A N/A N/A rsp N/A stat fail N/A N/A N/A N/A N/A rsp err N/A 0 N/A msg N/A Success N/A N/A getRspErrorMsg N/A classmethod getRspErrorMsg __getCachedTokenPath N/A N/A self N/A N/A N/A Return the directory holding the app data. N/A N/A N/A N/A os path expanduser N/A N/A N/A N/A os path sep join N/A ~ .flickr N/A self apiKey N/A __getCachedTokenFilename N/A N/A self N/A N/A N/A Return the full pathname of the cached token file. N/A N/A N/A N/A N/A os path sep join N/A N/A N/A self __getCachedTokenPath auth.xml N/A __getCachedToken N/A N/A self N/A N/A N/A Read and return a cached token, or None if not found.

        The token is read from the cached token file, which is basically the
        entire RSP response containing the auth element.
         N/A N/A N/A f N/A file N/A N/A self __getCachedTokenFilename r N/A data N/A N/A f read N/A N/A N/A f close N/A rsp N/A N/A XMLNode parseXML data N/A N/A N/A N/A N/A N/A rsp auth N/A 0 token N/A 0 elementText N/A N/A N/A IOError N/A N/A None N/A __setCachedToken N/A N/A self xml N/A N/A N/A Cache a token for later use.

        The cached tag is stored by simply saving the entire RSP response
        containing the auth element.

         N/A path N/A N/A self __getCachedTokenPath N/A N/A N/A N/A N/A os path exists path N/A N/A N/A N/A os makedirs path N/A f N/A file N/A N/A self __getCachedTokenFilename w N/A N/A N/A f write xml N/A N/A N/A f close N/A getToken N/A N/A self perms browser N/A read lynx N/A N/A Get a token either from the cache, or make a new one from the
        frob.

        This first attempts to find a token in the user's token cache on
        disk.
        
        If that fails (or if the token is no longer valid based on
        flickr.auth.checkToken) a new frob is acquired.  The frob is
        validated by having the user log into flickr (with lynx), and
        subsequently a valid token is retrieved.

        The newly minted token is then cached locally for the next run.

        perms--"read", "write", or "delete"
        browser--whatever browser should be used in the system() call

         N/A token N/A N/A self __getCachedToken N/A N/A token None N/A N/A rsp N/A N/A self auth_checkToken api_key N/A self apiKey auth_token token N/A N/A N/A rsp N/A stat ok N/A N/A token None N/A N/A tokenPerms N/A N/A N/A N/A N/A rsp auth N/A 0 perms N/A 0 elementText N/A N/A N/A tokenPerms read N/A perms read N/A N/A token None N/A N/A N/A N/A tokenPerms write N/A perms delete N/A N/A token None N/A N/A token None N/A N/A rsp N/A N/A self auth_getFrob api_key N/A self apiKey N/A N/A N/A self testFailure rsp N/A frob N/A N/A N/A rsp frob N/A 0 elementText N/A N/A N/A os system N/A %s '%s' N/A browser N/A N/A self __getAuthURL perms frob N/A rsp N/A N/A self auth_getToken api_key N/A self apiKey frob frob N/A N/A N/A self testFailure rsp N/A token N/A N/A N/A N/A N/A rsp auth N/A 0 token N/A 0 elementText N/A N/A N/A self __setCachedToken N/A rsp xml N/A token N/A N/A main N/A N/A argv N/A N/A N/A flickrAPIKey fa33550d413b36b3fddc473a931a3b3b N/A flickrSecret 7fd481bff0916055 N/A fapi N/A FlickrAPI flickrAPIKey flickrSecret N/A token N/A N/A fapi getToken browser chrome N/A rsp N/A N/A fapi favorites_getList api_key flickrAPIKey auth_token token N/A N/A N/A fapi testFailure rsp N/A a N/A N/A N/A rsp photos N/A 0 photo N/A N/A N/A %10s: %s N/A N/A a N/A id N/A N/A N/A a N/A title encode ascii replace N/A 0 N/A N/A N/A __name__ __main__ N/A N/A N/A N/A sys exit N/A main N/A sys argv