[documancer] Re: [documancer-users] a few bugs?
Status: Beta
Brought to you by:
vaclavslavik
|
From: Vaclav S. <vac...@ma...> - 2003-12-11 09:56:51
|
Hi,
(sorry for late reply, I was away during the weekend and was a bit=20
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=20
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) =3D=3D '1':
> AttributeError: 'NoneType' object has no attribute 'getAttr'
If the book wasn't selected, right? Thanks, I fixed it CVS -- it=20
should no longer be possible to end up w/o some book selected unless=20
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 =3D 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=20
cause problems if the module does some initialization immediately=20
when imported. The only safe fix seems to be to abandon pydoc and use=20
epydoc or HappyDoc to generate documentation from Python sources.=20
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=20
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=20
how yet, so if you know, tell me!) detect unused port(s) and use it=20
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
=2D-=20
PGP key: http://pgp.mit.edu:11371/pks/lookup?op=3Dget&search=3D0x465264C9
|