Hi!
Trying to dump rooms I get this:
# /usr/lib/nav/dump.py -t room #roomid[:locationid:descr:opt1:opt2:opt3:opt4:position] Traceback (most recent call last): File "/usr/lib/nav/dump.py", line 233, in <module> main() File "/usr/lib/nav/dump.py", line 229, in main handler() File "/usr/lib/nav/dump.py", line 102, in room line.extend(['%s=%s' % x for x in room.data.items()]) AttributeError: 'str' object has no attribute 'items'
Can anyone verify the same problem with Debian and UNINETT 4.1 packages?
Cheers, -Sigurd
On Tue, 05 Aug 2014 14:06:50 +0200 Sigurd Mytting sigurd@mytting.no wrote:
Trying to dump rooms I get this:
# /usr/lib/nav/dump.py -t room
[snip]
File "/usr/lib/nav/dump.py", line 102, in room line.extend(['%s=%s' % x for x in room.data.items()]) AttributeError: 'str' object has no attribute 'items'
Can anyone verify the same problem with Debian and UNINETT 4.1 packages?
Yes, I can. It's a bug. Not sure how it slipped through the cracks, but the dump.py program is pretty archaic. If you could please report it at https://bugs.launchpad.net/nav/+filebug I'll have a look at it.
It seems like Django hstore extension isn't doing its job here.