示例#1
0
    def __init__(self, msg):
        Error.__init__(self, msg)

        self.parser_file = _(
            '<Unknown>')  # T: placeholder for unknown file name
        self.parser_text = ''
        self.parser_line_offset = (0, 0)
示例#2
0
 def __init__(self, path):
     path = path.path if hasattr(path, 'path') else path
     Error.__init__(self, 'Folder not empty: %s' % path)
示例#3
0
 def __init__(self, path):
     self.file = path
     path = path.path if hasattr(path, 'path') else path
     Error.__init__(self, 'No permission to write file: %s' % path)
示例#4
0
 def __init__(self, path):
     self.file = path
     path = path.path if hasattr(path, 'path') else path
     Error.__init__(self, 'File changed on disk: %s' % path)
示例#5
0
 def __init__(self, path):
     self.file = path
     path = path.path if hasattr(path, 'path') else path
     Error.__init__(self, 'File or folder already exists: %s' % path)
示例#6
0
 def __init__(self, path):
     self.file = path
     path = path.path if hasattr(path, 'path') else path
     Error.__init__(self, 'No such file or folder: %s' % path)
示例#7
0
 def __init__(self):
     Error.__init__(self, _('Please select more than one line of text'))
示例#8
0
 def __init__(self, path):
     Error.__init__(self, _('File path too long: %s') % path)
示例#9
0
 def __init__(self, basename):
     Error.__init__(self, _('File name too long: %s') % basename)
示例#10
0
文件: parser.py 项目: hjq300/zim-wiki
	def __init__(self, msg):
		Error.__init__(self, msg)

		self.parser_file = _('<Unknown>') # T: placeholder for unknown file name
		self.parser_text = ''
		self.parser_line_offset = (0, 0)