Example #1
0
def format_nested_object(string, env, inner_map):
    name = string.strip()
    if name in inner_map:
        return ' <a href="/id/%s">%s</a>' % (get_id(inner_map[name]), name)
    return string
Example #2
0
def format_variable(string, env, inner_map):
    value = env.get(string)
    if value is not None:
        return '<a href="/id/%s">%s</a>' % (get_id(get_editor(value)), string)
    return string
Example #3
0
File: rest.py Project: void4/hmph
 def post_makeaccount(self, http):
     import builtin
     account = builtin.make_account()
     add_account(get_id(account))
     http.redirect('%s' % get_uri(account))
Example #4
0
File: rest.py Project: darius/hmph
 def post_makeaccount(self, http):
     import builtin
     account = builtin.make_account()
     add_account(get_id(account))
     http.redirect('%s' % get_uri(account))
Example #5
0
def format_nested_object(string, env, inner_map):
    name = string.strip()
    if name in inner_map:
        return ' <a href="/id/%s">%s</a>' % (get_id(inner_map[name]), name)
    return string
Example #6
0
def format_variable(string, env, inner_map):
    value = env.get(string)
    if value is not None:
        return '<a href="/id/%s">%s</a>' % (get_id(get_editor(value)), string)
    return string