This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(deltamedix)ed@HinduKush:~/projects/deltamedix/deltamedix$ cat /etc/freetds/freetds.conf | |
# $Id: freetds.conf,v 1.12 2007/12/25 06:02:36 jklowden Exp $ | |
# | |
# This file is installed by FreeTDS if no file by the same | |
# name is found in the installation directory. | |
# | |
# For information about the layout of this file and its settings, | |
# see the freetds.conf manpage "man freetds.conf". | |
# Global settings are overridden by those in a database |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
from django.utils.text import compress_string | |
from django.utils.cache import patch_vary_headers | |
from django import http | |
try: | |
import settings | |
XS_SHARING_ALLOWED_ORIGINS = settings.XS_SHARING_ALLOWED_ORIGINS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
lockfile.py - Platform-independent advisory file locks. | |
Requires Python 2.5 unless you apply 2.4.diff | |
Locking is done on a per-thread basis instead of a per-process basis. | |
Usage: | |
>>> lock = LockFile('somefile') | |
>>> try: |