#!/usr/bin/python from settings import * import sys import os import string import re import urlparse import django pathsdict={ "ADMIN_MEDIA_PREFIX" : ADMIN_MEDIA_PREFIX, "ADMIN_MEDIA_PREFIX" : ADMIN_MEDIA_PREFIX, "CAVEDESCRIPTIONSX" : CAVEDESCRIPTIONS, "DIR_ROOT" : DIR_ROOT, #"EMAIL_HOST" : EMAIL_HOST, #"EMAIL_HOST_USER" : EMAIL_HOST_USER, "ENTRANCEDESCRIPTIONS" : ENTRANCEDESCRIPTIONS, "EXPOUSER_EMAIL" : EXPOUSER_EMAIL, "EXPOUSERPASS" :"", "EXPOUSER" : EXPOUSER, "EXPOWEB" : EXPOWEB, "EXPOWEB_URL" : EXPOWEB_URL, "FILES" : FILES, "JSLIB_URL" : JSLIB_URL, "LOGFILE" : LOGFILE, "LOGIN_REDIRECT_URL" : LOGIN_REDIRECT_URL, "MEDIA_ADMIN_DIR" : MEDIA_ADMIN_DIR, "MEDIA_ROOT" : MEDIA_ROOT, "MEDIA_URL" : MEDIA_URL, "PHOTOS_ROOT" : PHOTOS_ROOT, "PHOTOS_URL" : PHOTOS_URL, "PYTHON_PATH" : PYTHON_PATH, "REPOS_ROOT_PATH" : REPOS_ROOT_PATH, "ROOT_URLCONF" : ROOT_URLCONF, "STATIC_ROOT" : STATIC_ROOT, "STATIC_URL" : STATIC_URL, "SURVEX_DATA" : SURVEX_DATA, "SURVEY_SCANS" : SURVEY_SCANS, "SURVEYS" : SURVEYS, "SURVEYS_URL" : SURVEYS_URL, "SVX_URL" : SVX_URL, "TEMPLATE_DIRS" : TEMPLATE_DIRS, "THREEDCACHEDIR" : THREEDCACHEDIR, "TINY_MCE_MEDIA_ROOT" : TINY_MCE_MEDIA_ROOT, "TINY_MCE_MEDIA_URL" : TINY_MCE_MEDIA_URL, "TUNNEL_DATA" : TUNNEL_DATA, "URL_ROOT" : URL_ROOT } sep="\r\t\t\t" # ugh nasty - terminal output only sep2="\r\t\t\t\t\t\t\t" # ugh nasty - terminal output only bycodes = sorted(pathsdict) for p in bycodes: print p, sep , pathsdict[p] byvals = sorted(pathsdict, key=pathsdict.__getitem__) for p in byvals: print pathsdict[p] , sep2, p