示例#1
0
 def readOptionsFromConfig(self, config):
     """
     config -- SingleConfiguration or CombinedConfiguration to read default
             settings from into the object
     """
     self.rawPrefix = unescapeForIni(config.get("main", "editor_filePaste_prefix", u""))
     self.rawMiddle = unescapeForIni(config.get("main", "editor_filePaste_middle", u" "))
     self.rawSuffix = unescapeForIni(config.get("main", "editor_filePaste_suffix", u""))
     self.bracketedUrl = config.getboolean("main", "editor_filePaste_bracketedUrl", True)
     self.defaultUnifActionName = "action/editor/this/paste/files/insert/url/absolute"
示例#2
0
 def readOptionsFromConfig(self, config):
     """
     config -- SingleConfiguration or CombinedConfiguration to read default
             settings from into the object
     """
     self.rawPrefix = unescapeForIni(config.get("main",
             "editor_filePaste_prefix", u""))
     self.rawMiddle = unescapeForIni(config.get("main",
             "editor_filePaste_middle", u" "))
     self.rawSuffix = unescapeForIni(config.get("main",
             "editor_filePaste_suffix", u""))
     self.bracketedUrl = config.getboolean("main",
             "editor_filePaste_bracketedUrl", True)
示例#3
0
 def readOptionsFromConfig(self, config):
     """
     config -- SingleConfiguration or CombinedConfiguration to read default
             settings from into the object
     """
     self.rawPrefix = unescapeForIni(
         config.get("main", "editor_filePaste_prefix", u""))
     self.rawMiddle = unescapeForIni(
         config.get("main", "editor_filePaste_middle", u" "))
     self.rawSuffix = unescapeForIni(
         config.get("main", "editor_filePaste_suffix", u""))
     self.bracketedUrl = config.getboolean("main",
                                           "editor_filePaste_bracketedUrl",
                                           True)
 def readOptionsFromConfig(self, config):
     """
     config -- SingleConfiguration or CombinedConfiguration to read default
             settings from into the object
     """
     self.rawPrefix = unescapeForIni(
         config.get("main", "editor_filePaste_prefix", u""))
     self.rawMiddle = unescapeForIni(
         config.get("main", "editor_filePaste_middle", u" "))
     self.rawSuffix = unescapeForIni(
         config.get("main", "editor_filePaste_suffix", u""))
     self.bracketedUrl = config.getboolean("main",
                                           "editor_filePaste_bracketedUrl",
                                           True)
     self.defaultUnifActionName = \
             "action/editor/this/paste/files/insert/url/absolute"