On 11 May 2011 15:25, Gavin Panella <[email protected]> wrote:
[...]
> 4. Calling create_initialized_view() with the default arguments for
>   current_request (False) and principal (None) can cause confusion:
>
>     >>> login_person(fred)
>     >>> view = create_initialized_view(thing, "+someview")
>     >>> get_current_principal().person == fred
>     True
>     >>> view.request.principal == fred
>     False

That should be:

     >>> view.request.principal == get_current_principal()
     False

_______________________________________________
Mailing list: https://launchpad.net/~launchpad-dev
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~launchpad-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to