[html-formfu] Syntax for default inflator

Steve Rippl rippls at woodlandschools.org
Tue Feb 23 20:03:23 GMT 2010


Hi,

I can't find a working syntax for putting the inflator into the 
default_args section.

I'd like to have something like...

default_args:
  elements:
    deflator:
      Strftime:
        strftime: '%m/%d/%Y'
    inflator:
      DateTime:
        parser:
          strptime: '%m/%d/%Y'


so that within the form if I have a field with

  - type: Text
    name: date_hepb_1
    maxlength: 10
    inflators:
      - type: DateTime
    deflator:
      - type: Strftime

the inflator gets the default parser.

The deflator part is working, but I can't get the inflator part to, I've 
tried a few different versions but none seem to work.

Thanks for any insight!
Steve

-- 
Steve Rippl
Technology Director
Woodland Public Schools
360 225 9451 x326




More information about the HTML-FormFu mailing list