mailr3748 - /1.3/prompt/state.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on November 21, 2007 - 00:49:
Author: bugman
Date: Wed Nov 21 00:27:28 2007
New Revision: 3748

URL: http://svn.gna.org/viewcvs/relax?rev=3748&view=rev
Log:
Fixed the state.load() and state.save() user functions to properly call the 
generic_fns functions.


Modified:
    1.3/prompt/state.py

Modified: 1.3/prompt/state.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/prompt/state.py?rev=3748&r1=3747&r2=3748&view=diff
==============================================================================
--- 1.3/prompt/state.py (original)
+++ 1.3/prompt/state.py Wed Nov 21 00:27:28 2007
@@ -1,6 +1,6 @@
 
###############################################################################
 #                                                                            
 #
-# Copyright (C) 2003-2005 Edward d'Auvergne                                  
 #
+# Copyright (C) 2003-2005, 2007 Edward d'Auvergne                            
 #
 #                                                                            
 #
 # This file is part of the program relax.                                    
 #
 #                                                                            
 #
@@ -20,10 +20,13 @@
 #                                                                            
 #
 
###############################################################################
 
+# Python module imports.
 import sys
 
+# relax module imports.
 import help
 from relax_errors import RelaxBinError, RelaxIntError, RelaxNoneStrError, 
RelaxStrError
+from generic_fns.state import load_state, save_state
 
 
 class State:
@@ -92,7 +95,7 @@
             raise RelaxNoneStrError, ('directory', dir)
 
         # Execute the functional code.
-        self.__relax__.generic.state.load(file=file, dir=dir)
+        load_state(file=file, dir_name=dir)
 
 
     def save(self, file=None, dir=None, force=0, compress_type=1):
@@ -172,4 +175,4 @@
             raise RelaxIntError, ('compression type', compress_type)
 
         # Execute the functional code.
-        self.__relax__.generic.state.save(file=file, dir=dir, force=force, 
compress_type=compress_type)
+        save_state(file=file, dir=dir, force=force, 
compress_type=compress_type)




Related Messages


Powered by MHonArc, Updated Wed Nov 21 01:00:10 2007