Skip to content
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.

Commit

Permalink
coverage --> 100%
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed May 25, 2009
1 parent 69f2042 commit c5c9a5f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/z3c/layer/pagelet/browser/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,10 @@ def logout_supported(request):

def get_view_url(context, request, view_name):
"Compute the url of a view."
view_name_truncated = False
if view_name.startswith('@@'):
view_name = view_name[2:]
view_name_truncated = True
else:
view_name_truncated = False
view = zope.component.getMultiAdapter((context, request), name=view_name)
view_url = zope.component.getMultiAdapter(
(view, request), name='absolute_url')()
Expand Down

0 comments on commit c5c9a5f

Please sign in to comment.