I'm trying to migrate a template from zim 0.56 to 0.62. The template has a 
fully expanded index. In 0.56 the index was created with 

[% pageindex(":",FALSE) %]

When I try this on 0.62 I get this error Message:

WARNING: No such parameter: FALSE
ERROR: Exception in main()
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/zim/main.py", line 446, in main
  File "/usr/lib/python2.7/dist-packages/zim/main.py", line 378, in run
  File "/usr/lib/python2.7/dist-packages/zim/export/exporters/__init__.py", 
line 24, in export
    for p in self.export_iter(pages):
  File "/usr/lib/python2.7/dist-packages/zim/export/exporters/files.py", line 
83, in export_iter
    self.export_page(pages.notebook, page, pages, prevpage=prev, nextpage=next)
  File "/usr/lib/python2.7/dist-packages/zim/export/exporters/files.py", line 
129, in export_page
    self.template.process(lines, context)
  File "/usr/lib/python2.7/dist-packages/zim/templates/__init__.py", line 174, 
in process
    self.emit('process', output, context)
  File "/usr/lib/python2.7/dist-packages/zim/signals.py", line 376, in emit
    return call_default(self, signal, args)
  File "/usr/lib/python2.7/dist-packages/zim/signals.py", line 224, in 
    return method(*args)
  File "/usr/lib/python2.7/dist-packages/zim/templates/__init__.py", line 178, 
in do_process
    processor.process(output, context)
  File "/usr/lib/python2.7/dist-packages/zim/templates/processor.py", line 81, 
in process
    self.__call__(output, self.main, context)
  File "/usr/lib/python2.7/dist-packages/zim/templates/processor.py", line 111, 
in __call__
    value = expr(context)
  File "/usr/lib/python2.7/dist-packages/zim/templates/expression.py", line 
288, in __call__
    return function(*args)
  File "/usr/lib/python2.7/dist-packages/zim/templates/expression.py", line 
349, in __call__
    return self._func(self._obj, *a)
  File "/usr/lib/python2.7/dist-packages/zim/export/template.py", line 279, in 
    for path in self._index_generator(namespace):
  File "/usr/lib/python2.7/dist-packages/zim/export/selections.py", line 46, in 
    return self.notebook.index.walk(namespace)
  File "/usr/lib/python2.7/dist-packages/zim/index.py", line 1265, in walk
    if path is None or path.isroot:
AttributeError: 'str' object has no attribute 'isroot'

I try the collaped index (which works):

[% index() %]

But when I try the not collapsed index:

[% index(":",FALSE) %]

it doesn't.

What am I missing here?


Please do not email me anything that you are not comfortable also sharing with 
the NSA.

Mailing list: https://launchpad.net/~zim-wiki
Post to     : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp

Reply via email to