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
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
def post_makeaccount(self, http): import builtin account = builtin.make_account() add_account(get_id(account)) http.redirect('%s' % get_uri(account))