예제 #1
0
 def dereference(self, key):
     items = [(k, v) for k, v in self.items()]
     data = dict(items)
     print data
     tmpl = _Template(data=data)
     tmpl.update(data)
     print "tmpl.keys", tmpl.keys()
     # value = RefDict.dereference(self, key)
     tmpl.set_template(self[key])
     return tmpl.sub()
예제 #2
0
 def dereference(self, key):
     items = [(k, v) for k, v in self.items()]
     data = dict(items)
     print data
     tmpl = _Template(data=data)
     tmpl.update(data)
     print 'tmpl.keys', tmpl.keys()
     #value = RefDict.dereference(self, key)
     tmpl.set_template(self[key])
     return tmpl.sub()
예제 #3
0
 def dereference(self, key):
     items = [(k,v) for k,v in self.items()]
     data = dict(items)
     if os.environ.has_key('DEBUG'):
         print data
     tmpl = _Template(data=data)
     tmpl.update(data)
     if os.environ.has_key('DEBUG'):
         print 'tmpl.keys', tmpl.keys()
     tmpl.set_template(self[key])
     return tmpl.sub()
예제 #4
0
 def dereference(self, key):
     items = [(k, v) for k, v in self.items()]
     data = dict(items)
     if os.environ.has_key('DEBUG'):
         print data
     tmpl = _Template(data=data)
     tmpl.update(data)
     if os.environ.has_key('DEBUG'):
         print 'tmpl.keys', tmpl.keys()
     tmpl.set_template(self[key])
     return tmpl.sub()