Dear Devin:

On Friday 27 June 2008, Devin Bougie wrote:
> On Jun 27, 2008, at 11:11 AM, Devin Bougie wrote:
> > I configured WebAccess so that only users attached to our "cleo"
> > role can submit or modify records of the "CLEO" doctype, as
> > instructed in the WebSubmit Admin Guide.  The restriction seems to
> > work properly, as users not attached to the "cleo" role are not able
> > to submit or modify these records.  However, we get the following
> > "too many values to unpack" error when a user who *is* connected to
> > the "cleo" role (and should have permission) tries to submit a new
> > "CLEO" record.
>
> It actually looks like we get this error when trying to submit *any*
> document as a user connected to the "cleo" role.
>
> Thanks again,
> Devin

Here's a patch that you can apply to 
lib/python/invenio/access_control_engine.py
with:
$> patch -p0 < access_control_engine.patch

After you have reloaded Apache it should fix the exception you have 
encountered.
Best regards,
        Samuele

-- 
.O.
..O
OOO
--- access_control_engine.py	2008-03-12 14:37:34.000000000 +0100
+++ access_control_engine-new.py	2008-07-03 13:41:56.000000000 +0200
@@ -329,7 +329,7 @@
                 raa.id_accARGUMENT = arg.id """ % (id_action, str_roles, str_args)
     else:
         query4 = """SELECT DISTINCT raa.id_accROLE, raa.id_accACTION, raa.argumentlistid,
-                raa.id_accARGUMENT, arg.keyword, arg.value, ar.firerole_def_ser
+                raa.id_accARGUMENT, arg.keyword, arg.value
                 FROM accROLE_accACTION_accARGUMENT raa INNER JOIN accROLE ar ON
                 raa.id_accROLE = ar.id, accARGUMENT arg
                 WHERE raa.id_accACTION = %s AND

Reply via email to