mailr16727 - /branches/uf_redesign/gui/uf_objects.py


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

Header


Content

Posted by edward on June 07, 2012 - 15:33:
Author: bugman
Date: Thu Jun  7 15:33:54 2012
New Revision: 16727

URL: http://svn.gna.org/viewcvs/relax?rev=16727&view=rev
Log:
The user function wizard pages now have an on_back() method which unregisters 
the observer.

This is needed as going back previously did not unregister the observer the 
object, hence going
forwards after going back would fail.


Modified:
    branches/uf_redesign/gui/uf_objects.py

Modified: branches/uf_redesign/gui/uf_objects.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/uf_redesign/gui/uf_objects.py?rev=16727&r1=16726&r2=16727&view=diff
==============================================================================
--- branches/uf_redesign/gui/uf_objects.py (original)
+++ branches/uf_redesign/gui/uf_objects.py Thu Jun  7 15:33:54 2012
@@ -960,6 +960,13 @@
             interpreter.queue(uf, *args, **kwds)
 
 
+    def on_back(self):
+        """Remove this page from the observers."""
+
+        # Unregister this page with the 'gui_uf' observer.
+        status.observers.gui_uf.unregister(self.name)
+
+
     def on_display(self):
         """Clear and update the data if needed."""
 




Related Messages


Powered by MHonArc, Updated Thu Jun 07 15:40:02 2012