neue Verzeichnissstruktur
This commit is contained in:
15
utils/html5/views.py
Normal file
15
utils/html5/views.py
Normal file
@@ -0,0 +1,15 @@
|
||||
'''
|
||||
Created on 05.08.2011
|
||||
|
||||
@author: christian
|
||||
'''
|
||||
from django.http import Http404
|
||||
from . import registry
|
||||
|
||||
|
||||
def get_lookup(request, lookup_name):
|
||||
lookup_cls = registry.get(lookup_name)
|
||||
if lookup_cls is None:
|
||||
raise Http404(u'Lookup %s not found' % lookup_name)
|
||||
lookup = lookup_cls()
|
||||
return lookup.results(request)
|
||||
Reference in New Issue
Block a user