1. Gumption LLC
  2. agar
  3. Issues
Issue #8 resolved

create_logout_url taglib never made it to agar

Brian Michelich
created an issue

This is used by bbyoffer

class LogoutURLNode(Node): def init(self, logout_url): self.logout_url = logout_url

def render(self, context):
    from google.appengine.api.users import create_logout_url
    return create_logout_url(self.logout_url)

def create_logout_url(parser, token): try: tag_name, dest_url = token.split_contents() except ValueError: raise TemplateSyntaxError("%r tag requires a single argument" % token.contents.split()[0]) return LogoutURLNode(dest_url) create_logout_url = register.tag(create_logout_url)