├── .hg ├── undo.bookmarks ├── undo.dirstate ├── branch ├── store │ ├── phaseroots │ ├── undo.phaseroots │ ├── 00changelog.i │ ├── 00manifest.i │ └── data │ │ ├── setup.py.i │ │ ├── ~2ehgtags.i │ │ ├── ~2ehgignore.i │ │ ├── _c_h_a_n_g_e_s.i │ │ ├── _r_e_a_d_m_e.i │ │ ├── docs │ │ ├── _makefile.i │ │ ├── conf.py.i │ │ ├── index.rst.i │ │ ├── producers │ │ │ ├── index.rst.i │ │ │ ├── live.rst.i │ │ │ ├── filters.rst.i │ │ │ ├── options.rst.i │ │ │ ├── download.rst.i │ │ │ ├── examples │ │ │ │ ├── index.rst.i │ │ │ │ ├── top__10.rst.i │ │ │ │ ├── categories.rst.i │ │ │ │ ├── count__bar.rst.i │ │ │ │ ├── images │ │ │ │ │ ├── _top10.png.i │ │ │ │ │ ├── _bar_chart_report.png.i │ │ │ │ │ ├── _bar_chart_survey.png.i │ │ │ │ │ ├── _simple_poll_entry.png.i │ │ │ │ │ ├── _simple_poll_survey.png.i │ │ │ │ │ ├── _simple_poll_results.png.i │ │ │ │ │ ├── _favorite_composer_each.png.d │ │ │ │ │ ├── _favorite_composer_each.png.i │ │ │ │ │ ├── _favorite_composer_poll.png.d │ │ │ │ │ ├── _favorite_composer_poll.png.i │ │ │ │ │ ├── _favorite_composer_rate_one.png.d │ │ │ │ │ ├── _favorite_composer_rate_one.png.i │ │ │ │ │ ├── _liberal_conservative_report.png.i │ │ │ │ │ ├── _liberal_conservative_survey.png.i │ │ │ │ │ └── _favorite_composer_rate_one_report.png.i │ │ │ │ ├── simple__poll.rst.i │ │ │ │ ├── simple__survey.rst.i │ │ │ │ └── favorite__composer.rst.i │ │ │ ├── ballot__stuffing.rst.i │ │ │ └── images │ │ │ │ └── _download_surveys.png.i │ │ └── developers │ │ │ └── index.rst.i │ │ ├── _m_a_n_i_f_e_s_t.in.i │ │ ├── crowdsourcing │ │ ├── geo.py.i │ │ ├── urls.py.i │ │ ├── util.py.i │ │ ├── admin.py.i │ │ ├── fields.py.i │ │ ├── forms.py.i │ │ ├── models.py.i │ │ ├── tasks.py.i │ │ ├── tests.py.i │ │ ├── views.py.i │ │ ├── jsonutils.py.i │ │ ├── settings.py.i │ │ ├── ____init____.py.i │ │ ├── oembedutils.py.i │ │ ├── flickrsupport.py.i │ │ └── templatetags │ │ │ ├── ____init____.py.i │ │ │ └── crowdsourcing.py.i │ │ ├── example__app │ │ ├── urls.py.i │ │ ├── cms │ │ │ ├── urls.py.i │ │ │ ├── models.py.i │ │ │ ├── tests.py.i │ │ │ ├── views.py.i │ │ │ └── ____init____.py.i │ │ ├── manage.py.i │ │ ├── settings.py.i │ │ ├── ____init____.py.i │ │ ├── media │ │ │ ├── enlarge.js.i │ │ │ ├── styles.css.i │ │ │ ├── survey.js.i │ │ │ ├── enlarge.css.i │ │ │ ├── google__maps.js.i │ │ │ ├── img │ │ │ │ └── loading.gif.i │ │ │ ├── jquery.form.js.i │ │ │ ├── enlarge-icon.png.i │ │ │ ├── google__maps.css.i │ │ │ └── jquery.jcarousel.min.js.i │ │ ├── templates │ │ │ ├── home.html.i │ │ │ ├── header__tags.html.i │ │ │ ├── crowdsourcing │ │ │ │ ├── base.html.i │ │ │ │ ├── submission.html.i │ │ │ │ ├── survey__detail.html.i │ │ │ │ ├── survey__report.html.i │ │ │ │ ├── survey__results.html.i │ │ │ │ ├── submission__for__map.html.i │ │ │ │ ├── embeded__survey__report.html.i │ │ │ │ ├── location__question__map.html.i │ │ │ │ ├── survey__results__archive.html.i │ │ │ │ └── embeded__survey__questions.html.i │ │ │ └── mako │ │ │ │ ├── survey__detail.html.i │ │ │ │ └── survey__results.html.i │ │ └── example__app__requirements.txt.i │ │ └── crowdsourcing__requirements.txt.i ├── undo.branch ├── requires ├── 00changelog.i ├── dirstate ├── hgrc ├── undo.desc └── cache │ └── branchheads-served ├── .gitignore ├── debug_toolbar ├── models.py ├── toolbar │ └── __init__.py ├── management │ ├── __init__.py │ └── commands │ │ ├── __init__.py │ │ └── debugsqlshell.py ├── templatetags │ ├── __init__.py │ └── debug_toolbar_utils.py ├── utils │ ├── compat │ │ ├── __init__.py │ │ ├── ._db.py │ │ ├── .___init__.py │ │ └── db.py │ ├── tracking │ │ └── .___init__.py │ └── sqlparse │ │ ├── __init__.py │ │ ├── tokens.py │ │ └── engine │ │ └── __init__.py ├── ._urls.py ├── ._models.py ├── .___init__.py ├── media │ └── debug_toolbar │ │ ├── img │ │ ├── back.png │ │ ├── dot.gif │ │ ├── close.png │ │ ├── indicator.png │ │ ├── panel_bg.png │ │ ├── back_hover.png │ │ ├── close_hover.png │ │ └── djdt_vertical.png │ │ ├── css │ │ └── ._toolbar.css │ │ └── js │ │ └── ._jquery.cookie.js ├── templates │ └── debug_toolbar │ │ ├── panels │ │ ├── ._sql.html │ │ ├── ._profiling.html │ │ ├── ._sql_explain.html │ │ ├── ._sql_profile.html │ │ ├── ._sql_select.html │ │ ├── headers.html │ │ ├── versions.html │ │ ├── settings_vars.html │ │ ├── template_source.html │ │ ├── timer.html │ │ ├── signals.html │ │ ├── logger.html │ │ ├── sql_explain.html │ │ ├── sql_select.html │ │ ├── sql_profile.html │ │ ├── cache.html │ │ ├── profiling.html │ │ └── templates.html │ │ ├── redirect.html │ │ └── base.html ├── __init__.py ├── urls.py └── panels │ ├── settings_vars.py │ ├── headers.py │ ├── version.py │ ├── request_vars.py │ └── __init__.py ├── do-index ├── __init__.py ├── cms │ ├── __init__.py │ ├── templatetags │ │ ├── __init__.py │ │ └── dictionary_extras.py │ ├── forms.py │ ├── models.py │ └── urls.py ├── media │ ├── bootstrap3 │ │ ├── ._css │ │ ├── ._js │ │ ├── ._fonts │ │ ├── js │ │ │ ├── ._bootstrap.js │ │ │ └── ._bootstrap.min.js │ │ ├── css │ │ │ ├── ._bootstrap.css │ │ │ └── ._bootstrap.min.css │ │ └── fonts │ │ │ ├── ._glyphicons-halflings-regular.eot │ │ │ ├── ._glyphicons-halflings-regular.svg │ │ │ ├── ._glyphicons-halflings-regular.ttf │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ └── ._glyphicons-halflings-regular.woff │ ├── enlarge-icon.png │ ├── img │ │ └── loading.gif │ ├── admin │ │ ├── img │ │ │ ├── admin │ │ │ │ ├── nav-bg.gif │ │ │ │ ├── arrow-up.gif │ │ │ │ ├── icon-no.gif │ │ │ │ ├── icon-yes.gif │ │ │ │ ├── arrow-down.gif │ │ │ │ ├── chooser-bg.gif │ │ │ │ ├── default-bg.gif │ │ │ │ ├── icon_alert.gif │ │ │ │ ├── icon_clock.gif │ │ │ │ ├── icon_error.gif │ │ │ │ ├── tool-left.gif │ │ │ │ ├── tool-right.gif │ │ │ │ ├── tooltag-add.gif │ │ │ │ ├── changelist-bg.gif │ │ │ │ ├── icon-unknown.gif │ │ │ │ ├── icon_addlink.gif │ │ │ │ ├── icon_calendar.gif │ │ │ │ ├── icon_success.gif │ │ │ │ ├── inline-delete.png │ │ │ │ ├── selector-add.gif │ │ │ │ ├── deleted-overlay.gif │ │ │ │ ├── icon_changelink.gif │ │ │ │ ├── icon_deletelink.gif │ │ │ │ ├── icon_searchbox.png │ │ │ │ ├── inline-restore.png │ │ │ │ ├── nav-bg-grabber.gif │ │ │ │ ├── nav-bg-reverse.gif │ │ │ │ ├── selector-addall.gif │ │ │ │ ├── selector-remove.gif │ │ │ │ ├── selector-search.gif │ │ │ │ ├── tool-left_over.gif │ │ │ │ ├── tool-right_over.gif │ │ │ │ ├── tooltag-add_over.gif │ │ │ │ ├── changelist-bg_rtl.gif │ │ │ │ ├── chooser_stacked-bg.gif │ │ │ │ ├── default-bg-reverse.gif │ │ │ │ ├── inline-delete-8bit.png │ │ │ │ ├── inline-splitter-bg.gif │ │ │ │ ├── selector-removeall.gif │ │ │ │ ├── tooltag-arrowright.gif │ │ │ │ ├── inline-restore-8bit.png │ │ │ │ ├── selector_stacked-add.gif │ │ │ │ ├── selector_stacked-remove.gif │ │ │ │ └── tooltag-arrowright_over.gif │ │ │ └── gis │ │ │ │ ├── move_vertex_off.png │ │ │ │ └── move_vertex_on.png │ │ ├── js │ │ │ ├── jquery.init.js │ │ │ ├── prepopulate.min.js │ │ │ ├── collapse.min.js │ │ │ ├── collapse.js │ │ │ ├── LICENSE-JQUERY.txt │ │ │ ├── prepopulate.js │ │ │ ├── compress.py │ │ │ └── inlines.min.js │ │ └── css │ │ │ ├── dashboard.css │ │ │ ├── login.css │ │ │ └── ie.css │ ├── bootstrap │ │ └── img │ │ │ ├── glyphicons-halflings.png │ │ │ └── glyphicons-halflings-white.png │ ├── google_maps.css │ └── enlarge.css ├── templates │ ├── crowdsourcing │ │ ├── submission_for_map.html │ │ ├── base.html │ │ ├── survey_report.html │ │ ├── submission.html │ │ ├── location_question_map.html │ │ ├── survey_detail.html │ │ └── embeded_survey_report.html │ ├── overview.html │ ├── header_tags.html │ ├── home.html-waltersave │ └── ie.html ├── manage.py └── urls.py ├── crowdsourcing ├── __init__.py ├── templatetags │ └── __init__.py ├── fields.py ├── tasks.py ├── jsonutils.py ├── geo.py └── util.py ├── src ├── crowdsourcing │ ├── .hg │ │ ├── store │ │ │ ├── phaseroots │ │ │ ├── undo.phaseroots │ │ │ ├── 00changelog.i │ │ │ ├── 00manifest.i │ │ │ └── data │ │ │ │ ├── setup.py.i │ │ │ │ ├── ~2ehgignore.i │ │ │ │ ├── ~2ehgtags.i │ │ │ │ ├── _r_e_a_d_m_e.i │ │ │ │ ├── docs │ │ │ │ ├── conf.py.i │ │ │ │ ├── _makefile.i │ │ │ │ ├── index.rst.i │ │ │ │ ├── producers │ │ │ │ │ ├── live.rst.i │ │ │ │ │ ├── filters.rst.i │ │ │ │ │ ├── index.rst.i │ │ │ │ │ ├── options.rst.i │ │ │ │ │ ├── download.rst.i │ │ │ │ │ ├── examples │ │ │ │ │ │ ├── index.rst.i │ │ │ │ │ │ ├── top__10.rst.i │ │ │ │ │ │ ├── categories.rst.i │ │ │ │ │ │ ├── count__bar.rst.i │ │ │ │ │ │ ├── images │ │ │ │ │ │ │ ├── _top10.png.i │ │ │ │ │ │ │ ├── _bar_chart_report.png.i │ │ │ │ │ │ │ ├── _bar_chart_survey.png.i │ │ │ │ │ │ │ ├── _simple_poll_entry.png.i │ │ │ │ │ │ │ ├── _simple_poll_results.png.i │ │ │ │ │ │ │ ├── _simple_poll_survey.png.i │ │ │ │ │ │ │ ├── _favorite_composer_each.png.d │ │ │ │ │ │ │ ├── _favorite_composer_each.png.i │ │ │ │ │ │ │ ├── _favorite_composer_poll.png.d │ │ │ │ │ │ │ ├── _favorite_composer_poll.png.i │ │ │ │ │ │ │ ├── _favorite_composer_rate_one.png.d │ │ │ │ │ │ │ ├── _favorite_composer_rate_one.png.i │ │ │ │ │ │ │ ├── _liberal_conservative_report.png.i │ │ │ │ │ │ │ ├── _liberal_conservative_survey.png.i │ │ │ │ │ │ │ └── _favorite_composer_rate_one_report.png.i │ │ │ │ │ │ ├── simple__poll.rst.i │ │ │ │ │ │ ├── simple__survey.rst.i │ │ │ │ │ │ └── favorite__composer.rst.i │ │ │ │ │ ├── ballot__stuffing.rst.i │ │ │ │ │ └── images │ │ │ │ │ │ └── _download_surveys.png.i │ │ │ │ └── developers │ │ │ │ │ └── index.rst.i │ │ │ │ ├── _c_h_a_n_g_e_s.i │ │ │ │ ├── _m_a_n_i_f_e_s_t.in.i │ │ │ │ ├── crowdsourcing │ │ │ │ ├── geo.py.i │ │ │ │ ├── urls.py.i │ │ │ │ ├── util.py.i │ │ │ │ ├── admin.py.i │ │ │ │ ├── fields.py.i │ │ │ │ ├── forms.py.i │ │ │ │ ├── models.py.i │ │ │ │ ├── tasks.py.i │ │ │ │ ├── tests.py.i │ │ │ │ ├── views.py.i │ │ │ │ ├── jsonutils.py.i │ │ │ │ ├── settings.py.i │ │ │ │ ├── oembedutils.py.i │ │ │ │ ├── ____init____.py.i │ │ │ │ ├── flickrsupport.py.i │ │ │ │ └── templatetags │ │ │ │ │ ├── ____init____.py.i │ │ │ │ │ └── crowdsourcing.py.i │ │ │ │ ├── example__app │ │ │ │ ├── urls.py.i │ │ │ │ ├── manage.py.i │ │ │ │ ├── cms │ │ │ │ │ ├── models.py.i │ │ │ │ │ ├── tests.py.i │ │ │ │ │ ├── urls.py.i │ │ │ │ │ ├── views.py.i │ │ │ │ │ └── ____init____.py.i │ │ │ │ ├── settings.py.i │ │ │ │ ├── ____init____.py.i │ │ │ │ ├── media │ │ │ │ │ ├── survey.js.i │ │ │ │ │ ├── enlarge.css.i │ │ │ │ │ ├── enlarge.js.i │ │ │ │ │ ├── styles.css.i │ │ │ │ │ ├── jquery.form.js.i │ │ │ │ │ ├── enlarge-icon.png.i │ │ │ │ │ ├── google__maps.css.i │ │ │ │ │ ├── google__maps.js.i │ │ │ │ │ ├── img │ │ │ │ │ │ └── loading.gif.i │ │ │ │ │ └── jquery.jcarousel.min.js.i │ │ │ │ ├── templates │ │ │ │ │ ├── home.html.i │ │ │ │ │ ├── header__tags.html.i │ │ │ │ │ ├── crowdsourcing │ │ │ │ │ │ ├── base.html.i │ │ │ │ │ │ ├── submission.html.i │ │ │ │ │ │ ├── survey__detail.html.i │ │ │ │ │ │ ├── survey__report.html.i │ │ │ │ │ │ ├── survey__results.html.i │ │ │ │ │ │ ├── submission__for__map.html.i │ │ │ │ │ │ ├── embeded__survey__report.html.i │ │ │ │ │ │ ├── location__question__map.html.i │ │ │ │ │ │ ├── survey__results__archive.html.i │ │ │ │ │ │ └── embeded__survey__questions.html.i │ │ │ │ │ └── mako │ │ │ │ │ │ ├── survey__detail.html.i │ │ │ │ │ │ └── survey__results.html.i │ │ │ │ └── example__app__requirements.txt.i │ │ │ │ └── crowdsourcing__requirements.txt.i │ │ ├── undo.bookmarks │ │ ├── undo.dirstate │ │ ├── branch │ │ ├── undo.branch │ │ ├── requires │ │ ├── 00changelog.i │ │ ├── undo.desc │ │ ├── hgrc │ │ ├── dirstate │ │ └── cache │ │ │ └── branchheads-served │ ├── crowdsourcing │ │ ├── __init__.py │ │ ├── templatetags │ │ │ └── __init__.py │ │ ├── fields.py │ │ ├── tasks.py │ │ ├── jsonutils.py │ │ ├── geo.py │ │ └── util.py │ ├── example_app │ │ ├── __init__.py │ │ ├── cms │ │ │ ├── __init__.py │ │ │ ├── urls.py │ │ │ └── views.py │ │ ├── templates │ │ │ ├── crowdsourcing │ │ │ │ ├── submission_for_map.html │ │ │ │ ├── base.html │ │ │ │ ├── survey_report.html │ │ │ │ ├── submission.html │ │ │ │ ├── embeded_survey_questions.html │ │ │ │ ├── location_question_map.html │ │ │ │ ├── survey_detail.html │ │ │ │ └── embeded_survey_report.html │ │ │ ├── home.html │ │ │ └── header_tags.html │ │ ├── media │ │ │ ├── img │ │ │ │ └── loading.gif │ │ │ ├── enlarge-icon.png │ │ │ ├── google_maps.css │ │ │ ├── enlarge.css │ │ │ └── styles.css │ │ ├── example_app_requirements.txt │ │ ├── manage.py │ │ └── urls.py │ ├── django_crowdsourcing.egg-info │ │ ├── dependency_links.txt │ │ ├── top_level.txt │ │ └── SOURCES.txt │ ├── MANIFEST.in │ ├── docs │ │ └── producers │ │ │ ├── examples │ │ │ ├── images │ │ │ │ ├── Top10.png │ │ │ │ ├── BarChartReport.png │ │ │ │ ├── BarChartSurvey.png │ │ │ │ ├── SimplePollEntry.png │ │ │ │ ├── SimplePollResults.png │ │ │ │ ├── SimplePollSurvey.png │ │ │ │ ├── FavoriteComposerEach.png │ │ │ │ ├── FavoriteComposerPoll.png │ │ │ │ ├── FavoriteComposerRateOne.png │ │ │ │ ├── LiberalConservativeReport.png │ │ │ │ ├── LiberalConservativeSurvey.png │ │ │ │ └── FavoriteComposerRateOneReport.png │ │ │ ├── index.rst │ │ │ ├── top_10.rst │ │ │ ├── count_bar.rst │ │ │ ├── simple_poll.rst │ │ │ ├── favorite_composer.rst │ │ │ └── categories.rst │ │ │ ├── images │ │ │ └── DownloadSurveys.png │ │ │ ├── index.rst │ │ │ ├── download.rst │ │ │ └── ballot_stuffing.rst │ ├── .hgignore │ ├── crowdsourcing_requirements.txt │ ├── setup.py │ └── .hgtags └── pip-delete-this-directory.txt ├── django_crowdsourcing.egg-info ├── dependency_links.txt ├── top_level.txt └── SOURCES.txt ├── docs └── producers │ ├── examples │ ├── images │ │ ├── Top10.png │ │ ├── BarChartReport.png │ │ ├── BarChartSurvey.png │ │ ├── SimplePollEntry.png │ │ ├── SimplePollSurvey.png │ │ ├── SimplePollResults.png │ │ ├── FavoriteComposerEach.png │ │ ├── FavoriteComposerPoll.png │ │ ├── FavoriteComposerRateOne.png │ │ ├── LiberalConservativeReport.png │ │ ├── LiberalConservativeSurvey.png │ │ └── FavoriteComposerRateOneReport.png │ ├── index.rst │ ├── top_10.rst │ ├── count_bar.rst │ ├── simple_poll.rst │ ├── favorite_composer.rst │ └── categories.rst │ ├── images │ └── DownloadSurveys.png │ ├── index.rst │ ├── download.rst │ └── ballot_stuffing.rst ├── dist └── django_crowdsourcing-1.1.35-py2.7.egg ├── MANIFEST.in ├── .hgignore ├── django.wsgi ├── README.md ├── crowdsourcing_requirements.txt ├── setup.py └── .hgtags /.hg/undo.bookmarks: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.hg/undo.dirstate: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | -------------------------------------------------------------------------------- /.hg/branch: -------------------------------------------------------------------------------- 1 | default 2 | -------------------------------------------------------------------------------- /.hg/store/phaseroots: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.hg/undo.branch: -------------------------------------------------------------------------------- 1 | default -------------------------------------------------------------------------------- /debug_toolbar/models.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /do-index/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.hg/store/undo.phaseroots: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crowdsourcing/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /do-index/cms/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /debug_toolbar/toolbar/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /debug_toolbar/management/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /debug_toolbar/templatetags/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /debug_toolbar/utils/compat/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /do-index/cms/templatetags/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/phaseroots: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/undo.bookmarks: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/undo.dirstate: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crowdsourcing/templatetags/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/branch: -------------------------------------------------------------------------------- 1 | default 2 | -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/undo.phaseroots: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/undo.branch: -------------------------------------------------------------------------------- 1 | default -------------------------------------------------------------------------------- /src/crowdsourcing/crowdsourcing/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/crowdsourcing/example_app/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /debug_toolbar/management/commands/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/crowdsourcing/example_app/cms/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /django_crowdsourcing.egg-info/dependency_links.txt: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /.hg/requires: -------------------------------------------------------------------------------- 1 | dotencode 2 | fncache 3 | revlogv1 4 | store 5 | -------------------------------------------------------------------------------- /django_crowdsourcing.egg-info/top_level.txt: -------------------------------------------------------------------------------- 1 | crowdsourcing 2 | -------------------------------------------------------------------------------- /src/crowdsourcing/crowdsourcing/templatetags/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/crowdsourcing/django_crowdsourcing.egg-info/dependency_links.txt: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /.hg/00changelog.i: -------------------------------------------------------------------------------- 1 |  dummy changelog to prevent using the old repo layout -------------------------------------------------------------------------------- /.hg/dirstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/dirstate -------------------------------------------------------------------------------- /.hg/hgrc: -------------------------------------------------------------------------------- 1 | [paths] 2 | default = https://django-crowdsourcing.googlecode.com/hg/ 3 | -------------------------------------------------------------------------------- /.hg/undo.desc: -------------------------------------------------------------------------------- 1 | 0 2 | pull 3 | https://django-crowdsourcing.googlecode.com/hg/ 4 | -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/requires: -------------------------------------------------------------------------------- 1 | dotencode 2 | fncache 3 | revlogv1 4 | store 5 | -------------------------------------------------------------------------------- /src/crowdsourcing/django_crowdsourcing.egg-info/top_level.txt: -------------------------------------------------------------------------------- 1 | crowdsourcing 2 | -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/00changelog.i: -------------------------------------------------------------------------------- 1 |  dummy changelog to prevent using the old repo layout -------------------------------------------------------------------------------- /.hg/store/00changelog.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/00changelog.i -------------------------------------------------------------------------------- /.hg/store/00manifest.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/00manifest.i -------------------------------------------------------------------------------- /debug_toolbar/._urls.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/debug_toolbar/._urls.py -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/undo.desc: -------------------------------------------------------------------------------- 1 | 0 2 | pull 3 | https://django-crowdsourcing.googlecode.com/hg/ 4 | -------------------------------------------------------------------------------- /.hg/store/data/setup.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/setup.py.i -------------------------------------------------------------------------------- /.hg/store/data/~2ehgtags.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/~2ehgtags.i -------------------------------------------------------------------------------- /debug_toolbar/._models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/debug_toolbar/._models.py -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/hgrc: -------------------------------------------------------------------------------- 1 | [paths] 2 | default = https://django-crowdsourcing.googlecode.com/hg/ 3 | -------------------------------------------------------------------------------- /.hg/store/data/~2ehgignore.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/~2ehgignore.i -------------------------------------------------------------------------------- /debug_toolbar/.___init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/debug_toolbar/.___init__.py -------------------------------------------------------------------------------- /.hg/store/data/_c_h_a_n_g_e_s.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/_c_h_a_n_g_e_s.i -------------------------------------------------------------------------------- /.hg/store/data/_r_e_a_d_m_e.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/_r_e_a_d_m_e.i -------------------------------------------------------------------------------- /.hg/store/data/docs/_makefile.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/docs/_makefile.i -------------------------------------------------------------------------------- /.hg/store/data/docs/conf.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/docs/conf.py.i -------------------------------------------------------------------------------- /.hg/store/data/docs/index.rst.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/docs/index.rst.i -------------------------------------------------------------------------------- /do-index/media/bootstrap3/._css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/bootstrap3/._css -------------------------------------------------------------------------------- /do-index/media/bootstrap3/._js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/bootstrap3/._js -------------------------------------------------------------------------------- /do-index/media/enlarge-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/enlarge-icon.png -------------------------------------------------------------------------------- /do-index/media/img/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/img/loading.gif -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/dirstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/dirstate -------------------------------------------------------------------------------- /do-index/media/bootstrap3/._fonts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/bootstrap3/._fonts -------------------------------------------------------------------------------- /.hg/store/data/_m_a_n_i_f_e_s_t.in.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/_m_a_n_i_f_e_s_t.in.i -------------------------------------------------------------------------------- /debug_toolbar/utils/compat/._db.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/debug_toolbar/utils/compat/._db.py -------------------------------------------------------------------------------- /.hg/store/data/crowdsourcing/geo.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/crowdsourcing/geo.py.i -------------------------------------------------------------------------------- /.hg/store/data/crowdsourcing/urls.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/crowdsourcing/urls.py.i -------------------------------------------------------------------------------- /.hg/store/data/crowdsourcing/util.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/crowdsourcing/util.py.i -------------------------------------------------------------------------------- /.hg/store/data/example__app/urls.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/example__app/urls.py.i -------------------------------------------------------------------------------- /do-index/templates/crowdsourcing/submission_for_map.html: -------------------------------------------------------------------------------- 1 | {% load crowdsourcing %} 2 | {% submission_fields submission %} 3 | -------------------------------------------------------------------------------- /.hg/store/data/crowdsourcing/admin.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/crowdsourcing/admin.py.i -------------------------------------------------------------------------------- /.hg/store/data/crowdsourcing/fields.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/crowdsourcing/fields.py.i -------------------------------------------------------------------------------- /.hg/store/data/crowdsourcing/forms.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/crowdsourcing/forms.py.i -------------------------------------------------------------------------------- /.hg/store/data/crowdsourcing/models.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/crowdsourcing/models.py.i -------------------------------------------------------------------------------- /.hg/store/data/crowdsourcing/tasks.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/crowdsourcing/tasks.py.i -------------------------------------------------------------------------------- /.hg/store/data/crowdsourcing/tests.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/crowdsourcing/tests.py.i -------------------------------------------------------------------------------- /.hg/store/data/crowdsourcing/views.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/crowdsourcing/views.py.i -------------------------------------------------------------------------------- /.hg/store/data/docs/producers/index.rst.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/docs/producers/index.rst.i -------------------------------------------------------------------------------- /.hg/store/data/docs/producers/live.rst.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/docs/producers/live.rst.i -------------------------------------------------------------------------------- /.hg/store/data/example__app/cms/urls.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/example__app/cms/urls.py.i -------------------------------------------------------------------------------- /.hg/store/data/example__app/manage.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/example__app/manage.py.i -------------------------------------------------------------------------------- /.hg/store/data/example__app/settings.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/example__app/settings.py.i -------------------------------------------------------------------------------- /debug_toolbar/utils/compat/.___init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/debug_toolbar/utils/compat/.___init__.py -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/nav-bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/nav-bg.gif -------------------------------------------------------------------------------- /docs/producers/examples/images/Top10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/docs/producers/examples/images/Top10.png -------------------------------------------------------------------------------- /docs/producers/images/DownloadSurveys.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/docs/producers/images/DownloadSurveys.png -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/00changelog.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/00changelog.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/00manifest.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/00manifest.i -------------------------------------------------------------------------------- /.hg/store/data/crowdsourcing/jsonutils.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/crowdsourcing/jsonutils.py.i -------------------------------------------------------------------------------- /.hg/store/data/crowdsourcing/settings.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/crowdsourcing/settings.py.i -------------------------------------------------------------------------------- /.hg/store/data/docs/developers/index.rst.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/docs/developers/index.rst.i -------------------------------------------------------------------------------- /.hg/store/data/docs/producers/filters.rst.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/docs/producers/filters.rst.i -------------------------------------------------------------------------------- /.hg/store/data/docs/producers/options.rst.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/docs/producers/options.rst.i -------------------------------------------------------------------------------- /.hg/store/data/example__app/cms/models.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/example__app/cms/models.py.i -------------------------------------------------------------------------------- /.hg/store/data/example__app/cms/tests.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/example__app/cms/tests.py.i -------------------------------------------------------------------------------- /.hg/store/data/example__app/cms/views.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/example__app/cms/views.py.i -------------------------------------------------------------------------------- /debug_toolbar/utils/tracking/.___init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/debug_toolbar/utils/tracking/.___init__.py -------------------------------------------------------------------------------- /dist/django_crowdsourcing-1.1.35-py2.7.egg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/dist/django_crowdsourcing-1.1.35-py2.7.egg -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/arrow-up.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/arrow-up.gif -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/icon-no.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/icon-no.gif -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/icon-yes.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/icon-yes.gif -------------------------------------------------------------------------------- /do-index/media/bootstrap3/js/._bootstrap.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/bootstrap3/js/._bootstrap.js -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/setup.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/setup.py.i -------------------------------------------------------------------------------- /.hg/store/data/crowdsourcing/____init____.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/crowdsourcing/____init____.py.i -------------------------------------------------------------------------------- /.hg/store/data/crowdsourcing/oembedutils.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/crowdsourcing/oembedutils.py.i -------------------------------------------------------------------------------- /.hg/store/data/docs/producers/download.rst.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/docs/producers/download.rst.i -------------------------------------------------------------------------------- /.hg/store/data/example__app/____init____.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/example__app/____init____.py.i -------------------------------------------------------------------------------- /.hg/store/data/example__app/media/enlarge.js.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/example__app/media/enlarge.js.i -------------------------------------------------------------------------------- /.hg/store/data/example__app/media/styles.css.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/example__app/media/styles.css.i -------------------------------------------------------------------------------- /.hg/store/data/example__app/media/survey.js.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/example__app/media/survey.js.i -------------------------------------------------------------------------------- /debug_toolbar/media/debug_toolbar/img/back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/debug_toolbar/media/debug_toolbar/img/back.png -------------------------------------------------------------------------------- /debug_toolbar/media/debug_toolbar/img/dot.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/debug_toolbar/media/debug_toolbar/img/dot.gif -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/arrow-down.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/arrow-down.gif -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/chooser-bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/chooser-bg.gif -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/default-bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/default-bg.gif -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/icon_alert.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/icon_alert.gif -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/icon_clock.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/icon_clock.gif -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/icon_error.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/icon_error.gif -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/tool-left.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/tool-left.gif -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/tool-right.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/tool-right.gif -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/tooltag-add.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/tooltag-add.gif -------------------------------------------------------------------------------- /do-index/media/bootstrap3/css/._bootstrap.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/bootstrap3/css/._bootstrap.css -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/~2ehgignore.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/~2ehgignore.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/~2ehgtags.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/~2ehgtags.i -------------------------------------------------------------------------------- /.hg/store/data/crowdsourcing/flickrsupport.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/crowdsourcing/flickrsupport.py.i -------------------------------------------------------------------------------- /.hg/store/data/crowdsourcing__requirements.txt.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/crowdsourcing__requirements.txt.i -------------------------------------------------------------------------------- /.hg/store/data/example__app/media/enlarge.css.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/example__app/media/enlarge.css.i -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- 1 | include README 2 | include CHANGES 3 | include crowdsourcing_requirements.txt 4 | recursive-include docs * 5 | prune docs/_build 6 | -------------------------------------------------------------------------------- /debug_toolbar/media/debug_toolbar/img/close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/debug_toolbar/media/debug_toolbar/img/close.png -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/changelist-bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/changelist-bg.gif -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/icon-unknown.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/icon-unknown.gif -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/icon_addlink.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/icon_addlink.gif -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/icon_calendar.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/icon_calendar.gif -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/icon_success.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/icon_success.gif -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/inline-delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/inline-delete.png -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/selector-add.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/selector-add.gif -------------------------------------------------------------------------------- /do-index/media/admin/img/gis/move_vertex_off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/gis/move_vertex_off.png -------------------------------------------------------------------------------- /do-index/media/admin/img/gis/move_vertex_on.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/gis/move_vertex_on.png -------------------------------------------------------------------------------- /do-index/media/bootstrap3/js/._bootstrap.min.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/bootstrap3/js/._bootstrap.min.js -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/_r_e_a_d_m_e.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/_r_e_a_d_m_e.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/docs/conf.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/docs/conf.py.i -------------------------------------------------------------------------------- /src/crowdsourcing/example_app/templates/crowdsourcing/submission_for_map.html: -------------------------------------------------------------------------------- 1 | {% load crowdsourcing %} 2 | {% submission_fields submission %} 3 | -------------------------------------------------------------------------------- /.hg/store/data/docs/producers/examples/index.rst.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/docs/producers/examples/index.rst.i -------------------------------------------------------------------------------- /.hg/store/data/example__app/cms/____init____.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/example__app/cms/____init____.py.i -------------------------------------------------------------------------------- /.hg/store/data/example__app/media/google__maps.js.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/example__app/media/google__maps.js.i -------------------------------------------------------------------------------- /.hg/store/data/example__app/media/img/loading.gif.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/example__app/media/img/loading.gif.i -------------------------------------------------------------------------------- /.hg/store/data/example__app/media/jquery.form.js.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/example__app/media/jquery.form.js.i -------------------------------------------------------------------------------- /.hg/store/data/example__app/templates/home.html.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/example__app/templates/home.html.i -------------------------------------------------------------------------------- /debug_toolbar/media/debug_toolbar/css/._toolbar.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/debug_toolbar/media/debug_toolbar/css/._toolbar.css -------------------------------------------------------------------------------- /debug_toolbar/media/debug_toolbar/img/indicator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/debug_toolbar/media/debug_toolbar/img/indicator.png -------------------------------------------------------------------------------- /debug_toolbar/media/debug_toolbar/img/panel_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/debug_toolbar/media/debug_toolbar/img/panel_bg.png -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/deleted-overlay.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/deleted-overlay.gif -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/icon_changelink.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/icon_changelink.gif -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/icon_deletelink.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/icon_deletelink.gif -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/icon_searchbox.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/icon_searchbox.png -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/inline-restore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/inline-restore.png -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/nav-bg-grabber.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/nav-bg-grabber.gif -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/nav-bg-reverse.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/nav-bg-reverse.gif -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/selector-addall.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/selector-addall.gif -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/selector-remove.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/selector-remove.gif -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/selector-search.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/selector-search.gif -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/tool-left_over.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/tool-left_over.gif -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/tool-right_over.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/tool-right_over.gif -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/tooltag-add_over.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/tooltag-add_over.gif -------------------------------------------------------------------------------- /do-index/media/bootstrap3/css/._bootstrap.min.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/bootstrap3/css/._bootstrap.min.css -------------------------------------------------------------------------------- /docs/producers/examples/images/BarChartReport.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/docs/producers/examples/images/BarChartReport.png -------------------------------------------------------------------------------- /docs/producers/examples/images/BarChartSurvey.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/docs/producers/examples/images/BarChartSurvey.png -------------------------------------------------------------------------------- /docs/producers/examples/images/SimplePollEntry.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/docs/producers/examples/images/SimplePollEntry.png -------------------------------------------------------------------------------- /docs/producers/examples/images/SimplePollSurvey.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/docs/producers/examples/images/SimplePollSurvey.png -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/_c_h_a_n_g_e_s.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/_c_h_a_n_g_e_s.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/docs/_makefile.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/docs/_makefile.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/docs/index.rst.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/docs/index.rst.i -------------------------------------------------------------------------------- /src/crowdsourcing/example_app/media/img/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/example_app/media/img/loading.gif -------------------------------------------------------------------------------- /.hg/store/data/docs/producers/ballot__stuffing.rst.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/docs/producers/ballot__stuffing.rst.i -------------------------------------------------------------------------------- /.hg/store/data/docs/producers/examples/top__10.rst.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/docs/producers/examples/top__10.rst.i -------------------------------------------------------------------------------- /.hg/store/data/example__app/media/enlarge-icon.png.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/example__app/media/enlarge-icon.png.i -------------------------------------------------------------------------------- /.hg/store/data/example__app/media/google__maps.css.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/example__app/media/google__maps.css.i -------------------------------------------------------------------------------- /debug_toolbar/media/debug_toolbar/img/back_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/debug_toolbar/media/debug_toolbar/img/back_hover.png -------------------------------------------------------------------------------- /debug_toolbar/media/debug_toolbar/img/close_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/debug_toolbar/media/debug_toolbar/img/close_hover.png -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/changelist-bg_rtl.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/changelist-bg_rtl.gif -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/chooser_stacked-bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/chooser_stacked-bg.gif -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/default-bg-reverse.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/default-bg-reverse.gif -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/inline-delete-8bit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/inline-delete-8bit.png -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/inline-splitter-bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/inline-splitter-bg.gif -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/selector-removeall.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/selector-removeall.gif -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/tooltag-arrowright.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/tooltag-arrowright.gif -------------------------------------------------------------------------------- /do-index/media/bootstrap/img/glyphicons-halflings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/bootstrap/img/glyphicons-halflings.png -------------------------------------------------------------------------------- /docs/producers/examples/images/SimplePollResults.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/docs/producers/examples/images/SimplePollResults.png -------------------------------------------------------------------------------- /src/crowdsourcing/example_app/media/enlarge-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/example_app/media/enlarge-icon.png -------------------------------------------------------------------------------- /.hg/store/data/docs/producers/examples/categories.rst.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/docs/producers/examples/categories.rst.i -------------------------------------------------------------------------------- /.hg/store/data/docs/producers/examples/count__bar.rst.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/docs/producers/examples/count__bar.rst.i -------------------------------------------------------------------------------- /debug_toolbar/media/debug_toolbar/img/djdt_vertical.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/debug_toolbar/media/debug_toolbar/img/djdt_vertical.png -------------------------------------------------------------------------------- /debug_toolbar/media/debug_toolbar/js/._jquery.cookie.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/debug_toolbar/media/debug_toolbar/js/._jquery.cookie.js -------------------------------------------------------------------------------- /debug_toolbar/templates/debug_toolbar/panels/._sql.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/debug_toolbar/templates/debug_toolbar/panels/._sql.html -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/inline-restore-8bit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/inline-restore-8bit.png -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/selector_stacked-add.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/selector_stacked-add.gif -------------------------------------------------------------------------------- /do-index/media/admin/js/jquery.init.js: -------------------------------------------------------------------------------- 1 | // Puts the included jQuery into our own namespace 2 | var django = { 3 | "jQuery": jQuery.noConflict(true) 4 | }; 5 | -------------------------------------------------------------------------------- /docs/producers/examples/images/FavoriteComposerEach.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/docs/producers/examples/images/FavoriteComposerEach.png -------------------------------------------------------------------------------- /docs/producers/examples/images/FavoriteComposerPoll.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/docs/producers/examples/images/FavoriteComposerPoll.png -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/_m_a_n_i_f_e_s_t.in.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/_m_a_n_i_f_e_s_t.in.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/crowdsourcing/geo.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/crowdsourcing/geo.py.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/crowdsourcing/urls.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/crowdsourcing/urls.py.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/crowdsourcing/util.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/crowdsourcing/util.py.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/example__app/urls.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/example__app/urls.py.i -------------------------------------------------------------------------------- /src/crowdsourcing/MANIFEST.in: -------------------------------------------------------------------------------- 1 | include README 2 | include CHANGES 3 | include crowdsourcing_requirements.txt 4 | recursive-include docs * 5 | prune docs/_build 6 | -------------------------------------------------------------------------------- /.hg/store/data/docs/producers/examples/images/_top10.png.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/docs/producers/examples/images/_top10.png.i -------------------------------------------------------------------------------- /.hg/store/data/docs/producers/examples/simple__poll.rst.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/docs/producers/examples/simple__poll.rst.i -------------------------------------------------------------------------------- /.hg/store/data/example__app/templates/header__tags.html.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/example__app/templates/header__tags.html.i -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/selector_stacked-remove.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/selector_stacked-remove.gif -------------------------------------------------------------------------------- /do-index/media/admin/img/admin/tooltag-arrowright_over.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/admin/img/admin/tooltag-arrowright_over.gif -------------------------------------------------------------------------------- /docs/producers/examples/images/FavoriteComposerRateOne.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/docs/producers/examples/images/FavoriteComposerRateOne.png -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/crowdsourcing/admin.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/crowdsourcing/admin.py.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/crowdsourcing/fields.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/crowdsourcing/fields.py.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/crowdsourcing/forms.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/crowdsourcing/forms.py.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/crowdsourcing/models.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/crowdsourcing/models.py.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/crowdsourcing/tasks.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/crowdsourcing/tasks.py.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/crowdsourcing/tests.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/crowdsourcing/tests.py.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/crowdsourcing/views.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/crowdsourcing/views.py.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/docs/producers/live.rst.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/docs/producers/live.rst.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/example__app/manage.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/example__app/manage.py.i -------------------------------------------------------------------------------- /src/crowdsourcing/docs/producers/examples/images/Top10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/docs/producers/examples/images/Top10.png -------------------------------------------------------------------------------- /.hg/store/data/crowdsourcing/templatetags/____init____.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/crowdsourcing/templatetags/____init____.py.i -------------------------------------------------------------------------------- /.hg/store/data/crowdsourcing/templatetags/crowdsourcing.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/crowdsourcing/templatetags/crowdsourcing.py.i -------------------------------------------------------------------------------- /.hg/store/data/docs/producers/examples/simple__survey.rst.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/docs/producers/examples/simple__survey.rst.i -------------------------------------------------------------------------------- /.hg/store/data/docs/producers/images/_download_surveys.png.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/docs/producers/images/_download_surveys.png.i -------------------------------------------------------------------------------- /.hg/store/data/example__app/example__app__requirements.txt.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/example__app/example__app__requirements.txt.i -------------------------------------------------------------------------------- /.hg/store/data/example__app/media/jquery.jcarousel.min.js.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/example__app/media/jquery.jcarousel.min.js.i -------------------------------------------------------------------------------- /debug_toolbar/templates/debug_toolbar/panels/._profiling.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/debug_toolbar/templates/debug_toolbar/panels/._profiling.html -------------------------------------------------------------------------------- /do-index/media/bootstrap/img/glyphicons-halflings-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/bootstrap/img/glyphicons-halflings-white.png -------------------------------------------------------------------------------- /docs/producers/examples/images/LiberalConservativeReport.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/docs/producers/examples/images/LiberalConservativeReport.png -------------------------------------------------------------------------------- /docs/producers/examples/images/LiberalConservativeSurvey.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/docs/producers/examples/images/LiberalConservativeSurvey.png -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/crowdsourcing/jsonutils.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/crowdsourcing/jsonutils.py.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/crowdsourcing/settings.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/crowdsourcing/settings.py.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/docs/developers/index.rst.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/docs/developers/index.rst.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/docs/producers/filters.rst.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/docs/producers/filters.rst.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/docs/producers/index.rst.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/docs/producers/index.rst.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/docs/producers/options.rst.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/docs/producers/options.rst.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/example__app/cms/models.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/example__app/cms/models.py.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/example__app/cms/tests.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/example__app/cms/tests.py.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/example__app/cms/urls.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/example__app/cms/urls.py.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/example__app/cms/views.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/example__app/cms/views.py.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/example__app/settings.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/example__app/settings.py.i -------------------------------------------------------------------------------- /src/crowdsourcing/docs/producers/images/DownloadSurveys.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/docs/producers/images/DownloadSurveys.png -------------------------------------------------------------------------------- /.hg/store/data/docs/producers/examples/favorite__composer.rst.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/docs/producers/examples/favorite__composer.rst.i -------------------------------------------------------------------------------- /.hg/store/data/example__app/templates/crowdsourcing/base.html.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/example__app/templates/crowdsourcing/base.html.i -------------------------------------------------------------------------------- /debug_toolbar/templates/debug_toolbar/panels/._sql_explain.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/debug_toolbar/templates/debug_toolbar/panels/._sql_explain.html -------------------------------------------------------------------------------- /debug_toolbar/templates/debug_toolbar/panels/._sql_profile.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/debug_toolbar/templates/debug_toolbar/panels/._sql_profile.html -------------------------------------------------------------------------------- /debug_toolbar/templates/debug_toolbar/panels/._sql_select.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/debug_toolbar/templates/debug_toolbar/panels/._sql_select.html -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/crowdsourcing/oembedutils.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/crowdsourcing/oembedutils.py.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/docs/producers/download.rst.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/docs/producers/download.rst.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/example__app/____init____.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/example__app/____init____.py.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/example__app/media/survey.js.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/example__app/media/survey.js.i -------------------------------------------------------------------------------- /.hg/store/data/example__app/templates/mako/survey__detail.html.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/example__app/templates/mako/survey__detail.html.i -------------------------------------------------------------------------------- /.hg/store/data/example__app/templates/mako/survey__results.html.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/example__app/templates/mako/survey__results.html.i -------------------------------------------------------------------------------- /do-index/media/bootstrap3/fonts/._glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/bootstrap3/fonts/._glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /do-index/media/bootstrap3/fonts/._glyphicons-halflings-regular.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/bootstrap3/fonts/._glyphicons-halflings-regular.svg -------------------------------------------------------------------------------- /do-index/media/bootstrap3/fonts/._glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/bootstrap3/fonts/._glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /do-index/media/bootstrap3/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/bootstrap3/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /do-index/media/bootstrap3/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/bootstrap3/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /do-index/media/bootstrap3/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/bootstrap3/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /docs/producers/examples/images/FavoriteComposerRateOneReport.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/docs/producers/examples/images/FavoriteComposerRateOneReport.png -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/crowdsourcing/____init____.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/crowdsourcing/____init____.py.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/crowdsourcing/flickrsupport.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/crowdsourcing/flickrsupport.py.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/crowdsourcing__requirements.txt.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/crowdsourcing__requirements.txt.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/example__app/media/enlarge.css.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/example__app/media/enlarge.css.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/example__app/media/enlarge.js.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/example__app/media/enlarge.js.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/example__app/media/styles.css.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/example__app/media/styles.css.i -------------------------------------------------------------------------------- /do-index/media/bootstrap3/fonts/._glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/do-index/media/bootstrap3/fonts/._glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/docs/producers/examples/index.rst.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/docs/producers/examples/index.rst.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/example__app/cms/____init____.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/example__app/cms/____init____.py.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/example__app/media/jquery.form.js.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/example__app/media/jquery.form.js.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/example__app/templates/home.html.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/example__app/templates/home.html.i -------------------------------------------------------------------------------- /src/crowdsourcing/docs/producers/examples/images/BarChartReport.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/docs/producers/examples/images/BarChartReport.png -------------------------------------------------------------------------------- /src/crowdsourcing/docs/producers/examples/images/BarChartSurvey.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/docs/producers/examples/images/BarChartSurvey.png -------------------------------------------------------------------------------- /src/crowdsourcing/docs/producers/examples/images/SimplePollEntry.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/docs/producers/examples/images/SimplePollEntry.png -------------------------------------------------------------------------------- /.hg/store/data/docs/producers/examples/images/_bar_chart_report.png.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/docs/producers/examples/images/_bar_chart_report.png.i -------------------------------------------------------------------------------- /.hg/store/data/docs/producers/examples/images/_bar_chart_survey.png.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/docs/producers/examples/images/_bar_chart_survey.png.i -------------------------------------------------------------------------------- /.hg/store/data/docs/producers/examples/images/_simple_poll_entry.png.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/docs/producers/examples/images/_simple_poll_entry.png.i -------------------------------------------------------------------------------- /.hg/store/data/docs/producers/examples/images/_simple_poll_survey.png.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/docs/producers/examples/images/_simple_poll_survey.png.i -------------------------------------------------------------------------------- /.hg/store/data/example__app/templates/crowdsourcing/submission.html.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/example__app/templates/crowdsourcing/submission.html.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/docs/producers/ballot__stuffing.rst.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/docs/producers/ballot__stuffing.rst.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/docs/producers/examples/top__10.rst.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/docs/producers/examples/top__10.rst.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/example__app/media/enlarge-icon.png.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/example__app/media/enlarge-icon.png.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/example__app/media/google__maps.css.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/example__app/media/google__maps.css.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/example__app/media/google__maps.js.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/example__app/media/google__maps.js.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/example__app/media/img/loading.gif.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/example__app/media/img/loading.gif.i -------------------------------------------------------------------------------- /src/crowdsourcing/docs/producers/examples/images/SimplePollResults.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/docs/producers/examples/images/SimplePollResults.png -------------------------------------------------------------------------------- /src/crowdsourcing/docs/producers/examples/images/SimplePollSurvey.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/docs/producers/examples/images/SimplePollSurvey.png -------------------------------------------------------------------------------- /.hg/store/data/docs/producers/examples/images/_simple_poll_results.png.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/docs/producers/examples/images/_simple_poll_results.png.i -------------------------------------------------------------------------------- /.hg/store/data/example__app/templates/crowdsourcing/survey__detail.html.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/example__app/templates/crowdsourcing/survey__detail.html.i -------------------------------------------------------------------------------- /.hg/store/data/example__app/templates/crowdsourcing/survey__report.html.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/example__app/templates/crowdsourcing/survey__report.html.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/docs/producers/examples/categories.rst.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/docs/producers/examples/categories.rst.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/docs/producers/examples/count__bar.rst.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/docs/producers/examples/count__bar.rst.i -------------------------------------------------------------------------------- /src/crowdsourcing/docs/producers/examples/images/FavoriteComposerEach.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/docs/producers/examples/images/FavoriteComposerEach.png -------------------------------------------------------------------------------- /src/crowdsourcing/docs/producers/examples/images/FavoriteComposerPoll.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/docs/producers/examples/images/FavoriteComposerPoll.png -------------------------------------------------------------------------------- /.hg/store/data/docs/producers/examples/images/_favorite_composer_each.png.d: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/docs/producers/examples/images/_favorite_composer_each.png.d -------------------------------------------------------------------------------- /.hg/store/data/docs/producers/examples/images/_favorite_composer_each.png.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/docs/producers/examples/images/_favorite_composer_each.png.i -------------------------------------------------------------------------------- /.hg/store/data/docs/producers/examples/images/_favorite_composer_poll.png.d: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/docs/producers/examples/images/_favorite_composer_poll.png.d -------------------------------------------------------------------------------- /.hg/store/data/docs/producers/examples/images/_favorite_composer_poll.png.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/docs/producers/examples/images/_favorite_composer_poll.png.i -------------------------------------------------------------------------------- /.hg/store/data/example__app/templates/crowdsourcing/survey__results.html.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/example__app/templates/crowdsourcing/survey__results.html.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/docs/producers/examples/images/_top10.png.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/docs/producers/examples/images/_top10.png.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/docs/producers/examples/simple__poll.rst.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/docs/producers/examples/simple__poll.rst.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/example__app/templates/header__tags.html.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/example__app/templates/header__tags.html.i -------------------------------------------------------------------------------- /src/crowdsourcing/docs/producers/examples/images/FavoriteComposerRateOne.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/docs/producers/examples/images/FavoriteComposerRateOne.png -------------------------------------------------------------------------------- /do-index/cms/templatetags/dictionary_extras.py: -------------------------------------------------------------------------------- 1 | from django import template 2 | register = template.Library() 3 | 4 | @register.filter(name='access') 5 | def access(value, arg): 6 | return value[arg] 7 | -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/crowdsourcing/templatetags/____init____.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/crowdsourcing/templatetags/____init____.py.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/crowdsourcing/templatetags/crowdsourcing.py.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/crowdsourcing/templatetags/crowdsourcing.py.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/docs/producers/examples/simple__survey.rst.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/docs/producers/examples/simple__survey.rst.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/docs/producers/images/_download_surveys.png.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/docs/producers/images/_download_surveys.png.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/example__app/example__app__requirements.txt.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/example__app/example__app__requirements.txt.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/example__app/media/jquery.jcarousel.min.js.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/example__app/media/jquery.jcarousel.min.js.i -------------------------------------------------------------------------------- /src/crowdsourcing/docs/producers/examples/images/LiberalConservativeReport.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/docs/producers/examples/images/LiberalConservativeReport.png -------------------------------------------------------------------------------- /src/crowdsourcing/docs/producers/examples/images/LiberalConservativeSurvey.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/docs/producers/examples/images/LiberalConservativeSurvey.png -------------------------------------------------------------------------------- /.hg/store/data/docs/producers/examples/images/_favorite_composer_rate_one.png.d: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/docs/producers/examples/images/_favorite_composer_rate_one.png.d -------------------------------------------------------------------------------- /.hg/store/data/docs/producers/examples/images/_favorite_composer_rate_one.png.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/docs/producers/examples/images/_favorite_composer_rate_one.png.i -------------------------------------------------------------------------------- /.hg/store/data/docs/producers/examples/images/_liberal_conservative_report.png.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/docs/producers/examples/images/_liberal_conservative_report.png.i -------------------------------------------------------------------------------- /.hg/store/data/docs/producers/examples/images/_liberal_conservative_survey.png.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/docs/producers/examples/images/_liberal_conservative_survey.png.i -------------------------------------------------------------------------------- /.hg/store/data/example__app/templates/crowdsourcing/submission__for__map.html.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/example__app/templates/crowdsourcing/submission__for__map.html.i -------------------------------------------------------------------------------- /docs/producers/examples/index.rst: -------------------------------------------------------------------------------- 1 | Examples 2 | ======== 3 | 4 | .. toctree:: 5 | :maxdepth: 1 6 | 7 | simple_poll 8 | top_10 9 | categories 10 | favorite_composer 11 | count_bar 12 | -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/docs/producers/examples/favorite__composer.rst.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/docs/producers/examples/favorite__composer.rst.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/example__app/templates/crowdsourcing/base.html.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/example__app/templates/crowdsourcing/base.html.i -------------------------------------------------------------------------------- /.hg/store/data/example__app/templates/crowdsourcing/embeded__survey__report.html.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/example__app/templates/crowdsourcing/embeded__survey__report.html.i -------------------------------------------------------------------------------- /.hg/store/data/example__app/templates/crowdsourcing/location__question__map.html.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/example__app/templates/crowdsourcing/location__question__map.html.i -------------------------------------------------------------------------------- /.hg/store/data/example__app/templates/crowdsourcing/survey__results__archive.html.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/example__app/templates/crowdsourcing/survey__results__archive.html.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/example__app/templates/mako/survey__detail.html.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/example__app/templates/mako/survey__detail.html.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/example__app/templates/mako/survey__results.html.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/example__app/templates/mako/survey__results.html.i -------------------------------------------------------------------------------- /src/crowdsourcing/docs/producers/examples/images/FavoriteComposerRateOneReport.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/docs/producers/examples/images/FavoriteComposerRateOneReport.png -------------------------------------------------------------------------------- /.hg/store/data/docs/producers/examples/images/_favorite_composer_rate_one_report.png.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/docs/producers/examples/images/_favorite_composer_rate_one_report.png.i -------------------------------------------------------------------------------- /.hg/store/data/example__app/templates/crowdsourcing/embeded__survey__questions.html.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/.hg/store/data/example__app/templates/crowdsourcing/embeded__survey__questions.html.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/docs/producers/examples/images/_bar_chart_report.png.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/docs/producers/examples/images/_bar_chart_report.png.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/docs/producers/examples/images/_bar_chart_survey.png.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/docs/producers/examples/images/_bar_chart_survey.png.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/docs/producers/examples/images/_simple_poll_entry.png.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/docs/producers/examples/images/_simple_poll_entry.png.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/example__app/templates/crowdsourcing/submission.html.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/example__app/templates/crowdsourcing/submission.html.i -------------------------------------------------------------------------------- /debug_toolbar/__init__.py: -------------------------------------------------------------------------------- 1 | __all__ = ('VERSION',) 2 | 3 | try: 4 | VERSION = __import__('pkg_resources') \ 5 | .get_distribution('django-debug-toolbar').version 6 | except Exception, e: 7 | VERSION = 'unknown' 8 | -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/docs/producers/examples/images/_simple_poll_results.png.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/docs/producers/examples/images/_simple_poll_results.png.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/docs/producers/examples/images/_simple_poll_survey.png.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/docs/producers/examples/images/_simple_poll_survey.png.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/example__app/templates/crowdsourcing/survey__detail.html.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/example__app/templates/crowdsourcing/survey__detail.html.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/example__app/templates/crowdsourcing/survey__report.html.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/example__app/templates/crowdsourcing/survey__report.html.i -------------------------------------------------------------------------------- /src/crowdsourcing/docs/producers/examples/index.rst: -------------------------------------------------------------------------------- 1 | Examples 2 | ======== 3 | 4 | .. toctree:: 5 | :maxdepth: 1 6 | 7 | simple_poll 8 | top_10 9 | categories 10 | favorite_composer 11 | count_bar 12 | -------------------------------------------------------------------------------- /do-index/cms/forms.py: -------------------------------------------------------------------------------- 1 | class LoginForm(forms.Form): 2 | email = forms.CharField(label=(u'Email'), max_length=30) 3 | password = forms.CharField(label=(u'Pass'), widget=forms.PasswordInput(render_value=False), max_length=30) 4 | -------------------------------------------------------------------------------- /docs/producers/examples/top_10.rst: -------------------------------------------------------------------------------- 1 | ****** 2 | Top 10 3 | ****** 4 | 5 | Let's say you have a survey with voting. If you want to display the just the top 10 submissions, you could do it this way. 6 | 7 | .. image:: images/Top10.png 8 | -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/docs/producers/examples/images/_favorite_composer_each.png.d: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/docs/producers/examples/images/_favorite_composer_each.png.d -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/docs/producers/examples/images/_favorite_composer_each.png.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/docs/producers/examples/images/_favorite_composer_each.png.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/docs/producers/examples/images/_favorite_composer_poll.png.d: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/docs/producers/examples/images/_favorite_composer_poll.png.d -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/docs/producers/examples/images/_favorite_composer_poll.png.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/docs/producers/examples/images/_favorite_composer_poll.png.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/example__app/templates/crowdsourcing/survey__results.html.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/example__app/templates/crowdsourcing/survey__results.html.i -------------------------------------------------------------------------------- /src/pip-delete-this-directory.txt: -------------------------------------------------------------------------------- 1 | This file is placed here by pip to indicate the source was put 2 | here by pip. 3 | 4 | Once this package is successfully installed this source code will be 5 | deleted (unless you remove this file). 6 | -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/docs/producers/examples/images/_favorite_composer_rate_one.png.d: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/docs/producers/examples/images/_favorite_composer_rate_one.png.d -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/docs/producers/examples/images/_favorite_composer_rate_one.png.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/docs/producers/examples/images/_favorite_composer_rate_one.png.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/docs/producers/examples/images/_liberal_conservative_report.png.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/docs/producers/examples/images/_liberal_conservative_report.png.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/docs/producers/examples/images/_liberal_conservative_survey.png.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/docs/producers/examples/images/_liberal_conservative_survey.png.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/example__app/templates/crowdsourcing/submission__for__map.html.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/example__app/templates/crowdsourcing/submission__for__map.html.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/example__app/templates/crowdsourcing/embeded__survey__report.html.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/example__app/templates/crowdsourcing/embeded__survey__report.html.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/example__app/templates/crowdsourcing/location__question__map.html.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/example__app/templates/crowdsourcing/location__question__map.html.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/example__app/templates/crowdsourcing/survey__results__archive.html.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/example__app/templates/crowdsourcing/survey__results__archive.html.i -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/example__app/templates/crowdsourcing/embeded__survey__questions.html.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/example__app/templates/crowdsourcing/embeded__survey__questions.html.i -------------------------------------------------------------------------------- /src/crowdsourcing/docs/producers/examples/top_10.rst: -------------------------------------------------------------------------------- 1 | ****** 2 | Top 10 3 | ****** 4 | 5 | Let's say you have a survey with voting. If you want to display the just the top 10 submissions, you could do it this way. 6 | 7 | .. image:: images/Top10.png 8 | -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/store/data/docs/producers/examples/images/_favorite_composer_rate_one_report.png.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wmde/do-index/master/src/crowdsourcing/.hg/store/data/docs/producers/examples/images/_favorite_composer_rate_one_report.png.i -------------------------------------------------------------------------------- /do-index/templates/crowdsourcing/base.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | {% block title %}{% endblock %} 4 | {% include "header_tags.html" %} 5 | 6 | 7 | {% block content %}{% endblock %} 8 | 9 | 10 | -------------------------------------------------------------------------------- /src/crowdsourcing/example_app/cms/urls.py: -------------------------------------------------------------------------------- 1 | from __future__ import absolute_import 2 | 3 | from django.conf.urls.defaults import patterns, url 4 | 5 | from .views import home 6 | 7 | urlpatterns = patterns( 8 | "", 9 | url(r'^$', home) 10 | ) 11 | -------------------------------------------------------------------------------- /.hgignore: -------------------------------------------------------------------------------- 1 | syntax: glob 2 | *.pyc 3 | *.swp 4 | Crowdsourcing.egg* 5 | build/lib/crowdsourcing/* 6 | example_app/local_settings.py 7 | example_app/media/shared/crowdsourcing/images/* 8 | example_app/dev.db 9 | docs/_build/* 10 | dist/* 11 | django_crowdsourcing.egg-info/* 12 | -------------------------------------------------------------------------------- /src/crowdsourcing/example_app/templates/crowdsourcing/base.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | {% block title %}{% endblock %} 4 | {% include "header_tags.html" %} 5 | 6 | 7 | {% block content %}{% endblock %} 8 | 9 | 10 | -------------------------------------------------------------------------------- /do-index/cms/models.py: -------------------------------------------------------------------------------- 1 | from django.contrib.auth.models import User 2 | from django.db import models 3 | class Preliminary(models.Model): 4 | user = models.ForeignKey(User, blank=True, null=True) 5 | slug = models.CharField(max_length=255) 6 | save_string = models.TextField() 7 | -------------------------------------------------------------------------------- /do-index/templates/crowdsourcing/survey_report.html: -------------------------------------------------------------------------------- 1 | {% extends "crowdsourcing/base.html" %} 2 | {% load crowdsourcing %} 3 | 4 | {% block title %}{{ survey.title }}{% endblock %} 5 | 6 | {% block content %} 7 | {% include "crowdsourcing/embeded_survey_report.html" %} 8 | {% endblock %} 9 | -------------------------------------------------------------------------------- /src/crowdsourcing/.hgignore: -------------------------------------------------------------------------------- 1 | syntax: glob 2 | *.pyc 3 | *.swp 4 | Crowdsourcing.egg* 5 | build/lib/crowdsourcing/* 6 | example_app/local_settings.py 7 | example_app/media/shared/crowdsourcing/images/* 8 | example_app/dev.db 9 | docs/_build/* 10 | dist/* 11 | django_crowdsourcing.egg-info/* 12 | -------------------------------------------------------------------------------- /src/crowdsourcing/example_app/templates/crowdsourcing/survey_report.html: -------------------------------------------------------------------------------- 1 | {% extends "crowdsourcing/base.html" %} 2 | {% load crowdsourcing %} 3 | 4 | {% block title %}{{ survey.title }}{% endblock %} 5 | 6 | {% block content %} 7 | {% include "crowdsourcing/embeded_survey_report.html" %} 8 | {% endblock %} 9 | -------------------------------------------------------------------------------- /debug_toolbar/templatetags/debug_toolbar_utils.py: -------------------------------------------------------------------------------- 1 | 2 | from django import template 3 | from django.utils.numberformat import format 4 | 5 | register = template.Library() 6 | 7 | 8 | @register.filter 9 | def dotted_number(number): 10 | number = float(number) 11 | return format(number, '.', 6) 12 | 13 | -------------------------------------------------------------------------------- /do-index/templates/crowdsourcing/submission.html: -------------------------------------------------------------------------------- 1 | {% extends "crowdsourcing/base.html" %} 2 | {% load crowdsourcing %} 3 | 4 | {% block title %}{{ submission.survey.title }}{% endblock %} 5 | 6 | {% block content %} 7 | {% submission_fields submission %} 8 | {% submission_link submission %} 9 | {% endblock %} 10 | -------------------------------------------------------------------------------- /src/crowdsourcing/example_app/templates/crowdsourcing/submission.html: -------------------------------------------------------------------------------- 1 | {% extends "crowdsourcing/base.html" %} 2 | {% load crowdsourcing %} 3 | 4 | {% block title %}{{ submission.survey.title }}{% endblock %} 5 | 6 | {% block content %} 7 | {% submission_fields submission %} 8 | {% submission_link submission %} 9 | {% endblock %} 10 | -------------------------------------------------------------------------------- /do-index/templates/overview.html: -------------------------------------------------------------------------------- 1 |

Zuletzt eingeloggt

2 | 7 | 13 | -------------------------------------------------------------------------------- /do-index/media/admin/js/prepopulate.min.js: -------------------------------------------------------------------------------- 1 | (function(a){a.fn.prepopulate=function(d,g){return this.each(function(){var b=a(this);b.data("_changed",false);b.change(function(){b.data("_changed",true)});var c=function(){if(b.data("_changed")!=true){var e=[];a.each(d,function(h,f){a(f).val().length>0&&e.push(a(f).val())});b.val(URLify(e.join(" "),g))}};a(d.join(",")).keyup(c).change(c).focus(c)})}})(django.jQuery); 2 | -------------------------------------------------------------------------------- /crowdsourcing/fields.py: -------------------------------------------------------------------------------- 1 | try: 2 | from sorl.thumbnail.fields import ImageWithThumbnailsField 3 | except ImportError: 4 | 5 | from django.db.models import ImageField 6 | 7 | class ImageWithThumbnailsField(ImageField): 8 | def __init__(self, *args, **kwargs): 9 | kwargs.pop('thumbnail', None) 10 | super(ImageWithThumbnailsField, self).__init__(*args, **kwargs) 11 | -------------------------------------------------------------------------------- /debug_toolbar/utils/compat/db.py: -------------------------------------------------------------------------------- 1 | from django.conf import settings 2 | try: 3 | from django.db import connections 4 | dbconf = settings.DATABASES 5 | except ImportError: 6 | # Compat with < Django 1.2 7 | from django.db import connection 8 | connections = {'default': connection} 9 | dbconf = { 10 | 'default': { 11 | 'ENGINE': settings.DATABASE_ENGINE, 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/crowdsourcing/crowdsourcing/fields.py: -------------------------------------------------------------------------------- 1 | try: 2 | from sorl.thumbnail.fields import ImageWithThumbnailsField 3 | except ImportError: 4 | 5 | from django.db.models import ImageField 6 | 7 | class ImageWithThumbnailsField(ImageField): 8 | def __init__(self, *args, **kwargs): 9 | kwargs.pop('thumbnail', None) 10 | super(ImageWithThumbnailsField, self).__init__(*args, **kwargs) 11 | -------------------------------------------------------------------------------- /docs/producers/examples/count_bar.rst: -------------------------------------------------------------------------------- 1 | ********************* 2 | A Bar Chart of Counts 3 | ********************* 4 | 5 | If you have a multiple choice question with many answers, or with long answers, then a pie chart may not work very well. 6 | 7 | .. image:: images/BarChartSurvey.png 8 | 9 | Try using a bar chart where each bar represents the number of times that option was selected. 10 | 11 | .. image:: images/BarChartReport.png 12 | -------------------------------------------------------------------------------- /src/crowdsourcing/example_app/templates/crowdsourcing/embeded_survey_questions.html: -------------------------------------------------------------------------------- 1 | {% load crowdsourcing %} 2 | 3 | {% thanks_for_entering request forms survey %} 4 | 5 | {% if not entered or not valid %} 6 | {% for form in forms %} 7 | {{ form.as_p }} 8 | {% endfor %} 9 | 10 | {% if entered %} 11 | Please fix the problems above. 12 | {% endif %} 13 | {% endif %} 14 | -------------------------------------------------------------------------------- /src/crowdsourcing/docs/producers/examples/count_bar.rst: -------------------------------------------------------------------------------- 1 | ********************* 2 | A Bar Chart of Counts 3 | ********************* 4 | 5 | If you have a multiple choice question with many answers, or with long answers, then a pie chart may not work very well. 6 | 7 | .. image:: images/BarChartSurvey.png 8 | 9 | Try using a bar chart where each bar represents the number of times that option was selected. 10 | 11 | .. image:: images/BarChartReport.png 12 | -------------------------------------------------------------------------------- /debug_toolbar/templates/debug_toolbar/panels/headers.html: -------------------------------------------------------------------------------- 1 | {% load i18n %} 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | {% for key, value in headers.iteritems %} 11 | 12 | 13 | 14 | 15 | {% endfor %} 16 | 17 |
{% trans "Key" %}{% trans "Value" %}
{{ key|escape }}{{ value|escape }}
18 | -------------------------------------------------------------------------------- /debug_toolbar/templates/debug_toolbar/panels/versions.html: -------------------------------------------------------------------------------- 1 | {% load i18n %} 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | {% for package, version in versions.iteritems %} 12 | 13 | 14 | 15 | 16 | {% endfor %} 17 | 18 |
{% trans "Package" %}{% trans "Version" %}
{{ package }}{{ version }}
19 | -------------------------------------------------------------------------------- /.hg/cache/branchheads-served: -------------------------------------------------------------------------------- 1 | e4f74b5090c626805b0a77755beb648ba3bd5ba6 351 2 | e4f74b5090c626805b0a77755beb648ba3bd5ba6 default 3 | 65a5c25b8b9861042e6f3026ef00bac0738d2c47 fix_reverse_bug 4 | c436edee489e4398dc70ab63599ab18e696d49e9 groups_tags 5 | 2cbce3bf67a060a2ade58e8830e6e5961a2c5ff9 smelendez_crowdsourcing 6 | 2dec2cd609869137c34c1a51f1c6b9ca726a90bc smullreport 7 | 36f014f9b0e58beb8921a24d94b1d5b4e6611bfa styleexampleapp 8 | a8667366fe3a4853e025e6cd65e15ce05895edcb takeaway 9 | -------------------------------------------------------------------------------- /debug_toolbar/templates/debug_toolbar/panels/settings_vars.html: -------------------------------------------------------------------------------- 1 | {% load i18n %} 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | {% for var in settings.items|dictsort:"0" %} 11 | 12 | 13 | 14 | 15 | {% endfor %} 16 | 17 |
{% trans "Setting" %}{% trans "Value" %}
{{ var.0 }}{{ var.1|pprint }}
18 | -------------------------------------------------------------------------------- /src/crowdsourcing/.hg/cache/branchheads-served: -------------------------------------------------------------------------------- 1 | e4f74b5090c626805b0a77755beb648ba3bd5ba6 351 2 | e4f74b5090c626805b0a77755beb648ba3bd5ba6 default 3 | 65a5c25b8b9861042e6f3026ef00bac0738d2c47 fix_reverse_bug 4 | c436edee489e4398dc70ab63599ab18e696d49e9 groups_tags 5 | 2cbce3bf67a060a2ade58e8830e6e5961a2c5ff9 smelendez_crowdsourcing 6 | 2dec2cd609869137c34c1a51f1c6b9ca726a90bc smullreport 7 | 36f014f9b0e58beb8921a24d94b1d5b4e6611bfa styleexampleapp 8 | a8667366fe3a4853e025e6cd65e15ce05895edcb takeaway 9 | -------------------------------------------------------------------------------- /debug_toolbar/templates/debug_toolbar/panels/template_source.html: -------------------------------------------------------------------------------- 1 | {% load i18n %} 2 |
3 | {% trans "Back" %} 4 |

{% trans 'Template Source' %}: {{ template_name }}

5 |
6 |
7 |
8 | {% if not source.pygmentized %} 9 | {{ source }} 10 | {% else %} 11 | {{ source }} 12 | {% endif %} 13 |
14 |
15 | -------------------------------------------------------------------------------- /src/crowdsourcing/example_app/cms/views.py: -------------------------------------------------------------------------------- 1 | from django.shortcuts import render_to_response 2 | from django.template import RequestContext 3 | 4 | from crowdsourcing.models import Survey 5 | 6 | def home(request): 7 | latest_survey = None 8 | surveys = Survey.live.order_by('-survey_date') 9 | if surveys: 10 | latest_survey = surveys[0] 11 | return render_to_response( 12 | "home.html", 13 | {"latest_survey": latest_survey}, 14 | RequestContext(request)) 15 | -------------------------------------------------------------------------------- /do-index/templates/crowdsourcing/location_question_map.html: -------------------------------------------------------------------------------- 1 | {% load crowdsourcing %} 2 | 3 | 4 | {{ question.survey.title }} 5 | {% include "header_tags.html" %} 6 | 10 | 11 | 12 | {% popup_google_map display question report %} 13 | {% load_maps_and_charts %} 14 | 15 | 16 | -------------------------------------------------------------------------------- /django.wsgi: -------------------------------------------------------------------------------- 1 | import os 2 | import sys 3 | 4 | os.environ['DJANGO_SETTINGS_MODULE'] = 'do-index.settings' 5 | paths= ('/var/domains/webs/walterp/do-index/django-crowdsourcing/do-index', 6 | '/var/domains/webs/walterp/do-index/django-crowdsourcing/', 7 | '/var/domains/webs/walterp/do-index/django-crowdsourcing/crowdsourcing', 8 | ) 9 | for path in paths: 10 | if path not in sys.path: 11 | sys.path.append(path) 12 | import django.core.handlers.wsgi 13 | application = django.core.handlers.wsgi.WSGIHandler() 14 | -------------------------------------------------------------------------------- /debug_toolbar/templates/debug_toolbar/panels/timer.html: -------------------------------------------------------------------------------- 1 | {% load i18n %} 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | {% for key, value in rows %} 15 | 16 | 17 | 18 | 19 | {% endfor %} 20 | 21 |
{% trans "Resource" %}{% trans "Value" %}
{{ key|escape }}{{ value|escape }}
22 | -------------------------------------------------------------------------------- /src/crowdsourcing/example_app/templates/crowdsourcing/location_question_map.html: -------------------------------------------------------------------------------- 1 | {% load crowdsourcing %} 2 | 3 | 4 | {{ question.survey.title }} 5 | {% include "header_tags.html" %} 6 | 10 | 11 | 12 | {% popup_google_map display question report %} 13 | {% load_maps_and_charts %} 14 | 15 | 16 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Survey application for http://survey.do-index.org/ 2 | ================================================== 3 | 4 | ![do-index](http://survey.do-index.org/media/images/do-index-logo.png) 5 | 6 | This is a Django app, based on Django-Crowdsourcing (http://pythonhosted.org/django-crowdsourcing/) 7 | 8 | Please refer to the Django-Crowdsourcing documention for installation instructions: http://pythonhosted.org/django-crowdsourcing/developers/index.html#installation 9 | 10 | See the application at http://survey.do-index.org/ 11 | 12 | 13 | -------------------------------------------------------------------------------- /src/crowdsourcing/example_app/templates/home.html: -------------------------------------------------------------------------------- 1 | {% load crowdsourcing %} 2 | 3 | 4 | OER 5 | {% include "header_tags.html" %} 6 | 7 | 8 | {% if latest_survey %} 9 |
10 | Loading... 11 |
12 | 15 | {% else %} 16 | No live surveys at this time. 17 | {% endif %} 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /debug_toolbar/templates/debug_toolbar/panels/signals.html: -------------------------------------------------------------------------------- 1 | {% load i18n %} 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | {% for name, signal, receivers in signals %} 12 | 13 | 14 | 15 | 16 | 17 | {% endfor %} 18 | 19 |
{% trans "Signal" %}{% trans 'Providing Args' %}{% trans 'Receivers' %}
{{ name|escape }}{{ signal.providing_args|join:", " }}{{ receivers|join:", " }}
20 | -------------------------------------------------------------------------------- /docs/producers/index.rst: -------------------------------------------------------------------------------- 1 | Content Producers 2 | ================= 3 | 4 | This documentation is meant for the people who will create the surveys, curate the results, and decide how to display those results. If you want to really understand crowdsourcing and the kinds of things you can do with it, make your way through Objects and Options. If you just want to get going right now then the Examples are a fine place to start. 5 | 6 | .. toctree:: 7 | :maxdepth: 2 8 | 9 | options 10 | examples/index 11 | filters 12 | live 13 | download 14 | ballot_stuffing 15 | -------------------------------------------------------------------------------- /do-index/media/admin/js/collapse.min.js: -------------------------------------------------------------------------------- 1 | (function(a){a(document).ready(function(){a("fieldset.collapse").each(function(c,b){if(a(b).find("div.errors").length==0){a(b).addClass("collapsed");a(b).find("h2").first().append(' ('+gettext("Show")+")")}});a("fieldset.collapse a.collapse-toggle").toggle(function(){a(this).text(gettext("Hide"));a(this).closest("fieldset").removeClass("collapsed");return false},function(){a(this).text(gettext("Show"));a(this).closest("fieldset").addClass("collapsed"); 2 | return false})})})(django.jQuery); 3 | -------------------------------------------------------------------------------- /src/crowdsourcing/docs/producers/index.rst: -------------------------------------------------------------------------------- 1 | Content Producers 2 | ================= 3 | 4 | This documentation is meant for the people who will create the surveys, curate the results, and decide how to display those results. If you want to really understand crowdsourcing and the kinds of things you can do with it, make your way through Objects and Options. If you just want to get going right now then the Examples are a fine place to start. 5 | 6 | .. toctree:: 7 | :maxdepth: 2 8 | 9 | options 10 | examples/index 11 | filters 12 | live 13 | download 14 | ballot_stuffing 15 | -------------------------------------------------------------------------------- /do-index/media/admin/css/dashboard.css: -------------------------------------------------------------------------------- 1 | /* DASHBOARD */ 2 | 3 | .dashboard .module table th { 4 | width: 100%; 5 | } 6 | 7 | .dashboard .module table td { 8 | white-space: nowrap; 9 | } 10 | 11 | .dashboard .module table td a { 12 | display: block; 13 | padding-right: .6em; 14 | } 15 | 16 | /* RECENT ACTIONS MODULE */ 17 | 18 | .module ul.actionlist { 19 | margin-left: 0; 20 | } 21 | 22 | ul.actionlist li { 23 | list-style-type: none; 24 | } 25 | 26 | ul.actionlist li.changelink { 27 | overflow: hidden; 28 | text-overflow: ellipsis; 29 | -o-text-overflow: ellipsis; 30 | } -------------------------------------------------------------------------------- /debug_toolbar/templates/debug_toolbar/redirect.html: -------------------------------------------------------------------------------- 1 | {% load i18n %} 2 | 3 | 4 | 5 | 6 |

HttpResponseRedirect

7 |

{% trans 'Location' %}: {{ redirect_to }}

8 |

9 | {% trans "The Django Debug Toolbar has intercepted a redirect to the above URL for debug viewing purposes. You can click the above link to continue with the redirect as normal. If you'd like to disable this feature, set the DEBUG_TOOLBAR_CONFIG dictionary's key INTERCEPT_REDIRECTS to False." %} 10 |

11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/producers/download.rst: -------------------------------------------------------------------------------- 1 | .. _downloading-survey-submissions: 2 | 3 | ****************************** 4 | Downloading Survey Submissions 5 | ****************************** 6 | 7 | In the survey list in the Django admin you can click to download a csv, json, xml, or html file of all the submissions for that survey. This feature is part of a more powerful :ref:`API` for the more technically minded. If you are a logged in staff member, as you must be to see the Django admin, the :ref:`API` will return all submissions and all answers to questions, regardless of whether they are public. 8 | 9 | .. image:: images/DownloadSurveys.png 10 | -------------------------------------------------------------------------------- /do-index/templates/crowdsourcing/survey_detail.html: -------------------------------------------------------------------------------- 1 | {% load crowdsourcing %} 2 | 3 | 4 | {{ survey.title }} 5 | {% include "header_tags.html" %} 6 | 7 | 8 | 9 |

{{ survey.title }}

10 | 11 | {% thanks_for_entering request forms survey %} 12 |

{% firstof survey.description survey.tease %}

13 | 14 | {% if forms %} 15 |
16 | {% for form in forms %} 17 | {{ form.as_p }} 18 | {% endfor %} 19 | 20 |
21 | {% endif %} 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /src/crowdsourcing/docs/producers/download.rst: -------------------------------------------------------------------------------- 1 | .. _downloading-survey-submissions: 2 | 3 | ****************************** 4 | Downloading Survey Submissions 5 | ****************************** 6 | 7 | In the survey list in the Django admin you can click to download a csv, json, xml, or html file of all the submissions for that survey. This feature is part of a more powerful :ref:`API` for the more technically minded. If you are a logged in staff member, as you must be to see the Django admin, the :ref:`API` will return all submissions and all answers to questions, regardless of whether they are public. 8 | 9 | .. image:: images/DownloadSurveys.png 10 | -------------------------------------------------------------------------------- /do-index/cms/urls.py: -------------------------------------------------------------------------------- 1 | from __future__ import absolute_import 2 | 3 | from django.conf.urls.defaults import patterns, url 4 | 5 | from .views import home, login, finalize, preliminary, getPreliminary, overview, status, update_ie, create_new_user 6 | 7 | urlpatterns = patterns( 8 | "", 9 | url(r'^$', home), 10 | url(r'^finalize/$', finalize), 11 | url(r'^preliminary/$', preliminary), 12 | url(r'^getPreliminary/$', getPreliminary), 13 | url(r'^login/$', login), 14 | url(r'^overview/$', overview), 15 | url(r'^status/$', status), 16 | url(r'^update-ie/$', update_ie), 17 | url(r'^create-user/$', create_new_user), 18 | ) 19 | -------------------------------------------------------------------------------- /docs/producers/examples/simple_poll.rst: -------------------------------------------------------------------------------- 1 | *********** 2 | Simple Poll 3 | *********** 4 | 5 | This simple poll has a single question and a pie chart display. Since the pie chart is the default display for a choice type question, we don't have to set up any survey reports. 6 | 7 | /admin/crowdsourcing/survey/add/ 8 | ================================ 9 | 10 | .. image:: images/SimplePollSurvey.png 11 | 12 | /crowdsourcing/my-simple-poll/ 13 | ============================== 14 | 15 | .. image:: images/SimplePollEntry.png 16 | 17 | /crowdsourcing/my-simple-poll/report/ 18 | ===================================== 19 | 20 | .. image:: images/SimplePollResults.png 21 | -------------------------------------------------------------------------------- /src/crowdsourcing/example_app/templates/crowdsourcing/survey_detail.html: -------------------------------------------------------------------------------- 1 | {% load crowdsourcing %} 2 | 3 | 4 | {{ survey.title }} 5 | {% include "header_tags.html" %} 6 | 7 | 8 | 9 |

{{ survey.title }}

10 | 11 | {% thanks_for_entering request forms survey %} 12 |

{% firstof survey.description survey.tease %}

13 | 14 | {% if forms %} 15 |
16 | {% for form in forms %} 17 | {{ form.as_p }} 18 | {% endfor %} 19 | 20 |
21 | {% endif %} 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /src/crowdsourcing/example_app/example_app_requirements.txt: -------------------------------------------------------------------------------- 1 | # This pip requirements file contains the additional requirements that let you 2 | # run the example app. Make sure you also install crowdsourcing_requirements. 3 | # 4 | # You'll also need to install whatever apps you need to run your database 5 | # of choice. For postgresql, for example, you could use 6 | # psycopg2>=2.0.8 7 | 8 | # oembed allows video embedding. 9 | -e git+git://github.com/smulloni/python-oembed.git#egg=python-oembed 10 | 11 | # You'll of course need django-crowdsourcing if you want to run the example 12 | # app. 13 | -e hg+https://django-crowdsourcing.googlecode.com/hg/#egg=crowdsourcing 14 | -------------------------------------------------------------------------------- /src/crowdsourcing/docs/producers/examples/simple_poll.rst: -------------------------------------------------------------------------------- 1 | *********** 2 | Simple Poll 3 | *********** 4 | 5 | This simple poll has a single question and a pie chart display. Since the pie chart is the default display for a choice type question, we don't have to set up any survey reports. 6 | 7 | /admin/crowdsourcing/survey/add/ 8 | ================================ 9 | 10 | .. image:: images/SimplePollSurvey.png 11 | 12 | /crowdsourcing/my-simple-poll/ 13 | ============================== 14 | 15 | .. image:: images/SimplePollEntry.png 16 | 17 | /crowdsourcing/my-simple-poll/report/ 18 | ===================================== 19 | 20 | .. image:: images/SimplePollResults.png 21 | -------------------------------------------------------------------------------- /crowdsourcing/tasks.py: -------------------------------------------------------------------------------- 1 | try: 2 | from celery.task import PeriodicTask 3 | from celery.registry import tasks 4 | except ImportError: 5 | PeriodicTask = object 6 | tasks = None 7 | 8 | from datetime import timedelta 9 | import logging 10 | from .models import Answer 11 | from . import settings as local_settings 12 | 13 | logger = logging.getLogger('crowdsourcing.tasks') 14 | 15 | class SyncFlickr(PeriodicTask): 16 | run_every = timedelta(minutes=5) 17 | 18 | def run(self, *args, **kwargs): 19 | logger.debug("Syncing flickr") 20 | Answer.sync_to_flickr() 21 | 22 | if tasks and not local_settings.SYNCHRONOUS_FLICKR_UPLOAD: 23 | tasks.register(SyncFlickr) 24 | -------------------------------------------------------------------------------- /src/crowdsourcing/crowdsourcing/tasks.py: -------------------------------------------------------------------------------- 1 | try: 2 | from celery.task import PeriodicTask 3 | from celery.registry import tasks 4 | except ImportError: 5 | PeriodicTask = object 6 | tasks = None 7 | 8 | from datetime import timedelta 9 | import logging 10 | from .models import Answer 11 | from . import settings as local_settings 12 | 13 | logger = logging.getLogger('crowdsourcing.tasks') 14 | 15 | class SyncFlickr(PeriodicTask): 16 | run_every = timedelta(minutes=5) 17 | 18 | def run(self, *args, **kwargs): 19 | logger.debug("Syncing flickr") 20 | Answer.sync_to_flickr() 21 | 22 | if tasks and not local_settings.SYNCHRONOUS_FLICKR_UPLOAD: 23 | tasks.register(SyncFlickr) 24 | -------------------------------------------------------------------------------- /do-index/manage.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | import os 3 | import sys 4 | 5 | from django.core.management import execute_manager 6 | 7 | # to be able to import the crowdsourcing app 8 | sys.path.append(os.path.normpath(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) 9 | 10 | try: 11 | import settings # Assumed to be in the same directory. 12 | except ImportError: 13 | sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__) 14 | sys.exit(1) 15 | 16 | if __name__ == "__main__": 17 | execute_manager(settings) 18 | -------------------------------------------------------------------------------- /src/crowdsourcing/example_app/templates/header_tags.html: -------------------------------------------------------------------------------- 1 | {% load crowdsourcing %} 2 | 3 | 4 | 5 | 6 | 7 | {% jquery_and_google_api %} 8 | {% yahoo_api %} 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /src/crowdsourcing/example_app/manage.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | import os 3 | import sys 4 | 5 | from django.core.management import execute_manager 6 | 7 | # to be able to import the crowdsourcing app 8 | sys.path.append(os.path.normpath(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) 9 | 10 | try: 11 | import settings # Assumed to be in the same directory. 12 | except ImportError: 13 | sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__) 14 | sys.exit(1) 15 | 16 | if __name__ == "__main__": 17 | execute_manager(settings) 18 | -------------------------------------------------------------------------------- /debug_toolbar/urls.py: -------------------------------------------------------------------------------- 1 | """ 2 | URLpatterns for the debug toolbar. 3 | 4 | These should not be loaded explicitly; the debug toolbar middleware will patch 5 | this into the urlconf for the request. 6 | """ 7 | from django.conf.urls.defaults import * 8 | 9 | _PREFIX = '__debug__' 10 | 11 | urlpatterns = patterns('', 12 | url(r'^%s/m/(.*)$' % _PREFIX, 'debug_toolbar.views.debug_media'), 13 | url(r'^%s/sql_select/$' % _PREFIX, 'debug_toolbar.views.sql_select', name='sql_select'), 14 | url(r'^%s/sql_explain/$' % _PREFIX, 'debug_toolbar.views.sql_explain', name='sql_explain'), 15 | url(r'^%s/sql_profile/$' % _PREFIX, 'debug_toolbar.views.sql_profile', name='sql_profile'), 16 | url(r'^%s/template_source/$' % _PREFIX, 'debug_toolbar.views.template_source', name='template_source'), 17 | ) 18 | -------------------------------------------------------------------------------- /crowdsourcing_requirements.txt: -------------------------------------------------------------------------------- 1 | # This pip requirements file contains all the basic requirements of 2 | # django-crowdsourcing. To run this file you will need to 3 | # $ easy_install pip 4 | # $ pip install -r crowdsourcing_requirements.txt 5 | 6 | # Python Image Library for processing image answers. 7 | PIL>=1.1.6 8 | 9 | # for image thumbnailing 10 | sorl-thumbnail==3.2.5 11 | 12 | # for ordering inlines 13 | -e git://github.com/jpwatts/django-positions.git#egg=django-positions 14 | 15 | # For geocoding addresses and address lookups 16 | geopy 17 | 18 | # For building the documentation. 19 | # Sphinx 20 | 21 | # For Flickr support. Crowdsourcing is fairly graceful if you don't install 22 | # flickrapi. 23 | flickrapi 24 | 25 | # For asynchronously synching Flickr. Sync synchronously by default. 26 | # carrot>=0.10.3 27 | # celery==1.0.2 28 | -------------------------------------------------------------------------------- /debug_toolbar/management/commands/debugsqlshell.py: -------------------------------------------------------------------------------- 1 | from datetime import datetime 2 | 3 | from django.db.backends import util 4 | from django.core.management.commands.shell import Command 5 | 6 | from debug_toolbar.utils import ms_from_timedelta, sqlparse 7 | 8 | 9 | class PrintQueryWrapper(util.CursorDebugWrapper): 10 | def execute(self, sql, params=()): 11 | starttime = datetime.now() 12 | try: 13 | return self.cursor.execute(sql, params) 14 | finally: 15 | raw_sql = self.db.ops.last_executed_query(self.cursor, sql, params) 16 | execution_time = datetime.now() - starttime 17 | print sqlparse.format(raw_sql, reindent=True), 18 | print ' [%.2fms]' % (ms_from_timedelta(execution_time),) 19 | print 20 | 21 | util.CursorDebugWrapper = PrintQueryWrapper 22 | -------------------------------------------------------------------------------- /debug_toolbar/templates/debug_toolbar/panels/logger.html: -------------------------------------------------------------------------------- 1 | {% load i18n %} 2 | {% if records %} 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | {% for record in records %} 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | {% endfor %} 23 | 24 |
{% trans "Level" %}{% trans "Time" %}{% trans "Channel" %}{% trans "Message" %}{% trans "Location" %}
{{ record.level }}{{ record.time|date:"h:i:s m/d/Y" }}{{ record.channel|default:"-" }}{{ record.message }}{{ record.file }}:{{ record.line }}
25 | {% else %} 26 |

{% trans "No messages logged" %}.

27 | {% endif %} 28 | 29 | -------------------------------------------------------------------------------- /src/crowdsourcing/crowdsourcing_requirements.txt: -------------------------------------------------------------------------------- 1 | # This pip requirements file contains all the basic requirements of 2 | # django-crowdsourcing. To run this file you will need to 3 | # $ easy_install pip 4 | # $ pip install -r crowdsourcing_requirements.txt 5 | 6 | # Python Image Library for processing image answers. 7 | PIL>=1.1.6 8 | 9 | # for image thumbnailing 10 | sorl-thumbnail==3.2.5 11 | 12 | # for ordering inlines 13 | -e git://github.com/jpwatts/django-positions.git#egg=django-positions 14 | 15 | # For geocoding addresses and address lookups 16 | geopy 17 | 18 | # For building the documentation. 19 | # Sphinx 20 | 21 | # For Flickr support. Crowdsourcing is fairly graceful if you don't install 22 | # flickrapi. 23 | flickrapi 24 | 25 | # For asynchronously synching Flickr. Sync synchronously by default. 26 | # carrot>=0.10.3 27 | # celery==1.0.2 28 | -------------------------------------------------------------------------------- /crowdsourcing/jsonutils.py: -------------------------------------------------------------------------------- 1 | from datetime import datetime, date, time 2 | 3 | import json 4 | 5 | 6 | FORMATS = {datetime: "%Y-%m-%dT%H:%M:%S", 7 | date: '%Y-%m-%d', 8 | time: '%H:%M:%S'} 9 | 10 | 11 | def dump(obj, fp, **kw): 12 | kw.setdefault('cls', Encoder) 13 | return json.dump(obj, fp, **kw) 14 | 15 | 16 | def dumps(obj, **kw): 17 | kw.setdefault('cls', Encoder) 18 | return json.dumps(obj, **kw) 19 | 20 | 21 | def datetime_to_string(dt): 22 | for k in FORMATS: 23 | if isinstance(dt, k): 24 | return dt.strftime(FORMATS[k]) 25 | 26 | class Encoder(json.JSONEncoder): 27 | def default(self, obj): 28 | if hasattr(obj, 'to_jsondata'): 29 | return obj.to_jsondata() 30 | dt_format = datetime_to_string(obj) 31 | return dt_format if dt_format else super(Encoder, self).default(obj) 32 | -------------------------------------------------------------------------------- /debug_toolbar/panels/settings_vars.py: -------------------------------------------------------------------------------- 1 | from django.conf import settings 2 | from django.views.debug import get_safe_settings 3 | from django.utils.translation import ugettext_lazy as _ 4 | from debug_toolbar.panels import DebugPanel 5 | 6 | 7 | class SettingsVarsDebugPanel(DebugPanel): 8 | """ 9 | A panel to display all variables in django.conf.settings 10 | """ 11 | name = 'SettingsVars' 12 | template = 'debug_toolbar/panels/settings_vars.html' 13 | has_content = True 14 | 15 | def nav_title(self): 16 | return _('Settings') 17 | 18 | def title(self): 19 | return _('Settings from %s') % settings.SETTINGS_MODULE 20 | 21 | def url(self): 22 | return '' 23 | 24 | def process_response(self, request, response): 25 | self.record_stats({ 26 | 'settings': get_safe_settings(), 27 | }) 28 | -------------------------------------------------------------------------------- /do-index/urls.py: -------------------------------------------------------------------------------- 1 | from django.conf import settings 2 | from django.conf.urls.defaults import * 3 | from django.contrib import admin 4 | admin.autodiscover() 5 | 6 | urlpatterns = patterns('', 7 | ('', include('cms.urls')), 8 | (r'^crowdsourcing/', include('crowdsourcing.urls')), 9 | # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 10 | # to INSTALLED_APPS to enable admin documentation: 11 | # (r'^admin/doc/', include('django.contrib.admindocs.urls')), 12 | (r'^admin/', include(admin.site.urls)), 13 | (r'^media/(?P.*)$', 14 | 'django.views.static.serve', 15 | {'document_root': settings.MEDIA_ROOT}), 16 | # See settings.py for detailed instructions on how to build the 17 | # documentation. 18 | (r'^docs/(?P.*)$', 19 | 'django.views.static.serve', 20 | {'document_root': settings.DOCUMENTATION_ROOT}) 21 | ) 22 | -------------------------------------------------------------------------------- /src/crowdsourcing/crowdsourcing/jsonutils.py: -------------------------------------------------------------------------------- 1 | from datetime import datetime, date, time 2 | 3 | import json 4 | 5 | 6 | FORMATS = {datetime: "%Y-%m-%dT%H:%M:%S", 7 | date: '%Y-%m-%d', 8 | time: '%H:%M:%S'} 9 | 10 | 11 | def dump(obj, fp, **kw): 12 | kw.setdefault('cls', Encoder) 13 | return json.dump(obj, fp, **kw) 14 | 15 | 16 | def dumps(obj, **kw): 17 | kw.setdefault('cls', Encoder) 18 | return json.dumps(obj, **kw) 19 | 20 | 21 | def datetime_to_string(dt): 22 | for k in FORMATS: 23 | if isinstance(dt, k): 24 | return dt.strftime(FORMATS[k]) 25 | 26 | class Encoder(json.JSONEncoder): 27 | def default(self, obj): 28 | if hasattr(obj, 'to_jsondata'): 29 | return obj.to_jsondata() 30 | dt_format = datetime_to_string(obj) 31 | return dt_format if dt_format else super(Encoder, self).default(obj) 32 | -------------------------------------------------------------------------------- /src/crowdsourcing/example_app/urls.py: -------------------------------------------------------------------------------- 1 | from django.conf import settings 2 | from django.conf.urls.defaults import * 3 | from django.contrib import admin 4 | admin.autodiscover() 5 | 6 | urlpatterns = patterns('', 7 | ('', include('cms.urls')), 8 | (r'^crowdsourcing/', include('crowdsourcing.urls')), 9 | # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 10 | # to INSTALLED_APPS to enable admin documentation: 11 | # (r'^admin/doc/', include('django.contrib.admindocs.urls')), 12 | (r'^admin/', include(admin.site.urls)), 13 | (r'^media/(?P.*)$', 14 | 'django.views.static.serve', 15 | {'document_root': settings.MEDIA_ROOT}), 16 | # See settings.py for detailed instructions on how to build the 17 | # documentation. 18 | (r'^docs/(?P.*)$', 19 | 'django.views.static.serve', 20 | {'document_root': settings.DOCUMENTATION_ROOT}) 21 | ) 22 | -------------------------------------------------------------------------------- /do-index/media/google_maps.css: -------------------------------------------------------------------------------- 1 | .google_map { 2 | height: 300px; 3 | width: 480px; 4 | } 5 | 6 | .map_story { 7 | height: 284px; 8 | width: 464px; 9 | margin: 8px; 10 | background-color: #FFFFFF; 11 | border: 1px solid #DFDFDF; 12 | display: none; 13 | overflow-x: hidden; 14 | overflow-y: scroll; 15 | position: absolute; 16 | top: 0px; 17 | left: 0px; 18 | z-index: 500; 19 | } 20 | 21 | .google_map_wrapper { 22 | position: relative; 23 | } 24 | 25 | .google_map_wrapper .loading { 26 | margin: 140px 230px 140px 230px; 27 | } 28 | 29 | .google_map_wrapper fieldset { 30 | clear: both; 31 | left: 0; 32 | position: absolute; 33 | z-index: 100; 34 | margin: 20px 0 0; 35 | padding: 5px; 36 | background-color: #F6F6F6; 37 | border: 1px solid #C6C6C6; 38 | width: 288px; 39 | } 40 | 41 | .google_map_wrapper .map_tools li { 42 | float: left; 43 | margin-right: 10px; 44 | } 45 | -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- 1 | try: 2 | from setuptools import setup 3 | except ImportError: 4 | from distutils.core import setup 5 | 6 | import os 7 | readme_file = os.path.join(os.path.dirname(__file__), 8 | 'README') 9 | long_description = open(readme_file).read() 10 | 11 | classifiers = [ 12 | 'Development Status :: 4 - Beta', 13 | 'Framework :: Django', 14 | 'License :: OSI Approved :: MIT License'] 15 | 16 | 17 | setup(name='django-crowdsourcing', 18 | version='1.1.35', 19 | classifiers=classifiers, 20 | description='Django app for collecting and displaying surveys.', 21 | long_description=long_description, 22 | author='Jacob Smullyan, Dave Smith', 23 | author_email='jsmullyan@gmail.com', 24 | url='http://code.google.com/p/django-crowdsourcing/', 25 | packages=['crowdsourcing', 'crowdsourcing.templatetags'], 26 | license='MIT', 27 | ) 28 | -------------------------------------------------------------------------------- /src/crowdsourcing/example_app/media/google_maps.css: -------------------------------------------------------------------------------- 1 | .google_map { 2 | height: 300px; 3 | width: 480px; 4 | } 5 | 6 | .map_story { 7 | height: 284px; 8 | width: 464px; 9 | margin: 8px; 10 | background-color: #FFFFFF; 11 | border: 1px solid #DFDFDF; 12 | display: none; 13 | overflow-x: hidden; 14 | overflow-y: scroll; 15 | position: absolute; 16 | top: 0px; 17 | left: 0px; 18 | z-index: 500; 19 | } 20 | 21 | .google_map_wrapper { 22 | position: relative; 23 | } 24 | 25 | .google_map_wrapper .loading { 26 | margin: 140px 230px 140px 230px; 27 | } 28 | 29 | .google_map_wrapper fieldset { 30 | clear: both; 31 | left: 0; 32 | position: absolute; 33 | z-index: 100; 34 | margin: 20px 0 0; 35 | padding: 5px; 36 | background-color: #F6F6F6; 37 | border: 1px solid #C6C6C6; 38 | width: 288px; 39 | } 40 | 41 | .google_map_wrapper .map_tools li { 42 | float: left; 43 | margin-right: 10px; 44 | } 45 | -------------------------------------------------------------------------------- /src/crowdsourcing/setup.py: -------------------------------------------------------------------------------- 1 | try: 2 | from setuptools import setup 3 | except ImportError: 4 | from distutils.core import setup 5 | 6 | import os 7 | readme_file = os.path.join(os.path.dirname(__file__), 8 | 'README') 9 | long_description = open(readme_file).read() 10 | 11 | classifiers = [ 12 | 'Development Status :: 4 - Beta', 13 | 'Framework :: Django', 14 | 'License :: OSI Approved :: MIT License'] 15 | 16 | 17 | setup(name='django-crowdsourcing', 18 | version='1.1.35', 19 | classifiers=classifiers, 20 | description='Django app for collecting and displaying surveys.', 21 | long_description=long_description, 22 | author='Jacob Smullyan, Dave Smith', 23 | author_email='jsmullyan@gmail.com', 24 | url='http://code.google.com/p/django-crowdsourcing/', 25 | packages=['crowdsourcing', 'crowdsourcing.templatetags'], 26 | license='MIT', 27 | ) 28 | -------------------------------------------------------------------------------- /do-index/media/admin/js/collapse.js: -------------------------------------------------------------------------------- 1 | (function($) { 2 | $(document).ready(function() { 3 | // Add anchor tag for Show/Hide link 4 | $("fieldset.collapse").each(function(i, elem) { 5 | // Don't hide if fields in this fieldset have errors 6 | if ( $(elem).find("div.errors").length == 0 ) { 7 | $(elem).addClass("collapsed"); 8 | $(elem).find("h2").first().append(' (' + gettext("Show") + 10 | ')'); 11 | } 12 | }); 13 | // Add toggle to anchor tag 14 | $("fieldset.collapse a.collapse-toggle").toggle( 15 | function() { // Show 16 | $(this).text(gettext("Hide")); 17 | $(this).closest("fieldset").removeClass("collapsed"); 18 | return false; 19 | }, 20 | function() { // Hide 21 | $(this).text(gettext("Show")); 22 | $(this).closest("fieldset").addClass("collapsed"); 23 | return false; 24 | } 25 | ); 26 | }); 27 | })(django.jQuery); 28 | -------------------------------------------------------------------------------- /debug_toolbar/templates/debug_toolbar/panels/sql_explain.html: -------------------------------------------------------------------------------- 1 | {% load i18n %} 2 |
3 | {% trans "Back" %} 4 |

{% trans "SQL Explained" %}

5 |
6 |
7 |
8 |
9 |
{% trans "Executed SQL" %}
10 |
{{ sql|safe }}
11 |
{% trans "Time" %}
12 |
{{ duration }} ms
13 |
{% trans "Database" %}
14 |
{{ alias }}
15 |
16 | 17 | 18 | 19 | {% for h in headers %} 20 | 21 | {% endfor %} 22 | 23 | 24 | 25 | {% for row in result %} 26 | 27 | {% for column in row %} 28 | 29 | {% endfor %} 30 | 31 | {% endfor %} 32 | 33 |
{{ h|upper }}
{{ column|escape }}
34 |
35 |
36 | -------------------------------------------------------------------------------- /do-index/templates/header_tags.html: -------------------------------------------------------------------------------- 1 | {% load crowdsourcing %} 2 | 3 | 4 | 5 | 6 | 7 | {% jquery_and_google_api %} 8 | {% yahoo_api %} 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/producers/ballot_stuffing.rst: -------------------------------------------------------------------------------- 1 | *********************** 2 | Stuffing the Ballot Box 3 | *********************** 4 | 5 | The best way to prevent ballot box stuffing is to require users to login before they vote using the "Require login" option on surveys. Otherwise, if you are a logged in staff member and have access to :ref:`downloading-survey-submissions`, you can use the submitted_at, ip_address, and session_key columns in the downloadable report to look for telltale signs of ballot box stuffing. 6 | 7 | * Lots of votes for a single option in a short time frame with regular intervals. 8 | * Lots of votes for a single option from a single IP address. Keep in mind that many computers often have a single IP address, such as all the computers in an office building. IP addresses are only a clue that point towards ballot stuffing, not necessarily proof. 9 | * Votes with blank session keys. When you clear your cookies, you clear your session and circumvent crowdsourcing's necessarily insecure first line of defense againt ballot stuffing: cookies. 10 | -------------------------------------------------------------------------------- /do-index/media/admin/css/login.css: -------------------------------------------------------------------------------- 1 | /* LOGIN FORM */ 2 | 3 | body.login { 4 | background: #eee; 5 | } 6 | 7 | .login #container { 8 | background: white; 9 | border: 1px solid #ccc; 10 | width: 28em; 11 | min-width: 300px; 12 | margin-left: auto; 13 | margin-right: auto; 14 | margin-top: 100px; 15 | } 16 | 17 | .login #content-main { 18 | width: 100%; 19 | } 20 | 21 | .login form { 22 | margin-top: 1em; 23 | } 24 | 25 | .login .form-row { 26 | padding: 4px 0; 27 | float: left; 28 | width: 100%; 29 | } 30 | 31 | .login .form-row label { 32 | float: left; 33 | width: 9em; 34 | padding-right: 0.5em; 35 | line-height: 2em; 36 | text-align: right; 37 | font-size: 1em; 38 | color: #333; 39 | } 40 | 41 | .login .form-row #id_username, .login .form-row #id_password { 42 | width: 14em; 43 | } 44 | 45 | .login span.help { 46 | font-size: 10px; 47 | display: block; 48 | } 49 | 50 | .login .submit-row { 51 | clear: both; 52 | padding: 1em 0 0 9.4em; 53 | } 54 | 55 | -------------------------------------------------------------------------------- /src/crowdsourcing/docs/producers/ballot_stuffing.rst: -------------------------------------------------------------------------------- 1 | *********************** 2 | Stuffing the Ballot Box 3 | *********************** 4 | 5 | The best way to prevent ballot box stuffing is to require users to login before they vote using the "Require login" option on surveys. Otherwise, if you are a logged in staff member and have access to :ref:`downloading-survey-submissions`, you can use the submitted_at, ip_address, and session_key columns in the downloadable report to look for telltale signs of ballot box stuffing. 6 | 7 | * Lots of votes for a single option in a short time frame with regular intervals. 8 | * Lots of votes for a single option from a single IP address. Keep in mind that many computers often have a single IP address, such as all the computers in an office building. IP addresses are only a clue that point towards ballot stuffing, not necessarily proof. 9 | * Votes with blank session keys. When you clear your cookies, you clear your session and circumvent crowdsourcing's necessarily insecure first line of defense againt ballot stuffing: cookies. 10 | -------------------------------------------------------------------------------- /debug_toolbar/templates/debug_toolbar/panels/sql_select.html: -------------------------------------------------------------------------------- 1 | {% load i18n %} 2 |
3 | {% trans "Back" %} 4 |

{% trans "SQL Selected" %}

5 |
6 |
7 |
8 |
9 |
{% trans "Executed SQL" %}
10 |
{{ sql|safe }}
11 |
{% trans "Time" %}
12 |
{{ duration }} ms
13 |
{% trans "Database" %}
14 |
{{ alias }}
15 |
16 | {% if result %} 17 | 18 | 19 | 20 | {% for h in headers %} 21 | 22 | {% endfor %} 23 | 24 | 25 | 26 | {% for row in result %} 27 | 28 | {% for column in row %} 29 | 30 | {% endfor %} 31 | 32 | {% endfor %} 33 | 34 |
{{ h|upper }}
{{ column|escape }}
35 | {% else %} 36 |

{% trans "Empty set" %}

37 | {% endif %} 38 |
39 |
40 | -------------------------------------------------------------------------------- /do-index/media/enlarge.css: -------------------------------------------------------------------------------- 1 | .enlarge_link { 2 | cursor: pointer; 3 | } 4 | 5 | #enlarge_bg { 6 | left: 0; 7 | top: 0; 8 | position: fixed; 9 | width: 100%; 10 | height: 100%; 11 | z-index: 1000; 12 | background-color: #000; 13 | } 14 | 15 | #enlarge { 16 | padding: 10px; 17 | position: absolute; 18 | z-index: 1000; 19 | background-color: #fff; 20 | } 21 | 22 | #enlarge .close { 23 | text-align: right; 24 | padding-bottom: 2px; 25 | } 26 | 27 | #enlarge .close a { 28 | cursor: pointer; 29 | background-repeat: no-repeat; 30 | background-position: center right; 31 | background-color: transparent; 32 | text-align: right; 33 | padding-right: 12px; 34 | font-size: 11px; 35 | } 36 | 37 | #enlarge .right { 38 | text-align: right; 39 | } 40 | 41 | .enlarge_div { 42 | position: relative; 43 | display: block; 44 | overflow: hidden; 45 | } 46 | 47 | .enlarge_link { 48 | display: block; 49 | position: absolute; 50 | bottom: 3px; 51 | right: 0px; 52 | text-indent: -9999px; 53 | background-repeat: no-repeat; 54 | background-position: 0px 0px; 55 | background-color: transparent; 56 | width: 19px; 57 | height: 19px; 58 | cursor: pointer; 59 | } 60 | -------------------------------------------------------------------------------- /crowdsourcing/geo.py: -------------------------------------------------------------------------------- 1 | import cStringIO 2 | import logging 3 | import sys 4 | 5 | try: 6 | import geopy 7 | except ImportError: 8 | logging.warn('no geocoding support available') 9 | geopy = None 10 | 11 | from django.conf import settings 12 | 13 | from . import settings as local_settings 14 | 15 | def get_latitude_and_longitude(location): 16 | if geopy is None: 17 | raise ImportError("No module named geopy") 18 | google_key = local_settings.GOOGLE_MAPS_API_KEY 19 | if google_key: 20 | g = geopy.geocoders.Google(google_key) 21 | else: 22 | g = geopy.geocoders.GeoNames(output_format='json') 23 | oldstdout = sys.stdout 24 | try: 25 | sys.stdout = cStringIO.StringIO() 26 | try: 27 | some = list(g.geocode(location, exactly_one=False)) 28 | if some: 29 | place, (lat, long) = some[0] 30 | else: 31 | lat = long = None 32 | except Exception as ex: 33 | logging.exception("error in geocoding: %s" % str(ex)) 34 | lat = long = None 35 | finally: 36 | sys.stdout = oldstdout 37 | return lat, long 38 | -------------------------------------------------------------------------------- /do-index/media/admin/js/LICENSE-JQUERY.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010 John Resig, http://jquery.com/ 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /src/crowdsourcing/crowdsourcing/geo.py: -------------------------------------------------------------------------------- 1 | import cStringIO 2 | import logging 3 | import sys 4 | 5 | try: 6 | import geopy 7 | except ImportError: 8 | logging.warn('no geocoding support available') 9 | geopy = None 10 | 11 | from django.conf import settings 12 | 13 | from . import settings as local_settings 14 | 15 | def get_latitude_and_longitude(location): 16 | if geopy is None: 17 | raise ImportError("No module named geopy") 18 | google_key = local_settings.GOOGLE_MAPS_API_KEY 19 | if google_key: 20 | g = geopy.geocoders.Google(google_key) 21 | else: 22 | g = geopy.geocoders.GeoNames(output_format='json') 23 | oldstdout = sys.stdout 24 | try: 25 | sys.stdout = cStringIO.StringIO() 26 | try: 27 | some = list(g.geocode(location, exactly_one=False)) 28 | if some: 29 | place, (lat, long) = some[0] 30 | else: 31 | lat = long = None 32 | except Exception as ex: 33 | logging.exception("error in geocoding: %s" % str(ex)) 34 | lat = long = None 35 | finally: 36 | sys.stdout = oldstdout 37 | return lat, long 38 | -------------------------------------------------------------------------------- /src/crowdsourcing/example_app/media/enlarge.css: -------------------------------------------------------------------------------- 1 | .enlarge_link { 2 | cursor: pointer; 3 | } 4 | 5 | #enlarge_bg { 6 | left: 0; 7 | top: 0; 8 | position: fixed; 9 | width: 100%; 10 | height: 100%; 11 | z-index: 1000; 12 | background-color: #000; 13 | } 14 | 15 | #enlarge { 16 | padding: 10px; 17 | position: absolute; 18 | z-index: 1000; 19 | background-color: #fff; 20 | } 21 | 22 | #enlarge .close { 23 | text-align: right; 24 | padding-bottom: 2px; 25 | } 26 | 27 | #enlarge .close a { 28 | cursor: pointer; 29 | background-repeat: no-repeat; 30 | background-position: center right; 31 | background-color: transparent; 32 | text-align: right; 33 | padding-right: 12px; 34 | font-size: 11px; 35 | } 36 | 37 | #enlarge .right { 38 | text-align: right; 39 | } 40 | 41 | .enlarge_div { 42 | position: relative; 43 | display: block; 44 | overflow: hidden; 45 | } 46 | 47 | .enlarge_link { 48 | display: block; 49 | position: absolute; 50 | bottom: 3px; 51 | right: 0px; 52 | text-indent: -9999px; 53 | background-repeat: no-repeat; 54 | background-position: 0px 0px; 55 | background-color: transparent; 56 | width: 19px; 57 | height: 19px; 58 | cursor: pointer; 59 | } 60 | -------------------------------------------------------------------------------- /debug_toolbar/templates/debug_toolbar/panels/sql_profile.html: -------------------------------------------------------------------------------- 1 | {% load i18n %} 2 |
3 | {% trans "Back" %} 4 |

{% trans "SQL Profiled" %}

5 |
6 |
7 |
8 | {% if result %} 9 |
10 |
{% trans "Executed SQL" %}
11 |
{{ sql|safe }}
12 |
{% trans "Time" %}
13 |
{{ duration }} ms
14 |
{% trans "Database" %}
15 |
{{ alias }}
16 |
17 | 18 | 19 | 20 | {% for h in headers %} 21 | 22 | {% endfor %} 23 | 24 | 25 | 26 | {% for row in result %} 27 | 28 | {% for column in row %} 29 | 30 | {% endfor %} 31 | 32 | {% endfor %} 33 | 34 |
{{ h|upper }}
{{ column|escape }}
35 | {% else %} 36 |
37 |
{% trans 'Error' %}
38 |
{{ result_error }}
39 |
40 | {% endif %} 41 |
42 |
43 | -------------------------------------------------------------------------------- /do-index/media/admin/css/ie.css: -------------------------------------------------------------------------------- 1 | /* IE 6 & 7 */ 2 | 3 | /* Proper fixed width for dashboard in IE6 */ 4 | 5 | .dashboard #content { 6 | *width: 768px; 7 | } 8 | 9 | .dashboard #content-main { 10 | *width: 535px; 11 | } 12 | 13 | /* IE 6 ONLY */ 14 | 15 | /* Keep header from flowing off the page */ 16 | 17 | #container { 18 | _position: static; 19 | } 20 | 21 | /* Put the right sidebars back on the page */ 22 | 23 | .colMS #content-related { 24 | _margin-right: 0; 25 | _margin-left: 10px; 26 | _position: static; 27 | } 28 | 29 | /* Put the left sidebars back on the page */ 30 | 31 | .colSM #content-related { 32 | _margin-right: 10px; 33 | _margin-left: -115px; 34 | _position: static; 35 | } 36 | 37 | .form-row { 38 | _height: 1%; 39 | } 40 | 41 | /* Fix right margin for changelist filters in IE6 */ 42 | 43 | #changelist-filter ul { 44 | _margin-right: -10px; 45 | } 46 | 47 | /* IE ignores min-height, but treats height as if it were min-height */ 48 | 49 | .change-list .filtered { 50 | _height: 400px; 51 | } 52 | 53 | /* IE doesn't know alpha transparency in PNGs */ 54 | 55 | .inline-deletelink { 56 | background: transparent url(../img/admin/inline-delete-8bit.png) no-repeat; 57 | } -------------------------------------------------------------------------------- /do-index/media/admin/js/prepopulate.js: -------------------------------------------------------------------------------- 1 | (function($) { 2 | $.fn.prepopulate = function(dependencies, maxLength) { 3 | /* 4 | Depends on urlify.js 5 | Populates a selected field with the values of the dependent fields, 6 | URLifies and shortens the string. 7 | dependencies - array of dependent fields id's 8 | maxLength - maximum length of the URLify'd string 9 | */ 10 | return this.each(function() { 11 | var field = $(this); 12 | 13 | field.data('_changed', false); 14 | field.change(function() { 15 | field.data('_changed', true); 16 | }); 17 | 18 | var populate = function () { 19 | // Bail if the fields value has changed 20 | if (field.data('_changed') == true) return; 21 | 22 | var values = []; 23 | $.each(dependencies, function(i, field) { 24 | if ($(field).val().length > 0) { 25 | values.push($(field).val()); 26 | } 27 | }) 28 | field.val(URLify(values.join(' '), maxLength)); 29 | }; 30 | 31 | $(dependencies.join(',')).keyup(populate).change(populate).focus(populate); 32 | }); 33 | }; 34 | })(django.jQuery); 35 | -------------------------------------------------------------------------------- /crowdsourcing/util.py: -------------------------------------------------------------------------------- 1 | import itertools 2 | import re 3 | 4 | from django.utils.importlib import import_module 5 | 6 | 7 | def get_function(path): 8 | """ This used to use import_module, but certain Django-isms such as object 9 | models appeared to not be available with that approach. """ 10 | parts = path.split(".") 11 | to_exec = "from %s import %s as got" % (".".join(parts[:-1]), parts[-1]) 12 | try: 13 | exec(to_exec) 14 | except ImportError, error: 15 | raise ImportError(error.msg, to_exec) 16 | return got 17 | 18 | 19 | class ChoiceEnum(object): 20 | def __init__(self, choices): 21 | if isinstance(choices, basestring): 22 | choices = choices.split() 23 | if all([isinstance(choices, (list,tuple)), 24 | all(isinstance(x, tuple) and len(x) == 2 for x in choices)]): 25 | values = choices 26 | else: 27 | values = zip(itertools.count(1), choices) 28 | for v, n in values: 29 | name = re.sub('[- ]', '_', n.upper()) 30 | setattr(self, name, v) 31 | if isinstance(v, str): 32 | setattr(self, v.upper(), v) 33 | self._choices = values 34 | 35 | def __getitem__(self, idx): 36 | return self._choices[idx] 37 | 38 | def getdisplay(self, key): 39 | return [v[1] for v in self._choices if v[0] == key][0] 40 | -------------------------------------------------------------------------------- /src/crowdsourcing/crowdsourcing/util.py: -------------------------------------------------------------------------------- 1 | import itertools 2 | import re 3 | 4 | from django.utils.importlib import import_module 5 | 6 | 7 | def get_function(path): 8 | """ This used to use import_module, but certain Django-isms such as object 9 | models appeared to not be available with that approach. """ 10 | parts = path.split(".") 11 | to_exec = "from %s import %s as got" % (".".join(parts[:-1]), parts[-1]) 12 | try: 13 | exec(to_exec) 14 | except ImportError, error: 15 | raise ImportError(error.msg, to_exec) 16 | return got 17 | 18 | 19 | class ChoiceEnum(object): 20 | def __init__(self, choices): 21 | if isinstance(choices, basestring): 22 | choices = choices.split() 23 | if all([isinstance(choices, (list,tuple)), 24 | all(isinstance(x, tuple) and len(x) == 2 for x in choices)]): 25 | values = choices 26 | else: 27 | values = zip(itertools.count(1), choices) 28 | for v, n in values: 29 | name = re.sub('[- ]', '_', n.upper()) 30 | setattr(self, name, v) 31 | if isinstance(v, str): 32 | setattr(self, v.upper(), v) 33 | self._choices = values 34 | 35 | def __getitem__(self, idx): 36 | return self._choices[idx] 37 | 38 | def getdisplay(self, key): 39 | return [v[1] for v in self._choices if v[0] == key][0] 40 | -------------------------------------------------------------------------------- /docs/producers/examples/favorite_composer.rst: -------------------------------------------------------------------------------- 1 | ***************** 2 | Favorite Composer 3 | ***************** 4 | 5 | Let's say you have a couple of composers that you want to get some feedback on. Here are several different approaches you could take. 6 | 7 | Simple Poll 8 | =========== 9 | 10 | Let's simply allow users to pick their favorite composer from a list. In other words, you could set this up as a simple poll with a pie chart display that breaks down the results. We will have a single question where the user may pick a composer. We'll set it up so users can enter multiple times which will allow them to stuff the ballot box for a particular composer or vote on multiple composers. 11 | 12 | .. image:: images/FavoriteComposerPoll.png 13 | 14 | Yes or No For Each Composer 15 | =========================== 16 | 17 | For this approach, we'll let each user enter the survey only once. Every composer gets a separate check box. We'll use the default survey report to display a pie chart for every composer showing checks vs. empty checks. 18 | 19 | .. image:: images/FavoriteComposerEach.png 20 | 21 | Rate a Composer 22 | =============== 23 | 24 | In this approach we will let each user pick a single composer and rate him or her. Then we'll display a bar chart that shows the average rating that each composer receives. Again we'll let each user vote multiple times. 25 | 26 | .. image:: images/FavoriteComposerRateOne.png 27 | 28 | .. image:: images/FavoriteComposerRateOneReport.png 29 | -------------------------------------------------------------------------------- /src/crowdsourcing/docs/producers/examples/favorite_composer.rst: -------------------------------------------------------------------------------- 1 | ***************** 2 | Favorite Composer 3 | ***************** 4 | 5 | Let's say you have a couple of composers that you want to get some feedback on. Here are several different approaches you could take. 6 | 7 | Simple Poll 8 | =========== 9 | 10 | Let's simply allow users to pick their favorite composer from a list. In other words, you could set this up as a simple poll with a pie chart display that breaks down the results. We will have a single question where the user may pick a composer. We'll set it up so users can enter multiple times which will allow them to stuff the ballot box for a particular composer or vote on multiple composers. 11 | 12 | .. image:: images/FavoriteComposerPoll.png 13 | 14 | Yes or No For Each Composer 15 | =========================== 16 | 17 | For this approach, we'll let each user enter the survey only once. Every composer gets a separate check box. We'll use the default survey report to display a pie chart for every composer showing checks vs. empty checks. 18 | 19 | .. image:: images/FavoriteComposerEach.png 20 | 21 | Rate a Composer 22 | =============== 23 | 24 | In this approach we will let each user pick a single composer and rate him or her. Then we'll display a bar chart that shows the average rating that each composer receives. Again we'll let each user vote multiple times. 25 | 26 | .. image:: images/FavoriteComposerRateOne.png 27 | 28 | .. image:: images/FavoriteComposerRateOneReport.png 29 | -------------------------------------------------------------------------------- /docs/producers/examples/categories.rst: -------------------------------------------------------------------------------- 1 | ********** 2 | Categories 3 | ********** 4 | 5 | Let's say you want to create a survey where everybody identifies as a liberal or a conservative. Now let's say you want to make a report for the liberals, a report for the conservatives, and a combined report. You might start by setting up this survey. First notice the all important radio button list question which lets the user pick whether they are a liberal or a conservative. Next notice that this same question sets up some map icons. When crowdsourcing displays the map for the location question it will use our custom icons depending on how users answer this question. 6 | 7 | .. image:: images/LiberalConservativeSurvey.png 8 | 9 | Let's set up a survey report. Pay particular attention to the Survey Report Displays. We've set our report to display a map, followed by a bar chart, followed by some arbitrary text. The map is simple enough. It will display an icon for every submission with a valid address. The map, by default, will set the zoom and location so that it can display all icons at once. The bar chart here will show how many conservatives there are and how many liberals there are. Finally, the arbitrary text will display links to the same report but with filters in place. Notice that you can insert arbitrary html in the report. Also pay attention to the links we insert into the survey. We make clever use of the filters to display only liberals, only conservatives, or both. 10 | 11 | .. image:: images/LiberalConservativeReport.png 12 | -------------------------------------------------------------------------------- /src/crowdsourcing/docs/producers/examples/categories.rst: -------------------------------------------------------------------------------- 1 | ********** 2 | Categories 3 | ********** 4 | 5 | Let's say you want to create a survey where everybody identifies as a liberal or a conservative. Now let's say you want to make a report for the liberals, a report for the conservatives, and a combined report. You might start by setting up this survey. First notice the all important radio button list question which lets the user pick whether they are a liberal or a conservative. Next notice that this same question sets up some map icons. When crowdsourcing displays the map for the location question it will use our custom icons depending on how users answer this question. 6 | 7 | .. image:: images/LiberalConservativeSurvey.png 8 | 9 | Let's set up a survey report. Pay particular attention to the Survey Report Displays. We've set our report to display a map, followed by a bar chart, followed by some arbitrary text. The map is simple enough. It will display an icon for every submission with a valid address. The map, by default, will set the zoom and location so that it can display all icons at once. The bar chart here will show how many conservatives there are and how many liberals there are. Finally, the arbitrary text will display links to the same report but with filters in place. Notice that you can insert arbitrary html in the report. Also pay attention to the links we insert into the survey. We make clever use of the filters to display only liberals, only conservatives, or both. 10 | 11 | .. image:: images/LiberalConservativeReport.png 12 | -------------------------------------------------------------------------------- /debug_toolbar/panels/headers.py: -------------------------------------------------------------------------------- 1 | from django.utils.translation import ugettext_lazy as _ 2 | from debug_toolbar.panels import DebugPanel 3 | 4 | 5 | class HeaderDebugPanel(DebugPanel): 6 | """ 7 | A panel to display HTTP headers. 8 | """ 9 | name = 'Header' 10 | template = 'debug_toolbar/panels/headers.html' 11 | has_content = True 12 | # List of headers we want to display 13 | header_filter = ( 14 | 'CONTENT_TYPE', 15 | 'HTTP_ACCEPT', 16 | 'HTTP_ACCEPT_CHARSET', 17 | 'HTTP_ACCEPT_ENCODING', 18 | 'HTTP_ACCEPT_LANGUAGE', 19 | 'HTTP_CACHE_CONTROL', 20 | 'HTTP_CONNECTION', 21 | 'HTTP_HOST', 22 | 'HTTP_KEEP_ALIVE', 23 | 'HTTP_REFERER', 24 | 'HTTP_USER_AGENT', 25 | 'QUERY_STRING', 26 | 'REMOTE_ADDR', 27 | 'REMOTE_HOST', 28 | 'REQUEST_METHOD', 29 | 'SCRIPT_NAME', 30 | 'SERVER_NAME', 31 | 'SERVER_PORT', 32 | 'SERVER_PROTOCOL', 33 | 'SERVER_SOFTWARE', 34 | ) 35 | 36 | def nav_title(self): 37 | return _('HTTP Headers') 38 | 39 | def title(self): 40 | return _('HTTP Headers') 41 | 42 | def url(self): 43 | return '' 44 | 45 | def process_request(self, request): 46 | self.headers = dict( 47 | [(k, request.META[k]) for k in self.header_filter if k in request.META] 48 | ) 49 | 50 | def process_response(self, request, response): 51 | self.record_stats({ 52 | 'headers': self.headers 53 | }) 54 | -------------------------------------------------------------------------------- /debug_toolbar/templates/debug_toolbar/panels/cache.html: -------------------------------------------------------------------------------- 1 | {% load i18n %} 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 |
{% trans "Total Calls" %}{{ cache_calls }}{% trans "Total Time" %}{{ cache_time }}ms{% trans "Hits" %}{{ cache.hits }}{% trans "Misses" %}{{ cache.misses }}
gets{{ cache.gets }}sets{{ cache.sets }}deletes{{ cache.deletes }}get_many{{ cache.get_many }}
34 | {% if cache.calls %} 35 |

{% trans "Breakdown" %}

36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | {% for query in cache.calls %} 47 | 48 | 49 | 50 | 51 | 52 | 53 | {% endfor %} 54 | 55 |
{% trans "Time" %} (ms){% trans "Type" %}{% trans "Parameters" %}{% trans "Function" %}
{{ query.0|floatformat:"4" }}{{ query.1|escape }}{{ query.2|escape }}{{ query.3.2|escape }}: {{ query.3.3.0|escape }}
56 | {% endif %} 57 | -------------------------------------------------------------------------------- /debug_toolbar/utils/sqlparse/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2008 Andi Albrecht, albrecht.andi@gmail.com 2 | # 3 | # This module is part of python-sqlparse and is released under 4 | # the BSD License: http://www.opensource.org/licenses/bsd-license.php. 5 | 6 | """Parse SQL statements.""" 7 | 8 | 9 | __version__ = '0.1.3' 10 | 11 | 12 | class SQLParseError(Exception): 13 | """Base class for exceptions in this module.""" 14 | 15 | 16 | # Setup namespace 17 | from debug_toolbar.utils.sqlparse import engine 18 | from debug_toolbar.utils.sqlparse import filters 19 | from debug_toolbar.utils.sqlparse import formatter 20 | 21 | 22 | def parse(sql): 23 | """Parse sql and return a list of statements. 24 | 25 | *sql* is a single string containting one or more SQL statements. 26 | 27 | Returns a tuple of :class:`~sqlparse.sql.Statement` instances. 28 | """ 29 | stack = engine.FilterStack() 30 | stack.full_analyze() 31 | return tuple(stack.run(sql)) 32 | 33 | 34 | def format(sql, **options): 35 | """Format *sql* according to *options*. 36 | 37 | Available options are documented in :ref:`formatting`. 38 | 39 | Returns the formatted SQL statement as string. 40 | """ 41 | stack = engine.FilterStack() 42 | options = formatter.validate_options(options) 43 | stack = formatter.build_filter_stack(stack, options) 44 | stack.postprocess.append(filters.SerializerUnicode()) 45 | return ''.join(stack.run(sql)) 46 | 47 | 48 | def split(sql): 49 | """Split *sql* into single statements. 50 | 51 | Returns a list of strings. 52 | """ 53 | stack = engine.FilterStack() 54 | stack.split_statements = True 55 | return [unicode(stmt) for stmt in stack.run(sql)] 56 | -------------------------------------------------------------------------------- /debug_toolbar/templates/debug_toolbar/panels/profiling.html: -------------------------------------------------------------------------------- 1 | {% load i18n %} 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | {% for call in func_list %} 16 | 17 | 18 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | {% if call.line_stats_text %} 35 | 36 | 39 | 40 | {% endif %} 41 | {% endfor %} 42 | 43 |
{% trans "Call" %}{% trans "CumTime" %}{% trans "Per" %}{% trans "TotTime" %}{% trans "Per" %}{% trans "Count" %}
19 |
20 | {% if call.has_subfuncs %} 21 | - 22 | {% else %} 23 | 24 | {% endif %} 25 | {{ call.func_std_string }} 26 |
27 |
{{ call.cumtime|floatformat:3 }}{{ call.cumtime_per_call|floatformat:3 }}{{ call.tottime|floatformat:3 }}{{ call.tottime_per_call|floatformat:3 }}{{ call.count }}
37 |
{{ call.line_stats_text }}
38 |
-------------------------------------------------------------------------------- /debug_toolbar/templates/debug_toolbar/panels/templates.html: -------------------------------------------------------------------------------- 1 | {% load i18n %} 2 |

{% trans 'Template path' %}{{ template_dirs|length|pluralize }}

3 | {% if template_dirs %} 4 |
    5 | {% for template in template_dirs %} 6 |
  1. {{ template }}
  2. 7 | {% endfor %} 8 |
9 | {% else %} 10 |

None

11 | {% endif %} 12 | 13 |

{% trans "Template" %}{{ templates|length|pluralize }}

14 | {% if templates %} 15 |
16 | {% for template in templates %} 17 |
{{ template.template.name|addslashes }}
18 |
{{ template.template.origin_name|addslashes }}
19 | {% if template.context %} 20 |
21 | 22 | 23 |
24 | {% endif %} 25 | {% endfor %} 26 |
27 | {% else %} 28 |

{% trans 'None' %}

29 | {% endif %} 30 | 31 |

{% trans 'Context processor' %}{{ context_processors|length|pluralize }}

32 | {% if context_processors %} 33 |
34 | {% for key, value in context_processors.iteritems %} 35 |
{{ key|escape }}
36 |
37 | 38 | 39 |
40 | {% endfor %} 41 |
42 | {% else %} 43 |

{% trans 'None' %}

44 | {% endif %} 45 | -------------------------------------------------------------------------------- /do-index/templates/crowdsourcing/embeded_survey_report.html: -------------------------------------------------------------------------------- 1 | {% load crowdsourcing %} 2 | 3 |

{{ report.get_title }}

4 |

{{ report.get_summary }}

5 | 6 | {% if thanks %} 7 |

Thanks for your submission.

8 | {% endif %} 9 | 10 | {% if filters %} 11 |

Filters:

12 | {% filters_as_ul filters %} 13 | {% endif %} 14 | 15 | {% if not fields %} 16 | All questions in this survey have private answers. 17 | {% endif %} 18 | 19 |

Displays:

20 | {% for display in report.get_survey_report_displays %} 21 | {% if display.is_text %} 22 | {{ display.annotation|safe }} 23 | {% else %}{% if display.is_pie %} 24 | {% for question in display.questions %} 25 | {% yahoo_pie_chart display question request.GET %} 26 | {% endfor %} 27 | {% else %}{% if display.is_map %} 28 | {% for question in display.questions %} 29 | {% google_map display question report %} 30 | {% endfor %} 31 | {% else %}{% if display.is_bar %} 32 | {% yahoo_bar_chart display request.GET request.user.is_staff %} 33 | {% else %}{% if display.is_line %} 34 | {% yahoo_line_chart display request.GET request.user.is_staff %} 35 | {% else %}{% if display.is_slideshow %} 36 | {% for question in display.questions %} 37 | {% simple_slideshow display question request.GET "jcarousel-skin-tango" %} 38 | {% endfor %} 39 | {% else %}{% if display.is_download %} 40 | {% download_tags survey %} 41 | {% endif %}{% endif %}{% endif %}{% endif %}{% endif %}{% endif %}{% endif %} 42 | {% endfor %} 43 | {% load_maps_and_charts %} 44 | 45 | {% if display_individual_results %} 46 |

Submissions:

47 | {% submissions page_obj.object_list fields %} 48 | {% paginator survey report pages_to_link page_obj %} 49 | {% endif %} 50 | -------------------------------------------------------------------------------- /src/crowdsourcing/example_app/templates/crowdsourcing/embeded_survey_report.html: -------------------------------------------------------------------------------- 1 | {% load crowdsourcing %} 2 | 3 |

{{ report.get_title }}

4 |

{{ report.get_summary }}

5 | 6 | {% if thanks %} 7 |

Thanks for your submission.

8 | {% endif %} 9 | 10 | {% if filters %} 11 |

Filters:

12 | {% filters_as_ul filters %} 13 | {% endif %} 14 | 15 | {% if not fields %} 16 | All questions in this survey have private answers. 17 | {% endif %} 18 | 19 |

Displays:

20 | {% for display in report.get_survey_report_displays %} 21 | {% if display.is_text %} 22 | {{ display.annotation|safe }} 23 | {% else %}{% if display.is_pie %} 24 | {% for question in display.questions %} 25 | {% yahoo_pie_chart display question request.GET %} 26 | {% endfor %} 27 | {% else %}{% if display.is_map %} 28 | {% for question in display.questions %} 29 | {% google_map display question report %} 30 | {% endfor %} 31 | {% else %}{% if display.is_bar %} 32 | {% yahoo_bar_chart display request.GET request.user.is_staff %} 33 | {% else %}{% if display.is_line %} 34 | {% yahoo_line_chart display request.GET request.user.is_staff %} 35 | {% else %}{% if display.is_slideshow %} 36 | {% for question in display.questions %} 37 | {% simple_slideshow display question request.GET "jcarousel-skin-tango" %} 38 | {% endfor %} 39 | {% else %}{% if display.is_download %} 40 | {% download_tags survey %} 41 | {% endif %}{% endif %}{% endif %}{% endif %}{% endif %}{% endif %}{% endif %} 42 | {% endfor %} 43 | {% load_maps_and_charts %} 44 | 45 | {% if display_individual_results %} 46 |

Submissions:

47 | {% submissions page_obj.object_list fields %} 48 | {% paginator survey report pages_to_link page_obj %} 49 | {% endif %} 50 | -------------------------------------------------------------------------------- /debug_toolbar/panels/version.py: -------------------------------------------------------------------------------- 1 | import sys 2 | 3 | import django 4 | from django.conf import settings 5 | from django.utils.translation import ugettext_lazy as _ 6 | 7 | from debug_toolbar.panels import DebugPanel 8 | 9 | 10 | class VersionDebugPanel(DebugPanel): 11 | """ 12 | Panel that displays the Django version. 13 | """ 14 | name = 'Version' 15 | template = 'debug_toolbar/panels/versions.html' 16 | has_content = True 17 | 18 | def nav_title(self): 19 | return _('Versions') 20 | 21 | def nav_subtitle(self): 22 | return 'Django %s' % django.get_version() 23 | 24 | def url(self): 25 | return '' 26 | 27 | def title(self): 28 | return _('Versions') 29 | 30 | def process_response(self, request, response): 31 | versions = {} 32 | versions['Python'] = '%d.%d.%d' % sys.version_info[:3] 33 | for app in list(settings.INSTALLED_APPS) + ['django']: 34 | name = app.split('.')[-1].replace('_', ' ').capitalize() 35 | __import__(app) 36 | app = sys.modules[app] 37 | if hasattr(app, 'get_version'): 38 | get_version = app.get_version 39 | if callable(get_version): 40 | version = get_version() 41 | else: 42 | version = get_version 43 | elif hasattr(app, 'VERSION'): 44 | version = app.VERSION 45 | elif hasattr(app, '__version__'): 46 | version = app.__version__ 47 | else: 48 | continue 49 | if isinstance(version, (list, tuple)): 50 | version = '.'.join(str(o) for o in version) 51 | versions[name] = version 52 | 53 | self.record_stats({ 54 | 'versions': versions, 55 | 'paths': sys.path, 56 | }) 57 | -------------------------------------------------------------------------------- /debug_toolbar/templates/debug_toolbar/base.html: -------------------------------------------------------------------------------- 1 | {% load i18n %} 2 | 6 | 7 | 55 | -------------------------------------------------------------------------------- /.hgtags: -------------------------------------------------------------------------------- 1 | cc478a0a083c87fe59eb61b90bfad14d59037a9a 1.1 2 | cc478a0a083c87fe59eb61b90bfad14d59037a9a 1.1 3 | 211bbabfc67236bddb3ff992d50f237513a4af94 1.1 4 | 904f158bf6567f25fff3c44989c81ded1fa0330d 1.1.1 5 | 59b6611fbd87eb5a13560a319b0b2c3f5f2aab39 1.1.2 6 | 59b6611fbd87eb5a13560a319b0b2c3f5f2aab39 1.1.2 7 | b03b442d7e9db85f4324f063aec968ece0179afa 1.1.2 8 | f6a142c63cc313dd07fba71ccdd5b3dbb2017315 1.1.3 9 | a74896eac429ed163f7a7b6d0adc55468716862e 1.1.4 10 | 9fe6435d99eb9b1df2862b9c52a67d90ea002daf 1.1.6 11 | da11e2022f79c0eac7e686026e61b527bc01e290 1.1.7 12 | da11e2022f79c0eac7e686026e61b527bc01e290 1.1.7 13 | f0a35783f9972fae3d0c35b7d849b118d1ddbb72 1.1.7 14 | c94ad5d48c036a7b3a357146c23c5dad44f3eb07 1.1.8 15 | b87f0c0b5654accfc691716626cfb459fb2ad9a4 1.1.12 16 | b87f0c0b5654accfc691716626cfb459fb2ad9a4 1.1.12 17 | 91c600968a2d342b9f6ef9f6b92e20b9212b3fb1 1.1.12 18 | 58f3bb42dd84ac4034ef8784c51be530d0498d0e 1.1.13 19 | bf06b3bb732b2bfa7122610afa62c82fe6e1e3f7 1.1.14 20 | a6c7ef613027eeaac2b2320fe0e6bf5189476fad 1.1.15 21 | bc8a7956389597dfbca6b4ad5d411cab321ac56d 1.1.16 22 | c6e1aac74fd19a1573f7e95940e247ec913f1a6b 1.1.17 23 | a96da055e03df77e0bb4e5cd127ebdcdf0402eb0 1.1.18 24 | 17392ea8ea5470df5915de70d600af3a02cd8138 1.1.19 25 | fe00699aa3ff9264292d80e340c4976850ccaa4a 1.1.20 26 | 2f39596495a728ca76c36118815e1c6dbd390b49 1.1.21 27 | a036f17449bea62ab586aab3a345f02ee151eb80 1.1.22 28 | 77c26f965922a1084a5bd5452e561c9e65c136df 1.1.23 29 | 9251e29632060d234aee68afd986834b7021bcab 1.1.24 30 | 3d0ab2fa7adfbbbb75b3dcfd85f80c076f3e3711 1.1.25 31 | 951dd7215c979bb9ac27d31cfc69cdb74112846c 1.1.26 32 | 1e94ce5aaa429bca8ddf2835c7fc03405041e03c 1.1.27 33 | c8fe1c06a696e76dcf5d792c318837744d7edd20 1.1.28 34 | a670e79ff36f11d1cc35e513218e46893588c8dd 1.1.29 35 | 8fbd7289d23998d0cfff0c34e41d97a9bc70eaa4 1.1.30 36 | e523b9320d6a9ae74a72dc8af81784cbf31b913b 1.1.31 37 | 586ee8d3584b2c81dad8405b0da78d92b6a5e88f 1.1.32 38 | b536599a4c0c97635b31c31f5e86b6e329631a48 1.1.33 39 | a3524ef0cae6893eac00927013900acfaf0123d5 1.1.34 40 | -------------------------------------------------------------------------------- /src/crowdsourcing/.hgtags: -------------------------------------------------------------------------------- 1 | cc478a0a083c87fe59eb61b90bfad14d59037a9a 1.1 2 | cc478a0a083c87fe59eb61b90bfad14d59037a9a 1.1 3 | 211bbabfc67236bddb3ff992d50f237513a4af94 1.1 4 | 904f158bf6567f25fff3c44989c81ded1fa0330d 1.1.1 5 | 59b6611fbd87eb5a13560a319b0b2c3f5f2aab39 1.1.2 6 | 59b6611fbd87eb5a13560a319b0b2c3f5f2aab39 1.1.2 7 | b03b442d7e9db85f4324f063aec968ece0179afa 1.1.2 8 | f6a142c63cc313dd07fba71ccdd5b3dbb2017315 1.1.3 9 | a74896eac429ed163f7a7b6d0adc55468716862e 1.1.4 10 | 9fe6435d99eb9b1df2862b9c52a67d90ea002daf 1.1.6 11 | da11e2022f79c0eac7e686026e61b527bc01e290 1.1.7 12 | da11e2022f79c0eac7e686026e61b527bc01e290 1.1.7 13 | f0a35783f9972fae3d0c35b7d849b118d1ddbb72 1.1.7 14 | c94ad5d48c036a7b3a357146c23c5dad44f3eb07 1.1.8 15 | b87f0c0b5654accfc691716626cfb459fb2ad9a4 1.1.12 16 | b87f0c0b5654accfc691716626cfb459fb2ad9a4 1.1.12 17 | 91c600968a2d342b9f6ef9f6b92e20b9212b3fb1 1.1.12 18 | 58f3bb42dd84ac4034ef8784c51be530d0498d0e 1.1.13 19 | bf06b3bb732b2bfa7122610afa62c82fe6e1e3f7 1.1.14 20 | a6c7ef613027eeaac2b2320fe0e6bf5189476fad 1.1.15 21 | bc8a7956389597dfbca6b4ad5d411cab321ac56d 1.1.16 22 | c6e1aac74fd19a1573f7e95940e247ec913f1a6b 1.1.17 23 | a96da055e03df77e0bb4e5cd127ebdcdf0402eb0 1.1.18 24 | 17392ea8ea5470df5915de70d600af3a02cd8138 1.1.19 25 | fe00699aa3ff9264292d80e340c4976850ccaa4a 1.1.20 26 | 2f39596495a728ca76c36118815e1c6dbd390b49 1.1.21 27 | a036f17449bea62ab586aab3a345f02ee151eb80 1.1.22 28 | 77c26f965922a1084a5bd5452e561c9e65c136df 1.1.23 29 | 9251e29632060d234aee68afd986834b7021bcab 1.1.24 30 | 3d0ab2fa7adfbbbb75b3dcfd85f80c076f3e3711 1.1.25 31 | 951dd7215c979bb9ac27d31cfc69cdb74112846c 1.1.26 32 | 1e94ce5aaa429bca8ddf2835c7fc03405041e03c 1.1.27 33 | c8fe1c06a696e76dcf5d792c318837744d7edd20 1.1.28 34 | a670e79ff36f11d1cc35e513218e46893588c8dd 1.1.29 35 | 8fbd7289d23998d0cfff0c34e41d97a9bc70eaa4 1.1.30 36 | e523b9320d6a9ae74a72dc8af81784cbf31b913b 1.1.31 37 | 586ee8d3584b2c81dad8405b0da78d92b6a5e88f 1.1.32 38 | b536599a4c0c97635b31c31f5e86b6e329631a48 1.1.33 39 | a3524ef0cae6893eac00927013900acfaf0123d5 1.1.34 40 | -------------------------------------------------------------------------------- /django_crowdsourcing.egg-info/SOURCES.txt: -------------------------------------------------------------------------------- 1 | CHANGES 2 | MANIFEST.in 3 | README 4 | crowdsourcing_requirements.txt 5 | setup.py 6 | crowdsourcing/__init__.py 7 | crowdsourcing/admin.py 8 | crowdsourcing/fields.py 9 | crowdsourcing/flickrsupport.py 10 | crowdsourcing/forms.py 11 | crowdsourcing/geo.py 12 | crowdsourcing/jsonutils.py 13 | crowdsourcing/models.py 14 | crowdsourcing/oembedutils.py 15 | crowdsourcing/settings.py 16 | crowdsourcing/tasks.py 17 | crowdsourcing/tests.py 18 | crowdsourcing/urls.py 19 | crowdsourcing/util.py 20 | crowdsourcing/views.py 21 | crowdsourcing/templatetags/__init__.py 22 | crowdsourcing/templatetags/crowdsourcing.py 23 | django_crowdsourcing.egg-info/PKG-INFO 24 | django_crowdsourcing.egg-info/SOURCES.txt 25 | django_crowdsourcing.egg-info/dependency_links.txt 26 | django_crowdsourcing.egg-info/top_level.txt 27 | docs/Makefile 28 | docs/conf.py 29 | docs/index.rst 30 | docs/developers/index.rst 31 | docs/producers/ballot_stuffing.rst 32 | docs/producers/download.rst 33 | docs/producers/filters.rst 34 | docs/producers/index.rst 35 | docs/producers/live.rst 36 | docs/producers/options.rst 37 | docs/producers/examples/categories.rst 38 | docs/producers/examples/count_bar.rst 39 | docs/producers/examples/favorite_composer.rst 40 | docs/producers/examples/index.rst 41 | docs/producers/examples/simple_poll.rst 42 | docs/producers/examples/top_10.rst 43 | docs/producers/examples/images/BarChartReport.png 44 | docs/producers/examples/images/BarChartSurvey.png 45 | docs/producers/examples/images/FavoriteComposerEach.png 46 | docs/producers/examples/images/FavoriteComposerPoll.png 47 | docs/producers/examples/images/FavoriteComposerRateOne.png 48 | docs/producers/examples/images/FavoriteComposerRateOneReport.png 49 | docs/producers/examples/images/LiberalConservativeReport.png 50 | docs/producers/examples/images/LiberalConservativeSurvey.png 51 | docs/producers/examples/images/SimplePollEntry.png 52 | docs/producers/examples/images/SimplePollResults.png 53 | docs/producers/examples/images/SimplePollSurvey.png 54 | docs/producers/examples/images/Top10.png 55 | docs/producers/images/DownloadSurveys.png -------------------------------------------------------------------------------- /do-index/media/admin/js/compress.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | import os 3 | import optparse 4 | import subprocess 5 | import sys 6 | 7 | here = os.path.dirname(__file__) 8 | 9 | def main(): 10 | usage = "usage: %prog [file1..fileN]" 11 | description = """With no file paths given this script will automatically 12 | compress all jQuery-based files of the admin app. Requires the Google Closure 13 | Compiler library and Java version 6 or later.""" 14 | parser = optparse.OptionParser(usage, description=description) 15 | parser.add_option("-c", dest="compiler", default="~/bin/compiler.jar", 16 | help="path to Closure Compiler jar file") 17 | parser.add_option("-v", "--verbose", 18 | action="store_true", dest="verbose") 19 | parser.add_option("-q", "--quiet", 20 | action="store_false", dest="verbose") 21 | (options, args) = parser.parse_args() 22 | 23 | compiler = os.path.expanduser(options.compiler) 24 | if not os.path.exists(compiler): 25 | sys.exit("Google Closure compiler jar file %s not found. Please use the -c option to specify the path." % compiler) 26 | 27 | if not args: 28 | if options.verbose: 29 | sys.stdout.write("No filenames given; defaulting to admin scripts\n") 30 | args = [os.path.join(here, f) for f in [ 31 | "actions.js", "collapse.js", "inlines.js", "prepopulate.js"]] 32 | 33 | for arg in args: 34 | if not arg.endswith(".js"): 35 | arg = arg + ".js" 36 | to_compress = os.path.expanduser(arg) 37 | if os.path.exists(to_compress): 38 | to_compress_min = "%s.min.js" % "".join(arg.rsplit(".js")) 39 | cmd = "java -jar %s --js %s --js_output_file %s" % (compiler, to_compress, to_compress_min) 40 | if options.verbose: 41 | sys.stdout.write("Running: %s\n" % cmd) 42 | subprocess.call(cmd.split()) 43 | else: 44 | sys.stdout.write("File %s not found. Sure it exists?\n" % to_compress) 45 | 46 | if __name__ == '__main__': 47 | main() 48 | -------------------------------------------------------------------------------- /src/crowdsourcing/example_app/media/styles.css: -------------------------------------------------------------------------------- 1 | body { 2 | font: 9.5pt Arial, Helvetica, 'Liberation Sans', FreeSans, sans-serif; 3 | } 4 | 5 | ul { 6 | list-style-type: none; 7 | padding: 0; 8 | } 9 | 10 | ul li { 11 | margin: 4px 0; 12 | } 13 | 14 | .survey label, .survey input, .survey textarea { 15 | display: block; 16 | margin: 2px 0; 17 | } 18 | 19 | .survey label { 20 | font-weight: bold; 21 | } 22 | 23 | .survey ul li input { 24 | display: inline; 25 | } 26 | 27 | .survey label.help_text { 28 | display: inline; 29 | } 30 | 31 | .required { 32 | color: #dd0000; 33 | margin: 0 5px; 34 | } 35 | 36 | .enlarge_link { background-image: url('/media/enlarge-icon.png'); } 37 | 38 | #latest_survey_results_div { 39 | border-top: 2px solid #ddd; 40 | margin-top: 20px; 41 | } 42 | 43 | form .filters { 44 | margin: 10px 0 15px; 45 | padding: 10px 12px; 46 | background-color: #f6f6f6; 47 | border: 1px solid #ddd; 48 | } 49 | 50 | form .filters ul li { 51 | margin: 5px 0; 52 | } 53 | 54 | form .filters label { 55 | margin-right: 10px; 56 | } 57 | 58 | form .filters #location label, 59 | form .filters #number label, 60 | form .filters #decimal label { 61 | color: #666; 62 | margin: 0 0 0 5px; 63 | } 64 | 65 | h2.chart_title { 66 | background-color: #F6F6F6; 67 | border-top: 1px solid #DDDDDD; 68 | display: block; 69 | margin: 20px 0 0; 70 | padding: 5px 10px; 71 | } 72 | 73 | .submission { 74 | border-top: 2px dotted #CCCCCC; 75 | padding: 15px 0; 76 | } 77 | 78 | .submission .field { 79 | padding: 3px 0; 80 | } 81 | 82 | .submission .field label { 83 | font-weight: bold; 84 | padding-right: 2px; 85 | } 86 | 87 | .jcarousel-skin-tango .jcarousel-clip-horizontal { 88 | height: 275px; 89 | width: 500px; 90 | } 91 | 92 | .jcarousel-skin-tango .jcarousel-container-horizontal { 93 | width: 510px; 94 | } 95 | 96 | .jcarousel-skin-tango .jcarousel-item { 97 | height: 275px; 98 | width: 250px; 99 | } 100 | -------------------------------------------------------------------------------- /src/crowdsourcing/django_crowdsourcing.egg-info/SOURCES.txt: -------------------------------------------------------------------------------- 1 | CHANGES 2 | MANIFEST.in 3 | README 4 | crowdsourcing_requirements.txt 5 | crowdsourcing/__init__.py 6 | crowdsourcing/admin.py 7 | crowdsourcing/fields.py 8 | crowdsourcing/flickrsupport.py 9 | crowdsourcing/forms.py 10 | crowdsourcing/geo.py 11 | crowdsourcing/jsonutils.py 12 | crowdsourcing/models.py 13 | crowdsourcing/oembedutils.py 14 | crowdsourcing/settings.py 15 | crowdsourcing/tasks.py 16 | crowdsourcing/tests.py 17 | crowdsourcing/urls.py 18 | crowdsourcing/util.py 19 | crowdsourcing/views.py 20 | crowdsourcing/templatetags/__init__.py 21 | crowdsourcing/templatetags/crowdsourcing.py 22 | django_crowdsourcing.egg-info/PKG-INFO 23 | django_crowdsourcing.egg-info/SOURCES.txt 24 | django_crowdsourcing.egg-info/dependency_links.txt 25 | django_crowdsourcing.egg-info/top_level.txt 26 | docs/Makefile 27 | docs/conf.py 28 | docs/index.rst 29 | docs/developers/index.rst 30 | docs/producers/ballot_stuffing.rst 31 | docs/producers/download.rst 32 | docs/producers/filters.rst 33 | docs/producers/index.rst 34 | docs/producers/live.rst 35 | docs/producers/options.rst 36 | docs/producers/examples/categories.rst 37 | docs/producers/examples/count_bar.rst 38 | docs/producers/examples/favorite_composer.rst 39 | docs/producers/examples/index.rst 40 | docs/producers/examples/simple_poll.rst 41 | docs/producers/examples/top_10.rst 42 | docs/producers/examples/images/BarChartReport.png 43 | docs/producers/examples/images/BarChartSurvey.png 44 | docs/producers/examples/images/FavoriteComposerEach.png 45 | docs/producers/examples/images/FavoriteComposerPoll.png 46 | docs/producers/examples/images/FavoriteComposerRateOne.png 47 | docs/producers/examples/images/FavoriteComposerRateOneReport.png 48 | docs/producers/examples/images/LiberalConservativeReport.png 49 | docs/producers/examples/images/LiberalConservativeSurvey.png 50 | docs/producers/examples/images/SimplePollEntry.png 51 | docs/producers/examples/images/SimplePollResults.png 52 | docs/producers/examples/images/SimplePollSurvey.png 53 | docs/producers/examples/images/Top10.png 54 | docs/producers/images/DownloadSurveys.png -------------------------------------------------------------------------------- /debug_toolbar/panels/request_vars.py: -------------------------------------------------------------------------------- 1 | from django.utils.translation import ugettext_lazy as _ 2 | 3 | from debug_toolbar.panels import DebugPanel 4 | from debug_toolbar.utils import get_name_from_obj 5 | 6 | 7 | class RequestVarsDebugPanel(DebugPanel): 8 | """ 9 | A panel to display request variables (POST/GET, session, cookies). 10 | """ 11 | name = 'RequestVars' 12 | template = 'debug_toolbar/panels/request_vars.html' 13 | has_content = True 14 | 15 | def __init__(self, *args, **kwargs): 16 | DebugPanel.__init__(self, *args, **kwargs) 17 | self.view_func = None 18 | self.view_args = None 19 | self.view_kwargs = None 20 | 21 | def nav_title(self): 22 | return _('Request Vars') 23 | 24 | def title(self): 25 | return _('Request Vars') 26 | 27 | def url(self): 28 | return '' 29 | 30 | def process_request(self, request): 31 | self.request = request 32 | 33 | def process_view(self, request, view_func, view_args, view_kwargs): 34 | self.view_func = view_func 35 | self.view_args = view_args 36 | self.view_kwargs = view_kwargs 37 | 38 | def process_response(self, request, response): 39 | self.record_stats({ 40 | 'get': [(k, self.request.GET.getlist(k)) for k in self.request.GET], 41 | 'post': [(k, self.request.POST.getlist(k)) for k in self.request.POST], 42 | 'cookies': [(k, self.request.COOKIES.get(k)) for k in self.request.COOKIES], 43 | }) 44 | 45 | if hasattr(self, 'view_func'): 46 | if self.view_func is not None: 47 | name = get_name_from_obj(self.view_func) 48 | else: 49 | name = '' 50 | 51 | self.record_stats({ 52 | 'view_func': name, 53 | 'view_args': self.view_args, 54 | 'view_kwargs': self.view_kwargs 55 | }) 56 | 57 | if hasattr(self.request, 'session'): 58 | self.record_stats({ 59 | 'session': [(k, self.request.session.get(k)) for k in self.request.session.iterkeys()] 60 | }) 61 | -------------------------------------------------------------------------------- /debug_toolbar/panels/__init__.py: -------------------------------------------------------------------------------- 1 | from django.template.defaultfilters import slugify 2 | from django.template.loader import render_to_string 3 | from debug_toolbar.middleware import DebugToolbarMiddleware 4 | 5 | 6 | class DebugPanel(object): 7 | """ 8 | Base class for debug panels. 9 | """ 10 | # name = 'Base' 11 | # template = 'debug_toolbar/panels/base.html' 12 | has_content = False # If content returns something, set to true in subclass 13 | 14 | # We'll maintain a local context instance so we can expose our template 15 | # context variables to panels which need them: 16 | context = {} 17 | 18 | # Panel methods 19 | def __init__(self, context={}): 20 | self.context.update(context) 21 | self.slug = slugify(self.name) 22 | 23 | def dom_id(self): 24 | return 'djDebug%sPanel' % (self.name.replace(' ', '')) 25 | 26 | def nav_title(self): 27 | """Title showing in toolbar""" 28 | raise NotImplementedError 29 | 30 | def nav_subtitle(self): 31 | """Subtitle showing until title in toolbar""" 32 | return '' 33 | 34 | def title(self): 35 | """Title showing in panel""" 36 | raise NotImplementedError 37 | 38 | def url(self): 39 | raise NotImplementedError 40 | 41 | def content(self): 42 | if self.has_content: 43 | context = self.context.copy() 44 | context.update(self.get_stats()) 45 | return render_to_string(self.template, context) 46 | 47 | def record_stats(self, stats): 48 | toolbar = DebugToolbarMiddleware.get_current() 49 | panel_stats = toolbar.stats.get(self.slug) 50 | if panel_stats: 51 | panel_stats.update(stats) 52 | else: 53 | toolbar.stats[self.slug] = stats 54 | 55 | def get_stats(self): 56 | toolbar = DebugToolbarMiddleware.get_current() 57 | return toolbar.stats.get(self.slug, {}) 58 | 59 | # Standard middleware methods 60 | def process_request(self, request): 61 | pass 62 | 63 | def process_view(self, request, view_func, view_args, view_kwargs): 64 | pass 65 | 66 | def process_response(self, request, response): 67 | pass 68 | -------------------------------------------------------------------------------- /do-index/templates/home.html-waltersave: -------------------------------------------------------------------------------- 1 | {% load crowdsourcing %} 2 | 3 | 4 | [do:index] Umfrage 5 | {% include "header_tags.html" %} 6 | 7 | 8 |
9 | {% if user.is_authenticated %} 10 |

[do:index]

11 |

Eingeloggt als
{{user}}

12 | {% for survey in surveys %} 13 |
14 |
15 |
16 |

{{survey.title}}

Bearbeiten
17 | 23 |
24 | {% endfor %} 25 | {% else %} 26 |

[do:index]

27 |

28 | Dies ist die Umfrageseite von der [do:index] Befragung 2013.
29 | Sie können sich als eingeladene Stadt oder Gemeinde mit den Ihnen zugeschickten Anmeldedaten anmelden.
30 |

31 | Einloggen und Umfrage beginnen! 32 |

33 | Weitere Infos zu [do:index] 34 |

35 | 38 | 54 | {% endif %} 55 |
56 | 57 | 58 | -------------------------------------------------------------------------------- /do-index/media/admin/js/inlines.min.js: -------------------------------------------------------------------------------- 1 | (function(b){b.fn.formset=function(g){var a=b.extend({},b.fn.formset.defaults,g),k=function(c,f,d){var e=new RegExp("("+f+"-(\\d+|__prefix__))");f=f+"-"+d;b(c).attr("for")&&b(c).attr("for",b(c).attr("for").replace(e,f));if(c.id)c.id=c.id.replace(e,f);if(c.name)c.name=c.name.replace(e,f)};g=b("#id_"+a.prefix+"-TOTAL_FORMS").attr("autocomplete","off");var l=parseInt(g.val()),h=b("#id_"+a.prefix+"-MAX_NUM_FORMS").attr("autocomplete","off");g=h.val()==""||h.val()-g.val()>0;b(this).each(function(){b(this).not("."+ 2 | a.emptyCssClass).addClass(a.formCssClass)});if(b(this).length&&g){var j;if(b(this).attr("tagName")=="TR"){g=this.eq(0).children().length;b(this).parent().append(''+a.addText+"");j=b(this).parent().find("tr:last a")}else{b(this).filter(":last").after('");j=b(this).filter(":last").next().find("a")}j.click(function(){var c=b("#id_"+ 3 | a.prefix+"-TOTAL_FORMS"),f=b("#"+a.prefix+"-empty"),d=f.clone(true);d.removeClass(a.emptyCssClass).addClass(a.formCssClass).attr("id",a.prefix+"-"+l);if(d.is("tr"))d.children(":last").append('");else d.is("ul")||d.is("ol")?d.append('
  • '+a.deleteText+"
  • "):d.children(":first").append(''+ 4 | a.deleteText+"");d.find("*").each(function(){k(this,a.prefix,c.val())});d.insertBefore(b(f));b(c).val(parseInt(c.val())+1);l+=1;h.val()!=""&&h.val()-c.val()<=0&&j.parent().hide();d.find("a."+a.deleteCssClass).click(function(){var e=b(this).parents("."+a.formCssClass);e.remove();l-=1;a.removed&&a.removed(e);e=b("."+a.formCssClass);b("#id_"+a.prefix+"-TOTAL_FORMS").val(e.length);if(h.val()==""||h.val()-e.length>0)j.parent().show();for(var i=0,m=e.length;i 3 | 4 | 5 | 6 | Wechseln Sie bitte zu einem aktuellen Browser 7 | 10 | 11 | 12 | 13 |
    14 |
    15 | 16 | Close this notice 17 | 18 | 19 |
    20 | 21 |
    22 |
    Warnung! 23 |
    24 | 25 |
    26 | 27 |
    28 | 29 | Sie verwenden einen veralteten Browser 30 | 31 |
    32 | 33 |
    34 | 35 | Wechseln Sie bitte zu einem aktuellen Browser, damit diese Website richtig angezeigt werden kann. 36 |
    37 | 38 |
    39 | 40 |
    41 | 42 | 43 | 44 | Firefox 3.5 laden 45 | 46 | 47 |
    48 | 49 |
    50 | 51 | 52 | 53 | Safari 4 laden 54 | 55 | 56 |
    57 |
    58 | 59 | 60 | 61 | Google Chrome laden 62 | 63 | 64 |
    65 | 66 |
    67 |
    68 | 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /debug_toolbar/utils/sqlparse/engine/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2008 Andi Albrecht, albrecht.andi@gmail.com 2 | # 3 | # This module is part of python-sqlparse and is released under 4 | # the BSD License: http://www.opensource.org/licenses/bsd-license.php. 5 | 6 | """filter""" 7 | 8 | from debug_toolbar.utils.sqlparse import lexer 9 | from debug_toolbar.utils.sqlparse.engine import grouping 10 | from debug_toolbar.utils.sqlparse.engine.filter import StatementFilter 11 | 12 | # XXX remove this when cleanup is complete 13 | Filter = object 14 | 15 | 16 | class FilterStack(object): 17 | 18 | def __init__(self): 19 | self.preprocess = [] 20 | self.stmtprocess = [] 21 | self.postprocess = [] 22 | self.split_statements = False 23 | self._grouping = False 24 | 25 | def _flatten(self, stream): 26 | for token in stream: 27 | if token.is_group(): 28 | for t in self._flatten(token.tokens): 29 | yield t 30 | else: 31 | yield token 32 | 33 | def enable_grouping(self): 34 | self._grouping = True 35 | 36 | def full_analyze(self): 37 | self.enable_grouping() 38 | 39 | def run(self, sql): 40 | stream = lexer.tokenize(sql) 41 | # Process token stream 42 | if self.preprocess: 43 | for filter_ in self.preprocess: 44 | stream = filter_.process(self, stream) 45 | 46 | if (self.stmtprocess or self.postprocess or self.split_statements 47 | or self._grouping): 48 | splitter = StatementFilter() 49 | stream = splitter.process(self, stream) 50 | 51 | if self._grouping: 52 | 53 | def _group(stream): 54 | for stmt in stream: 55 | grouping.group(stmt) 56 | yield stmt 57 | stream = _group(stream) 58 | 59 | if self.stmtprocess: 60 | 61 | def _run1(stream): 62 | ret = [] 63 | for stmt in stream: 64 | for filter_ in self.stmtprocess: 65 | filter_.process(self, stmt) 66 | ret.append(stmt) 67 | return ret 68 | stream = _run1(stream) 69 | 70 | if self.postprocess: 71 | 72 | def _run2(stream): 73 | for stmt in stream: 74 | stmt.tokens = list(self._flatten(stmt.tokens)) 75 | for filter_ in self.postprocess: 76 | stmt = filter_.process(self, stmt) 77 | yield stmt 78 | stream = _run2(stream) 79 | 80 | return stream 81 | --------------------------------------------------------------------------------