[Urwid] buggy search on the website

Goffi goffi at goffi.org
Tue Jan 28 06:47:05 EST 2014


G'day,

just for the record, the quick search in urwid doc is buggy. If I do a search 
e.g. on http://excess.org/urwid/docs/reference/index.html#urwid-reference, i 
have the traceback below.

Cheers
Goffi

Traceback (most recent call last):
  File "/usr/local/lib/python2.5/site-packages/Trac-0.11.3-
py2.5.egg/trac/web/api.py", line 367, in send_error
    'text/html')
  File "/usr/local/lib/python2.5/site-packages/Trac-0.11.3-
py2.5.egg/trac/web/chrome.py", line 708, in render_template
    data = self.populate_data(req, data)
  File "/usr/local/lib/python2.5/site-packages/Trac-0.11.3-
py2.5.egg/trac/web/chrome.py", line 618, in populate_data
    d['chrome'].update(req.chrome)
  File "/usr/local/lib/python2.5/site-packages/Trac-0.11.3-
py2.5.egg/trac/web/api.py", line 194, in __getattr__
    value = self.callbacks[name](self)
  File "/usr/local/lib/python2.5/site-packages/Trac-0.11.3-
py2.5.egg/trac/web/chrome.py", line 476, in prepare_request
    for category, name, text in contributor.get_navigation_items(req):
  File "/usr/local/lib/python2.5/site-packages/Trac-0.11.3-
py2.5.egg/trac/ticket/web_ui.py", line 163, in get_navigation_items
    if 'TICKET_CREATE' in req.perm:
  File "/usr/local/lib/python2.5/site-packages/Trac-0.11.3-
py2.5.egg/trac/perm.py", line 524, in has_permission
    return self._has_permission(action, resource)
  File "/usr/local/lib/python2.5/site-packages/Trac-0.11.3-
py2.5.egg/trac/perm.py", line 538, in _has_permission
    check_permission(action, perm.username, resource, perm)
  File "/usr/local/lib/python2.5/site-packages/Trac-0.11.3-
py2.5.egg/trac/perm.py", line 425, in check_permission
    perm)
  File "/usr/local/lib/python2.5/site-packages/Trac-0.11.3-
py2.5.egg/trac/perm.py", line 282, in check_permission
    get_user_permissions(username)
  File "/usr/local/lib/python2.5/site-packages/Trac-0.11.3-
py2.5.egg/trac/perm.py", line 357, in get_user_permissions
    for perm in self.store.get_user_permissions(username):
  File "/usr/local/lib/python2.5/site-packages/Trac-0.11.3-
py2.5.egg/trac/perm.py", line 173, in get_user_permissions
    db = self.env.get_db_cnx()
  File "/usr/local/lib/python2.5/site-packages/Trac-0.11.3-
py2.5.egg/trac/env.py", line 273, in get_db_cnx
    return DatabaseManager(self).get_connection()
  File "/usr/local/lib/python2.5/site-packages/Trac-0.11.3-
py2.5.egg/trac/db/api.py", line 76, in get_connection
    return self._cnx_pool.get_cnx(self.timeout or None)
  File "/usr/local/lib/python2.5/site-packages/Trac-0.11.3-
py2.5.egg/trac/db/pool.py", line 174, in get_cnx
    return _backend.get_cnx(self._connector, self._kwargs, timeout)
  File "/usr/local/lib/python2.5/site-packages/Trac-0.11.3-
py2.5.egg/trac/db/pool.py", line 107, in get_cnx
    cnx = connector.get_connection(**kwargs)
  File "/usr/local/lib/python2.5/site-packages/Trac-0.11.3-
py2.5.egg/trac/db/sqlite_backend.py", line 126, in get_connection
    return SQLiteConnection(path, params)
  File "/usr/local/lib/python2.5/site-packages/Trac-0.11.3-
py2.5.egg/trac/db/sqlite_backend.py", line 168, in __init__
    % (getuser(), path))
TracError: The user www-data requires read _and_ write permission to the 
database file /var/local/trac/urwid/db/trac.db and the directory it is located 
in.




More information about the Urwid mailing list