Exemplo 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
Exemplo 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
Exemplo n.º 3
0
 def set(self, appstruct):
     resource = appstruct.get('resource')
     if resource is colander.null:
         appstruct['resource'] = None
     return PropertySheet.set(self, appstruct)
Exemplo n.º 4
0
 def set(self, appstruct):
     resource = appstruct.get('resource')
     if resource is colander.null:
         appstruct['resource'] = None
     return PropertySheet.set(self, appstruct)
Exemplo n.º 5
0
 def set(self, appstruct):
     return PropertySheet.set(self, appstruct, omit=('duration'))
Exemplo n.º 6
0
 def set(self, appstruct):
     result = PropertySheet.set(self, appstruct)
     return result
Exemplo n.º 7
0
 def get(self):
     result = PropertySheet.get(self)
     return result
Exemplo n.º 8
0
 def set(self, appstruct):
     result = PropertySheet.set(self, appstruct)
     return result
Exemplo n.º 9
0
 def get(self):
     result = PropertySheet.get(self)
     return result