def edit_watch_to_watch_folders_dict(self, sobject_item, asset_name=None, asset_code=None, asset_stype=None, asset_skey=None, asset_pipeline=None, path=None, repo=None, status=False):
    watch_dict = self.get_watch_dict_by_skey(sobject_item.sobject.get_search_key())
    if watch_dict:
        idx = watch_dict['idx']
        if asset_name:
            self.watch_folders_dict['assets_names'][idx] = sobject_item.get_title()
        if asset_code:
            self.watch_folders_dict['assets_codes'][idx] = sobject_item.sobject.info.get('code')
        if asset_stype:
            self.watch_folders_dict['assets_stypes'][idx] = sobject_item.stype.get_pretty_name()
        if asset_skey:
            self.watch_folders_dict['assets_skeys'][idx] = sobject_item.sobject.get_search_key()
        if asset_pipeline:
            self.watch_folders_dict['assets_pipelines'][idx] = sobject_item.sobject.get_pipeline_code()
        if path:
            self.watch_folders_dict['paths'][idx] = path
        if repo:
            self.watch_folders_dict['repos'][idx] = repo
        self.watch_folders_dict['statuses'][idx] = status
        sobject_item.check_watch_folder()
        self.fill_watch_folders_tree_widget()
        self.writeSettings()
def edit_watch_to_watch_folders_dict(self, sobject_item, asset_name=None, asset_code=None, asset_stype=None, asset_skey=None, asset_pipeline=None, path=None, repo=None, status=False):
    watch_dict = self.get_watch_dict_by_skey(sobject_item.sobject.get_search_key())
    if watch_dict:
        idx = watch_dict['idx']
        if asset_name:
            self.watch_folders_dict['assets_names'][idx] = sobject_item.get_title()
        if asset_code:
            self.watch_folders_dict['assets_codes'][idx] = sobject_item.sobject.info.get('code')
        if asset_stype:
            self.watch_folders_dict['assets_stypes'][idx] = sobject_item.stype.get_pretty_name()
        if asset_skey:
            self.watch_folders_dict['assets_skeys'][idx] = sobject_item.sobject.get_search_key()
        if asset_pipeline:
            self.watch_folders_dict['assets_pipelines'][idx] = sobject_item.sobject.get_pipeline_code()
        if path:
            self.watch_folders_dict['paths'][idx] = path
        if repo:
            self.watch_folders_dict['repos'][idx] = repo
        self.watch_folders_dict['statuses'][idx] = status
        sobject_item.check_watch_folder()
        self.fill_watch_folders_tree_widget()
        self.writeSettings()