This repository has been archived by the owner on Jul 11, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[svn r338] going to the standard /trunk/tags/branches organisation
- Loading branch information
dwt
committed
Nov 11, 2009
0 parents
commit 7f417ad
Showing
370 changed files
with
25,083 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
|
||
Copyright (c) 2009, Friedrich Lindenberg <friedrich@pudo.org> | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions | ||
are met: | ||
|
||
* Redistributions of source code must retain the above copyright notice, | ||
this list of conditions and the following disclaimer. | ||
* Redistributions in binary form must reproduce the above copyright notice, | ||
this list of conditions and the following disclaimer in the documentation | ||
and/or other materials provided with the distribution. | ||
* The names of its contributors may be used to endorse or promote products | ||
derived from this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE | ||
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
POSSIBILITY OF SUCH DAMAGE. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
include adhocracy/config/deployment.ini_tmpl | ||
recursive-include adhocracy/public * | ||
recursive-include adhocracy/templates * |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
|
||
Adhocracy Liquid Democracy Implementation | ||
========================================= | ||
|
||
|
||
|
||
Memcache | ||
====================== | ||
|
||
Adhocracy uses Memcache to cache results such as rendered pages | ||
and results from time-intensive computations. To use memcache, | ||
uncomment the memcache config line in your .ini file and point it | ||
to a running instance of memcache. | ||
|
||
If no memcache is configured or available, Adhocracy should still | ||
function, but displaying motions that have a lot of votes can take | ||
a long time. | ||
|
||
Installation and Setup | ||
====================== | ||
|
||
Install ``adhocracy`` using easy_install:: | ||
|
||
easy_install adhocracy | ||
|
||
Make a config file as follows:: | ||
|
||
paster make-config adhocracy config.ini | ||
|
||
Tweak the config file as appropriate and then setup the application:: | ||
|
||
paster setup-app config.ini | ||
|
||
Then you are ready to go. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import os, sys | ||
sys.path.append('/home/fl/web/adhocracy.cc') | ||
os.environ['PYTHON_EGG_CACHE'] = '/home/fl/web/adhocracy.cc/data/eggs' | ||
|
||
from paste.deploy import loadapp | ||
|
||
application = loadapp('config:/home/fl/web/adhocracy.cc/deploy.ini') |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Metadata-Version: 1.0 | ||
Name: adhocracy | ||
Version: 0.1dev-r0 | ||
Summary: Community decision process manager | ||
Home-page: http://www.adhocracy.de | ||
Author: Friedrich Lindenberg | ||
Author-email: friedrich@adhocracy.de | ||
License: UNKNOWN | ||
Description: UNKNOWN | ||
Platform: UNKNOWN |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,203 @@ | ||
MANIFEST.in | ||
README.txt | ||
adhoc.wsgi | ||
adhocracy_mate.tmproj | ||
development.ini | ||
ez_setup.py | ||
setup.cfg | ||
setup.py | ||
test.ini | ||
adhocracy/__init__.py | ||
adhocracy/websetup.py | ||
adhocracy.egg-info/PKG-INFO | ||
adhocracy.egg-info/SOURCES.txt | ||
adhocracy.egg-info/dependency_links.txt | ||
adhocracy.egg-info/entry_points.txt | ||
adhocracy.egg-info/not-zip-safe | ||
adhocracy.egg-info/paster_plugins.txt | ||
adhocracy.egg-info/requires.txt | ||
adhocracy.egg-info/top_level.txt | ||
adhocracy/config/__init__.py | ||
adhocracy/config/deployment.ini_tmpl | ||
adhocracy/config/environment.py | ||
adhocracy/config/middleware.py | ||
adhocracy/config/routing.py | ||
adhocracy/contrib/__init__.py | ||
adhocracy/contrib/markdown2.py | ||
adhocracy/controllers/__init__.py | ||
adhocracy/controllers/account.py | ||
adhocracy/controllers/admin.py | ||
adhocracy/controllers/category.py | ||
adhocracy/controllers/comment.py | ||
adhocracy/controllers/delegation.py | ||
adhocracy/controllers/editor.py | ||
adhocracy/controllers/error.py | ||
adhocracy/controllers/event.py | ||
adhocracy/controllers/instance.py | ||
adhocracy/controllers/motion.py | ||
adhocracy/controllers/page.py | ||
adhocracy/controllers/root.py | ||
adhocracy/controllers/search.py | ||
adhocracy/controllers/vote.py | ||
adhocracy/lib/__init__.py | ||
adhocracy/lib/app_globals.py | ||
adhocracy/lib/auth.py | ||
adhocracy/lib/base.py | ||
adhocracy/lib/browser.py | ||
adhocracy/lib/commenting.py | ||
adhocracy/lib/decision.py | ||
adhocracy/lib/helpers.py | ||
adhocracy/lib/i18n.py | ||
adhocracy/lib/install.py | ||
adhocracy/lib/modtoken.py | ||
adhocracy/lib/social.py | ||
adhocracy/lib/state.py | ||
adhocracy/lib/version.py | ||
adhocracy/lib/voting.py | ||
adhocracy/lib/cache/__init__.py | ||
adhocracy/lib/cache/invalidate.py | ||
adhocracy/lib/cache/util.py | ||
adhocracy/lib/event/__init__.py | ||
adhocracy/lib/event/event.py | ||
adhocracy/lib/event/formatting.py | ||
adhocracy/lib/event/panel.py | ||
adhocracy/lib/event/query.py | ||
adhocracy/lib/event/stats.py | ||
adhocracy/lib/event/types.py | ||
adhocracy/lib/event/util.py | ||
adhocracy/lib/instance/__init__.py | ||
adhocracy/lib/instance/browser.py | ||
adhocracy/lib/instance/discriminator.py | ||
adhocracy/lib/search/__init__.py | ||
adhocracy/lib/search/index.py | ||
adhocracy/lib/search/motion.py | ||
adhocracy/lib/text/__init__.py | ||
adhocracy/lib/text/diff.py | ||
adhocracy/model/__init__.py | ||
adhocracy/model/annotation.py | ||
adhocracy/model/category.py | ||
adhocracy/model/comment.py | ||
adhocracy/model/delegateable.py | ||
adhocracy/model/delegation.py | ||
adhocracy/model/filter.py | ||
adhocracy/model/forms.py | ||
adhocracy/model/group.py | ||
adhocracy/model/hooks.py | ||
adhocracy/model/instance.py | ||
adhocracy/model/membership.py | ||
adhocracy/model/meta.py | ||
adhocracy/model/motion.py | ||
adhocracy/model/permission.py | ||
adhocracy/model/revision.py | ||
adhocracy/model/transition.py | ||
adhocracy/model/user.py | ||
adhocracy/model/vote.py | ||
adhocracy/public/.DS_Store | ||
adhocracy/public/favicon.ico | ||
adhocracy/public/robots.txt | ||
adhocracy/public/img/.DS_Store | ||
adhocracy/public/img/about.gif | ||
adhocracy/public/img/adhocracy_button.png | ||
adhocracy/public/img/adhocracy_large.png | ||
adhocracy/public/img/header_bg.png | ||
adhocracy/public/img/logo.png | ||
adhocracy/public/img/page_bg.png | ||
adhocracy/public/img/welcome_logo.png | ||
adhocracy/public/img/icons/.DS_Store | ||
adhocracy/public/img/icons/abstain.png | ||
adhocracy/public/img/icons/alt_nay.png | ||
adhocracy/public/img/icons/aye.png | ||
adhocracy/public/img/icons/cancel.png | ||
adhocracy/public/img/icons/category_create.png | ||
adhocracy/public/img/icons/delete.png | ||
adhocracy/public/img/icons/diff.png | ||
adhocracy/public/img/icons/edit.png | ||
adhocracy/public/img/icons/history.png | ||
adhocracy/public/img/icons/manage.png | ||
adhocracy/public/img/icons/motion_back.png | ||
adhocracy/public/img/icons/motion_create.png | ||
adhocracy/public/img/icons/motions.png | ||
adhocracy/public/img/icons/nay.png | ||
adhocracy/public/img/icons/save.png | ||
adhocracy/public/img/icons/search.png | ||
adhocracy/public/img/icons/settings.png | ||
adhocracy/public/img/icons/votes.png | ||
adhocracy/public/js/.DS_Store | ||
adhocracy/public/js/adhocracy.js | ||
adhocracy/public/js/jquery.autocomplete.min.js | ||
adhocracy/public/style/.DS_Store | ||
adhocracy/public/style/base.css | ||
adhocracy/public/style/iphone.css | ||
adhocracy/templates/components.html | ||
adhocracy/templates/index.html | ||
adhocracy/templates/sitemap.xml | ||
adhocracy/templates/template.html | ||
adhocracy/templates/template_browse.html | ||
adhocracy/templates/template_doc.html | ||
adhocracy/templates/template_entity.html | ||
adhocracy/templates/account/login.html | ||
adhocracy/templates/account/login_form.html | ||
adhocracy/templates/account/manage.html | ||
adhocracy/templates/account/motions.html | ||
adhocracy/templates/account/parts.html | ||
adhocracy/templates/account/register_form.html | ||
adhocracy/templates/account/settings.html | ||
adhocracy/templates/account/view.html | ||
adhocracy/templates/account/votes.html | ||
adhocracy/templates/admin/members.html | ||
adhocracy/templates/admin/permissions.html | ||
adhocracy/templates/category/create.html | ||
adhocracy/templates/category/edit.html | ||
adhocracy/templates/category/tree.html | ||
adhocracy/templates/category/view.html | ||
adhocracy/templates/comment/inline.html | ||
adhocracy/templates/comment/listing.html | ||
adhocracy/templates/comment/parts.html | ||
adhocracy/templates/delegation/create.html | ||
adhocracy/templates/delegation/graph.dot | ||
adhocracy/templates/delegation/review.html | ||
adhocracy/templates/error/http.html | ||
adhocracy/templates/event/all.html | ||
adhocracy/templates/event/panel.html | ||
adhocracy/templates/instance/browse.html | ||
adhocracy/templates/instance/create.html | ||
adhocracy/templates/instance/edit.html | ||
adhocracy/templates/instance/news.html | ||
adhocracy/templates/motion/browse.html | ||
adhocracy/templates/motion/create.html | ||
adhocracy/templates/motion/diff.html | ||
adhocracy/templates/motion/edit.html | ||
adhocracy/templates/motion/history.html | ||
adhocracy/templates/motion/parts.html | ||
adhocracy/templates/motion/release.html | ||
adhocracy/templates/motion/view.html | ||
adhocracy/templates/motion/votes.html | ||
adhocracy/templates/search/results.html | ||
adhocracy/templates/static/about.html | ||
adhocracy/templates/static/faq.html | ||
adhocracy/templates/static/imprint.html | ||
adhocracy/templates/static/privacy.html | ||
adhocracy/templates/vote/browse.html | ||
adhocracy/tests/__init__.py | ||
adhocracy/tests/functional/__init__.py | ||
adhocracy/tests/functional/test_account.py | ||
adhocracy/tests/functional/test_admin.py | ||
adhocracy/tests/functional/test_category.py | ||
adhocracy/tests/functional/test_comment.py | ||
adhocracy/tests/functional/test_delegation.py | ||
adhocracy/tests/functional/test_editor.py | ||
adhocracy/tests/functional/test_event.py | ||
adhocracy/tests/functional/test_instance.py | ||
adhocracy/tests/functional/test_motion.py | ||
adhocracy/tests/functional/test_root.py | ||
adhocracy/tests/functional/test_search.py | ||
adhocracy/tests/functional/test_vote.py | ||
adhocracy/tests/lib/__init__.py | ||
adhocracy/tests/lib/test_event.py | ||
adhocracy/tests/model/__init__.py | ||
adhocracy/tests/model/test_user.py | ||
docs/index.txt | ||
graphics/BONSAI_TREES_Ligustrum.psd | ||
graphics/button.psd | ||
graphics/gradient.psd | ||
graphics/green_top.psd |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
[paste.app_factory] | ||
main = adhocracy.config.middleware:make_app | ||
|
||
[paste.app_install] | ||
main = pylons.util:PylonsInstaller | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
PasteScript | ||
Pylons |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Pylons>=0.9.7 | ||
SQLAlchemy>=0.5 | ||
FormEncode>=1.2.2 | ||
repoze.who>=1.0.15 | ||
repoze.what>=1.0.8 | ||
repoze.who.plugins.sa>=1.0rc2 | ||
repoze.what-pylons>=1.0 | ||
repoze.what.plugins.sql>=1.0rc1 | ||
repoze.who-friendlyform>=1.0b3 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
adhocracy |
Empty file.
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# | ||
# adhocracy - Pylons configuration | ||
# | ||
# The %(here)s variable will be replaced with the parent directory of this file | ||
# | ||
[DEFAULT] | ||
debug = true | ||
email_to = you@yourdomain.com | ||
smtp_server = localhost | ||
error_email_from = paste@localhost | ||
|
||
[server:main] | ||
use = egg:Paste#http | ||
host = 0.0.0.0 | ||
port = 5000 | ||
|
||
[app:main] | ||
use = egg:adhocracy | ||
full_stack = true | ||
static_files = true | ||
|
||
cache_dir = %(here)s/data | ||
beaker.session.key = adhocracy | ||
beaker.session.secret = ${app_instance_secret} | ||
app_instance_uuid = ${app_instance_uuid} | ||
|
||
# If you'd like to fine-tune the individual locations of the cache data dirs | ||
# for the Cache data, or the Session saves, un-comment the desired settings | ||
# here: | ||
#beaker.cache.data_dir = %(here)s/data/cache | ||
#beaker.session.data_dir = %(here)s/data/sessions | ||
|
||
# SQLAlchemy database URL | ||
sqlalchemy.url = sqlite:///production.db | ||
|
||
# WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* | ||
# Debug mode will enable the interactive debugging tool, allowing ANYONE to | ||
# execute malicious code after an exception is raised. | ||
set debug = false | ||
|
||
|
||
# Logging configuration | ||
[loggers] | ||
keys = root | ||
|
||
[handlers] | ||
keys = console | ||
|
||
[formatters] | ||
keys = generic | ||
|
||
[logger_root] | ||
level = INFO | ||
handlers = console | ||
|
||
[handler_console] | ||
class = StreamHandler | ||
args = (sys.stderr,) | ||
level = NOTSET | ||
formatter = generic | ||
|
||
[formatter_generic] | ||
format = %(asctime)s %(levelname)-5.5s [%(name)s] %(message)s |
Oops, something went wrong.