Esempio n. 1
0
 def end(self, name):
     HandlerBase.end(self, name)
     self.codestr = "self.apply("
     if self.modules:
         self.codestr = self.codestr + "modules=(%s,), " % self.modules
     self.codestr = self.codestr + ")"
     code = __builtin__.compile(self.codestr, self.codestr, 'exec')
     self.element.code = code
Esempio n. 2
0
 def end(self, name):
     HandlerBase.end(self, name)
     self._exec(adjust_indent(self.codestr)+"\n")
     classobj = new.classobj(self.name.encode('ascii'), self.base_classes, self.locals )
     classobj.sub_modules = sub_modules
     module = self.module
     classobj.__module__ = module.__name__
     module.__dict__[classobj.__name__] = classobj
     module.__dict__['_RF_APP'] = classobj
     module.__dict__['_RF_get_app'] = lambda uri, app_class=classobj: app_class(uri)
Esempio n. 3
0
 def end(self, name):
     self.adder(self.parent.subject, self.predicate, self.object,
                literal_object=self.literal, anonymous_object=self.anonymous_object)
     HandlerBase.end(self, name)
Esempio n. 4
0
 def end(self, name):
     self.parent.add_li(self.value, self.literal)
     HandlerBase.end(self, name)
Esempio n. 5
0
 def end(self, name):
     HandlerBase.end(self, name)
     exec self.codestr+"\n" in self.globals, self.locals
Esempio n. 6
0
 def end(self, name):
     HandlerBase.end(self, name)
     self.codestr = adjust_indent(self.codestr)
     code = __builtin__.compile(self.codestr, self.codestr, self.kind())
     self.element.code = code
Esempio n. 7
0
 def end(self, name):
     HandlerBase.end(self, name)
     self._exec(adjust_indent(self.codestr)+"\n")