Beispiel #1
0
 def __init__(self, org, request):
     self.org = org
     self.request = request
     self.schema = OrganizationSchema().bind(request=request)
     self.form = request.create_form(self.schema, buttons=(_("Save"), ))
     self._update_appstruct()
Beispiel #2
0
 def bound_schema(self, pyramid_csrf_request):
     return OrganizationSchema().bind(request=pyramid_csrf_request)
Beispiel #3
0
 def __init__(self, request):
     self.schema = OrganizationSchema().bind(request=request)
     self.request = request
     self.form = request.create_form(self.schema,
                                     buttons=(_("Create organization"), ))