Permalink
Browse files

initial import

  • Loading branch information...
Justine Tunney
Justine Tunney committed Jul 16, 2011
0 parents commit 101aa12806d0fd79b100f0eb42a649dc5eba3e64
Showing with 30,602 additions and 0 deletions.
  1. +25 −0 .gitignore
  2. +23 −0 README
  3. +283 −0 ez_setup.py
  4. +58 −0 install_depends.sh
  5. +1 −0 occupywallst/__init__.py
  6. +36 −0 occupywallst/admin.py
  7. +47 −0 occupywallst/api.py
  8. BIN occupywallst/data/GeoLiteCity.dat
  9. BIN occupywallst/data/init_spatialite-2.3.sql.gz
  10. +97 −0 occupywallst/fixtures/initial_data.json
  11. +83 −0 occupywallst/forms.py
  12. +157 −0 occupywallst/geo.py
  13. 0 occupywallst/management/__init__.py
  14. 0 occupywallst/management/commands/__init__.py
  15. +76 −0 occupywallst/media/css/occupywallst.css
  16. 0 occupywallst/media/css/occupywallst_print.css
  17. BIN occupywallst/media/img/blackredstar.png
  18. BIN occupywallst/media/img/occupy-logo-16.png
  19. BIN occupywallst/media/img/wallst-250.jpg
  20. BIN occupywallst/media/img/x.png
  21. BIN occupywallst/media/jquery-ui/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png
  22. BIN occupywallst/media/jquery-ui/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png
  23. BIN occupywallst/media/jquery-ui/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png
  24. BIN occupywallst/media/jquery-ui/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png
  25. BIN occupywallst/media/jquery-ui/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png
  26. BIN occupywallst/media/jquery-ui/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png
  27. BIN occupywallst/media/jquery-ui/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png
  28. BIN occupywallst/media/jquery-ui/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png
  29. BIN occupywallst/media/jquery-ui/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png
  30. BIN occupywallst/media/jquery-ui/css/ui-lightness/images/ui-icons_222222_256x240.png
  31. BIN occupywallst/media/jquery-ui/css/ui-lightness/images/ui-icons_228ef1_256x240.png
  32. BIN occupywallst/media/jquery-ui/css/ui-lightness/images/ui-icons_ef8c08_256x240.png
  33. BIN occupywallst/media/jquery-ui/css/ui-lightness/images/ui-icons_ffd27a_256x240.png
  34. BIN occupywallst/media/jquery-ui/css/ui-lightness/images/ui-icons_ffffff_256x240.png
  35. +385 −0 occupywallst/media/jquery-ui/css/ui-lightness/jquery-ui-1.8.12.custom.css
  36. +30 −0 occupywallst/media/jquery-ui/development-bundle/AUTHORS.txt
  37. +278 −0 occupywallst/media/jquery-ui/development-bundle/GPL-LICENSE.txt
  38. +25 −0 occupywallst/media/jquery-ui/development-bundle/MIT-LICENSE.txt
  39. +36 −0 occupywallst/media/jquery-ui/development-bundle/demos/datepicker/alt-field.html
  40. +58 −0 occupywallst/media/jquery-ui/development-bundle/demos/datepicker/animation.html
  41. +35 −0 occupywallst/media/jquery-ui/development-bundle/demos/datepicker/buttonbar.html
  42. +47 −0 occupywallst/media/jquery-ui/development-bundle/demos/datepicker/date-formats.html
  43. +49 −0 occupywallst/media/jquery-ui/development-bundle/demos/datepicker/date-range.html
  44. +33 −0 occupywallst/media/jquery-ui/development-bundle/demos/datepicker/default.html
  45. +36 −0 occupywallst/media/jquery-ui/development-bundle/demos/datepicker/dropdown-month-year.html
  46. +37 −0 occupywallst/media/jquery-ui/development-bundle/demos/datepicker/icon-trigger.html
  47. BIN occupywallst/media/jquery-ui/development-bundle/demos/datepicker/images/calendar.gif
  48. +31 −0 occupywallst/media/jquery-ui/development-bundle/demos/datepicker/index.html
  49. +33 −0 occupywallst/media/jquery-ui/development-bundle/demos/datepicker/inline.html
  50. +162 −0 occupywallst/media/jquery-ui/development-bundle/demos/datepicker/localization.html
  51. +33 −0 occupywallst/media/jquery-ui/development-bundle/demos/datepicker/min-max.html
  52. +36 −0 occupywallst/media/jquery-ui/development-bundle/demos/datepicker/multiple-calendars.html
  53. +37 −0 occupywallst/media/jquery-ui/development-bundle/demos/datepicker/other-months.html
  54. +39 −0 occupywallst/media/jquery-ui/development-bundle/demos/datepicker/show-week.html
  55. +334 −0 occupywallst/media/jquery-ui/development-bundle/demos/demos.css
  56. BIN occupywallst/media/jquery-ui/development-bundle/demos/images/calendar.gif
  57. BIN occupywallst/media/jquery-ui/development-bundle/demos/images/demo-config-on-tile.gif
  58. BIN occupywallst/media/jquery-ui/development-bundle/demos/images/demo-config-on.gif
  59. BIN occupywallst/media/jquery-ui/development-bundle/demos/images/demo-spindown-closed.gif
  60. BIN occupywallst/media/jquery-ui/development-bundle/demos/images/demo-spindown-open.gif
  61. BIN occupywallst/media/jquery-ui/development-bundle/demos/images/icon-docs-info.gif
  62. BIN occupywallst/media/jquery-ui/development-bundle/demos/images/pbar-ani.gif
  63. +321 −0 occupywallst/media/jquery-ui/development-bundle/demos/index.html
  64. +95 −0 occupywallst/media/jquery-ui/development-bundle/demos/slider/colorpicker.html
  65. +37 −0 occupywallst/media/jquery-ui/development-bundle/demos/slider/default.html
  66. +59 −0 occupywallst/media/jquery-ui/development-bundle/demos/slider/hotelrooms.html
  67. +29 −0 occupywallst/media/jquery-ui/development-bundle/demos/slider/index.html
  68. +77 −0 occupywallst/media/jquery-ui/development-bundle/demos/slider/multiple-vertical.html
  69. +51 −0 occupywallst/media/jquery-ui/development-bundle/demos/slider/range-vertical.html
  70. +52 −0 occupywallst/media/jquery-ui/development-bundle/demos/slider/range.html
  71. +50 −0 occupywallst/media/jquery-ui/development-bundle/demos/slider/rangemax.html
  72. +51 −0 occupywallst/media/jquery-ui/development-bundle/demos/slider/rangemin.html
  73. +140 −0 occupywallst/media/jquery-ui/development-bundle/demos/slider/side-scroll.html
  74. +52 −0 occupywallst/media/jquery-ui/development-bundle/demos/slider/slider-vertical.html
  75. +51 −0 occupywallst/media/jquery-ui/development-bundle/demos/slider/steps.html
  76. +67 −0 occupywallst/media/jquery-ui/development-bundle/demos/slider/tabs.html
  77. +2,570 −0 occupywallst/media/jquery-ui/development-bundle/docs/datepicker.html
  78. +860 −0 occupywallst/media/jquery-ui/development-bundle/docs/slider.html
  79. +39 −0 occupywallst/media/jquery-ui/development-bundle/external/jquery.bgiframe-2.1.2.js
  80. +89 −0 occupywallst/media/jquery-ui/development-bundle/external/jquery.cookie.js
  81. +122 −0 occupywallst/media/jquery-ui/development-bundle/external/jquery.metadata.js
  82. +153 −0 occupywallst/media/jquery-ui/development-bundle/external/qunit.css
  83. +1,261 −0 occupywallst/media/jquery-ui/development-bundle/external/qunit.js
  84. +8,316 −0 occupywallst/media/jquery-ui/development-bundle/jquery-1.5.1.js
  85. BIN occupywallst/media/jquery-ui/development-bundle/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png
  86. BIN occupywallst/media/jquery-ui/development-bundle/themes/base/images/ui-bg_flat_75_ffffff_40x100.png
  87. BIN occupywallst/media/jquery-ui/development-bundle/themes/base/images/ui-bg_glass_55_fbf9ee_1x400.png
  88. BIN occupywallst/media/jquery-ui/development-bundle/themes/base/images/ui-bg_glass_65_ffffff_1x400.png
  89. BIN occupywallst/media/jquery-ui/development-bundle/themes/base/images/ui-bg_glass_75_dadada_1x400.png
  90. BIN occupywallst/media/jquery-ui/development-bundle/themes/base/images/ui-bg_glass_75_e6e6e6_1x400.png
  91. BIN occupywallst/media/jquery-ui/development-bundle/themes/base/images/ui-bg_glass_95_fef1ec_1x400.png
  92. BIN ...st/media/jquery-ui/development-bundle/themes/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png
  93. BIN occupywallst/media/jquery-ui/development-bundle/themes/base/images/ui-icons_222222_256x240.png
  94. BIN occupywallst/media/jquery-ui/development-bundle/themes/base/images/ui-icons_2e83ff_256x240.png
  95. BIN occupywallst/media/jquery-ui/development-bundle/themes/base/images/ui-icons_454545_256x240.png
  96. BIN occupywallst/media/jquery-ui/development-bundle/themes/base/images/ui-icons_888888_256x240.png
  97. BIN occupywallst/media/jquery-ui/development-bundle/themes/base/images/ui-icons_cd0a0a_256x240.png
  98. +11 −0 occupywallst/media/jquery-ui/development-bundle/themes/base/jquery.ui.all.css
  99. +3 −0 occupywallst/media/jquery-ui/development-bundle/themes/base/jquery.ui.base.css
  100. +41 −0 occupywallst/media/jquery-ui/development-bundle/themes/base/jquery.ui.core.css
  101. +68 −0 occupywallst/media/jquery-ui/development-bundle/themes/base/jquery.ui.datepicker.css
  102. +24 −0 occupywallst/media/jquery-ui/development-bundle/themes/base/jquery.ui.slider.css
  103. +252 −0 occupywallst/media/jquery-ui/development-bundle/themes/base/jquery.ui.theme.css
  104. BIN ...jquery-ui/development-bundle/themes/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png
  105. BIN ...jquery-ui/development-bundle/themes/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png
  106. BIN ...lst/media/jquery-ui/development-bundle/themes/ui-lightness/images/ui-bg_flat_10_000000_40x100.png
  107. BIN ...st/media/jquery-ui/development-bundle/themes/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png
  108. BIN ...st/media/jquery-ui/development-bundle/themes/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png
  109. BIN ...lst/media/jquery-ui/development-bundle/themes/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png
  110. BIN ...ia/jquery-ui/development-bundle/themes/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png
  111. BIN ...jquery-ui/development-bundle/themes/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png
  112. BIN .../jquery-ui/development-bundle/themes/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png
  113. BIN ...ywallst/media/jquery-ui/development-bundle/themes/ui-lightness/images/ui-icons_222222_256x240.png
  114. BIN ...ywallst/media/jquery-ui/development-bundle/themes/ui-lightness/images/ui-icons_228ef1_256x240.png
  115. BIN ...ywallst/media/jquery-ui/development-bundle/themes/ui-lightness/images/ui-icons_ef8c08_256x240.png
  116. BIN ...ywallst/media/jquery-ui/development-bundle/themes/ui-lightness/images/ui-icons_ffd27a_256x240.png
  117. BIN ...ywallst/media/jquery-ui/development-bundle/themes/ui-lightness/images/ui-icons_ffffff_256x240.png
  118. +385 −0 occupywallst/media/jquery-ui/development-bundle/themes/ui-lightness/jquery-ui-1.8.12.custom.css
  119. +11 −0 occupywallst/media/jquery-ui/development-bundle/themes/ui-lightness/jquery.ui.all.css
  120. +3 −0 occupywallst/media/jquery-ui/development-bundle/themes/ui-lightness/jquery.ui.base.css
  121. +41 −0 occupywallst/media/jquery-ui/development-bundle/themes/ui-lightness/jquery.ui.core.css
  122. +68 −0 occupywallst/media/jquery-ui/development-bundle/themes/ui-lightness/jquery.ui.datepicker.css
  123. +24 −0 occupywallst/media/jquery-ui/development-bundle/themes/ui-lightness/jquery.ui.slider.css
  124. +254 −0 occupywallst/media/jquery-ui/development-bundle/themes/ui-lightness/jquery.ui.theme.css
  125. +1,379 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery-ui-i18n.js
  126. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-af.js
  127. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ar-DZ.js
  128. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ar.js
  129. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-az.js
  130. +24 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-bg.js
  131. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-bs.js
  132. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ca.js
  133. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-cs.js
  134. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-da.js
  135. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-de.js
  136. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-el.js
  137. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-en-AU.js
  138. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-en-GB.js
  139. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-en-NZ.js
  140. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-eo.js
  141. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-es.js
  142. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-et.js
  143. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-eu.js
  144. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-fa.js
  145. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-fi.js
  146. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-fo.js
  147. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-fr-CH.js
  148. +25 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-fr.js
  149. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-gl.js
  150. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-he.js
  151. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-hr.js
  152. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-hu.js
  153. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-hy.js
  154. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-id.js
  155. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-is.js
  156. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-it.js
  157. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ja.js
  158. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ko.js
  159. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-kz.js
  160. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-lt.js
  161. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-lv.js
  162. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ml.js
  163. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ms.js
  164. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-nl.js
  165. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-no.js
  166. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-pl.js
  167. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-pt-BR.js
  168. +22 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-pt.js
  169. +21 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-rm.js
  170. +26 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ro.js
  171. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ru.js
  172. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-sk.js
  173. +24 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-sl.js
  174. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-sq.js
  175. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-sr-SR.js
  176. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-sr.js
  177. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-sv.js
  178. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ta.js
  179. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-th.js
  180. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-tj.js
  181. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-tr.js
  182. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-uk.js
  183. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-vi.js
  184. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-zh-CN.js
  185. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-zh-HK.js
  186. +23 −0 occupywallst/media/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-zh-TW.js
  187. +3,185 −0 occupywallst/media/jquery-ui/development-bundle/ui/jquery-ui-1.8.12.custom.js
  188. +308 −0 occupywallst/media/jquery-ui/development-bundle/ui/jquery.ui.core.js
  189. +1,775 −0 occupywallst/media/jquery-ui/development-bundle/ui/jquery.ui.datepicker.js
  190. +156 −0 occupywallst/media/jquery-ui/development-bundle/ui/jquery.ui.mouse.js
  191. +684 −0 occupywallst/media/jquery-ui/development-bundle/ui/jquery.ui.slider.js
  192. +262 −0 occupywallst/media/jquery-ui/development-bundle/ui/jquery.ui.widget.js
  193. +17 −0 occupywallst/media/jquery-ui/development-bundle/ui/minified/jquery.ui.core.min.js
  194. +82 −0 occupywallst/media/jquery-ui/development-bundle/ui/minified/jquery.ui.datepicker.min.js
  195. +17 −0 occupywallst/media/jquery-ui/development-bundle/ui/minified/jquery.ui.mouse.min.js
  196. +33 −0 occupywallst/media/jquery-ui/development-bundle/ui/minified/jquery.ui.slider.min.js
  197. +15 −0 occupywallst/media/jquery-ui/development-bundle/ui/minified/jquery.ui.widget.min.js
  198. +1 −0 occupywallst/media/jquery-ui/development-bundle/version.txt
  199. +276 −0 occupywallst/media/jquery-ui/index.html
  200. +16 −0 occupywallst/media/jquery-ui/js/jquery-1.5.1.min.js
  201. +165 −0 occupywallst/media/jquery-ui/js/jquery-ui-1.8.12.custom.min.js
  202. +180 −0 occupywallst/media/js/attendees.js
  203. +43 −0 occupywallst/media/js/csrf.js
  204. +16 −0 occupywallst/media/js/jquery-1.6.min.js
  205. +911 −0 occupywallst/media/js/jquery-ui-timepicker-addon.js
  206. +25 −0 occupywallst/media/js/jquery.simplemodal.1.4.1.min.js
  207. +125 −0 occupywallst/media/js/markfield.js
  208. +13 −0 occupywallst/media/js/occupywallst.js
  209. +80 −0 occupywallst/media/js/rides.js
  210. +15 −0 occupywallst/middleware.py
  211. +347 −0 occupywallst/models.py
  212. +85 −0 occupywallst/settings.py
  213. +5 −0 occupywallst/settings_dev.py
  214. +1 −0 occupywallst/templates/404.html
  215. +1 −0 occupywallst/templates/500.html
  216. +15 −0 occupywallst/templates/occupywallst/about.html
  217. +36 −0 occupywallst/templates/occupywallst/article.html
  218. +31 −0 occupywallst/templates/occupywallst/attendees.html
  219. +76 −0 occupywallst/templates/occupywallst/base.html
  220. +15 −0 occupywallst/templates/occupywallst/housing.html
  221. +45 −0 occupywallst/templates/occupywallst/index.html
  222. +8 −0 occupywallst/templates/occupywallst/logged_out.html
  223. +15 −0 occupywallst/templates/occupywallst/login.html
  224. +15 −0 occupywallst/templates/occupywallst/rides.html
  225. +54 −0 occupywallst/templates/occupywallst/signup.html
  226. +12 −0 occupywallst/templates/occupywallst/user.html
  227. +40 −0 occupywallst/urls.py
  228. +87 −0 occupywallst/utils.py
  229. +98 −0 occupywallst/views.py
  230. +9 −0 scripts/occupywallst
  231. +15 −0 scripts/occupywallst-dev
  232. +39 −0 setup.py
@@ -0,0 +1,25 @@
+occupywallst.db
+
+*.pyc
+*.pyo
+*.pyc
+*.o
+*.bak
+*~
+*.rej
+*.orig
+*.mo
+.figleaf*
+*.egg-info
+*.egg
+._*
+.DS_Store
+Thumbs.db*
+docs/_build
+.figleaf*
+*.egg-info
+*.egg
+build
+deps
+dist
+pip-log.txt
23 README
@@ -0,0 +1,23 @@
+.. -*-rst-*-
+
+==============
+ OccupyWallSt
+==============
+
+:name: occupywallst
+:description: Occupy Wall Street!
+:copyright: (c) 2011 Justine Tunney
+:license: GNU AGPL v3 or later
+
+
+Installation
+============
+
+Run these commands in the occupywallst folder::
+
+ sudo ./install_depends.sh
+ sudo python setup.py develop
+ gunzip <occupywallst/data/init_spatialite-2.3.sql.gz \
+ | spatialite occupywallst.db
+ occupywallst-dev syncdb
+ occupywallst-dev runserver
@@ -0,0 +1,283 @@
+#!python
+"""Bootstrap setuptools installation
+
+If you want to use setuptools in your package's setup.py, just include this
+file in the same directory with it, and add this to the top of your setup.py::
+
+from ez_setup import use_setuptools
+use_setuptools()
+
+If you want to require a specific version of setuptools, set a download
+mirror, or use an alternate download directory, you can do so by supplying
+the appropriate options to ``use_setuptools()``.
+
+This file can also be run as a script to install or upgrade setuptools.
+"""
+import sys
+DEFAULT_VERSION = "0.6c11"
+DEFAULT_URL = "http://pypi.python.org/packages/%s/s/setuptools/" % sys.version[:3]
+
+md5_data = {
+ 'setuptools-0.6b1-py2.3.egg': '8822caf901250d848b996b7f25c6e6ca',
+ 'setuptools-0.6b1-py2.4.egg': 'b79a8a403e4502fbb85ee3f1941735cb',
+ 'setuptools-0.6b2-py2.3.egg': '5657759d8a6d8fc44070a9d07272d99b',
+ 'setuptools-0.6b2-py2.4.egg': '4996a8d169d2be661fa32a6e52e4f82a',
+ 'setuptools-0.6b3-py2.3.egg': 'bb31c0fc7399a63579975cad9f5a0618',
+ 'setuptools-0.6b3-py2.4.egg': '38a8c6b3d6ecd22247f179f7da669fac',
+ 'setuptools-0.6b4-py2.3.egg': '62045a24ed4e1ebc77fe039aa4e6f7e5',
+ 'setuptools-0.6b4-py2.4.egg': '4cb2a185d228dacffb2d17f103b3b1c4',
+ 'setuptools-0.6c1-py2.3.egg': 'b3f2b5539d65cb7f74ad79127f1a908c',
+ 'setuptools-0.6c1-py2.4.egg': 'b45adeda0667d2d2ffe14009364f2a4b',
+ 'setuptools-0.6c10-py2.3.egg': 'ce1e2ab5d3a0256456d9fc13800a7090',
+ 'setuptools-0.6c10-py2.4.egg': '57d6d9d6e9b80772c59a53a8433a5dd4',
+ 'setuptools-0.6c10-py2.5.egg': 'de46ac8b1c97c895572e5e8596aeb8c7',
+ 'setuptools-0.6c10-py2.6.egg': '58ea40aef06da02ce641495523a0b7f5',
+ 'setuptools-0.6c11-py2.3.egg': '2baeac6e13d414a9d28e7ba5b5a596de',
+ 'setuptools-0.6c11-py2.4.egg': 'bd639f9b0eac4c42497034dec2ec0c2b',
+ 'setuptools-0.6c11-py2.5.egg': '64c94f3bf7a72a13ec83e0b24f2749b2',
+ 'setuptools-0.6c11-py2.6.egg': 'bfa92100bd772d5a213eedd356d64086',
+ 'setuptools-0.6c2-py2.3.egg': 'f0064bf6aa2b7d0f3ba0b43f20817c27',
+ 'setuptools-0.6c2-py2.4.egg': '616192eec35f47e8ea16cd6a122b7277',
+ 'setuptools-0.6c3-py2.3.egg': 'f181fa125dfe85a259c9cd6f1d7b78fa',
+ 'setuptools-0.6c3-py2.4.egg': 'e0ed74682c998bfb73bf803a50e7b71e',
+ 'setuptools-0.6c3-py2.5.egg': 'abef16fdd61955514841c7c6bd98965e',
+ 'setuptools-0.6c4-py2.3.egg': 'b0b9131acab32022bfac7f44c5d7971f',
+ 'setuptools-0.6c4-py2.4.egg': '2a1f9656d4fbf3c97bf946c0a124e6e2',
+ 'setuptools-0.6c4-py2.5.egg': '8f5a052e32cdb9c72bcf4b5526f28afc',
+ 'setuptools-0.6c5-py2.3.egg': 'ee9fd80965da04f2f3e6b3576e9d8167',
+ 'setuptools-0.6c5-py2.4.egg': 'afe2adf1c01701ee841761f5bcd8aa64',
+ 'setuptools-0.6c5-py2.5.egg': 'a8d3f61494ccaa8714dfed37bccd3d5d',
+ 'setuptools-0.6c6-py2.3.egg': '35686b78116a668847237b69d549ec20',
+ 'setuptools-0.6c6-py2.4.egg': '3c56af57be3225019260a644430065ab',
+ 'setuptools-0.6c6-py2.5.egg': 'b2f8a7520709a5b34f80946de5f02f53',
+ 'setuptools-0.6c7-py2.3.egg': '209fdf9adc3a615e5115b725658e13e2',
+ 'setuptools-0.6c7-py2.4.egg': '5a8f954807d46a0fb67cf1f26c55a82e',
+ 'setuptools-0.6c7-py2.5.egg': '45d2ad28f9750e7434111fde831e8372',
+ 'setuptools-0.6c8-py2.3.egg': '50759d29b349db8cfd807ba8303f1902',
+ 'setuptools-0.6c8-py2.4.egg': 'cba38d74f7d483c06e9daa6070cce6de',
+ 'setuptools-0.6c8-py2.5.egg': '1721747ee329dc150590a58b3e1ac95b',
+ 'setuptools-0.6c9-py2.3.egg': 'a83c4020414807b496e4cfbe08507c03',
+ 'setuptools-0.6c9-py2.4.egg': '260a2be2e5388d66bdaee06abec6342a',
+ 'setuptools-0.6c9-py2.5.egg': 'fe67c3e5a17b12c0e7c541b7ea43a8e6',
+ 'setuptools-0.6c9-py2.6.egg': 'ca37b1ff16fa2ede6e19383e7b59245a',
+ }
+
+import sys, os
+try: from hashlib import md5
+except ImportError: from md5 import md5
+
+def _validate_md5(egg_name, data):
+ if egg_name in md5_data:
+ digest = md5(data).hexdigest()
+ if digest != md5_data[egg_name]:
+ print >>sys.stderr, (
+ "md5 validation of %s failed! (Possible download problem?)"
+ % egg_name
+ )
+ sys.exit(2)
+ return data
+
+def use_setuptools(
+ version=DEFAULT_VERSION, download_base=DEFAULT_URL, to_dir=os.curdir,
+ download_delay=15
+ ):
+ """Automatically find/download setuptools and make it available on sys.path
+
+ `version` should be a valid setuptools version number that is available
+ as an egg for download under the `download_base` URL (which should end with
+ a '/'). `to_dir` is the directory where setuptools will be downloaded, if
+ it is not already available. If `download_delay` is specified, it should
+ be the number of seconds that will be paused before initiating a download,
+ should one be required. If an older version of setuptools is installed,
+ this routine will print a message to ``sys.stderr`` and raise SystemExit in
+ an attempt to abort the calling script.
+ """
+ was_imported = 'pkg_resources' in sys.modules or 'setuptools' in sys.modules
+ def do_download():
+ egg = download_setuptools(version, download_base, to_dir, download_delay)
+ sys.path.insert(0, egg)
+ import setuptools; setuptools.bootstrap_install_from = egg
+ try:
+ import pkg_resources
+ except ImportError:
+ return do_download()
+ try:
+ pkg_resources.require("setuptools>="+version); return
+ except pkg_resources.VersionConflict, e:
+ if was_imported:
+ print >>sys.stderr, (
+ "The required version of setuptools (>=%s) is not available, and\n"
+ "can't be installed while this script is running. Please install\n"
+ " a more recent version first, using 'easy_install -U setuptools'."
+ "\n\n(Currently using %r)"
+ ) % (version, e.args[0])
+ sys.exit(2)
+ else:
+ del pkg_resources, sys.modules['pkg_resources'] # reload ok
+ return do_download()
+ except pkg_resources.DistributionNotFound:
+ return do_download()
+
+def download_setuptools(
+ version=DEFAULT_VERSION, download_base=DEFAULT_URL, to_dir=os.curdir,
+ delay = 15
+ ):
+ """Download setuptools from a specified location and return its filename
+
+ `version` should be a valid setuptools version number that is available
+ as an egg for download under the `download_base` URL (which should end
+ with a '/'). `to_dir` is the directory where the egg will be downloaded.
+ `delay` is the number of seconds to pause before an actual download attempt.
+ """
+ import urllib2, shutil
+ egg_name = "setuptools-%s-py%s.egg" % (version,sys.version[:3])
+ url = download_base + egg_name
+ saveto = os.path.join(to_dir, egg_name)
+ src = dst = None
+ if not os.path.exists(saveto): # Avoid repeated downloads
+ try:
+ from distutils import log
+ if delay:
+ log.warn("""
+---------------------------------------------------------------------------
+This script requires setuptools version %s to run (even to display
+help). I will attempt to download it for you (from
+%s), but
+you may need to enable firewall access for this script first.
+I will start the download in %d seconds.
+
+(Note: if this machine does not have network access, please obtain the file
+
+ %s
+
+and place it in this directory before rerunning this script.)
+---------------------------------------------------------------------------""",
+ version, download_base, delay, url
+ ); from time import sleep; sleep(delay)
+ log.warn("Downloading %s", url)
+ src = urllib2.urlopen(url)
+ # Read/write all in one block, so we don't create a corrupt file
+ # if the download is interrupted.
+ data = _validate_md5(egg_name, src.read())
+ dst = open(saveto,"wb"); dst.write(data)
+ finally:
+ if src: src.close()
+ if dst: dst.close()
+ return os.path.realpath(saveto)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+def main(argv, version=DEFAULT_VERSION):
+ """Install or upgrade setuptools and EasyInstall"""
+ try:
+ import setuptools
+ except ImportError:
+ egg = None
+ try:
+ egg = download_setuptools(version, delay=0)
+ sys.path.insert(0,egg)
+ from setuptools.command.easy_install import main
+ return main(list(argv)+[egg]) # we're done here
+ finally:
+ if egg and os.path.exists(egg):
+ os.unlink(egg)
+ else:
+ if setuptools.__version__ == '0.0.1':
+ print >>sys.stderr, (
+ "You have an obsolete version of setuptools installed. Please\n"
+ "remove it from your system entirely before rerunning this script."
+ )
+ sys.exit(2)
+
+ req = "setuptools>="+version
+ import pkg_resources
+ try:
+ pkg_resources.require(req)
+ except pkg_resources.VersionConflict:
+ try:
+ from setuptools.command.easy_install import main
+ except ImportError:
+ from easy_install import main
+ main(list(argv)+[download_setuptools(delay=0)])
+ sys.exit(0) # try to force an exit
+ else:
+ if argv:
+ from setuptools.command.easy_install import main
+ main(argv)
+ else:
+ print "Setuptools version",version,"or greater has been installed."
+ print '(Run "ez_setup.py -U setuptools" to reinstall or upgrade.)'
+
+def update_md5(filenames):
+ """Update our built-in md5 registry"""
+
+ import re
+
+ for name in filenames:
+ base = os.path.basename(name)
+ f = open(name,'rb')
+ md5_data[base] = md5(f.read()).hexdigest()
+ f.close()
+
+ data = [" %r: %r,\n" % it for it in md5_data.items()]
+ data.sort()
+ repl = "".join(data)
+
+ import inspect
+ srcfile = inspect.getsourcefile(sys.modules[__name__])
+ f = open(srcfile, 'rb'); src = f.read(); f.close()
+
+ match = re.search("\nmd5_data = {\n([^}]+)}", src)
+ if not match:
+ print >>sys.stderr, "Internal error!"
+ sys.exit(2)
+
+ src = src[:match.start(1)] + repl + src[match.end(1):]
+ f = open(srcfile,'w')
+ f.write(src)
+ f.close()
+
+
+if __name__=='__main__':
+ if len(sys.argv)>2 and sys.argv[1]=='--md5update':
+ update_md5(sys.argv[2:])
+ else:
+ main(sys.argv[1:])
+
+
+
+
+
@@ -0,0 +1,58 @@
+#!/bin/bash
+
+if [[ $USER != "root" ]]; then
+ echo You need to be root to run me
+ exit 1
+fi
+
+if [[ ! -f /usr/bin/apt-get ]]; then
+ echo You need a debian/ubuntu linux distro
+ exit 1
+fi
+
+function doit {
+ echo $@
+ if ! $@; then
+ echo "COMMAND FAILED"
+ exit 1
+ fi
+}
+
+echo
+echo '----------------------------------------------------------------------'
+echo ' INSTALLING IMPORTANT DEPENDENCIES '
+echo '----------------------------------------------------------------------'
+echo
+
+doit apt-get install --assume-yes \
+ build-essential \
+ python python-dev python-setuptools
+
+echo
+echo '----------------------------------------------------------------------'
+echo ' INSTALLING GEOGRAPHY DATABASE STUFF '
+echo '----------------------------------------------------------------------'
+echo
+
+doit apt-get install --assume-yes \
+ libsqlite3-dev libspatialite-dev spatialite-bin \
+ gdal-bin proj libgeos-dev \
+ libgeoip-dev
+
+echo
+echo '----------------------------------------------------------------------'
+echo ' INSTALLING PYSQLITE DATABASE DRIVER WITH BONUS FEATURE '
+echo '----------------------------------------------------------------------'
+echo
+
+doit cd /tmp
+doit wget http://pysqlite.googlecode.com/files/pysqlite-2.6.0.tar.gz
+doit tar -xvzf pysqlite-2.6.0.tar.gz
+doit cd pysqlite-2.6.0
+doit sed -i -e 's/define=SQLITE/#define=SQLITE/' setup.cfg
+doit python setup.py install
+doit cd ..
+doit rm -rf pysqlite-2.6.0/ pysqlite-2.6.0.tar.gz
+
+echo
+echo 'All done!'
@@ -0,0 +1 @@
+__version__ = '0.1'
Oops, something went wrong.

0 comments on commit 101aa12

Please sign in to comment.