+
+ def view(self, name):
+ """Userpage."""
+
+ try:
+ c.this_user = User.get_by(name=name)
+ except NoResultFound:
+ abort(404)
+
+ rels = UserRelationship.query.filter_by(
+ user_id=c.user.id,
+ target_user_id=c.this_user.id,
+ ).all()
+
+ c.relationships = [_.type for _ in rels]
+
+ return render('/users/view.mako')