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)
% endif
% endif
-<%! from floof.lib.search import parse %>
+<%! from floof.lib.tags import parse %>
% for gallery in c.this_user.primary_page.galleries:
<h2>${gallery.string}</h2>
-${macros.thumbs(parse(gallery.string))}
+${macros.thumbs(parse(gallery.search.string))}
% endfor