Exemplo n.º 1
0
    def create_form_fields(self):
        form_fields = [
#                       (u'Site','text',self.capture_dict[u'site']),
                       (u'1:Date','date', self.capture_dict[u'date']),
                       (u'2:Time','time',self.capture_dict[u'time']),
#                       (u'IMA','number',self.capture_dict[u'ima']),
#                       (u'xcoord','number',self.capture_dict[u'xcoord']),
#                       (u'ycoord','number',self.capture_dict[u'ycoord']),
#                       (u'Position','combo',(self.position_combo,
 #                                            butterfly_helper.default_combo_index(self.position_combo,
 #                                                                self.capture_dict[u'position']))),
                       (u'3:Specimen_Code','text',self.capture_dict[u'specimen_code']),
                       (u'4:Family','combo',(self.family_combo,
                                           butterfly_helper.default_combo_index(self.family_combo,
                                                               self.capture_dict[u'family']))),
                       (u'5:Subfamily','combo',(self.subfamily_combo,
                                              butterfly_helper.default_combo_index(self.subfamily_combo,
                                                                  self.capture_dict[u'subfamily']))),
                       (u'6:Genus','text',self.capture_dict[u'genus']),
                       (u'7:Species','text',self.capture_dict[u'species']),
                       (u'8:Sex','combo',(self.sex_combo,
                                        butterfly_helper.default_combo_index(self.sex_combo,
                                                            self.capture_dict[u'sex']))),
                       (u'9:Recapture','combo',(self.recapture_combo,
                                              butterfly_helper.default_combo_index(self.recapture_combo,
                                                                  self.capture_dict['recapture']))),
                       (u'10:Date_of_Identification','date',self.capture_dict['date_of_identification']),
                       (u'11:Identified_By','text',self.capture_dict['identified_by']),
                       (u'12:Comments','text',self.capture_dict[u'comments'])
#                       (u'Picture_Filename','text',self.capture_dict[u'picture_filename']),
#                       (u'Audio_Filename','text',self.capture_dict[u'audio_filename'])
                        ]
        return form_fields
Exemplo n.º 2
0
 def create_form_fields(self):
     form_fields = [
         #                       (u'Site','text',self.capture_dict[u'site']),
         (u'1:Date', 'date', self.capture_dict[u'date']),
         (u'2:Time', 'time', self.capture_dict[u'time']),
         #                       (u'IMA','number',self.capture_dict[u'ima']),
         #                       (u'xcoord','number',self.capture_dict[u'xcoord']),
         #                       (u'ycoord','number',self.capture_dict[u'ycoord']),
         #                       (u'Position','combo',(self.position_combo,
         #                                            butterfly_helper.default_combo_index(self.position_combo,
         #                                                                self.capture_dict[u'position']))),
         (u'3:Specimen_Code', 'text', self.capture_dict[u'specimen_code']),
         (u'4:Family', 'combo', (self.family_combo,
                                 butterfly_helper.default_combo_index(
                                     self.family_combo,
                                     self.capture_dict[u'family']))),
         (u'5:Subfamily', 'combo', (self.subfamily_combo,
                                    butterfly_helper.default_combo_index(
                                        self.subfamily_combo,
                                        self.capture_dict[u'subfamily']))),
         (u'6:Genus', 'text', self.capture_dict[u'genus']),
         (u'7:Species', 'text', self.capture_dict[u'species']),
         (u'8:Sex', 'combo', (self.sex_combo,
                              butterfly_helper.default_combo_index(
                                  self.sex_combo,
                                  self.capture_dict[u'sex']))),
         (u'9:Recapture', 'combo', (self.recapture_combo,
                                    butterfly_helper.default_combo_index(
                                        self.recapture_combo,
                                        self.capture_dict['recapture']))),
         (u'10:Date_of_Identification', 'date',
          self.capture_dict['date_of_identification']),
         (u'11:Identified_By', 'text', self.capture_dict['identified_by']),
         (u'12:Comments', 'text', self.capture_dict[u'comments'])
         #                       (u'Picture_Filename','text',self.capture_dict[u'picture_filename']),
         #                       (u'Audio_Filename','text',self.capture_dict[u'audio_filename'])
     ]
     return form_fields
Exemplo n.º 3
0
Arquivo: trap.py Projeto: nesl/ecopda
 def create_form_fields(self):
     form_fields = [
                    (u'1:Date','date', self.trap_dict[u'date']),
                    (u'2:Time','time',self.trap_dict[u'time']),
                    (u'3:Date_of_First_Baiting','date',self.trap_dict[u'date_of_first_baiting']),
                    (u'4:Height','float',self.trap_dict[u'height']),
                    (u'5:Temperature','float',self.trap_dict[u'temperature']),
                    (u'6:Humidity','float',self.trap_dict[u'humidity']),
                    (u'7:Wind_Speed','float',self.trap_dict[u'wind_speed']),
                    (u'8:Date_of_Bait_Prep','date',self.trap_dict[u'date_of_bait_prep']),
                    (u'9:Date_of_Bait_Refill','date',self.trap_dict[u'date_of_bait_refill']),
                    (u'10:Canopy_Cover','combo',(self.canopy_cover_combo,
                                              butterfly_helper.default_combo_index(self.canopy_cover_combo,
                                                                                   self.trap_dict[u'canopy_cover']))),
                    (u'11:Collectors','text',self.trap_dict[u'collectors']),
                    (u'12:Comments','text',self.trap_dict[u'comments'])
                     ]
     return form_fields