From 148255a3007c6743e7e02b8fdd6e6598a2c4cee3 Mon Sep 17 00:00:00 2001 From: necoro <> Date: Tue, 7 Nov 2006 13:02:40 +0000 Subject: re-enabled oneshot; fixes --- geneticone/gui/wrapper.py | 52 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) (limited to 'geneticone/gui/wrapper.py') 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.""" -- cgit v1.2.3-70-g09d2