def parse(self, mappings, use_default_path=False):
        if (use_default_path and
            len(mappings)==1 and
            re.search(r"=",mappings[0])==None):
            path = self.path_from_uri(mappings[0])
            self.logger.warning("Using URI mapping: %s -> %s" % (mappings[0],path))
            self.mappings.append(Map(mappings[0],path))
        elif (len(mappings)==2 and 
            re.search(r"=",mappings[0])==None and 
            re.search(r"=",mappings[1])==None):
            self.mappings.append(Map(mappings[0],mappings[1]))
        else:
            for mapping in mappings:
                l=mapping.split('=')
                if (len(l)!=2):
                    raise MapperError("Bad mapping argument (%s), got %s"%(mapping,str(l)))
                (src_uri,dst_path)=l
                # Check for dupes
                for map in self.mappings:
                    if (src_uri == map.src_uri):
                        raise MapperError("Attempt to set duplicate mapping for source URI %s (with destination path %s)" % (src_uri,dst_path))
                    if (dst_path == map.dst_path):
                        raise MapperError("Attempt to set duplicate mapping for destination path %s (with source URI %s)" % (dst_path,src_uri))
                self.mappings.append(Map(src_uri, dst_path))
Create a new alias from a CSV file entry
dataset/ETHPy150Open resync/resync/resync/mapper.py/Mapper.parse--crossover with--dataset/ETHPy150Open tonioo/modoboa/modoboa/admin/models/alias.py/Alias.from_csv