mailr22669 - /trunk/specific_analyses/frame_order/api.py


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

Header


Content

Posted by edward on April 09, 2014 - 17:32:
Author: bugman
Date: Wed Apr  9 17:32:53 2014
New Revision: 22669

URL: http://svn.gna.org/viewcvs/relax?rev=22669&view=rev
Log:
The frame order specific analysis API object is now truly a singleton.

This should help eliminate some bugs.


Modified:
    trunk/specific_analyses/frame_order/api.py

Modified: trunk/specific_analyses/frame_order/api.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/specific_analyses/frame_order/api.py?rev=22669&r1=22668&r2=22669&view=diff
==============================================================================
--- trunk/specific_analyses/frame_order/api.py  (original)
+++ trunk/specific_analyses/frame_order/api.py  Wed Apr  9 17:32:53 2014
@@ -47,6 +47,9 @@
 
 class Frame_order(API_base, API_common):
     """Class containing the specific methods of the Frame Order theories."""
+
+    # Class variable for storing the class instance (for the singleton 
design pattern).
+    instance = None
 
     def __init__(self):
         """Initialise the class by placing API_common methods into the 
API."""




Related Messages


Powered by MHonArc, Updated Wed Apr 09 18:40:02 2014