Author: bugman Date: Sun Jun 22 18:36:22 2008 New Revision: 6424 URL: http://svn.gna.org/viewcvs/relax?rev=6424&view=rev Log: Shifted create_str_elem() to PipeContainer.xml_create_str_elem(). Modified: 1.3/data/pipe_container.py 1.3/data/relax_xml.py Modified: 1.3/data/pipe_container.py URL: http://svn.gna.org/viewcvs/relax/1.3/data/pipe_container.py?rev=6424&r1=6423&r2=6424&view=diff ============================================================================== --- 1.3/data/pipe_container.py (original) +++ 1.3/data/pipe_container.py Sun Jun 22 18:36:22 2008 @@ -180,4 +180,22 @@ # Add the structural data, if it exists. if hasattr(self, 'structure'): - self.structure.xml_create_str_element(doc, element) + self.xml_create_str_element(doc, element) + + + def xml_create_str_elem(doc, element): + """Create an XML element for the structural information. + + @param doc: The XML document object. + @type doc: xml.dom.minidom.Document instance + @param element: The element to add the structural info to. + @type element: XML element object + """ + + # Create the structural element and add it to the higher level element. + str_element = doc.createElement('structure') + element.appendChild(str_element) + + # Set the structural attributes. + str_element.setAttribute('desc', 'Structural information') + str_element.setAttribute('id', ds[ds.current_pipe].structure.id) Modified: 1.3/data/relax_xml.py URL: http://svn.gna.org/viewcvs/relax/1.3/data/relax_xml.py?rev=6424&r1=6423&r2=6424&view=diff ============================================================================== --- 1.3/data/relax_xml.py (original) +++ 1.3/data/relax_xml.py Sun Jun 22 18:36:22 2008 @@ -25,24 +25,6 @@ # Python module imports. from re import search - - -def create_str_elem(doc, elem): - """Create an XML element for the structural information. - - @param doc: The XML document object. - @type doc: xml.dom.minidom.Document instance - @param elem: The element to add the structural info to. - @type elem: XML element object - """ - - # Create the structural element and add it to the higher level element. - str_elem = doc.createElement('structure') - elem.appendChild(str_elem) - - # Set the structural attributes. - str_elem.setAttribute('desc', 'Structural information') - str_elem.setAttribute('id', ds[ds.current_pipe].structure.id) def fill_object_contents(doc, elem, object=None, blacklist=None):