On 01/27/10 18:55, Octavian Rasnita wrote:
I use the following element for showing all roles in the user add form:
<elements>
name roles
type Checkboxgroup
<model_config>
resultset Role
</model_config>
</elements>
Don't understand why - but no select ever issued to database
=== add.yml ===
---
model_config:
resultset: User
elements:
- type: Hidden
name: id
- type: Text
name: username
label: Login
constraints:
- Required
- type: Password
name: password
label: Password
constraints:
- type: Required
- type: Equal
others: password2
- type: MinLength
min: 6
message: Password must be at least 6 characters long
transformers:
- type: PassHash
password: passmd5
hash: MD5
digest: hexdigest
- type: Password
name: password2
label: Password again
- type: Checkboxgroup
name: rid
label: rolename
model_config:
resultset: Roles
id_column: rid
label_column: rolename
- type: Submit
=== add.yml ==
even attempt to replace Roles with nonexistent resultset does not result
in error. I have no idea (((
Alex.
_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu