예제 #1
0
	def __init__(self, format, notebook, path=None, document_root_url=None):
		BaseLinker.__init__(self)
		if isinstance(format, basestring):
			format = get_format(format)
		self.notebook = notebook
		self.path = path
		self.document_root_url = document_root_url
		self._extension = '.' + format.info['extension']
예제 #2
0
파일: exporter.py 프로젝트: pombredanne/zim
 def __init__(self, format, notebook, path=None, document_root_url=None):
     BaseLinker.__init__(self)
     if isinstance(format, basestring):
         format = get_format(format)
     self.notebook = notebook
     self.path = path
     self.document_root_url = document_root_url
     self.target_dir = None
     self.target_file = None
     self._extension = '.' + format.info['extension']
예제 #3
0
파일: exporter.py 프로젝트: DarioGT/Zim-QDA
 def icon(self, name):
     if self.target_dir and self.target_file:
         file = self.target_dir.file('_resources/'+name+'.png')
         return self._filepath(file, self.target_file.dir)
     else:
         return BaseLinker.icon(self, name)
예제 #4
0
파일: www.py 프로젝트: gdw2/zim
	def __init__(self, notebook, path=None):
		BaseLinker.__init__(self)
		self.notebook = notebook
		self.path = path
예제 #5
0
파일: exporter.py 프로젝트: pombredanne/zim
 def icon(self, name):
     if self.target_dir and self.target_file:
         file = self.target_dir.file('_resources/' + name + '.png')
         return self._filepath(file, self.target_file.dir)
     else:
         return BaseLinker.icon(self, name)
예제 #6
0
 def __init__(self, notebook, path=None):
     BaseLinker.__init__(self)
     self.notebook = notebook
     self.path = path