
from ...Utilities.UIKit import Frame

class CodeGeneratorEditor(Frame):
	def __init__(self, parent, generator):
		self.generator = generator
		Frame.__init__(self, parent)

	def save(self):
		raise NotImplementedError(self.__class__.__name__ + '.save()')

class CodeGeneratorType(object):
	TYPES = {}
	TYPE = None

	@classmethod
	def validate(cls, save):
		raise NotImplementedError(cls.__name__ + '.validate()')

	def __init__(self, save=None):
		pass

	# None for infinite
	def count(self):
		raise NotImplementedError(self.__class__.__name__ + '.count()')

	def value(self, lookup_value):
		raise NotImplementedError(self.__class__.__name__ + '.value()')

	def description(self):
		raise NotImplementedError(self.__class__.__name__ + '.description()')

	def save(self):
		return {'type': self.TYPE}

87b4c14269c9e9f19b396cce0aca69e97a2a34ba
<mask token>


class CodeGeneratorType(object):
    TYPES = {}
    TYPE = None

    @classmethod
    def validate(cls, save):
        raise NotImplementedError(cls.__name__ + '.validate()')

    def __init__(self, save=None):
        pass

    def count(self):
        raise NotImplementedError(self.__class__.__name__ + '.count()')

    def value(self, lookup_value):
        raise NotImplementedError(self.__class__.__name__ + '.value()')

    def description(self):
        raise NotImplementedError(self.__class__.__name__ + '.description()')

    def save(self):
        return {'type': self.TYPE}

<mask token>


class CodeGeneratorEditor(Frame):
    <mask token>
    <mask token>


class CodeGeneratorType(object):
    TYPES = {}
    TYPE = None

    @classmethod
    def validate(cls, save):
        raise NotImplementedError(cls.__name__ + '.validate()')

    def __init__(self, save=None):
        pass

    def count(self):
        raise NotImplementedError(self.__class__.__name__ + '.count()')

    def value(self, lookup_value):
        raise NotImplementedError(self.__class__.__name__ + '.value()')

    def description(self):
        raise NotImplementedError(self.__class__.__name__ + '.description()')

    def save(self):
        return {'type': self.TYPE}

<mask token>


class CodeGeneratorEditor(Frame):

    def __init__(self, parent, generator):
        self.generator = generator
        Frame.__init__(self, parent)
    <mask token>


class CodeGeneratorType(object):
    TYPES = {}
    TYPE = None

    @classmethod
    def validate(cls, save):
        raise NotImplementedError(cls.__name__ + '.validate()')

    def __init__(self, save=None):
        pass

    def count(self):
        raise NotImplementedError(self.__class__.__name__ + '.count()')

    def value(self, lookup_value):
        raise NotImplementedError(self.__class__.__name__ + '.value()')

    def description(self):
        raise NotImplementedError(self.__class__.__name__ + '.description()')

    def save(self):
        return {'type': self.TYPE}

from ...Utilities.UIKit import Frame


class CodeGeneratorEditor(Frame):

    def __init__(self, parent, generator):
        self.generator = generator
        Frame.__init__(self, parent)

    def save(self):
        raise NotImplementedError(self.__class__.__name__ + '.save()')


class CodeGeneratorType(object):
    TYPES = {}
    TYPE = None

    @classmethod
    def validate(cls, save):
        raise NotImplementedError(cls.__name__ + '.validate()')

    def __init__(self, save=None):
        pass

    def count(self):
        raise NotImplementedError(self.__class__.__name__ + '.count()')

    def value(self, lookup_value):
        raise NotImplementedError(self.__class__.__name__ + '.value()')

    def description(self):
        raise NotImplementedError(self.__class__.__name__ + '.description()')

    def save(self):
        return {'type': self.TYPE}


from ...Utilities.UIKit import Frame

class CodeGeneratorEditor(Frame):
	def __init__(self, parent, generator):
		self.generator = generator
		Frame.__init__(self, parent)

	def save(self):
		raise NotImplementedError(self.__class__.__name__ + '.save()')

class CodeGeneratorType(object):
	TYPES = {}
	TYPE = None

	@classmethod
	def validate(cls, save):
		raise NotImplementedError(cls.__name__ + '.validate()')

	def __init__(self, save=None):
		pass

	# None for infinite
	def count(self):
		raise NotImplementedError(self.__class__.__name__ + '.count()')

	def value(self, lookup_value):
		raise NotImplementedError(self.__class__.__name__ + '.value()')

	def description(self):
		raise NotImplementedError(self.__class__.__name__ + '.description()')

	def save(self):
		return {'type': self.TYPE}
