Author: bugman Date: Sun Jun 22 18:37:49 2008 New Revision: 6425 URL: http://svn.gna.org/viewcvs/relax?rev=6425&view=rev Log: Shifted the data.relax_xml.read() fn to Relax_data_store.xml_read(). Modified: 1.3/data/__init__.py 1.3/data/relax_xml.py Modified: 1.3/data/__init__.py URL: http://svn.gna.org/viewcvs/relax/1.3/data/__init__.py?rev=6425&r1=6424&r2=6425&view=diff ============================================================================== --- 1.3/data/__init__.py (original) +++ 1.3/data/__init__.py Sun Jun 22 18:37:49 2008 @@ -160,6 +160,17 @@ self.current_pipe = pipe_name + def xml_read(file, verbosity=1): + """Parse a XML document representation of a data pipe, and load it into the relax data store. + + @param file: The open file object. + @type file: file + @keyword verbosity: A flag specifying the amount of information to print. The higher the value, + the greater the verbosity. + @type verbosity: int + """ + + def xml_write(self, file): """Create a XML document representation of the current data pipe. Modified: 1.3/data/relax_xml.py URL: http://svn.gna.org/viewcvs/relax/1.3/data/relax_xml.py?rev=6425&r1=6424&r2=6425&view=diff ============================================================================== --- 1.3/data/relax_xml.py (original) +++ 1.3/data/relax_xml.py Sun Jun 22 18:37:49 2008 @@ -61,14 +61,3 @@ # Add the text value to the sub element. text_val = doc.createTextNode(`getattr(object, name)`) sub_elem.appendChild(text_val) - - -def read(file, verbosity=1): - """Parse a XML document representation of a data pipe, and load it into the relax data store. - - @param file: The open file object. - @type file: file - @keyword verbosity: A flag specifying the amount of information to print. The higher the value, - the greater the verbosity. - @type verbosity: int - """