def __init__(self, object_id, filepath=None, URL=None, json=None):
        """ Filepath is the location of the file locally;
            URL is it's remote location (if not default)
            Ignore these and defaults will be used.
            If filepath is set, URL is ignored.
            json is a json representation of the data, so if given, 
            no file will be downloaded.
        """
        self.raw_irs_dict = None        # The parsed xml will go here
        self.version_string = None      # Version number here

        self.object_id = validate_object_id(object_id)
        self.result = None
        self.processed = False
        self.keyerrors = None
        self.csv_result = None

        if json:
            self.json = json
            self.input_type = 'json'
        else:
            self.json = None
            self.input_type = 'xml'
            if filepath:
                self.filepath = filepath
            else:
                self.filepath = get_local_path(self.object_id)

                if URL:
                    self.URL = URL
                else:
                    self.URL = get_s3_URL(self.object_id)
def __init__ ( self , object_id , filepath = None , URL = None , json = None ) : self . raw_irs_dict = None self . version_string = None self . object_id = validate_object_id ( object_id ) self . result = None self . processed = False self . keyerrors = None self . csv_result = None if json : self . json = json self . input_type = 'json' else : self . json = None self . input_type = 'xml' if filepath : self . filepath = filepath else : self . filepath = get_local_path ( self . object_id ) if URL : self . URL = URL else : self . URL = get_s3_URL ( self . object_id )
Filepath is the location of the file locally;
            URL is it's remote location (if not default)
            Ignore these and defaults will be used.
            If filepath is set, URL is ignored.
            json is a json representation of the data, so if given, 
            no file will be downloaded.