[view] fix TypeError when calling req.view('vid', entity=entity) (closes #1947474)
# copyright %(year)s %(author)s, all rights reserved.# contact %(author-web-site)s -- mailto:%(author-email)s#%(long-license)s"""%(distname)s specific hooks and operations"""