- forms.append(T.div(class_="freeform-form")[mkdir])
-
- # Build input elements for mutable file type. We do this outside
- # of the list so we can check the appropriate format, based on
- # the default configured in the client (which reflects the
- # default configured in tahoe.cfg)
- if self.default_mutable_format == MDMF_VERSION:
- mdmf_input = T.input(type='radio', name='mutable-type',
- id='mutable-type-mdmf', value='mdmf',
- checked='checked')
- else:
- mdmf_input = T.input(type='radio', name='mutable-type',
- id='mutable-type-mdmf', value='mdmf')
-
- if self.default_mutable_format == SDMF_VERSION:
- sdmf_input = T.input(type='radio', name='mutable-type',
- id='mutable-type-sdmf', value='sdmf',
- checked="checked")
- else:
- sdmf_input = T.input(type='radio', name='mutable-type',
- id='mutable-type-sdmf', value='sdmf')
-
- upload = T.form(action=".", method="post",
- enctype="multipart/form-data")[
+ forms.append(T.div(class_="freeform-form")[mkdir_form])
+
+ upload_chk = T.input(type='radio', name='format',
+ value='chk', id='upload-chk',
+ checked='checked')
+ upload_sdmf = T.input(type='radio', name='format',
+ value='sdmf', id='upload-sdmf')
+ upload_mdmf = T.input(type='radio', name='format',
+ value='mdmf', id='upload-mdmf')
+
+ upload_form = T.form(action=".", method="post",
+ enctype="multipart/form-data")[