'Support for sharable URL for each repository owner\'s tools, e.g. http://example.org/view/owner.'

@web.expose
def sharable_owner(self, trans, owner):

    try:
        user = common_util.get_user_by_username(trans, owner)
    except:
        user = None
    if user:
        user_id = trans.security.encode_id(user.id)
        return trans.response.send_redirect(web.url_for(controller='repository', action='index', user_id=user_id))
    else:
        return trans.show_error_message(('The    tool    shed    <b>%s</b>    contains    no    repositories    owned    by    <b>%s</b>.' % (web.url_for('/', qualified=True).rstrip('/'), str(owner))))
