Esempio n. 1
0
 def schema(self):
     """
     The getter for our schema property
     """
     if self._schema is None:
         self._schema = get_customer_schema(self.request)
     return self._schema
Esempio n. 2
0
 def schema(self):
     """
     The getter for our schema property
     """
     if self._schema is None:
         self._schema = get_customer_schema(self.request)
     return self._schema
Esempio n. 3
0
def get_customer_form(request):
    """
        Returns the customer add/edit form
    """
    schema = get_customer_schema(request)
    schema = schema.bind(request=request)
    form = Form(schema, buttons=(submit_btn,))
    form.widget = GridFormWidget(grid=FORM_GRID)
    return form
Esempio n. 4
0
def get_customer_form(request):
    """
        Returns the customer add/edit form
    """
    schema = get_customer_schema(request)
    schema = schema.bind(request=request)
    form = Form(schema, buttons=(submit_btn, ))
    form.widget = GridFormWidget(grid=FORM_GRID)
    return form