Author: bugman Date: Sun Jun 22 15:32:37 2008 New Revision: 6395 URL: http://svn.gna.org/viewcvs/relax?rev=6395&view=rev Log: Updated the fill_object_contents() function to handle the __mod_attr__ list and skip all _* names. Modified: 1.3/generic_fns/xml_data_pipe.py Modified: 1.3/generic_fns/xml_data_pipe.py URL: http://svn.gna.org/viewcvs/relax/1.3/generic_fns/xml_data_pipe.py?rev=6395&r1=6394&r2=6395&view=diff ============================================================================== --- 1.3/generic_fns/xml_data_pipe.py (original) +++ 1.3/generic_fns/xml_data_pipe.py Sun Jun 22 15:32:37 2008 @@ -115,7 +115,11 @@ continue # Skip special objects. - if search("^__", name): + if search("^_", name): + continue + + # Only pack objects in the __mod_attr__ list, if that list exists. + if hasattr(object, '__mod_attr__') and name not in object.__mod_attr__: continue # Create a new element for this object, and add it to the main element.