search is buggy in 1.2.6, remains buggy in 1.2.6.1

Yaroslav Halchenko <[email protected]>
Newsgroups gmane.comp.gnome.apps.pybliographer
Message-ID <[email protected]>
Dear Developers,

I've got report that pybliographer doesn't search well after being
upgraded. We are using debian here and the latest version is 1.2.6
Whenever I try to search I get

/usr/lib/python2.3/site-packages/gtk-2.0/gtk/__init__.py:90: GtkDeprecationWarning: gtk.load_font is deprecated, use gtk.gdk.Font instead
  self.warn(message, DeprecationWarning)
This is Pybliographic 1.2.6 [Python 2.3.5, Gtk 2.6.2, PyGTK 2.4.1]
/usr/lib/python2.3/site-packages/gtk-2.0/gtk/__init__.py:90: GtkDeprecationWarning: gtk.mainiteration is deprecated, use gtk.main_iteration instead
  self.warn(message, DeprecationWarning)
/usr/share/pybliographer/Pyblio/GnomeUI/Document.py:159: DeprecationWarning: use gtk.UIManager
  factory = gtk.ItemFactory (gtk.Menu, '<main>', None)
/usr/share/pybliographer/Pyblio/GnomeUI/FileSelector.py:104: DeprecationWarning: use gtk.ComboBox
  self.menu = gtk.OptionMenu ()
Traceback (most recent call last):
  File "/usr/share/pybliographer/Pyblio/GnomeUI/Search.py", line 239, in selection
    self.issue ('search-data', data)
  File "/usr/share/pybliographer/Pyblio/Connector.py", line 137, in issue
    apply(Issue, (self, channel,) + args)
  File "/usr/share/pybliographer/Pyblio/Connector.py", line 81, in Issue
    apply(func, args + fargs)
  File "/usr/share/pybliographer/Pyblio/GnomeUI/Document.py", line 664, in limit_view
    self.redisplay_index ()
  File "/usr/share/pybliographer/Pyblio/GnomeUI/Document.py", line 209, in redisplay_index
    self.index.display (self.selection.iterator (self.data.iterator ()))
  File "/usr/share/pybliographer/Pyblio/GnomeUI/Index.py", line 324, in display
    for entry in iterator:
  File "/usr/share/pybliographer/Pyblio/Iterator.py", line 32, in __iter__
    raise NotImplementedError
NotImplementedError

I decided to try the most recent 1.2.6.1, I packaged it for debian,
installed and then search works, but if I try to sort by some column I
get

/usr/lib/python2.3/site-packages/gtk-2.0/gtk/__init__.py:90: GtkDeprecationWarning: gtk.load_font is deprecated, use gtk.gdk.Font instead
  self.warn(message, DeprecationWarning)
This is Pybliographic 1.2.6.1 [Python 2.3.5, Gtk 2.6.2, PyGTK 2.4.1]
/usr/lib/python2.3/site-packages/gtk-2.0/gtk/__init__.py:90: GtkDeprecationWarning: gtk.mainiteration is deprecated, use gtk.main_iteration instead
  self.warn(message, DeprecationWarning)
/usr/share/pybliographer/Pyblio/GnomeUI/Document.py:159: DeprecationWarning: use gtk.UIManager
  factory = gtk.ItemFactory (gtk.Menu, '<main>', None)
/usr/share/pybliographer/Pyblio/GnomeUI/FileSelector.py:104: DeprecationWarning: use gtk.ComboBox
  self.menu = gtk.OptionMenu ()
Traceback (most recent call last):
  File "/usr/share/pybliographer/Pyblio/GnomeUI/Index.py", line 400, in click_column
    self.issue ('click-on-field', self.fields [column])
  File "/usr/share/pybliographer/Pyblio/Connector.py", line 137, in issue
    apply(Issue, (self, channel,) + args)
  File "/usr/share/pybliographer/Pyblio/Connector.py", line 81, in Issue
    apply(func, args + fargs)
  File "/usr/share/pybliographer/Pyblio/GnomeUI/Document.py", line 700, in sort_by_field
    self.redisplay_index ()
  File "/usr/share/pybliographer/Pyblio/GnomeUI/Document.py", line 209, in redisplay_index
    self.index.display (self.selection.iterator (self.data.iterator ()))
  File "/usr/share/pybliographer/Pyblio/Selection.py", line 128, in iterator
    SearchSelection (self.search, iterator))
  File "/usr/share/pybliographer/Pyblio/Selection.py", line 75, in __init__
    self.data = iterator.database or list(iterator)
AttributeError: SearchSelection instance has no attribute 'database'

and after that I keep getting same attributeError when I try to do
search

Traceback (most recent call last):
  File "/usr/share/pybliographer/Pyblio/GnomeUI/Search.py", line 239, in selection
    self.issue ('search-data', data)
  File "/usr/share/pybliographer/Pyblio/Connector.py", line 137, in issue
    apply(Issue, (self, channel,) + args)
  File "/usr/share/pybliographer/Pyblio/Connector.py", line 81, in Issue
    apply(func, args + fargs)
  File "/usr/share/pybliographer/Pyblio/GnomeUI/Document.py", line 664, in limit_view
    self.redisplay_index ()
  File "/usr/share/pybliographer/Pyblio/GnomeUI/Document.py", line 209, in redisplay_index
    self.index.display (self.selection.iterator (self.data.iterator ()))
  File "/usr/share/pybliographer/Pyblio/Selection.py", line 128, in iterator
    SearchSelection (self.search, iterator))
  File "/usr/share/pybliographer/Pyblio/Selection.py", line 75, in __init__
    self.data = iterator.database or list(iterator)
AttributeError: SearchSelection instance has no attribute 'database'


I would be glad to provide any other information to help to resolve the
problem

-- 
                                  .-.
=------------------------------   /v\  ----------------------------=
Keep in touch                    // \\     (yoh@|www.)onerussian.com
Yaroslav Halchenko              /(   )\               ICQ#: 60653192
                   Linux User    ^^-^^    [175555]
             Key  http://www.onerussian.com/gpg-yoh.asc
GPG fingerprint   3BB6 E124 0643 A615 6F00  6854 8D11 4563 75C0 24C8
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFCEAmljRFFY3XAJMgRAjNYAKCEhv91ZR/igkRKdtI6DmetOhMfewCffrG9
otFYLDfcEEejt3CdaYK9Fmw=
=aC9V
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.