thirdparty/google_appengine/lib/django/tests/regressiontests/templates/views.py
author Todd Larsen <tlarsen@google.com>
Wed, 01 Oct 2008 00:41:18 +0000
changeset 222 63e5f42e2e83
parent 109 620f9b141567
permissions -rwxr-xr-x
Add lots of new functions to key_name.py, including path/link_name processing. Copy various link_name related regex patterns to key_name.py and use them. Add error checking that raises a key_name.Error exception when name...() functions are given empty arguments. Hard-code class names, since they match what was typed into the module.class.__name__ to get the name anyway. This eliminates dependencies on any modules by key_name.py.

# Fake views for testing url reverse lookup

def index(request):
    pass

def client(request, id):
    pass

def client_action(request, id, action):
    pass