On Thu, 2010-12-02 at 13:29 +0100, Andreas Jung wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi there,
> 
> I am currently evaluating Deform + Colander for an upcoming project.
> 
> Open questions:
> 
> Is there some support (in the renderer) for grouping fields? E.g. we
> have a "Person" form with fields for business and privat address. The
> related fields should be grouped together (e.g. through a fieldset).

One possibly wrong way to do this would be to create a subschema:

class Address(colander.Schema):
    ....

class MySchema(colander.Schema)
    private = Address()
    public = Address()

This will render each address in its own fieldset.

Another would be a custom address widget.

Neither is entirely satisfactory in every context.  I'd like to provide
documentation that would allow Deform widgets to be used imperatively in
a template, but I don't have it.

> Does Deform provide some kind of "View" mode support (beside the
> rendering of the edit form itself) - similar to View/Edit mode in
> Archetypes?

There's a readonly mode for the entire form.  But there isn't a readonly
mode for individual widgets on a form yet.

> 
> What is the strategy for "filtered" edit forms. E.g. a Manager
> should be allowed to edit all fields of a "Person" - a standard
> editor should be allowed to edit only a subset of the fields - all other
> fields should be either hidden or show as text ("View" mode).

Schema binding and the "after_bind" mechanism could be used to do this.
See http://docs.repoze.org/colander/binding.html#after-bind

> 
> Andreas
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> 
> iQGUBAEBAgAGBQJM95EyAAoJEADcfz7u4AZjc5ALv2SPU5byuFJbAPAMAk3eN9bf
> XbPcXe58qlauMeY22a5nHfiGQpdZAeW74ebAJEz2GeIk3Qd2w3Gng8aLnkd+XDK/
> 9x6SRAYeBm5o97vtNrxCx8Pyu/gxIs/512cVGMru68QG+Pw03K93ZcOW7bzrwK4/
> nyPjE5nJfYm91lLqz7CEV22ww3SjA6ngNI7uAgugtKV6+V0cI8KwNivDHrR5rn4r
> mhCFoigjAe3fKq+d1Lg2BHTcoEQH7vb3gMiB0wbFD/sXl510ziyj8wmv/uqNyDKU
> Nfm5gSBG00tEs9kfjSZ4AWiXf3q0kHnORrIRo2JeQM8U5o4ELKoXjPOeA9UfA26l
> FtIESaLD0yzwj1YpjHsryliLB/nh2Ap879szVGvSAWYuNdTdIgSiO86VkFvYXrlY
> 53VdGtNd9c+19YMn8Pe3BOQelbvi+xXSys3ipcNXth+x8GafTmXEhdlzdusN6rAC
> ZbFeHMLlBilE85DI5Am99iGDleFlXL0=
> =tFFC
> -----END PGP SIGNATURE-----
> _______________________________________________
> Repoze-dev mailing list
> Repoze-dev@lists.repoze.org
> http://lists.repoze.org/listinfo/repoze-dev


_______________________________________________
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev

Reply via email to