def _createIntfCode(self,
                     inIntf,
                     inUserCode
                     ):
     
     scope = Scope()
     self._initIntfScope(scope, inIntf)
     scope.set_user_code(inUserCode)
             
     parser = Parser(scope)
     
     return parser.parseFile(self._templatePath("intf.tmpl"))
 def _createClassCode(self,
                      inClass,
                      inUserCode
                      ):
     
     scope = Scope()
     self._initClassScope(scope, inClass)
     scope.set_user_code(inUserCode)
             
     parser = Parser(scope)
     
     return parser.parseFile(self._templatePath("class.tmpl"))