On Thu, Aug 28, 2014 at 9:20 PM, Daniel <[email protected]> wrote:
> Here's my code I need help with.
>
> https://gist.github.com/anonymous/16c7dd14185c9b5ce2b4
>
> I can uncomment line 35 and comment line 36 and get it to work., but I need
> line 36 to work.  I try different avenues and get the same build error and
> nothing else.  This is the only time I have had a serious problem with
> python error messages, but I am young in this.

The code is a little confusing in terms of arguments:
* Line 44 sends a tuple to check_authorized as the variable named "role".
* This variable passed is completely ignored because the function
"wrapped" overrides it with it's own function argument called "role".
* Line 12 will always return True, but I assume this is just testing
before you get real stuff going.
* Line 13 sends two arguments to function "func" which is another name
for "principal" which is defined to only take one argument.

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to