Ejemplo n.º 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']
Ejemplo n.º 2
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.target_dir = None
     self.target_file = None
     self._extension = '.' + format.info['extension']
Ejemplo n.º 3
0
 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)
Ejemplo n.º 4
0
Archivo: www.py Proyecto: gdw2/zim
	def __init__(self, notebook, path=None):
		BaseLinker.__init__(self)
		self.notebook = notebook
		self.path = path
Ejemplo n.º 5
0
 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)
Ejemplo n.º 6
0
 def __init__(self, notebook, path=None):
     BaseLinker.__init__(self)
     self.notebook = notebook
     self.path = path