import elixir
from dbhelpers import find_or_create
import re
+
+from pylons import c
+
def parse(search_string):
"""Parses a search query, and returns a query object on Art.
# This is a special tag; at the moment, by/for/of to indicate
# related users
prefix, tag = tag.split(':', 1)
+ if tag == 'me':
+ tag = c.user.name
# XXX what to do if this fails? abort? return empty query?
target_user = User.get_by(name=tag)