Changes between Initial Version and Version 4 of Ticket #3295


Ignore:
Timestamp:
Jan 19, 2007, 12:41:48 AM (17 years ago)
Author:
Adrian Holovaty
Comment:

Fixed formatting in description.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3295

    • Property Summary I'd like to have a group functionality in forms.[patch] newforms: I'd like to have a group functionality in forms
    • Property Triage Stage UnreviewedDesign decision needed
  • Ticket #3295 – Description

    initial v4  
    33I set an attribute in my form class:
    44
     5{{{
     6#!python
    57 class myform(forms):
    68     field1 = ...
    79     field2 = ...
    810     group_myfields = ['field1','field2']
     11}}}
    912
    10 field1 and field2 are fields sets in my custom form class.
     13{{{field1}}} and {{{field2}}} are fields sets in my custom form class.
    1114
    1215I can retrive html output, writing this:
    1316
     17{{{
     18#!python
    1419myform().myfields.as_p()
    1520myform().myfields.as_table()
     21}}}
    1622
    17 and retrive only fileds listed in group_myfields.
     23and retrive only fileds listed in {{{group_myfields}}}.
    1824
Back to Top