Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(12)  |  Call(12)  |  Derive(0)  |  Import(0)

src/a/r/archgenxml-2.6/src/archgenxml/ArchetypesGenerator.py   archgenxml(Download)
 
        # protected section
        self.generateProtectedSection(outfile, element, 'module-header')
 
        # generate local Schema from local field specifications
            self.generateArcheSchema(element, field_specs, baseschema, outfile)
            # protected section
            self.generateProtectedSection(outfile, element, 'after-local-schema')
 
            # generate complete Schema
 
            # protected section
            self.generateProtectedSection(outfile, element, 'after-schema')
 
            # [optilude] It's possible parents may become empty now...
            wrt(utils.indent("base_archetype = %s" % baseclass, 1) + '\n\n')
 
        self.generateProtectedSection(outfile, element, 'class-header', 1)
 
        # tool __init__ and at_post_edit_script
                                                   tool_instance_name,
                                                   archetype_name)
            self.generateProtectedSection(outfile, element,
                                          'constructor-footer', 2)
            print >> outfile, TEMPL_POST_EDIT_METHOD_TOOL