def recalc_path(self, model_inst):
    '计算上传路径,允许是function'
    try:
        uSettings = self.upload_settings
        if ('filePathFormat' in self._upload_settings):
            uSettings['filePathFormat'] = calc_path(self._upload_settings['filePathFormat'], model_inst)
        if ('imagePathFormat' in self._upload_settings):
            uSettings['imagePathFormat'] = calc_path(self._upload_settings['imagePathFormat'], model_inst)
        if ('scrawlPathFormat' in self._upload_settings):
            uSettings['scrawlPathFormat'] = calc_path(self._upload_settings['scrawlPathFormat'], model_inst)
        if ('videoPathFormat' in self._upload_settings):
            uSettings['videoPathFormat'] = (calc_path(self._upload_settings['videoPathFormat'], model_inst),)
        if ('snapscreenPathFormat' in self._upload_settings):
            uSettings['snapscreenPathFormat'] = calc_path(self._upload_settings['snapscreenPathFormat'], model_inst)
        if ('catcherPathFormat' in self._upload_settings):
            uSettings['catcherPathFormat'] = calc_path(self._upload_settings['catcherPathFormat'], model_inst)
        if ('imageManagerListPath' in self._upload_settings):
            uSettings['imageManagerListPath'] = calc_path(self._upload_settings['imageManagerListPath'], model_inst)
        if ('fileManagerListPath' in self._upload_settings):
            uSettings['fileManagerListPath'] = calc_path(self._upload_settings['fileManagerListPath'], model_inst)
        if (uSettings['imagePathFormat'] != ''):
            default_path = uSettings['imagePathFormat']
            uSettings['scrawlPathFormat'] = uSettings.get('scrawlPathFormat', default_path)
            uSettings['videoPathFormat'] = uSettings.get('videoPathFormat', default_path)
            uSettings['snapscreenPathFormat'] = uSettings.get('snapscreenPathFormat', default_path)
            uSettings['catcherPathFormat'] = uSettings.get('catcherPathFormat', default_path)
            uSettings['imageManagerListPath'] = uSettings.get('imageManagerListPath', default_path)
        if (uSettings['filePathFormat'] != ''):
            uSettings['fileManagerListPath'] = uSettings.get('fileManagerListPath', uSettings['filePathFormat'])
    except:
        pass
计算上传路径,允许是function
def recalc_path(self, model_inst):
    
    try:
        uSettings = self.upload_settings
        if ('filePathFormat' in self._upload_settings):
            uSettings['filePathFormat'] = calc_path(self._upload_settings['filePathFormat'], model_inst)
        if ('imagePathFormat' in self._upload_settings):
            uSettings['imagePathFormat'] = calc_path(self._upload_settings['imagePathFormat'], model_inst)
        if ('scrawlPathFormat' in self._upload_settings):
            uSettings['scrawlPathFormat'] = calc_path(self._upload_settings['scrawlPathFormat'], model_inst)
        if ('videoPathFormat' in self._upload_settings):
            uSettings['videoPathFormat'] = (calc_path(self._upload_settings['videoPathFormat'], model_inst),)
        if ('snapscreenPathFormat' in self._upload_settings):
            uSettings['snapscreenPathFormat'] = calc_path(self._upload_settings['snapscreenPathFormat'], model_inst)
        if ('catcherPathFormat' in self._upload_settings):
            uSettings['catcherPathFormat'] = calc_path(self._upload_settings['catcherPathFormat'], model_inst)
        if ('imageManagerListPath' in self._upload_settings):
            uSettings['imageManagerListPath'] = calc_path(self._upload_settings['imageManagerListPath'], model_inst)
        if ('fileManagerListPath' in self._upload_settings):
            uSettings['fileManagerListPath'] = calc_path(self._upload_settings['fileManagerListPath'], model_inst)
        if (uSettings['imagePathFormat'] != ):
            default_path = uSettings['imagePathFormat']
            uSettings['scrawlPathFormat'] = uSettings.get('scrawlPathFormat', default_path)
            uSettings['videoPathFormat'] = uSettings.get('videoPathFormat', default_path)
            uSettings['snapscreenPathFormat'] = uSettings.get('snapscreenPathFormat', default_path)
            uSettings['catcherPathFormat'] = uSettings.get('catcherPathFormat', default_path)
            uSettings['imageManagerListPath'] = uSettings.get('imageManagerListPath', default_path)
        if (uSettings['filePathFormat'] != ):
            uSettings['fileManagerListPath'] = uSettings.get('fileManagerListPath', uSettings['filePathFormat'])
    except:
        pass