def get_checkin_out_tab(self): stype = self.parent_stype if not stype: stype = self.stype return env_inst.get_check_tree( project_code=stype.project.info.get('code'), tab_code='checkin_out', wdg_code=stype.info.get('code'))
def checkin_icon_file(self, search_key): stype = self.tactic_widget.get_stype() checkin_widget = env_inst.get_check_tree( tab_code='checkin_out', wdg_code=stype.info.get('code')) files_list = self.get_upload_list() if files_list: checkin_widget.checkin_from_path(search_key, 'icon', '', files_list)
def save_as(project_code, tab_code, wdg_code): current_type = cmds.optionVar(q='defaultFileSaveType') current_ext = cmds.translator(str(current_type), q=True, filter=True) current_ext = current_ext.split(';')[0] current_checkin_widget = env_inst.get_check_tree(project_code, tab_code, wdg_code) current_checkin_widget.save_file( selected_objects=[False, { current_type: current_ext[2:] }])
def checkin_icon_file(self, search_key): stype = self.tactic_widget.get_stype() checkin_widget = env_inst.get_check_tree( tab_code='checkin_out', wdg_code=stype.info.get('code')) files_list = self.get_upload_list() if files_list: match_template = gf.MatchTemplate(['$FILENAME.$EXT']) files_objects_dict = match_template.get_files_objects(files_list) checkin_widget.checkin_file_objects( search_key, 'icon', '', files_objects=files_objects_dict.get('file'), checkin_type='file', keep_file_name=False)