Esempio n. 1
0
 def get(self):
     result = PropertySheet.get(self)
     resource = result.get('resource')
     if resource is None:
         resource = colander.null
     else:
         resource = resource_path(resource)
     result['resource'] = resource
     return result
Esempio n. 2
0
 def get(self):
     result = PropertySheet.get(self)
     resource = result.get('resource')
     if resource is None:
         resource = colander.null
     else:
         resource = resource_path(resource)
     result['resource'] = resource
     return result
Esempio n. 3
0
 def set(self, appstruct):
     resource = appstruct.get('resource')
     if resource is colander.null:
         appstruct['resource'] = None
     return PropertySheet.set(self, appstruct)
Esempio n. 4
0
 def set(self, appstruct):
     resource = appstruct.get('resource')
     if resource is colander.null:
         appstruct['resource'] = None
     return PropertySheet.set(self, appstruct)
Esempio n. 5
0
 def set(self, appstruct):
     return PropertySheet.set(self, appstruct, omit=('duration'))
Esempio n. 6
0
 def set(self, appstruct):
     result = PropertySheet.set(self, appstruct)
     return result
Esempio n. 7
0
 def get(self):
     result = PropertySheet.get(self)
     return result
Esempio n. 8
0
 def set(self, appstruct):
     result = PropertySheet.set(self, appstruct)
     return result
Esempio n. 9
0
 def get(self):
     result = PropertySheet.get(self)
     return result