/[escript]/trunk/escript/py_src/modelframe.py
ViewVC logotype

Diff of /trunk/escript/py_src/modelframe.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 875 by elspeth, Tue Oct 17 12:42:47 2006 UTC revision 885 by gross, Wed Nov 1 09:05:51 2006 UTC
# Line 1016  class DataSource(object): Line 1016  class DataSource(object):
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    
# Line 1036  class DataSource(object): Line 1036  class DataSource(object):
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:

Legend:
Removed from v.875  
changed lines
  Added in v.885

  ViewVC Help
Powered by ViewVC 1.1.26