Export to single html with template crashes on cmd line
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zim |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I am running Ubuntu and Zim 0.65. I can export to a single html page IF I don't use my template. I can use my template if I export to multiple pages. I can't use both options together. :(
Exporting to a single page requires [Page] to be passed on the commandline (which is not documented, but reading the code, seems that you can't get the "singlepage" option if page is null). This appears to be a problem for templates:
$ zim --export --template=
ERROR: Exception in main()
Traceback (most recent call last):
File "/usr/lib/
obj.run()
File "/usr/lib/
exporter.
File "/usr/lib/
for p in self.export_
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
return call_default(self, signal, args)
File "/usr/lib/
return method(*args)
File "/usr/lib/
processor.
File "/usr/lib/
self.
File "/usr/lib/
value = expr(context)
File "/usr/lib/
return function(*args)
File "/usr/lib/
return self._func(
File "/usr/lib/
elif ignore_empty and not (path.hascontent or path.haschildren):
AttributeError: 'Path' object has no attribute 'hascontent'
$ zim -D
INFO: This is zim 0.65
DEBUG: Python version is sys.version_
DEBUG: Platform is posix
DEBUG: No bzr version-info found
DEBUG: Not running from a source dir
....
DEBUG: Gtk version is (2, 24, 23)
DEBUG: Pygtk version is (2, 24, 0)
....
DEBUG: NOTE FOR BUG REPORTS:
At this point zim has send the command to open a notebook to a
background process and the current process will now quit.
If this is the end of your debug output it is probably not useful
for bug reports. Please close all zim windows, quit the
zim trayicon (if any), and try again.
Also, the template exports perfectly as a single page using the GUI. This is just a commandline problem.