Ejemplo n.º 1
0
 def mode(self):
     """The mode of xls upload is chosen in the first step, not taken
     from url."""
     data = self.get_cleaned_data_for_step('upload')
     if data is not None:
         return ASSET_TYPE2MODE[AssetType.from_id(
             int(self.get_cleaned_data_for_step('upload')['asset_type']))]
Ejemplo n.º 2
0
 def mode(self):
     """The mode of xls upload is chosen in the first step, not taken
     from url."""
     data = self.get_cleaned_data_for_step('upload')
     if data is not None:
         return ASSET_TYPE2MODE[
             AssetType.from_id(int(
                 self.get_cleaned_data_for_step('upload')['asset_type']
             ))
         ]