-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Andreas Jung wrote:
>>> >>> fibu.kreditor+ust are available ...so why is Colander complaining here >>> with 'Required'? >> Are you building the form "by hand" or letting Deform autogenerate it? > > Auto-generated by deform. The only Zope 2 specific code is turning a Zope 2 request upon submission into a webob request using the following code: 15 # bindings for deferred select lists 16 bindings = context.get_author_bindings() 17 schema = AutorSchema().bind(**bindings) 18 19 def getDeformData(request, schema): 20 """ Turn request into webob request for proper 21 form data serialization. 22 """ 23 request.stdin.seek(0) 24 body = request.stdin.read() 25 req = webob.Request.blank('/', POST=body, environ=request.environ) 26 form = deform.Form(schema, method='POST') 27 data = form.validate(req.POST.items()) 28 return data 29 30 31 if request.get('Speichern'): 32 33 form_data = getDeformData(request, schema) 34 import pdb; pdb.set_trace() 35 deserialized = schema.deserialize(form_data) But 'data' seems to be fine (as shown in my initial posting). Andreas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQGUBAEBAgAGBQJM/lxLAAoJEADcfz7u4AZj7i4Lv1F54FnVTMgGBx4VEM3PnIyx bEo4sWSE13K3zUtVVUtwERs4xIDvHi0pI81hoVtZEp+KdNMl+D8nbc7HEwL4ycW0 IOtW4BxW9tFnEac1qma0NoK3HF3/u5SOAj/bB66w9chQR2D8TTrd89+33vejf0N+ tFP8LVsqVIRLiApEr8rQUYCqYKVls8P1FJI4iL7vR7/WtYy0bY6MGoGTFHqw53Q7 PQPEHRrS0+BhJ6bPipyLAkWXsllV9K+Uce+g5IBbahfnAKpQg1xCYQ5CJLeIYqXK FaNlXXtlO4NoEPRITasAfwRw+iiFzmimu2+Yk2tDrP4qmqEDb88PPM2fdYMR/8GB JaaOuWWwVbrjZ5Z5g9DUrerBTffCnwefi1PphE8YOSxLeiF3Nl2si5sDNUA8Z/t7 VbQZIzN0cCOT5bNgWXQIO6kJSOmfaDcmbPMWCPcDlL0+h28L3yKYK6vEWxswRU5H Vy/hOiQU0ICAWaQmKmrP7XgEZVUcpNA= =kp8P -----END PGP SIGNATURE-----
<<attachment: lists.vcf>>
_______________________________________________ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev