Hello Samuele,

Ok, I've done my cleanup of my script, as it was my first mod_python
program, with my first intreaction with Invenio api, so there were a few
warnings left.

Now that I've isolated my bug, it is related to this:

 def index(req, recid=''):
    req.content_type = "text/html"
    req.send_http_header()
    script = os.path.basename(req.filename)

The «AttributeError: unreadable attribute» is this req.filename, because
if I replace it with a string, it works.

Is there an alternative for knowing the name of the script?  If not,
I'll hardcode it, no problem.

Thanks,

Ferran

Reply via email to