[documancer] Re: [documancer-users] a few bugs?

Vaclav Slavik <[email protected]>
Newsgroups gmane.editors.poedit.user
Message-ID <200312111054.23616.vaclav.slavik__21226.5359740288$1077448319@matfyz.cz>
Hi,

(sorry for late reply, I was away during the weekend and was a bit 
busy ever since)

Arnd Baecker wrote:
> When doing a few tests with documancer I observed
> a couple of points (I don't know if they have been mentioned
> before, but on sourceforge
> there is no archive to the mailing list yet).

That's because you're the first one to post to it ;)

> a) It would be nice to have the "Adding Books" section and
>    the "Keyboard shortcuts" of the README
>    accessible from the "Help" menu of the documancer

You're right -- I didn't do it yet because there are so many things to 
do in Documancer...

> b) Adding a book:
>    I did: File/Manage Books/New Book,
>     HTML: /home/python/PYTHON_TST/docs/Python-Docs-2.3.2/index.html
>    and enabled fulltext search.
>
>     After this the corresponding Book "PythonHtml"
>     is the active book is only listed when one clicks on
>     the "books selection"
>
>     Typing "print" in the search field gives:
>
>   File "/home/python/PYTHON_TST/lib/documancer/gui/MainFrame.py",
> line 313, in OnSearch
>     for title, url, score in indexer.search(self.currentBook,
> query): File "/home/python/PYTHON_TST/lib/documancer/indexer.py",
> line 121, in search
>     __ensureBookIndexValidity(b)
>   File "/home/python/PYTHON_TST/lib/documancer/indexer.py", line
> 108, in __ensureBookIndexValidity
>     if b.getAttr(book.ATTR_DIRTY) == '1':
> AttributeError: 'NoneType' object has no attribute 'getAttr'

If the book wasn't selected, right? Thanks, I fixed it CVS -- it 
should no longer be possible to end up w/o some book selected unless 
you don't have any books at all.

>     One minor point: changing "full-text search" to disabled in the
>     Bookmanager gives when no book is selected (the first time)
>
> Traceback (most recent call last):
>   File
> "/home/python/PYTHON_TST/lib/documancer/gui/BooksManagerDialog.py",
> line 161, in OnSettingsChange
>     self.UpdateBook()
>   File
> "/home/python/PYTHON_TST/lib/documancer/gui/BooksManagerDialog.py",
> line 221, in UpdateBook
>     self.SetConfigPanel(book.provider)
>   File
> "/home/python/PYTHON_TST/lib/documancer/gui/BooksManagerDialog.py",
> line 143, in SetConfigPanel
>     panel = providers.providers[provider].\
> KeyError: ''

Thanks, fixed as well.

> c) For pydoc: site-packages/wxPython/wx:
>     either: crashes
>     or: mouse pointer with watch - application hangs
>
>     However, other texts work, so this might be caused by wx ?

Rather by the way pydoc works -- it imports the modules and this may 
cause problems if the module does some initialization immediately 
when imported. The only safe fix seems to be to abandon pydoc and use 
epydoc or HappyDoc to generate documentation from Python sources. 
That or running pydoc in separate process.

> d) Searching for something with pydoc: it seems that
>    generating the index  does not come to an end.

It's possible that it takes *really* long to index everything. Or that 
it hands when it tries to fetch wxPython files, see c).

> e) Presently it seems that it is not possible that
>    two different users run documancer on the
>    same machine ("Address already in use").
>    In the longer run I would like to run documancer on a cluster
>    with several users logged in. Is there any possibility for this
>    in principle?

Yes, sure -- all I need to do is to somehow (I didn't try to find out 
how yet, so if you know, tell me!) detect unused port(s) and use it 
instead of fixed one.

> I also have a couple of wish-list points, however they need
> a bit more thinking ...

Looking forward to them ;)

Thanks,
Vaclav

-- 
PGP key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x465264C9
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD4DBQA/2D7PxDYa/UZSZMkRAvttAJd7dDJz+UNGlSBWSTmL5ZoKibN6AKCKcK2d
MFFgteU4+bB8JrwPxJJG+Q==
=TEV8
-----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.