@Anthony, Unfortunately, this code from the other thread does not work for my Eclipse installation:
if 0:
from gluon.dal import DAL
from gluon.tools import Auth
db = DAL()
auth = Auth()
The only thing that has worked so far is Pierre's implementation,
which is (no offense) unbelievably ugly (but effective).

