Zim

"New Note" namespace not remembered

Bug #590655 reported by dotancohen
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zim
Fix Released
Medium
Unassigned

Bug Description

In Zim 0.47 on Kubuntu 9.10 the Namespace in the New Note dialogue is not remembered between usage. Note that I am not closing Zim, I am using the New Note feature one after the other. The Notebook name is remembered, however.

Changed in zim:
status: New → Confirmed
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Testing on Ubuntu 10.4 I can not reproduce this. Could you check if there is any error output ? Also could you check the contents of ~/.config/zim/createnote.conf ? This file should contain the settings per notebook.

Changed in zim:
status: Confirmed → Incomplete
Revision history for this message
dotancohen (dotancohen) wrote :

✈dcl:~$ cat .config/zim/createnote.conf
[CreateNoteDialog]
windowsize=[323,234]
lastnotebook=file:///home/dotancohen/.zim/\u05d4\u05e2\u05e8\u05d5\u05ea \u05d9\u05de\u05d9\u05d5\u05de\u05d9\u05d5\u05ea

[Namespaces]
file:///home/dotancohen/.zim/הערות ימיומיות=a

✈dcl:~$ zim --verbose
INFO: This is zim 0.47
INFO: Starting UnixSocketDaemon
✈dcl:~$ INFO: Starting background index update
INFO: Open page: <FileStorePage: 1:2> (<HistoryRecord: 1:2>)
INFO: Index update done
INFO: Open page: <FileStorePage: a:b 2> (<FileStorePage: a:b 2>)
INFO: Last instance quit - exiting daemon
INFO: Stopped UnixSocketDaemon

----------------------------------
Now, testing with an ASCII-named notebook:

✈dcl:~$ cat .config/zim/createnote.conf
[CreateNoteDialog]
windowsize=[323,234]
lastnotebook=file:///home/dotancohen/.zim/testNotebook

[Namespaces]
file:///home/dotancohen/.zim/הערות ימיומיות=
file:///home/dotancohen/.zim/testNotebook=a

The Namespace was saved, but not the page name.

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Looks like there is an issue with url encoding in how the config is stored. Will look into it again.

Changed in zim:
status: Incomplete → New
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Although unicode looks strange in the config file it works correctly - just due to json dumping and loading. Found another nasty unicode bug when testing. As far as I can see (now) works as expected. Please verify at rev301 or newer.

Changed in zim:
status: New → In Progress
importance: Undecided → Medium
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Please test with 0.49 whether this report can be closed or not.

Revision history for this message
dotancohen (dotancohen) wrote :

Jaap, I click the Quick Note link in the system tray icon, but nothing opens. Therefore I cannot triage. Should I file this as a new issue?

Thanks.

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote : Re: [Bug 590655] Re: "New Note" namespace not remembered

Any error output in the terminal ?

On Thu, Nov 4, 2010 at 11:50 AM, dotancohen <email address hidden> wrote:
> Jaap, I click the Quick Note link in the system tray icon, but nothing
> opens. Therefore I cannot triage. Should I file this as a new issue?
>
> Thanks.
>
> --
> "New Note" namespace not remembered
> https://bugs.launchpad.net/bugs/590655
> You received this bug notification because you are subscribed to Zim.
>

Revision history for this message
dotancohen (dotancohen) wrote :

DEBUG: Loading /home/mav2/.config/zim/quicknote.conf
DEBUG: Loading /home/mav2/.zim/לינוקס/notebook.zim
DEBUG: Loading /home/mav2/.zim/עבודה/notebook.zim
DEBUG: Loading /home/mav2/.zim/תחזוקה ותיקונים/notebook.zim
DEBUG: Loading /home/mav2/.zim/הערות ימיומיות/notebook.zim
DEBUG: Loading /home/mav2/.zim/איפה דברים/notebook.zim
DEBUG: Loading /home/mav2/.zim/אתי/notebook.zim
DEBUG: Loading /home/mav2/.zim/אתרים ותכנות/notebook.zim
DEBUG: Loading /home/mav2/.zim/דרישות והתרשמות/notebook.zim
DEBUG: Loading /home/mav2/.zim/המצאות/notebook.zim
DEBUG: Loading /home/mav2/.zim/הערות/notebook.zim
DEBUG: Loading /home/mav2/.zim/חלונות/notebook.zim
DEBUG: Loading /home/mav2/.zim/חשבוני בנק/notebook.zim
DEBUG: Loading /home/mav2/.zim/להביא בנסיעות/notebook.zim
DEBUG: Loading /home/mav2/.zim/לימודים/notebook.zim
DEBUG: Loading /home/mav2/.zim/מחשבים/notebook.zim
DEBUG: Loading /home/mav2/.zim/מירב/notebook.zim
DEBUG: Loading /home/mav2/.zim/מתנות/notebook.zim
DEBUG: Loading /home/mav2/.zim/פרוייקטים/notebook.zim
DEBUG: Loading /home/mav2/.zim/שגיות בתוכנות/notebook.zim
DEBUG: Loading /home/mav2/.zim/תאורית העולם/notebook.zim
DEBUG: Loading /home/mav2/.zim/טפסים ברשת/notebook.zim
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/zim/plugins/trayicon.py", line 208, in do_quick_note
    dialog = QuickNoteDialog(None, {})
  File "/usr/lib/pymodules/python2.6/zim/plugins/quicknote.py", line 321, in __init__
    self._init_inputs(namespace, basename, text, template_options, table)
  File "/usr/lib/pymodules/python2.6/zim/plugins/quicknote.py", line 175, in _init_inputs
    self.inputs['newpage'].set_active(self.uistate['newpage'])
KeyError: 'newpage'

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

The 'newpage' issue has been fixed in refactor branch, will merge with tree soonish.

Set this bug to "Incomplete" as I never was able to reproduce the issue.

Changed in zim:
status: In Progress → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Zim because there has been no activity for 60 days.]

Changed in zim:
status: Incomplete → Expired
dotancohen (dotancohen)
Changed in zim:
status: Expired → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.