Added python 2.3 fallback
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1709 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
e230de4ead
commit
9e4a9de0d5
|
@ -6,6 +6,10 @@ from django.core.exceptions import ImproperlyConfigured
|
||||||
import os, re, sys, textwrap
|
import os, re, sys, textwrap
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
|
|
||||||
|
#HACK: for Python2.3
|
||||||
|
if not hasattr(__builtins__,'set'):
|
||||||
|
from sets import Set as set
|
||||||
|
|
||||||
MODULE_TEMPLATE = ''' {%% if perms.%(app)s.%(addperm)s or perms.%(app)s.%(changeperm)s %%}
|
MODULE_TEMPLATE = ''' {%% if perms.%(app)s.%(addperm)s or perms.%(app)s.%(changeperm)s %%}
|
||||||
<tr>
|
<tr>
|
||||||
<th>{%% if perms.%(app)s.%(changeperm)s %%}<a href="%(app)s/%(mod)s/">{%% endif %%}%(name)s{%% if perms.%(app)s.%(changeperm)s %%}</a>{%% endif %%}</th>
|
<th>{%% if perms.%(app)s.%(changeperm)s %%}<a href="%(app)s/%(mod)s/">{%% endif %%}%(name)s{%% if perms.%(app)s.%(changeperm)s %%}</a>{%% endif %%}</th>
|
||||||
|
|
Loading…
Reference in New Issue