diff options
author | Thomas Jourdan <b.vehikel@googlemail.com> | 2009-12-06 12:40:41 (GMT) |
---|---|---|
committer | Thomas Jourdan <b.vehikel@googlemail.com> | 2009-12-06 12:40:41 (GMT) |
commit | 7ce7155dead3893e572006588fc342fb3af7ec60 (patch) | |
tree | 2bb234d6d159aa797767bf1ceccea53117dc773a /model_constraintpool.py | |
parent | bcde11455168a07de8a3b17f2a4d77ce8931e75d (diff) |
Layers are now arranged as a tree data structure.
Diffstat (limited to 'model_constraintpool.py')
-rw-r--r-- | model_constraintpool.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/model_constraintpool.py b/model_constraintpool.py index 0cbd712..16cb749 100644 --- a/model_constraintpool.py +++ b/model_constraintpool.py @@ -15,8 +15,6 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -import model_population - #_CONSTRAINT = 'constraint' INT_1_OF_N = 11 @@ -120,19 +118,19 @@ class ConstraintPool(object): def _add_key(self, key): """ """ - file_path = '/dev/shm/minmal_known_keys.mkey' - if ConstraintPool._known_keys is None: - ConstraintPool._known_keys = model_population.read_file(file_path) +# file_path = '/dev/shm/minmal_known_keys.mkey' +# if ConstraintPool._known_keys is None: +# ConstraintPool._known_keys = model_population.read_file(file_path) if ConstraintPool._known_keys is None: ConstraintPool._known_keys = [] if key not in ConstraintPool._known_keys: ConstraintPool._known_keys.append(key) - model_population.write_file(file_path, ConstraintPool._known_keys) +# model_population.write_file(file_path, ConstraintPool._known_keys) def _my_defaults(self): #TODO read from persistence, provide an constraint editor - self.set('/Protozoon', 'layertypeconstraint', ['image', 'letterpress', 'markovchain', 'filledspline', 'voronoidiagram', ]) +# self.set('/Protozoon', 'layertypeconstraint', ['image', 'letterpress', 'markovchain', 'filledspline', 'voronoidiagram', ]) # self.set('/Protozoon', 'layertypeconstraint', ['referencepattern', 'image', 'letterpress', 'markovchain', ]) # self.set('/Protozoon', 'layertypeconstraint', ['filledspline', 'letterpress', 'markovchain', ]) # self.set('/Protozoon', 'layertypeconstraint', ['filledspline', ]) |