Summary of MiddleKit/Core.Klass

You can also browse the complete source file or the generated documentation.


class Klass(MiddleDict, ModelObject):

    ## Init ##
    def __init__(self, klassContainer, dict=None)

    ## Reading ##
    def readDict(self, dict)
    def awakeFromRead(self, klasses)

    ## Names ##
    def name(self)
    def supername(self)

    ## Id ##
    def id(self)
    def setId(self, id)

    ## Superklass ##
    def superklass(self)
    def setSuperklass(self, klass)

    ## Ancestors ##
    def lookupAncestorKlass(self, name, default=NoDefault)
    def isKindOfKlassNamed(self, name)

    ## Subklasses ##
    def subklasses(self)
    def addSubklass(self, klass)
    def descendants(self, init=1, memo=None)

    ## Accessing attributes ##
    def addAttr(self, attr)
    def attrs(self)
    def hasAttr(self, name)
    def attr(self, name, default=NoDefault)
    def lookupAttr(self, name, default=NoDefault)
    def allAttrs(self)
    def allDataAttrs(self)
    def allDataRefAttrs(self)

    ## Klasses access ##
    def klasses(self)
    def setKlasses(self, klasses)
    def model(self)

    ## Other access ##
    def isAbstract(self)
    def pyClass(self)
    def backObjRefAttrs(self)
    def setting(self, name, default=NoDefault)

    ## As string ##
    def asShortString(self)
    def __str__(self)

    ## As a dictionary key (for "set" purposes) ##
    def __hash__(self)
    def __cmp__(self, other)

    ## Warnings ##
    def printWarnings(self, out)

    ## Model support ##
    def willBuildDependencies(self)
    def buildDependencies(self)
    def recordDependencyOrder(self, order, visited, indent=0)