diff options
-rw-r--r-- | bootstrap.py | 77 | ||||
-rw-r--r-- | buildout.cfg | 26 | ||||
-rw-r--r-- | choice_seeker/README.rst (renamed from README.rst) | 0 | ||||
-rw-r--r-- | choice_seeker/__init__.py (renamed from __init__.py) | 0 | ||||
-rw-r--r-- | choice_seeker/allotter/__init__.py (renamed from allotter/__init__.py) | 0 | ||||
-rw-r--r-- | choice_seeker/allotter/admin.py (renamed from allotter/admin.py) | 0 | ||||
-rw-r--r-- | choice_seeker/allotter/forms.py (renamed from allotter/forms.py) | 0 | ||||
-rw-r--r-- | choice_seeker/allotter/management/__init__.py (renamed from allotter/management/__init__.py) | 0 | ||||
-rw-r--r-- | choice_seeker/allotter/management/commands/__init__.py (renamed from allotter/management/commands/__init__.py) | 0 | ||||
-rw-r--r-- | choice_seeker/allotter/management/commands/loadexam.py (renamed from allotter/management/commands/loadexam.py) | 0 | ||||
-rw-r--r-- | choice_seeker/allotter/management/commands/loadoptions.py (renamed from allotter/management/commands/loadoptions.py) | 0 | ||||
-rw-r--r-- | choice_seeker/allotter/management/commands/loadusers.py (renamed from allotter/management/commands/loadusers.py) | 0 | ||||
-rw-r--r-- | choice_seeker/allotter/models.py (renamed from allotter/models.py) | 0 | ||||
-rw-r--r-- | choice_seeker/allotter/templatetags/__init__.py (renamed from allotter/templatetags/__init__.py) | 0 | ||||
-rw-r--r-- | choice_seeker/allotter/templatetags/range_filter.py (renamed from allotter/templatetags/range_filter.py) | 0 | ||||
-rw-r--r-- | choice_seeker/allotter/tests.py (renamed from allotter/tests.py) | 0 | ||||
-rw-r--r-- | choice_seeker/allotter/urls.py (renamed from allotter/urls.py) | 0 | ||||
-rw-r--r-- | choice_seeker/allotter/views.py (renamed from allotter/views.py) | 0 | ||||
-rwxr-xr-x | choice_seeker/manage.py (renamed from manage.py) | 0 | ||||
-rw-r--r-- | choice_seeker/settings.py (renamed from settings.py) | 0 | ||||
-rw-r--r-- | choice_seeker/template/allotter/apply.html (renamed from template/allotter/apply.html) | 0 | ||||
-rw-r--r-- | choice_seeker/template/allotter/complete.html (renamed from template/allotter/complete.html) | 0 | ||||
-rw-r--r-- | choice_seeker/template/allotter/details.html (renamed from template/allotter/details.html) | 0 | ||||
-rw-r--r-- | choice_seeker/template/allotter/hello.html (renamed from template/allotter/hello.html) | 0 | ||||
-rw-r--r-- | choice_seeker/template/allotter/login.html (renamed from template/allotter/login.html) | 0 | ||||
-rw-r--r-- | choice_seeker/template/allotter/register.html (renamed from template/allotter/register.html) | 0 | ||||
-rw-r--r-- | choice_seeker/template/base.html (renamed from template/base.html) | 0 | ||||
-rw-r--r-- | choice_seeker/urls.py (renamed from urls.py) | 0 |
28 files changed, 103 insertions, 0 deletions
diff --git a/bootstrap.py b/bootstrap.py new file mode 100644 index 0000000..7728587 --- /dev/null +++ b/bootstrap.py @@ -0,0 +1,77 @@ +############################################################################## +# +# Copyright (c) 2006 Zope Corporation and Contributors. +# All Rights Reserved. +# +# This software is subject to the provisions of the Zope Public License, +# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. +# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED +# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS +# FOR A PARTICULAR PURPOSE. +# +############################################################################## +"""Bootstrap a buildout-based project + +Simply run this script in a directory containing a buildout.cfg. +The script accepts buildout command-line options, so you can +use the -c option to specify an alternate configuration file. + +$Id$ +""" + +import os, shutil, sys, tempfile, urllib2 + +tmpeggs = tempfile.mkdtemp() + +is_jython = sys.platform.startswith('java') + +try: + import pkg_resources +except ImportError: + ez = {} + exec urllib2.urlopen('http://peak.telecommunity.com/dist/ez_setup.py' + ).read() in ez + ez['use_setuptools'](to_dir=tmpeggs, download_delay=0) + + import pkg_resources + +if sys.platform == 'win32': + def quote(c): + if ' ' in c: + return '"%s"' % c # work around spawn lamosity on windows + else: + return c +else: + def quote (c): + return c + +cmd = 'from setuptools.command.easy_install import main; main()' +ws = pkg_resources.working_set + +if is_jython: + import subprocess + + assert subprocess.Popen([sys.executable] + ['-c', quote(cmd), '-mqNxd', + quote(tmpeggs), 'zc.buildout'], + env=dict(os.environ, + PYTHONPATH= + ws.find(pkg_resources.Requirement.parse('setuptools')).location + ), + ).wait() == 0 + +else: + assert os.spawnle( + os.P_WAIT, sys.executable, quote (sys.executable), + '-c', quote (cmd), '-mqNxd', quote (tmpeggs), 'zc.buildout', + dict(os.environ, + PYTHONPATH= + ws.find(pkg_resources.Requirement.parse('setuptools')).location + ), + ) == 0 + +ws.add_entry(tmpeggs) +ws.require('zc.buildout') +import zc.buildout.buildout +zc.buildout.buildout.main(sys.argv[1:] + ['bootstrap']) +shutil.rmtree(tmpeggs) diff --git a/buildout.cfg b/buildout.cfg new file mode 100644 index 0000000..517472e --- /dev/null +++ b/buildout.cfg @@ -0,0 +1,26 @@ +[buildout] +parts = + django + django-command-extensions +eggs = + South +versions = versions + +[versions] +django = 1.3 + +[django] +recipe = djangorecipe +project = aloha +settings = settings +wsgi = true +wsgilog=wsgi.log +eggs = + ${buildout:eggs} +extra-paths = + ${django-command-extensions:location} + aloha + +[django-command-extensions] +recipe = zerokspot.recipe.git +repository = http://github.com/django-extensions/django-extensions.git diff --git a/README.rst b/choice_seeker/README.rst index af82358..af82358 100644 --- a/README.rst +++ b/choice_seeker/README.rst diff --git a/__init__.py b/choice_seeker/__init__.py index e69de29..e69de29 100644 --- a/__init__.py +++ b/choice_seeker/__init__.py diff --git a/allotter/__init__.py b/choice_seeker/allotter/__init__.py index b48e5a0..b48e5a0 100644 --- a/allotter/__init__.py +++ b/choice_seeker/allotter/__init__.py diff --git a/allotter/admin.py b/choice_seeker/allotter/admin.py index 0c14e78..0c14e78 100644 --- a/allotter/admin.py +++ b/choice_seeker/allotter/admin.py diff --git a/allotter/forms.py b/choice_seeker/allotter/forms.py index 65e4cf6..65e4cf6 100644 --- a/allotter/forms.py +++ b/choice_seeker/allotter/forms.py diff --git a/allotter/management/__init__.py b/choice_seeker/allotter/management/__init__.py index e69de29..e69de29 100644 --- a/allotter/management/__init__.py +++ b/choice_seeker/allotter/management/__init__.py diff --git a/allotter/management/commands/__init__.py b/choice_seeker/allotter/management/commands/__init__.py index e69de29..e69de29 100644 --- a/allotter/management/commands/__init__.py +++ b/choice_seeker/allotter/management/commands/__init__.py diff --git a/allotter/management/commands/loadexam.py b/choice_seeker/allotter/management/commands/loadexam.py index 2fedb66..2fedb66 100644 --- a/allotter/management/commands/loadexam.py +++ b/choice_seeker/allotter/management/commands/loadexam.py diff --git a/allotter/management/commands/loadoptions.py b/choice_seeker/allotter/management/commands/loadoptions.py index f7c01e6..f7c01e6 100644 --- a/allotter/management/commands/loadoptions.py +++ b/choice_seeker/allotter/management/commands/loadoptions.py diff --git a/allotter/management/commands/loadusers.py b/choice_seeker/allotter/management/commands/loadusers.py index 99fd075..99fd075 100644 --- a/allotter/management/commands/loadusers.py +++ b/choice_seeker/allotter/management/commands/loadusers.py diff --git a/allotter/models.py b/choice_seeker/allotter/models.py index 9da8213..9da8213 100644 --- a/allotter/models.py +++ b/choice_seeker/allotter/models.py diff --git a/allotter/templatetags/__init__.py b/choice_seeker/allotter/templatetags/__init__.py index e69de29..e69de29 100644 --- a/allotter/templatetags/__init__.py +++ b/choice_seeker/allotter/templatetags/__init__.py diff --git a/allotter/templatetags/range_filter.py b/choice_seeker/allotter/templatetags/range_filter.py index 1ce43d8..1ce43d8 100644 --- a/allotter/templatetags/range_filter.py +++ b/choice_seeker/allotter/templatetags/range_filter.py diff --git a/allotter/tests.py b/choice_seeker/allotter/tests.py index 501deb7..501deb7 100644 --- a/allotter/tests.py +++ b/choice_seeker/allotter/tests.py diff --git a/allotter/urls.py b/choice_seeker/allotter/urls.py index 6556c62..6556c62 100644 --- a/allotter/urls.py +++ b/choice_seeker/allotter/urls.py diff --git a/allotter/views.py b/choice_seeker/allotter/views.py index fb819fc..fb819fc 100644 --- a/allotter/views.py +++ b/choice_seeker/allotter/views.py diff --git a/manage.py b/choice_seeker/manage.py index 3e4eedc..3e4eedc 100755 --- a/manage.py +++ b/choice_seeker/manage.py diff --git a/settings.py b/choice_seeker/settings.py index dd71bc4..dd71bc4 100644 --- a/settings.py +++ b/choice_seeker/settings.py diff --git a/template/allotter/apply.html b/choice_seeker/template/allotter/apply.html index 201e1f2..201e1f2 100644 --- a/template/allotter/apply.html +++ b/choice_seeker/template/allotter/apply.html diff --git a/template/allotter/complete.html b/choice_seeker/template/allotter/complete.html index 26ee46d..26ee46d 100644 --- a/template/allotter/complete.html +++ b/choice_seeker/template/allotter/complete.html diff --git a/template/allotter/details.html b/choice_seeker/template/allotter/details.html index 5beeb85..5beeb85 100644 --- a/template/allotter/details.html +++ b/choice_seeker/template/allotter/details.html diff --git a/template/allotter/hello.html b/choice_seeker/template/allotter/hello.html index 0d07c7f..0d07c7f 100644 --- a/template/allotter/hello.html +++ b/choice_seeker/template/allotter/hello.html diff --git a/template/allotter/login.html b/choice_seeker/template/allotter/login.html index 72769a0..72769a0 100644 --- a/template/allotter/login.html +++ b/choice_seeker/template/allotter/login.html diff --git a/template/allotter/register.html b/choice_seeker/template/allotter/register.html index d7d04b9..d7d04b9 100644 --- a/template/allotter/register.html +++ b/choice_seeker/template/allotter/register.html diff --git a/template/base.html b/choice_seeker/template/base.html index cd937ba..cd937ba 100644 --- a/template/base.html +++ b/choice_seeker/template/base.html diff --git a/urls.py b/choice_seeker/urls.py index f5fdfe0..f5fdfe0 100644 --- a/urls.py +++ b/choice_seeker/urls.py |