summaryrefslogtreecommitdiff
path: root/geneticone/gui/wrapper.py
diff options
context:
space:
mode:
authornecoro <>2006-11-07 13:02:40 +0000
committernecoro <>2006-11-07 13:02:40 +0000
commit148255a3007c6743e7e02b8fdd6e6598a2c4cee3 (patch)
tree05b148cbf5102b5c11357b5439a6c22d5dd57d26 /geneticone/gui/wrapper.py
parente54728989f062431ebcb939f9c9c4753a6f2f521 (diff)
downloadportato-148255a3007c6743e7e02b8fdd6e6598a2c4cee3.tar.gz
portato-148255a3007c6743e7e02b8fdd6e6598a2c4cee3.tar.bz2
portato-148255a3007c6743e7e02b8fdd6e6598a2c4cee3.zip
re-enabled oneshot; fixes
Diffstat (limited to '')
-rw-r--r--geneticone/gui/wrapper.py52
1 files changed, 52 insertions, 0 deletions
diff --git a/geneticone/gui/wrapper.py b/geneticone/gui/wrapper.py
index fd69e82..3616d21 100644
--- a/geneticone/gui/wrapper.py
+++ b/geneticone/gui/wrapper.py
@@ -106,6 +106,10 @@ class Tree:
@rtype: tree-object"""
raise NotImplementedError
+ #
+ # the "design" part
+ #
+
def get_cpv_column (self):
"""Returns the number of the column where the cpv's are stored.
@@ -113,6 +117,54 @@ class Tree:
@rtype: int"""
raise NotImplementedError
+ def is_in_emerge (self, it):
+ """Checks whether an iterator is part of the "Emerge" section.
+
+ @param it: the iterator to check
+ @type it: Iterator
+ @returns: True if the iter is part; False otherwise
+ @rtype: boolean"""
+ raise NotImplementedError
+
+ def is_in_unmerge (self, it):
+ """Checks whether an iterator is part of the "Unmerge" section.
+
+ @param it: the iterator to check
+ @type it: Iterator
+ @returns: True if the iter is part; False otherwise
+ @rtype: boolean"""
+ raise NotImplementedError
+
+ def get_emerge_it (self):
+ """Returns an iterator signaling the top of the emerge section.
+
+ @returns: emerge-iterator
+ @rtype: Iterator"""
+ raise NotImplementedError
+
+ def get_unmerge_it (self):
+ """Returns an iterator signaling the top of the unmerge section.
+
+ @returns: unmerge-iterator
+ @rtype: Iterator"""
+ raise NotImplementedError
+
+ def build_append_value (self, cpv, oneshot = False, update = False, version = None):
+ """Builds the list, which is going to be passed to append.
+
+ @param cpv: the cpv
+ @type cpv: string (cpv)
+ @param oneshot: True if oneshot
+ @type oneshot: boolean
+ @param update: True if this is an update
+ @type update: boolean
+ @param version: the version we update from
+ @type version: string
+
+ @returns: the created list
+ @rtype: list"""
+ raise NotImplementedError
+
class Console:
"""This represents the abstract of a console. It should be used for all operations not in a specific frontend, where a console is needed.
Each frontend _MUST_ define its own subclass and implement ALL of the methods, otherwise a NotImplementedError will be thrown."""