def schema_class(self):
    'Generate code for a schema class'
    rootschema = (self.rootschema if (self.rootschema is not None) else self.schema)
    schemarepr = (self.schemarepr if (self.schemarepr is not None) else self.schema)
    rootschemarepr = self.rootschemarepr
    if (rootschemarepr is None):
        if (rootschema is self.schema):
            rootschemarepr = CodeSnippet('_schema')
        else:
            rootschemarepr = rootschema
    return self.schema_class_template.format(classname=self.classname, basename=self.basename, schema=schemarepr, rootschema=rootschemarepr, docstring=self.docstring(indent=4), init_code=self.init_code(indent=4))
Generate code for a schema class
def schema_class(self):
    
    rootschema = (self.rootschema if (self.rootschema is not None) else self.schema)
    schemarepr = (self.schemarepr if (self.schemarepr is not None) else self.schema)
    rootschemarepr = self.rootschemarepr
    if (rootschemarepr is None):
        if (rootschema is self.schema):
            rootschemarepr = CodeSnippet('_schema')
        else:
            rootschemarepr = rootschema
    return self.schema_class_template.format(classname=self.classname, basename=self.basename, schema=schemarepr, rootschema=rootschemarepr, docstring=self.docstring(indent=4), init_code=self.init_code(indent=4))