Beispiel #1
0
 def __call__(self):
     try:
         result = FormView.__call__(self)
     except colander.Invalid, exc:
         self.logger.exception(
             "Exception while rendering form "
             "'%s': %s - struct received: %s",
             self.title, exc, self.appstruct())
         raise
Beispiel #2
0
 def __call__(self):
     if self.use_csrf_token and 'csrf_token' not in self.schema:
         self.schema.children.append(CSRFSchema()['csrf_token'])
     try:
         result = FormView.__call__(self)
     except colander.Invalid, exc:
         self.logger.exception(
             "Exception while rendering form "
             "'%s': %s - struct received: %s",
             self.title, exc, self.appstruct())
         raise
Beispiel #3
0
 def __call__(self):
     BaseView.__call__(self)
     base = FormView.__call__(self)
     return base