app/django/bin/compile-messages.py
author Pawel Solyga <Pawel.Solyga@gmail.com>
Tue, 02 Dec 2008 17:14:18 +0000
changeset 646 860e17e5118f
parent 323 ff1a9aa48cfd
permissions -rwxr-xr-x
Remove cyclic imports by moving response method of out_of_band.Error class to soc.views.helper.responses module as errorResponse function. Apply changes to affected files. Patch by: Pawel Solyga

#!/usr/bin/env python

if __name__ == "__main__":
    import sys
    name = sys.argv[0]
    args = ' '.join(sys.argv[1:])
    print >> sys.stderr, "%s has been moved into django-admin.py" % name
    print >> sys.stderr, 'Please run "django-admin.py compilemessages %s" instead.'% args
    print >> sys.stderr
    sys.exit(1)