Exemplo n.º 1
0
 def beginEnvironment(self, e):
     "starts a child environment"
     debug.begin(self, 'beginEnvironment(%s)' % e.__class__.__name__)
     assert e is not self
     self._currentEnv = e
     self.renderer.onBeginEnvironment(e)
     debug.end()
Exemplo n.º 2
0
	def beginEnvironment(self,e):
		"starts a child environment"
		debug.begin(self,'beginEnvironment(%s)' % e.__class__.__name__)
		assert e is not self
		self._currentEnv = e
		self.renderer.onBeginEnvironment(e)
		debug.end()
Exemplo n.º 3
0
 def endEnvironment(self, cl):
     debug.begin(self, 'endEnvironment(%s)' % cl.__name__)
     e = self.getenv()
     if e.__class__ is not cl:
         raise PdsError("""end%s requested but end%s expected."""\
              % (cl.__name__, e.__class__.__name__))
     self.renderer.onEndEnvironment(e)
     self._currentEnv = e.getParent()
     debug.end()
Exemplo n.º 4
0
	def endEnvironment(self,cl):
		debug.begin(self,'endEnvironment(%s)' % cl.__name__)
		e = self.getenv()
		if e.__class__ is not cl:
			raise PdsError("""end%s requested but end%s expected."""\
								% (cl.__name__, e.__class__.__name__))
		self.renderer.onEndEnvironment(e)
		self._currentEnv = e.getParent()
		debug.end()