1016 |
Class for handling data sources, including local and remote files. This class is under development. |
Class for handling data sources, including local and remote files. This class is under development. |
1017 |
""" |
""" |
1018 |
|
|
1019 |
def __init__(self, uri, fileformat): |
def __init__(self, uri="file.ext", fileformat="unknown"): |
1020 |
self.uri = uri |
self.uri = uri |
1021 |
self.fileformat = fileformat |
self.fileformat = fileformat |
1022 |
|
|
1036 |
ds = cls(uri, fileformat) |
ds = cls(uri, fileformat) |
1037 |
return ds |
return ds |
1038 |
|
|
1039 |
|
def getLocalFileName(self): |
1040 |
|
return self.uri |
1041 |
|
|
1042 |
fromDom = classmethod(fromDom) |
fromDom = classmethod(fromDom) |
1043 |
|
|
1044 |
# vim: expandtab shiftwidth=4: |
# vim: expandtab shiftwidth=4: |