Esempio n. 1
0
 def getDefault(self, instance):
     value = ObjectField.getDefault(self, instance)
     zpt = ZopePageTemplate(self.getName())
     zpt.write(value)
     return zpt.__of__(instance)
Esempio n. 2
0
 def getDefault(self, instance):
     value = ObjectField.getDefault(self, instance)
     dtml = DTMLMethod(self.getName())
     dtml.munge(value)
     return dtml.__of__(instance)
Esempio n. 3
0
 def getDefault(self, instance):
     value = ObjectField.getDefault(self, instance)
     script = PythonScript(self.getName())
     script.ZPythonScript_edit('**options', value)
     return script.__of__(instance)