equal
deleted
inserted
replaced
37 'static': [('cmd', ['static']), ('file', None)] |
37 'static': [('cmd', ['static']), ('file', None)] |
38 } |
38 } |
39 |
39 |
40 def normalize(form): |
40 def normalize(form): |
41 # first expand the shortcuts |
41 # first expand the shortcuts |
42 for k in shortcuts.iterkeys(): |
42 for k in shortcuts: |
43 if k in form: |
43 if k in form: |
44 for name, value in shortcuts[k]: |
44 for name, value in shortcuts[k]: |
45 if value is None: |
45 if value is None: |
46 value = form[k] |
46 value = form[k] |
47 form[name] = value |
47 form[name] = value |