Re: Notes tab
Peter Schulte-Stracke <mail-OvSX7JRiA6TkXZrADh/[email protected]>
| Newsgroups | gmane.comp.gnome.apps.pybliographer |
|---|---|
| Message-ID | <20041203163059.GA4322@britten> |
Am 03.12.2004 14:58:18 schrieb(en) Nicholas Cole: > I was very excited to see a new tab appear when I > fired up pybliographic 1.2.4 [Python 2.3.4, Gtk > 2.4.13, PyGTK 2.4.1] to see that a tab had been added > marked "Notes" to the entry edit box. But it appears > as just a grey box. I see. For a while I had some standard fields (Note etc.) always displayed, even when there was no text for them, but at a certain point I found this confusing :-) In the meantime I came along a better design and I'll probably change it. If I click on the "New" button at > the bottom, I get the following error on the console. > > Traceback (most recent call last): > File "/usr/share/pybliographer/Pyblio/GnomeUI/Editor.py", > line 1166, in add_cb > self.editor.add_cb (button, data) > File "/usr/share/pybliographer/Pyblio/GnomeUI/Editor.py", > line 632, in add_cb > self.lt_new() > File "/usr/share/pybliographer/Pyblio/GnomeUI/Editor.py", > line 789, in lt_new > d = LT_Dialog_1(parent = self.w.get_toplevel ()) > File "/usr/share/pybliographer/Pyblio/GnomeUI/Editor.py", > line 1361, in __init__ > self.value = self.fields[0] > IndexError: list index out of range self.fields at this point contains the list of eligible (LongText) fields, so if index 0 is out of range, it must be empty. Probable cause: the configuration variable base/fields has been changed by the user; it is then stored in .pybrc.conf, and *no attempt is made to upgrade this file when the configuration data set is modified*. The following are two possible courses of user actions: 1. manually delete .pybrc.conf (»rm .pybrc.conf«), that means however, that *all* changes that the user made are lost; 2. manually change .pybrc.conf by means of the configuration dialog (using the »settings/fields« menu entry): add or change the pertinent fields with a type of »Long Text«. For future releases it would perhaps be sensible to automatically perform such upgrades. Thank you for your comments, Peter ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/