Package: revelation
Version: 0.4.11-3+b1
Severity: normal

When importing a fpm file which entries have empty username or url fields, 
revelation gives following error message, when I try to click on such an entry, 
and doesn't display the entry's content:
Traceback (most recent call last):
  File "/usr/bin/revelation", line 415, in <lambda>
    self.tree.selection.connect("changed", lambda w: 
self.entryview.display_entry(self.entrystore.get_entry(self.tree.get_active())))
  File "/usr/lib/python2.4/site-packages/revelation/ui.py", line 1929, in 
display_entry
    widget = generate_field_display_widget(field, self.config, self.clipboard)
  File "/usr/lib/python2.4/site-packages/revelation/ui.py", line 200, in 
generate_field_display_widget
    widget = Label(util.escape_markup(field.value))
  File "/usr/lib/python2.4/site-packages/revelation/util.py", line 155, in 
escape_markup
    string = string.replace("&", "&amp;")
AttributeError: 'NoneType' object has no attribute 'replace'


If I try to save the imported fpm file, a similar error gets produced:
Traceback (most recent call last):
  File "/usr/bin/revelation", line 208, in <lambda>
    action.connect("activate",          lambda w: 
self.file_save(self.datafile.get_file(), self.datafile.get_password()))
  File "/usr/bin/revelation", line 1501, in file_save
    self.datafile.save(self.entrystore, file, password)
  File "/usr/lib/python2.4/site-packages/revelation/io.py", line 125, in save
    file_write(file, self.__handler.export_data(entrystore, password))
  File "/usr/lib/python2.4/site-packages/revelation/datahandler/rvl.py", line 
306, in export_data
    data = RevelationXML.export_data(self, entrystore)
  File "/usr/lib/python2.4/site-packages/revelation/datahandler/rvl.py", line 
183, in export_data
    xml += RevelationXML.export_data(self, entrystore, password, iter, level + 
1)
  File "/usr/lib/python2.4/site-packages/revelation/datahandler/rvl.py", line 
181, in export_data
    xml += tabs + "     <field id=\"%s\">%s</field>\n" % ( field.id, 
util.escape_markup(field.value) )
  File "/usr/lib/python2.4/site-packages/revelation/util.py", line 155, in 
escape_markup
    string = string.replace("&", "&amp;")
AttributeError: 'NoneType' object has no attribute 'replace'


Workaround: Fill in fpm all username and url entries with some characters, then 
import.


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.18-20080502 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages revelation depends on:
ii  cracklib2                2.7-19.1        pro-active password checker librar
ii  gconf2                   2.22.0-1        GNOME configuration database syste
ii  gnome-icon-theme         2.22.0-1        GNOME Desktop icon theme
ii  libc6                    2.7-10          GNU C Library: Shared libraries
ii  python                   2.5.2-1         An interactive high-level object-o
ii  python-central           0.6.6           register and build utility for Pyt
ii  python-crypto            2.0.1+dfsg1-2.1 cryptographic algorithms and proto
ii  python-gnome2            2.22.0-1        Python bindings for the GNOME desk
ii  python-gnome2-extras     2.14.3-1+b1     Python bindings for the GNOME desk
ii  python-gtk2              2.12.1-1        Python bindings for the GTK+ widge
ii  python-xml               0.8.4-10        XML tools for Python
ii  python2.4                2.4.5-2         An interactive high-level object-o
ii  shared-mime-info         0.23-5          FreeDesktop.org shared MIME databa

revelation recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to