Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added setup.py and removed demo application and inline dependencies

  • Loading branch information...
commit a4176b5b62754c2132f7dab3fb8c3bf37b512049 1 parent b15159c
@dokterbob authored
Showing with 28 additions and 17,640 deletions.
  1. +2 −2 .gitignore
  2. +0 −8 demo/.gitignore
  3. 0  demo/__init__.py
  4. +0 −81 demo/agenda/views/vobject_django.py
  5. +0 −11 demo/django_extensions/.svn/all-wcprops
  6. +0 −12 demo/django_extensions/.svn/dir-prop-base
  7. +0 −58 demo/django_extensions/.svn/entries
  8. +0 −1  demo/django_extensions/.svn/format
  9. +0 −10 demo/django_extensions/.svn/text-base/__init__.py.svn-base
  10. +0 −10 demo/django_extensions/__init__.py
  11. +0 −5 demo/django_extensions/conf/.svn/all-wcprops
  12. +0 −37 demo/django_extensions/conf/.svn/entries
  13. +0 −1  demo/django_extensions/conf/.svn/format
  14. +0 −35 demo/django_extensions/conf/app_template/.svn/all-wcprops
  15. +0 −88 demo/django_extensions/conf/app_template/.svn/entries
  16. +0 −1  demo/django_extensions/conf/app_template/.svn/format
  17. 0  demo/django_extensions/conf/app_template/.svn/text-base/__init__.py.tmpl.svn-base
  18. +0 −3  demo/django_extensions/conf/app_template/.svn/text-base/forms.py.tmpl.svn-base
  19. +0 −3  demo/django_extensions/conf/app_template/.svn/text-base/models.py.tmpl.svn-base
  20. +0 −3  demo/django_extensions/conf/app_template/.svn/text-base/urls.py.tmpl.svn-base
  21. +0 −1  demo/django_extensions/conf/app_template/.svn/text-base/views.py.tmpl.svn-base
  22. 0  demo/django_extensions/conf/app_template/__init__.py.tmpl
  23. +0 −3  demo/django_extensions/conf/app_template/forms.py.tmpl
  24. +0 −3  demo/django_extensions/conf/app_template/models.py.tmpl
  25. +0 −3  demo/django_extensions/conf/app_template/urls.py.tmpl
  26. +0 −1  demo/django_extensions/conf/app_template/views.py.tmpl
  27. +0 −5 demo/django_extensions/conf/command_template/.svn/all-wcprops
  28. +0 −31 demo/django_extensions/conf/command_template/.svn/entries
  29. +0 −1  demo/django_extensions/conf/command_template/.svn/format
  30. +0 −11 demo/django_extensions/conf/command_template/management/.svn/all-wcprops
  31. +0 −43 demo/django_extensions/conf/command_template/management/.svn/entries
  32. +0 −1  demo/django_extensions/conf/command_template/management/.svn/format
  33. 0  demo/django_extensions/conf/command_template/management/.svn/text-base/__init__.py.tmpl.svn-base
  34. 0  demo/django_extensions/conf/command_template/management/__init__.py.tmpl
  35. +0 −17 demo/django_extensions/conf/command_template/management/commands/.svn/all-wcprops
  36. +0 −52 demo/django_extensions/conf/command_template/management/commands/.svn/entries
  37. +0 −1  demo/django_extensions/conf/command_template/management/commands/.svn/format
  38. 0  demo/django_extensions/conf/command_template/management/commands/.svn/text-base/__init__.py.tmpl.svn-base
  39. +0 −7 demo/django_extensions/conf/command_template/management/commands/.svn/text-base/sample.py.tmpl.svn-base
  40. 0  demo/django_extensions/conf/command_template/management/commands/__init__.py.tmpl
  41. +0 −7 demo/django_extensions/conf/command_template/management/commands/sample.py.tmpl
  42. +0 −5 demo/django_extensions/conf/jobs_template/.svn/all-wcprops
  43. +0 −31 demo/django_extensions/conf/jobs_template/.svn/entries
  44. +0 −1  demo/django_extensions/conf/jobs_template/.svn/format
  45. +0 −17 demo/django_extensions/conf/jobs_template/jobs/.svn/all-wcprops
  46. +0 −64 demo/django_extensions/conf/jobs_template/jobs/.svn/entries
  47. +0 −1  demo/django_extensions/conf/jobs_template/jobs/.svn/format
  48. 0  demo/django_extensions/conf/jobs_template/jobs/.svn/text-base/__init__.py.tmpl.svn-base
  49. +0 −8 demo/django_extensions/conf/jobs_template/jobs/.svn/text-base/sample.py.tmpl.svn-base
  50. 0  demo/django_extensions/conf/jobs_template/jobs/__init__.py.tmpl
  51. +0 −11 demo/django_extensions/conf/jobs_template/jobs/daily/.svn/all-wcprops
  52. +0 −40 demo/django_extensions/conf/jobs_template/jobs/daily/.svn/entries
  53. +0 −1  demo/django_extensions/conf/jobs_template/jobs/daily/.svn/format
  54. 0  demo/django_extensions/conf/jobs_template/jobs/daily/.svn/text-base/__init__.py.tmpl.svn-base
  55. 0  demo/django_extensions/conf/jobs_template/jobs/daily/__init__.py.tmpl
  56. +0 −11 demo/django_extensions/conf/jobs_template/jobs/hourly/.svn/all-wcprops
  57. +0 −40 demo/django_extensions/conf/jobs_template/jobs/hourly/.svn/entries
  58. +0 −1  demo/django_extensions/conf/jobs_template/jobs/hourly/.svn/format
  59. 0  demo/django_extensions/conf/jobs_template/jobs/hourly/.svn/text-base/__init__.py.tmpl.svn-base
  60. 0  demo/django_extensions/conf/jobs_template/jobs/hourly/__init__.py.tmpl
  61. +0 −11 demo/django_extensions/conf/jobs_template/jobs/monthly/.svn/all-wcprops
  62. +0 −40 demo/django_extensions/conf/jobs_template/jobs/monthly/.svn/entries
  63. +0 −1  demo/django_extensions/conf/jobs_template/jobs/monthly/.svn/format
  64. 0  demo/django_extensions/conf/jobs_template/jobs/monthly/.svn/text-base/__init__.py.tmpl.svn-base
  65. 0  demo/django_extensions/conf/jobs_template/jobs/monthly/__init__.py.tmpl
  66. +0 −8 demo/django_extensions/conf/jobs_template/jobs/sample.py.tmpl
  67. +0 −11 demo/django_extensions/conf/jobs_template/jobs/weekly/.svn/all-wcprops
  68. +0 −40 demo/django_extensions/conf/jobs_template/jobs/weekly/.svn/entries
  69. +0 −1  demo/django_extensions/conf/jobs_template/jobs/weekly/.svn/format
  70. 0  demo/django_extensions/conf/jobs_template/jobs/weekly/.svn/text-base/__init__.py.tmpl.svn-base
  71. 0  demo/django_extensions/conf/jobs_template/jobs/weekly/__init__.py.tmpl
  72. +0 −17 demo/django_extensions/db/.svn/all-wcprops
  73. +0 −55 demo/django_extensions/db/.svn/entries
  74. +0 −1  demo/django_extensions/db/.svn/format
  75. 0  demo/django_extensions/db/.svn/text-base/__init__.py.svn-base
  76. +0 −17 demo/django_extensions/db/.svn/text-base/models.py.svn-base
  77. 0  demo/django_extensions/db/__init__.py
  78. +0 −11 demo/django_extensions/db/fields/.svn/all-wcprops
  79. +0 −6 demo/django_extensions/db/fields/.svn/dir-prop-base
  80. +0 −40 demo/django_extensions/db/fields/.svn/entries
  81. +0 −1  demo/django_extensions/db/fields/.svn/format
  82. +0 −198 demo/django_extensions/db/fields/.svn/text-base/__init__.py.svn-base
  83. +0 −198 demo/django_extensions/db/fields/__init__.py
  84. +0 −17 demo/django_extensions/db/models.py
  85. +0 −11 demo/django_extensions/jobs/.svn/all-wcprops
  86. +0 −6 demo/django_extensions/jobs/.svn/dir-prop-base
  87. +0 −52 demo/django_extensions/jobs/.svn/entries
  88. +0 −1  demo/django_extensions/jobs/.svn/format
  89. 0  demo/django_extensions/jobs/.svn/text-base/__init__.py.svn-base
  90. 0  demo/django_extensions/jobs/__init__.py
  91. +0 −23 demo/django_extensions/jobs/daily/.svn/all-wcprops
  92. +0 −6 demo/django_extensions/jobs/daily/.svn/dir-prop-base
  93. +0 −64 demo/django_extensions/jobs/daily/.svn/entries
  94. +0 −1  demo/django_extensions/jobs/daily/.svn/format
  95. 0  demo/django_extensions/jobs/daily/.svn/text-base/__init__.py.svn-base
  96. +0 −23 demo/django_extensions/jobs/daily/.svn/text-base/cache_cleanup.py.svn-base
  97. +0 −22 demo/django_extensions/jobs/daily/.svn/text-base/daily_cleanup.py.svn-base
  98. 0  demo/django_extensions/jobs/daily/__init__.py
  99. +0 −23 demo/django_extensions/jobs/daily/cache_cleanup.py
  100. +0 −22 demo/django_extensions/jobs/daily/daily_cleanup.py
  101. +0 −11 demo/django_extensions/jobs/hourly/.svn/all-wcprops
  102. +0 −40 demo/django_extensions/jobs/hourly/.svn/entries
  103. +0 −1  demo/django_extensions/jobs/hourly/.svn/format
  104. 0  demo/django_extensions/jobs/hourly/.svn/text-base/__init__.py.svn-base
  105. 0  demo/django_extensions/jobs/hourly/__init__.py
  106. +0 −11 demo/django_extensions/jobs/monthly/.svn/all-wcprops
  107. +0 −40 demo/django_extensions/jobs/monthly/.svn/entries
  108. +0 −1  demo/django_extensions/jobs/monthly/.svn/format
  109. 0  demo/django_extensions/jobs/monthly/.svn/text-base/__init__.py.svn-base
  110. 0  demo/django_extensions/jobs/monthly/__init__.py
  111. +0 −11 demo/django_extensions/jobs/weekly/.svn/all-wcprops
  112. +0 −40 demo/django_extensions/jobs/weekly/.svn/entries
  113. +0 −1  demo/django_extensions/jobs/weekly/.svn/format
  114. 0  demo/django_extensions/jobs/weekly/.svn/text-base/__init__.py.svn-base
  115. 0  demo/django_extensions/jobs/weekly/__init__.py
  116. +0 −41 demo/django_extensions/management/.svn/all-wcprops
  117. +0 −6 demo/django_extensions/management/.svn/dir-prop-base
  118. +0 −103 demo/django_extensions/management/.svn/entries
  119. +0 −1  demo/django_extensions/management/.svn/format
  120. 0  demo/django_extensions/management/.svn/text-base/__init__.py.svn-base
  121. +0 −13 demo/django_extensions/management/.svn/text-base/color.py.svn-base
  122. +0 −154 demo/django_extensions/management/.svn/text-base/jobs.py.svn-base
  123. +0 −281 demo/django_extensions/management/.svn/text-base/modelviz.py.svn-base
  124. +0 −9 demo/django_extensions/management/.svn/text-base/signals.py.svn-base
  125. +0 −7 demo/django_extensions/management/.svn/text-base/utils.py.svn-base
  126. 0  demo/django_extensions/management/__init__.py
  127. +0 −13 demo/django_extensions/management/color.py
  128. +0 −155 demo/django_extensions/management/commands/.svn/all-wcprops
  129. +0 −6 demo/django_extensions/management/commands/.svn/dir-prop-base
  130. +0 −328 demo/django_extensions/management/commands/.svn/entries
  131. +0 −1  demo/django_extensions/management/commands/.svn/format
  132. 0  demo/django_extensions/management/commands/.svn/text-base/__init__.py.svn-base
  133. +0 −41 demo/django_extensions/management/commands/.svn/text-base/clean_pyc.py.svn-base
  134. +0 −40 demo/django_extensions/management/commands/.svn/text-base/compile_pyc.py.svn-base
  135. +0 −72 demo/django_extensions/management/commands/.svn/text-base/create_app.py.svn-base
  136. +0 −78 demo/django_extensions/management/commands/.svn/text-base/create_command.py.svn-base
  137. +0 −86 demo/django_extensions/management/commands/.svn/text-base/create_jobs.py.svn-base
  138. +0 −64 demo/django_extensions/management/commands/.svn/text-base/describe_form.py.svn-base
  139. +0 −515 demo/django_extensions/management/commands/.svn/text-base/dumpscript.py.svn-base
  140. +0 −114 demo/django_extensions/management/commands/.svn/text-base/export_emails.py.svn-base
  141. +0 −10 demo/django_extensions/management/commands/.svn/text-base/generate_secret_key.py.svn-base
  142. +0 −60 demo/django_extensions/management/commands/.svn/text-base/graph_models.py.svn-base
  143. +0 −37 demo/django_extensions/management/commands/.svn/text-base/passwd.py.svn-base
  144. +0 −49 demo/django_extensions/management/commands/.svn/text-base/print_user_for_session.py.svn-base
  145. +0 −117 demo/django_extensions/management/commands/.svn/text-base/reset_db.py.svn-base
  146. +0 −59 demo/django_extensions/management/commands/.svn/text-base/runjob.py.svn-base
  147. +0 −90 demo/django_extensions/management/commands/.svn/text-base/runjobs.py.svn-base
  148. +0 −117 demo/django_extensions/management/commands/.svn/text-base/runprofileserver.py.svn-base
  149. +0 −95 demo/django_extensions/management/commands/.svn/text-base/runscript.py.svn-base
  150. +0 −75 demo/django_extensions/management/commands/.svn/text-base/runserver_plus.py.svn-base
  151. +0 −44 demo/django_extensions/management/commands/.svn/text-base/set_fake_passwords.py.svn-base
  152. +0 −76 demo/django_extensions/management/commands/.svn/text-base/shell_plus.py.svn-base
  153. +0 −45 demo/django_extensions/management/commands/.svn/text-base/show_urls.py.svn-base
  154. +0 −276 demo/django_extensions/management/commands/.svn/text-base/sqldiff.py.svn-base
  155. +0 −224 demo/django_extensions/management/commands/.svn/text-base/sync_media_s3.py.svn-base
  156. +0 −221 demo/django_extensions/management/commands/.svn/text-base/syncdata.py.svn-base
  157. 0  demo/django_extensions/management/commands/__init__.py
  158. +0 −41 demo/django_extensions/management/commands/clean_pyc.py
  159. +0 −40 demo/django_extensions/management/commands/compile_pyc.py
  160. +0 −72 demo/django_extensions/management/commands/create_app.py
  161. +0 −78 demo/django_extensions/management/commands/create_command.py
  162. +0 −86 demo/django_extensions/management/commands/create_jobs.py
  163. +0 −64 demo/django_extensions/management/commands/describe_form.py
  164. +0 −515 demo/django_extensions/management/commands/dumpscript.py
  165. +0 −114 demo/django_extensions/management/commands/export_emails.py
  166. +0 −10 demo/django_extensions/management/commands/generate_secret_key.py
  167. +0 −60 demo/django_extensions/management/commands/graph_models.py
  168. +0 −37 demo/django_extensions/management/commands/passwd.py
  169. +0 −49 demo/django_extensions/management/commands/print_user_for_session.py
  170. +0 −117 demo/django_extensions/management/commands/reset_db.py
  171. +0 −59 demo/django_extensions/management/commands/runjob.py
  172. +0 −90 demo/django_extensions/management/commands/runjobs.py
  173. +0 −117 demo/django_extensions/management/commands/runprofileserver.py
  174. +0 −95 demo/django_extensions/management/commands/runscript.py
  175. +0 −75 demo/django_extensions/management/commands/runserver_plus.py
  176. +0 −44 demo/django_extensions/management/commands/set_fake_passwords.py
  177. +0 −76 demo/django_extensions/management/commands/shell_plus.py
  178. +0 −45 demo/django_extensions/management/commands/show_urls.py
  179. +0 −276 demo/django_extensions/management/commands/sqldiff.py
  180. +0 −224 demo/django_extensions/management/commands/sync_media_s3.py
  181. +0 −221 demo/django_extensions/management/commands/syncdata.py
  182. +0 −154 demo/django_extensions/management/jobs.py
  183. +0 −281 demo/django_extensions/management/modelviz.py
  184. +0 −9 demo/django_extensions/management/signals.py
  185. +0 −7 demo/django_extensions/management/utils.py
  186. +0 −23 demo/django_extensions/templatetags/.svn/all-wcprops
  187. +0 −6 demo/django_extensions/templatetags/.svn/dir-prop-base
  188. +0 −64 demo/django_extensions/templatetags/.svn/entries
  189. +0 −1  demo/django_extensions/templatetags/.svn/format
  190. 0  demo/django_extensions/templatetags/.svn/text-base/__init__.py.svn-base
  191. +0 −77 demo/django_extensions/templatetags/.svn/text-base/syntax_color.py.svn-base
  192. +0 −21 demo/django_extensions/templatetags/.svn/text-base/truncate_letters.py.svn-base
  193. 0  demo/django_extensions/templatetags/__init__.py
  194. +0 −77 demo/django_extensions/templatetags/syntax_color.py
  195. +0 −21 demo/django_extensions/templatetags/truncate_letters.py
  196. +0 −23 demo/django_extensions/utils/.svn/all-wcprops
  197. +0 −6 demo/django_extensions/utils/.svn/dir-prop-base
  198. +0 −64 demo/django_extensions/utils/.svn/entries
  199. +0 −1  demo/django_extensions/utils/.svn/format
  200. 0  demo/django_extensions/utils/.svn/text-base/__init__.py.svn-base
  201. +0 −13 demo/django_extensions/utils/.svn/text-base/text.py.svn-base
  202. +0 −541 demo/django_extensions/utils/.svn/text-base/uuid.py.svn-base
  203. 0  demo/django_extensions/utils/__init__.py
  204. +0 −13 demo/django_extensions/utils/text.py
  205. +0 −541 demo/django_extensions/utils/uuid.py
  206. +0 −11 demo/manage.py
  207. +0 −22 demo/runserver.sh
  208. +0 −114 demo/settings.py
  209. +0 −7 demo/templates/agenda/base.html
  210. +0 −123 demo/templates/agenda/event_archive.html
  211. +0 −14 demo/templates/base.html
  212. +0 −38 demo/urls.py
  213. +0 −35 deps/djangologging/.svn/all-wcprops
  214. +0 −6 deps/djangologging/.svn/dir-prop-base
  215. +0 −91 deps/djangologging/.svn/entries
  216. +0 −1  deps/djangologging/.svn/format
  217. +0 −27 deps/djangologging/.svn/text-base/LICENCE.svn-base
  218. +0 −26 deps/djangologging/.svn/text-base/__init__.py.svn-base
  219. +0 −13 deps/djangologging/.svn/text-base/decorators.py.svn-base
  220. +0 −44 deps/djangologging/.svn/text-base/handlers.py.svn-base
  221. +0 −312 deps/djangologging/.svn/text-base/middleware.py.svn-base
  222. +0 −27 deps/djangologging/LICENCE
  223. +0 −26 deps/djangologging/__init__.py
  224. +0 −13 deps/djangologging/decorators.py
  225. +0 −17 deps/djangologging/docs/.svn/all-wcprops
  226. +0 −52 deps/djangologging/docs/.svn/entries
  227. +0 −1  deps/djangologging/docs/.svn/format
  228. +0 −152 deps/djangologging/docs/.svn/text-base/Overview.wiki.svn-base
  229. +0 −42 deps/djangologging/docs/.svn/text-base/Profiling.wiki.svn-base
  230. +0 −152 deps/djangologging/docs/Overview.wiki
  231. +0 −42 deps/djangologging/docs/Profiling.wiki
  232. +0 −44 deps/djangologging/handlers.py
  233. +0 −312 deps/djangologging/middleware.py
  234. +0 −23 deps/djangologging/templates/.svn/all-wcprops
  235. +0 −64 deps/djangologging/templates/.svn/entries
  236. +0 −1  deps/djangologging/templates/.svn/format
  237. +0 −251 deps/djangologging/templates/.svn/text-base/logging.css.svn-base
  238. +0 −273 deps/djangologging/templates/.svn/text-base/logging.html.svn-base
  239. +0 −56 deps/djangologging/templates/.svn/text-base/redirect.html.svn-base
  240. +0 −251 deps/djangologging/templates/logging.css
  241. +0 −273 deps/djangologging/templates/logging.html
  242. +0 −56 deps/djangologging/templates/redirect.html
  243. +0 −11 deps/representations/.svn/all-wcprops
  244. +0 −43 deps/representations/.svn/entries
  245. +0 −1  deps/representations/.svn/format
  246. 0  deps/representations/.svn/text-base/__init__.py.svn-base
  247. 0  deps/representations/__init__.py
  248. +0 −17 deps/representations/templatetags/.svn/all-wcprops
  249. +0 −52 deps/representations/templatetags/.svn/entries
  250. +0 −1  deps/representations/templatetags/.svn/format
  251. 0  deps/representations/templatetags/.svn/text-base/__init__.py.svn-base
  252. +0 −86 deps/representations/templatetags/.svn/text-base/representations.py.svn-base
  253. 0  deps/representations/templatetags/__init__.py
  254. +0 −86 deps/representations/templatetags/representations.py
  255. +0 −86 deps/vobject/__init__.py
  256. +0 −1,139 deps/vobject/base.py
  257. +0 −164 deps/vobject/behavior.py
  258. +0 −84 deps/vobject/change_tz.py
  259. +0 −125 deps/vobject/hcalendar.py
  260. +0 −1,916 deps/vobject/icalendar.py
  261. +0 −219 deps/vobject/ics_diff.py
  262. +0 −301 deps/vobject/vcard.py
  263. +0 −156 deps/vobject/win32tz.py
  264. +26 −0 setup.py
View
4 .gitignore
@@ -3,5 +3,5 @@
.DS_Store
*.sqlite
*.sw?
-demo/media
-
+*.egg-info
+dist
View
8 demo/.gitignore
@@ -1,8 +0,0 @@
-*.o
-*.pyc
-.DS\_Store
-*.sqlite
-*.sw?
-media
-portnumber
-
View
0  demo/__init__.py
No changes.
View
81 demo/agenda/views/vobject_django.py
@@ -1,81 +0,0 @@
-from datetime import date, datetime, timedelta
-
-from django.utils.html import strip_tags
-from django.http import HttpResponse
-from django.utils.tzinfo import FixedOffset
-
-import vobject
-
-def icalendar(request, queryset, date_field, ical_filename,
- title_field='title', description_field='description',
- last_modified_field=None, location_field=None,
- start_time_field=None, end_time_field=None,
- num_objects=15, extra_context=None,
- mimetype=None, context_processors=None):
-
- now = datetime.now()
- queryset = queryset.filter(event_date__gte=now - timedelta(days=1))
-
- cal = vobject.iCalendar()
- utc = vobject.icalendar.utc
-
- cal.add('method').value = 'PUBLISH' # IE/Outlook needs this
-
- # Timezone code borrowed from
- now = datetime.now()
- utcnow = datetime.utcnow()
- # Must always subtract smaller time from larger time here.
- if utcnow > now:
- sign = -1
- tzDifference = (utcnow - now)
- else:
- sign = 1
- tzDifference = (now - utcnow)
-
- # Round the timezone offset to the nearest half hour.
- tzOffsetMinutes = sign * ((tzDifference.seconds / 60 + 15) / 30) * 30
- tzOffset = timedelta(minutes=tzOffsetMinutes)
-
- #cal.add('vtimezone').value = FixedOffset(tzOffset)
-
- mytz = FixedOffset(tzOffset)
-
- for event in queryset:
- vevent = cal.add('vevent')
-
- vevent.add('summary').value = strip_tags(getattr(event, title_field))
- vevent.add('description').value = strip_tags(getattr(event, description_field))
-
- start_time = getattr(event, start_time_field, None)
- if start_time:
- start_date = datetime.combine(getattr(event, date_field), event.start_time)
-
- end_time = getattr(event, end_time_field, None)
- if end_time:
- end_date = datetime.combine(getattr(event, date_field), event.end_time)
- vevent.add('dtend').value = end_date.replace(tzinfo = mytz)
-
- else:
- start_date = getattr(event, date_field)
-
-
- # Date objects don't have tzinfo
- if isinstance(start_date, datetime):
- vevent.add('dtstart').value = start_date.replace(tzinfo = mytz)
- else:
- vevent.add('dtstart').value = start_date
-
- last_modified = getattr(event, last_modified_field, None)
- if last_modified:
- vevent.add('last-modified').value = last_modified.replace(tzinfo = mytz)
-
- location = getattr(event, location_field, None)
- if location:
- vevent.add('location').value = strip_tags(location)
-
- icalstream = cal.serialize()
- response = HttpResponse(icalstream, mimetype='text/calendar')
- response['Filename'] = ical_filename # IE needs this
- response['Content-Disposition'] = 'attachment; filename=%s' % ical_filename
-
- return response
View
11 demo/django_extensions/.svn/all-wcprops
@@ -1,11 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 41
-/svn/!svn/ver/156/trunk/django_extensions
-END
-__init__.py
-K 25
-svn:wc:ra_dav:version-url
-V 52
-/svn/!svn/ver/94/trunk/django_extensions/__init__.py
-END
View
12 demo/django_extensions/.svn/dir-prop-base
@@ -1,12 +0,0 @@
-K 10
-svn:ignore
-V 58
-*.pyc
-
-*.pyc
-
-management/*.pyc
-
-management/commands/*.pyc
-
-END
View
58 demo/django_extensions/.svn/entries
@@ -1,58 +0,0 @@
-8
-
-dir
-156
-http://django-command-extensions.googlecode.com/svn/trunk/django_extensions
-http://django-command-extensions.googlecode.com/svn
-
-
-
-2008-10-25T19:11:36.650846Z
-156
-treborhudson
-has-props
-
-svn:special svn:externals svn:needs-lock
-
-
-
-
-
-
-
-
-
-
-
-70537768-783f-0410-b1a0-8399f7a62752
-
-utils
-dir
-
-conf
-dir
-
-db
-dir
-
-__init__.py
-file
-
-
-
-
-2008-10-31T10:27:54.000000Z
-5428d8865ba22d41e217a4b8573962ff
-2008-08-09T15:06:09.920616Z
-94
-v.oostveen
-
-templatetags
-dir
-
-management
-dir
-
-jobs
-dir
-
View
1  demo/django_extensions/.svn/format
@@ -1 +0,0 @@
-8
View
10 demo/django_extensions/.svn/text-base/__init__.py.svn-base
@@ -1,10 +0,0 @@
-
-VERSION = (0, 4, 'pre')
-
-# Dynamically calculate the version based on VERSION tuple
-if len(VERSION)>2 and VERSION[2] is not None:
- str_version = "%d.%d_%s" % VERSION[:3]
-else:
- str_version = "%d.%d" % VERSION[:2]
-
-__version__ = str_version
View
10 demo/django_extensions/__init__.py
@@ -1,10 +0,0 @@
-
-VERSION = (0, 4, 'pre')
-
-# Dynamically calculate the version based on VERSION tuple
-if len(VERSION)>2 and VERSION[2] is not None:
- str_version = "%d.%d_%s" % VERSION[:3]
-else:
- str_version = "%d.%d" % VERSION[:2]
-
-__version__ = str_version
View
5 demo/django_extensions/conf/.svn/all-wcprops
@@ -1,5 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 45
-/svn/!svn/ver/94/trunk/django_extensions/conf
-END
View
37 demo/django_extensions/conf/.svn/entries
@@ -1,37 +0,0 @@
-8
-
-dir
-156
-http://django-command-extensions.googlecode.com/svn/trunk/django_extensions/conf
-http://django-command-extensions.googlecode.com/svn
-
-
-
-2008-08-09T15:06:09.920616Z
-94
-v.oostveen
-
-
-svn:special svn:externals svn:needs-lock
-
-
-
-
-
-
-
-
-
-
-
-70537768-783f-0410-b1a0-8399f7a62752
-
-jobs_template
-dir
-
-command_template
-dir
-
-app_template
-dir
-
View
1  demo/django_extensions/conf/.svn/format
@@ -1 +0,0 @@
-8
View
35 demo/django_extensions/conf/app_template/.svn/all-wcprops
@@ -1,35 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 58
-/svn/!svn/ver/94/trunk/django_extensions/conf/app_template
-END
-views.py.tmpl
-K 25
-svn:wc:ra_dav:version-url
-V 72
-/svn/!svn/ver/94/trunk/django_extensions/conf/app_template/views.py.tmpl
-END
-__init__.py.tmpl
-K 25
-svn:wc:ra_dav:version-url
-V 75
-/svn/!svn/ver/94/trunk/django_extensions/conf/app_template/__init__.py.tmpl
-END
-models.py.tmpl
-K 25
-svn:wc:ra_dav:version-url
-V 73
-/svn/!svn/ver/94/trunk/django_extensions/conf/app_template/models.py.tmpl
-END
-urls.py.tmpl
-K 25
-svn:wc:ra_dav:version-url
-V 71
-/svn/!svn/ver/94/trunk/django_extensions/conf/app_template/urls.py.tmpl
-END
-forms.py.tmpl
-K 25
-svn:wc:ra_dav:version-url
-V 72
-/svn/!svn/ver/94/trunk/django_extensions/conf/app_template/forms.py.tmpl
-END
View
88 demo/django_extensions/conf/app_template/.svn/entries
@@ -1,88 +0,0 @@
-8
-
-dir
-156
-http://django-command-extensions.googlecode.com/svn/trunk/django_extensions/conf/app_template
-http://django-command-extensions.googlecode.com/svn
-
-
-
-2008-07-19T04:30:09.389604Z
-81
-mtrier
-
-
-svn:special svn:externals svn:needs-lock
-
-
-
-
-
-
-
-
-
-
-
-70537768-783f-0410-b1a0-8399f7a62752
-
-views.py.tmpl
-file
-
-
-
-
-2008-10-31T10:27:53.000000Z
-ad656aaabae09dc285884ad38d889ef9
-2008-05-28T18:47:10.360357Z
-47
-v.oostveen
-
-__init__.py.tmpl
-file
-
-
-
-
-2008-10-31T10:27:53.000000Z
-d41d8cd98f00b204e9800998ecf8427e
-2008-05-28T18:47:10.360357Z
-47
-v.oostveen
-
-models.py.tmpl
-file
-
-
-
-
-2008-10-31T10:27:53.000000Z
-8c4eb991c6dca757bdd77f539092e29b
-2008-05-28T18:47:10.360357Z
-47
-v.oostveen
-
-urls.py.tmpl
-file
-
-
-
-
-2008-10-31T10:27:53.000000Z
-1977b17eb2d27f75a83db015e50f751f
-2008-05-28T18:47:10.360357Z
-47
-v.oostveen
-
-forms.py.tmpl
-file
-
-
-
-
-2008-10-31T10:27:53.000000Z
-b478ff73a9df6cf008d48b6bc84c0b68
-2008-07-19T04:30:09.389604Z
-81
-mtrier
-
View
1  demo/django_extensions/conf/app_template/.svn/format
@@ -1 +0,0 @@
-8
View
0  demo/django_extensions/conf/app_template/.svn/text-base/__init__.py.tmpl.svn-base
No changes.
View
3  demo/django_extensions/conf/app_template/.svn/text-base/forms.py.tmpl.svn-base
@@ -1,3 +0,0 @@
-from django import forms
-
-# place form definition here
View
3  demo/django_extensions/conf/app_template/.svn/text-base/models.py.tmpl.svn-base
@@ -1,3 +0,0 @@
-from django.db import models
-
-# Create your models here.
View
3  demo/django_extensions/conf/app_template/.svn/text-base/urls.py.tmpl.svn-base
@@ -1,3 +0,0 @@
-from django.conf.urls.defaults import *
-
-# place app url patterns here
View
1  demo/django_extensions/conf/app_template/.svn/text-base/views.py.tmpl.svn-base
@@ -1 +0,0 @@
-# Create your views here.
View
0  demo/django_extensions/conf/app_template/__init__.py.tmpl
No changes.
View
3  demo/django_extensions/conf/app_template/forms.py.tmpl
@@ -1,3 +0,0 @@
-from django import forms
-
-# place form definition here
View
3  demo/django_extensions/conf/app_template/models.py.tmpl
@@ -1,3 +0,0 @@
-from django.db import models
-
-# Create your models here.
View
3  demo/django_extensions/conf/app_template/urls.py.tmpl
@@ -1,3 +0,0 @@
-from django.conf.urls.defaults import *
-
-# place app url patterns here
View
1  demo/django_extensions/conf/app_template/views.py.tmpl
@@ -1 +0,0 @@
-# Create your views here.
View
5 demo/django_extensions/conf/command_template/.svn/all-wcprops
@@ -1,5 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 62
-/svn/!svn/ver/94/trunk/django_extensions/conf/command_template
-END
View
31 demo/django_extensions/conf/command_template/.svn/entries
@@ -1,31 +0,0 @@
-8
-
-dir
-156
-http://django-command-extensions.googlecode.com/svn/trunk/django_extensions/conf/command_template
-http://django-command-extensions.googlecode.com/svn
-
-
-
-2008-05-28T18:47:10.360357Z
-47
-v.oostveen
-
-
-svn:special svn:externals svn:needs-lock
-
-
-
-
-
-
-
-
-
-
-
-70537768-783f-0410-b1a0-8399f7a62752
-
-management
-dir
-
View
1  demo/django_extensions/conf/command_template/.svn/format
@@ -1 +0,0 @@
-8
View
11 demo/django_extensions/conf/command_template/management/.svn/all-wcprops
@@ -1,11 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 73
-/svn/!svn/ver/94/trunk/django_extensions/conf/command_template/management
-END
-__init__.py.tmpl
-K 25
-svn:wc:ra_dav:version-url
-V 90
-/svn/!svn/ver/94/trunk/django_extensions/conf/command_template/management/__init__.py.tmpl
-END
View
43 demo/django_extensions/conf/command_template/management/.svn/entries
@@ -1,43 +0,0 @@
-8
-
-dir
-156
-http://django-command-extensions.googlecode.com/svn/trunk/django_extensions/conf/command_template/management
-http://django-command-extensions.googlecode.com/svn
-
-
-
-2008-05-28T18:47:10.360357Z
-47
-v.oostveen
-
-
-svn:special svn:externals svn:needs-lock
-
-
-
-
-
-
-
-
-
-
-
-70537768-783f-0410-b1a0-8399f7a62752
-
-commands
-dir
-
-__init__.py.tmpl
-file
-
-
-
-
-2008-10-31T10:27:53.000000Z
-d41d8cd98f00b204e9800998ecf8427e
-2008-05-28T18:47:10.360357Z
-47
-v.oostveen
-
View
1  demo/django_extensions/conf/command_template/management/.svn/format
@@ -1 +0,0 @@
-8
View
0  demo/django_extensions/conf/command_template/management/.svn/text-base/__init__.py.tmpl.svn-base
No changes.
View
0  demo/django_extensions/conf/command_template/management/__init__.py.tmpl
No changes.
View
17 demo/django_extensions/conf/command_template/management/commands/.svn/all-wcprops
@@ -1,17 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 82
-/svn/!svn/ver/94/trunk/django_extensions/conf/command_template/management/commands
-END
-__init__.py.tmpl
-K 25
-svn:wc:ra_dav:version-url
-V 99
-/svn/!svn/ver/94/trunk/django_extensions/conf/command_template/management/commands/__init__.py.tmpl
-END
-sample.py.tmpl
-K 25
-svn:wc:ra_dav:version-url
-V 97
-/svn/!svn/ver/94/trunk/django_extensions/conf/command_template/management/commands/sample.py.tmpl
-END
View
52 demo/django_extensions/conf/command_template/management/commands/.svn/entries
@@ -1,52 +0,0 @@
-8
-
-dir
-156
-http://django-command-extensions.googlecode.com/svn/trunk/django_extensions/conf/command_template/management/commands
-http://django-command-extensions.googlecode.com/svn
-
-
-
-2008-05-28T18:47:10.360357Z
-47
-v.oostveen
-
-
-svn:special svn:externals svn:needs-lock
-
-
-
-
-
-
-
-
-
-
-
-70537768-783f-0410-b1a0-8399f7a62752
-
-__init__.py.tmpl
-file
-
-
-
-
-2008-10-31T10:27:53.000000Z
-d41d8cd98f00b204e9800998ecf8427e
-2008-05-28T18:47:10.360357Z
-47
-v.oostveen
-
-sample.py.tmpl
-file
-
-
-
-
-2008-10-31T10:27:53.000000Z
-778f565b92443b2e4b3b865a39d0014c
-2008-05-28T18:47:10.360357Z
-47
-v.oostveen
-
View
1  demo/django_extensions/conf/command_template/management/commands/.svn/format
@@ -1 +0,0 @@
-8
View
0  demo/django_extensions/conf/command_template/management/commands/.svn/text-base/__init__.py.tmpl.svn-base
No changes.
View
7 demo/django_extensions/conf/command_template/management/commands/.svn/text-base/sample.py.tmpl.svn-base
@@ -1,7 +0,0 @@
-from django.core.management.base import {{ base_command }}
-
-class Command({{ base_command }}):
- help = "My shiny new management command."
-
- def {{ handle_method }}:
- raise NotImplementedError()
View
0  demo/django_extensions/conf/command_template/management/commands/__init__.py.tmpl
No changes.
View
7 demo/django_extensions/conf/command_template/management/commands/sample.py.tmpl
@@ -1,7 +0,0 @@
-from django.core.management.base import {{ base_command }}
-
-class Command({{ base_command }}):
- help = "My shiny new management command."
-
- def {{ handle_method }}:
- raise NotImplementedError()
View
5 demo/django_extensions/conf/jobs_template/.svn/all-wcprops
@@ -1,5 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 59
-/svn/!svn/ver/94/trunk/django_extensions/conf/jobs_template
-END
View
31 demo/django_extensions/conf/jobs_template/.svn/entries
@@ -1,31 +0,0 @@
-8
-
-dir
-156
-http://django-command-extensions.googlecode.com/svn/trunk/django_extensions/conf/jobs_template
-http://django-command-extensions.googlecode.com/svn
-
-
-
-2008-08-09T15:06:09.920616Z
-94
-v.oostveen
-
-
-svn:special svn:externals svn:needs-lock
-
-
-
-
-
-
-
-
-
-
-
-70537768-783f-0410-b1a0-8399f7a62752
-
-jobs
-dir
-
View
1  demo/django_extensions/conf/jobs_template/.svn/format
@@ -1 +0,0 @@
-8
View
17 demo/django_extensions/conf/jobs_template/jobs/.svn/all-wcprops
@@ -1,17 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 64
-/svn/!svn/ver/94/trunk/django_extensions/conf/jobs_template/jobs
-END
-__init__.py.tmpl
-K 25
-svn:wc:ra_dav:version-url
-V 81
-/svn/!svn/ver/94/trunk/django_extensions/conf/jobs_template/jobs/__init__.py.tmpl
-END
-sample.py.tmpl
-K 25
-svn:wc:ra_dav:version-url
-V 79
-/svn/!svn/ver/94/trunk/django_extensions/conf/jobs_template/jobs/sample.py.tmpl
-END
View
64 demo/django_extensions/conf/jobs_template/jobs/.svn/entries
@@ -1,64 +0,0 @@
-8
-
-dir
-156
-http://django-command-extensions.googlecode.com/svn/trunk/django_extensions/conf/jobs_template/jobs
-http://django-command-extensions.googlecode.com/svn
-
-
-
-2008-08-09T15:06:09.920616Z
-94
-v.oostveen
-
-
-svn:special svn:externals svn:needs-lock
-
-
-
-
-
-
-
-
-
-
-
-70537768-783f-0410-b1a0-8399f7a62752
-
-weekly
-dir
-
-__init__.py.tmpl
-file
-
-
-
-
-2008-10-31T10:27:53.000000Z
-d41d8cd98f00b204e9800998ecf8427e
-2008-05-28T18:47:10.360357Z
-47
-v.oostveen
-
-daily
-dir
-
-hourly
-dir
-
-sample.py.tmpl
-file
-
-
-
-
-2008-10-31T10:27:53.000000Z
-f59ed8c9dc7383790a63a14fae2ada80
-2008-08-09T15:06:09.920616Z
-94
-v.oostveen
-
-monthly
-dir
-
View
1  demo/django_extensions/conf/jobs_template/jobs/.svn/format
@@ -1 +0,0 @@
-8
View
0  demo/django_extensions/conf/jobs_template/jobs/.svn/text-base/__init__.py.tmpl.svn-base
No changes.
View
8 demo/django_extensions/conf/jobs_template/jobs/.svn/text-base/sample.py.tmpl.svn-base
@@ -1,8 +0,0 @@
-from django_extensions.management.jobs import BaseJob
-
-class Job(BaseJob):
- help = "My sample job."
-
- def execute(self):
- # executing empty sample job
- pass
View
0  demo/django_extensions/conf/jobs_template/jobs/__init__.py.tmpl
No changes.
View
11 demo/django_extensions/conf/jobs_template/jobs/daily/.svn/all-wcprops
@@ -1,11 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 70
-/svn/!svn/ver/94/trunk/django_extensions/conf/jobs_template/jobs/daily
-END
-__init__.py.tmpl
-K 25
-svn:wc:ra_dav:version-url
-V 87
-/svn/!svn/ver/94/trunk/django_extensions/conf/jobs_template/jobs/daily/__init__.py.tmpl
-END
View
40 demo/django_extensions/conf/jobs_template/jobs/daily/.svn/entries
@@ -1,40 +0,0 @@
-8
-
-dir
-156
-http://django-command-extensions.googlecode.com/svn/trunk/django_extensions/conf/jobs_template/jobs/daily
-http://django-command-extensions.googlecode.com/svn
-
-
-
-2008-05-28T18:47:10.360357Z
-47
-v.oostveen
-
-
-svn:special svn:externals svn:needs-lock
-
-
-
-
-
-
-
-
-
-
-
-70537768-783f-0410-b1a0-8399f7a62752
-
-__init__.py.tmpl
-file
-
-
-
-
-2008-10-31T10:27:53.000000Z
-d41d8cd98f00b204e9800998ecf8427e
-2008-05-28T18:47:10.360357Z
-47
-v.oostveen
-
View
1  demo/django_extensions/conf/jobs_template/jobs/daily/.svn/format
@@ -1 +0,0 @@
-8
View
0  demo/django_extensions/conf/jobs_template/jobs/daily/.svn/text-base/__init__.py.tmpl.svn-base
No changes.
View
0  demo/django_extensions/conf/jobs_template/jobs/daily/__init__.py.tmpl
No changes.
View
11 demo/django_extensions/conf/jobs_template/jobs/hourly/.svn/all-wcprops
@@ -1,11 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 71
-/svn/!svn/ver/94/trunk/django_extensions/conf/jobs_template/jobs/hourly
-END
-__init__.py.tmpl
-K 25
-svn:wc:ra_dav:version-url
-V 88
-/svn/!svn/ver/94/trunk/django_extensions/conf/jobs_template/jobs/hourly/__init__.py.tmpl
-END
View
40 demo/django_extensions/conf/jobs_template/jobs/hourly/.svn/entries
@@ -1,40 +0,0 @@
-8
-
-dir
-156
-http://django-command-extensions.googlecode.com/svn/trunk/django_extensions/conf/jobs_template/jobs/hourly
-http://django-command-extensions.googlecode.com/svn
-
-
-
-2008-05-28T18:47:10.360357Z
-47
-v.oostveen
-
-
-svn:special svn:externals svn:needs-lock
-
-
-
-
-
-
-
-
-
-
-
-70537768-783f-0410-b1a0-8399f7a62752
-
-__init__.py.tmpl
-file
-
-
-
-
-2008-10-31T10:27:53.000000Z
-d41d8cd98f00b204e9800998ecf8427e
-2008-05-28T18:47:10.360357Z
-47
-v.oostveen
-
View
1  demo/django_extensions/conf/jobs_template/jobs/hourly/.svn/format
@@ -1 +0,0 @@
-8
View
0  demo/django_extensions/conf/jobs_template/jobs/hourly/.svn/text-base/__init__.py.tmpl.svn-base
No changes.
View
0  demo/django_extensions/conf/jobs_template/jobs/hourly/__init__.py.tmpl
No changes.
View
11 demo/django_extensions/conf/jobs_template/jobs/monthly/.svn/all-wcprops
@@ -1,11 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 72
-/svn/!svn/ver/94/trunk/django_extensions/conf/jobs_template/jobs/monthly
-END
-__init__.py.tmpl
-K 25
-svn:wc:ra_dav:version-url
-V 89
-/svn/!svn/ver/94/trunk/django_extensions/conf/jobs_template/jobs/monthly/__init__.py.tmpl
-END
View
40 demo/django_extensions/conf/jobs_template/jobs/monthly/.svn/entries
@@ -1,40 +0,0 @@
-8
-
-dir
-156
-http://django-command-extensions.googlecode.com/svn/trunk/django_extensions/conf/jobs_template/jobs/monthly
-http://django-command-extensions.googlecode.com/svn
-
-
-
-2008-05-28T18:47:10.360357Z
-47
-v.oostveen
-
-
-svn:special svn:externals svn:needs-lock
-
-
-
-
-
-
-
-
-
-
-
-70537768-783f-0410-b1a0-8399f7a62752
-
-__init__.py.tmpl
-file
-
-
-
-
-2008-10-31T10:27:53.000000Z
-d41d8cd98f00b204e9800998ecf8427e
-2008-05-28T18:47:10.360357Z
-47
-v.oostveen
-
View
1  demo/django_extensions/conf/jobs_template/jobs/monthly/.svn/format
@@ -1 +0,0 @@
-8
View
0  demo/django_extensions/conf/jobs_template/jobs/monthly/.svn/text-base/__init__.py.tmpl.svn-base
No changes.
View
0  demo/django_extensions/conf/jobs_template/jobs/monthly/__init__.py.tmpl
No changes.
View
8 demo/django_extensions/conf/jobs_template/jobs/sample.py.tmpl
@@ -1,8 +0,0 @@
-from django_extensions.management.jobs import BaseJob
-
-class Job(BaseJob):
- help = "My sample job."
-
- def execute(self):
- # executing empty sample job
- pass
View
11 demo/django_extensions/conf/jobs_template/jobs/weekly/.svn/all-wcprops
@@ -1,11 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 71
-/svn/!svn/ver/94/trunk/django_extensions/conf/jobs_template/jobs/weekly
-END
-__init__.py.tmpl
-K 25
-svn:wc:ra_dav:version-url
-V 88
-/svn/!svn/ver/94/trunk/django_extensions/conf/jobs_template/jobs/weekly/__init__.py.tmpl
-END
View
40 demo/django_extensions/conf/jobs_template/jobs/weekly/.svn/entries
@@ -1,40 +0,0 @@
-8
-
-dir
-156
-http://django-command-extensions.googlecode.com/svn/trunk/django_extensions/conf/jobs_template/jobs/weekly
-http://django-command-extensions.googlecode.com/svn
-
-
-
-2008-05-28T18:47:10.360357Z
-47
-v.oostveen
-
-
-svn:special svn:externals svn:needs-lock
-
-
-
-
-
-
-
-
-
-
-
-70537768-783f-0410-b1a0-8399f7a62752
-
-__init__.py.tmpl
-file
-
-
-
-
-2008-10-31T10:27:52.000000Z
-d41d8cd98f00b204e9800998ecf8427e
-2008-05-28T18:47:10.360357Z
-47
-v.oostveen
-
View
1  demo/django_extensions/conf/jobs_template/jobs/weekly/.svn/format
@@ -1 +0,0 @@
-8
View
0  demo/django_extensions/conf/jobs_template/jobs/weekly/.svn/text-base/__init__.py.tmpl.svn-base
No changes.
View
0  demo/django_extensions/conf/jobs_template/jobs/weekly/__init__.py.tmpl
No changes.
View
17 demo/django_extensions/db/.svn/all-wcprops
@@ -1,17 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 44
-/svn/!svn/ver/127/trunk/django_extensions/db
-END
-__init__.py
-K 25
-svn:wc:ra_dav:version-url
-V 55
-/svn/!svn/ver/99/trunk/django_extensions/db/__init__.py
-END
-models.py
-K 25
-svn:wc:ra_dav:version-url
-V 54
-/svn/!svn/ver/122/trunk/django_extensions/db/models.py
-END
View
55 demo/django_extensions/db/.svn/entries
@@ -1,55 +0,0 @@
-8
-
-dir
-156
-http://django-command-extensions.googlecode.com/svn/trunk/django_extensions/db
-http://django-command-extensions.googlecode.com/svn
-
-
-
-2008-09-04T17:12:35.047092Z
-127
-v.oostveen
-
-
-svn:special svn:externals svn:needs-lock
-
-
-
-
-
-
-
-
-
-
-
-70537768-783f-0410-b1a0-8399f7a62752
-
-fields
-dir
-
-__init__.py
-file
-
-
-
-
-2008-10-31T10:27:53.000000Z
-d41d8cd98f00b204e9800998ecf8427e
-2008-08-09T15:51:17.850272Z
-99
-v.oostveen
-
-models.py
-file
-
-
-
-
-2008-10-31T10:27:53.000000Z
-1b7fec5bc4721c57b759bba15c20e72b
-2008-08-30T17:04:50.991628Z
-122
-carl.j.meyer
-
View
1  demo/django_extensions/db/.svn/format
@@ -1 +0,0 @@
-8
View
0  demo/django_extensions/db/.svn/text-base/__init__.py.svn-base
No changes.
View
17 demo/django_extensions/db/.svn/text-base/models.py.svn-base
@@ -1,17 +0,0 @@
-"""
-Django Extensions abstract base model classes.
-"""
-
-from django.db import models
-from django_extensions.db.fields import ModificationDateTimeField, CreationDateTimeField
-
-class TimeStampedModel(models.Model):
- """ TimeStampedModel
- An abstract base class model that provides self-managed "created" and
- "modified" fields.
- """
- created = CreationDateTimeField()
- modified = ModificationDateTimeField()
-
- class Meta:
- abstract = True
View
0  demo/django_extensions/db/__init__.py
No changes.
View
11 demo/django_extensions/db/fields/.svn/all-wcprops
@@ -1,11 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 51
-/svn/!svn/ver/127/trunk/django_extensions/db/fields
-END
-__init__.py
-K 25
-svn:wc:ra_dav:version-url
-V 63
-/svn/!svn/ver/127/trunk/django_extensions/db/fields/__init__.py
-END
View
6 demo/django_extensions/db/fields/.svn/dir-prop-base
@@ -1,6 +0,0 @@
-K 10
-svn:ignore
-V 6
-*.pyc
-
-END
View
40 demo/django_extensions/db/fields/.svn/entries
@@ -1,40 +0,0 @@
-8
-
-dir
-156
-http://django-command-extensions.googlecode.com/svn/trunk/django_extensions/db/fields
-http://django-command-extensions.googlecode.com/svn
-
-
-
-2008-09-04T17:12:35.047092Z
-127
-v.oostveen
-has-props
-
-svn:special svn:externals svn:needs-lock
-
-
-
-
-
-
-
-
-
-
-
-70537768-783f-0410-b1a0-8399f7a62752
-
-__init__.py
-file
-
-
-
-
-2008-10-31T10:27:53.000000Z
-ff2021ac3ec12a64a35f0176807f69f1
-2008-09-04T17:12:35.047092Z
-127
-v.oostveen
-
View
1  demo/django_extensions/db/fields/.svn/format
@@ -1 +0,0 @@
-8
View
198 demo/django_extensions/db/fields/.svn/text-base/__init__.py.svn-base
@@ -1,198 +0,0 @@
-"""
-Django Extensions additional model fields
-"""
-
-from django.template.defaultfilters import slugify
-from django.db.models import DateTimeField, CharField, SlugField
-import datetime
-import re
-
-try:
- import uuid
-except ImportError:
- from django_extensions.utils import uuid
-
-class AutoSlugField(SlugField):
- """ AutoSlugField
-
- By default, sets editable=False, blank=True.
-
- Required arguments:
-
- populate_from
- Specifies which field the slug is populated from.
-
- Optional arguments:
-
- separator
- Defines the used separator (default: '-')
-
- overwrite
- If set to True, overwrites the slug on every save (default: False)
-
- Inspired by SmileyChris' Unique Slugify snippet:
- http://www.djangosnippets.org/snippets/690/
- """
- def __init__(self, *args, **kwargs):
- kwargs.setdefault('blank', True)
- kwargs.setdefault('editable', False)
-
- populate_from = kwargs.pop('populate_from', None)
- if populate_from is None:
- raise ValueError("missing 'populate_from' argument")
- else:
- self._populate_from = populate_from
- self.separator = kwargs.pop('separator', u'-')
- self.overwrite = kwargs.pop('overwrite', False)
- super(AutoSlugField, self).__init__(*args, **kwargs)
-
- def _slug_strip(self, value):
- """
- Cleans up a slug by removing slug separator characters that occur at
- the beginning or end of a slug.
-
- If an alternate separator is used, it will also replace any instances
- of the default '-' separator with the new separator.
- """
- re_sep = '(?:-|%s)' % re.escape(self.separator)
- value = re.sub('%s+' % re_sep, self.separator, value)
- return re.sub(r'^%s+|%s+$' % (re_sep, re_sep), '', value)
-
- def create_slug(self, model_instance, add):
- # get fields to populate from and slug field to set
- populate_field = model_instance._meta.get_field(self._populate_from)
- slug_field = model_instance._meta.get_field(self.attname)
- if add or self.overwrite:
- # slugify the original field content and set next step to 2
- slug = slugify(getattr(model_instance, populate_field.attname))
- next = 2
- else:
- # get slug from the current model instance and calculate next
- # step from its number, clean-up
- slug = self._slug_strip(getattr(model_instance, self.attname))
- next = slug.split(self.separator)[-1]
- if next.isdigit():
- slug = self.separator.join(slug.split(self.separator)[:-1])
- next = int(next)
- else:
- next = 2
-
- # strip slug depending on max_length attribute of the slug field
- # and clean-up
- slug_len = slug_field.max_length
- if slug_len:
- slug = slug[:slug_len]
- slug = self._slug_strip(slug)
- original_slug = slug
-
- # exclude the current model instance from the queryset used in finding
- # the next valid slug
- queryset = model_instance.__class__._default_manager.all()
- if model_instance.pk:
- queryset = queryset.exclude(pk=model_instance.pk)
-
- # increases the number while searching for the next valid slug
- # depending on the given slug, clean-up
- while not slug or queryset.filter(**{self.attname: slug}):
- slug = original_slug
- end = '%s%s' % (self.separator, next)
- end_len = len(end)
- if slug_len and len(slug)+end_len > slug_len:
- slug = slug[:slug_len-end_len]
- slug = self._slug_strip(slug)
- slug = '%s%s' % (slug, end)
- next += 1
- return slug
-
- def pre_save(self, model_instance, add):
- value = unicode(self.create_slug(model_instance, add))
- setattr(model_instance, self.attname, value)
- return value
-
- def get_internal_type(self):
- return "SlugField"
-
-class CreationDateTimeField(DateTimeField):
- """ CreationDateTimeField
-
- By default, sets editable=False, blank=True, default=datetime.now
- """
-
- def __init__(self, *args, **kwargs):
- kwargs.setdefault('editable', False)
- kwargs.setdefault('blank', True)
- kwargs.setdefault('default', datetime.datetime.now)
- DateTimeField.__init__(self, *args, **kwargs)
-
- def get_internal_type(self):
- return "DateTimeField"
-
-class ModificationDateTimeField(CreationDateTimeField):
- """ ModificationDateTimeField
-
- By default, sets editable=False, blank=True, default=datetime.now
-
- Sets value to datetime.now() on each save of the model.
- """
-
- def pre_save(self, model, add):
- value = datetime.datetime.now()
- setattr(model, self.attname, value)
- return value
-
- def get_internal_type(self):
- return "DateTimeField"
-
-class UUIDVersionError(Exception):
- pass
-
-class UUIDField(CharField):
- """ UUIDField
-
- By default uses UUID version 1 (generate from host ID, sequence number and current time)
-
- The field support all uuid versions which are natively supported by the uuid python module.
- For more information see: http://docs.python.org/lib/module-uuid.html
- """
-
- def __init__(self, verbose_name=None, name=None, auto=True, version=1, node=None, clock_seq=None, namespace=None, **kwargs):
- kwargs['max_length'] = 36
- if auto:
- kwargs['blank'] = True
- kwargs.setdefault('editable', False)
- self.version = version
- if version==1:
- self.node, self.clock_seq = node, clock_seq
- elif version==3 or version==5:
- self.namespace, self.name = namespace, name
- CharField.__init__(self, verbose_name, name, **kwargs)
-
- def get_internal_type(self):
- return CharField.__name__
-
- def create_uuid(self):
- if not self.version or self.version==4:
- return uuid.uuid4()
- elif self.version==1:
- return uuid.uuid1(self.node, self.clock_seq)
- elif self.version==2:
- raise UUIDVersionError("UUID version 2 is not supported.")
- elif self.version==3:
- return uuid.uuid3(self.namespace, self.name)
- elif self.version==5:
- return uuid.uuid5(self.namespace, self.name)
- else:
- raise UUIDVersionError("UUID version %s is not valid." % self.version)
-
- def pre_save(self, model_instance, add):
- if self.auto and add:
- value = unicode(self.create_uuid())
- setattr(model_instance, self.attname, value)
- return value
- else:
- value = super(UUIDField, self).pre_save(model_instance, add)
- if self.auto and not value:
- value = unicode(self.create_uuid())
- setattr(model_instance, self.attname, value)
- return value
-
View
198 demo/django_extensions/db/fields/__init__.py
@@ -1,198 +0,0 @@
-"""
-Django Extensions additional model fields
-"""
-
-from django.template.defaultfilters import slugify
-from django.db.models import DateTimeField, CharField, SlugField
-import datetime
-import re
-
-try:
- import uuid
-except ImportError:
- from django_extensions.utils import uuid
-
-class AutoSlugField(SlugField):
- """ AutoSlugField
-
- By default, sets editable=False, blank=True.
-
- Required arguments:
-
- populate_from
- Specifies which field the slug is populated from.
-
- Optional arguments:
-
- separator
- Defines the used separator (default: '-')
-
- overwrite
- If set to True, overwrites the slug on every save (default: False)
-
- Inspired by SmileyChris' Unique Slugify snippet:
- http://www.djangosnippets.org/snippets/690/
- """
- def __init__(self, *args, **kwargs):
- kwargs.setdefault('blank', True)
- kwargs.setdefault('editable', False)
-
- populate_from = kwargs.pop('populate_from', None)
- if populate_from is None:
- raise ValueError("missing 'populate_from' argument")
- else:
- self._populate_from = populate_from
- self.separator = kwargs.pop('separator', u'-')
- self.overwrite = kwargs.pop('overwrite', False)
- super(AutoSlugField, self).__init__(*args, **kwargs)
-
- def _slug_strip(self, value):
- """
- Cleans up a slug by removing slug separator characters that occur at
- the beginning or end of a slug.
-
- If an alternate separator is used, it will also replace any instances
- of the default '-' separator with the new separator.
- """
- re_sep = '(?:-|%s)' % re.escape(self.separator)
- value = re.sub('%s+' % re_sep, self.separator, value)
- return re.sub(r'^%s+|%s+$' % (re_sep, re_sep), '', value)
-
- def create_slug(self, model_instance, add):
- # get fields to populate from and slug field to set
- populate_field = model_instance._meta.get_field(self._populate_from)
- slug_field = model_instance._meta.get_field(self.attname)
- if add or self.overwrite:
- # slugify the original field content and set next step to 2
- slug = slugify(getattr(model_instance, populate_field.attname))
- next = 2
- else:
- # get slug from the current model instance and calculate next
- # step from its number, clean-up
- slug = self._slug_strip(getattr(model_instance, self.attname))
- next = slug.split(self.separator)[-1]
- if next.isdigit():
- slug = self.separator.join(slug.split(self.separator)[:-1])
- next = int(next)
- else:
- next = 2
-
- # strip slug depending on max_length attribute of the slug field
- # and clean-up
- slug_len = slug_field.max_length
- if slug_len:
- slug = slug[:slug_len]
- slug = self._slug_strip(slug)
- original_slug = slug
-
- # exclude the current model instance from the queryset used in finding
- # the next valid slug
- queryset = model_instance.__class__._default_manager.all()
- if model_instance.pk:
- queryset = queryset.exclude(pk=model_instance.pk)
-
- # increases the number while searching for the next valid slug
- # depending on the given slug, clean-up
- while not slug or queryset.filter(**{self.attname: slug}):
- slug = original_slug
- end = '%s%s' % (self.separator, next)
- end_len = len(end)
- if slug_len and len(slug)+end_len > slug_len:
- slug = slug[:slug_len-end_len]
- slug = self._slug_strip(slug)
- slug = '%s%s' % (slug, end)
- next += 1
- return slug
-
- def pre_save(self, model_instance, add):
- value = unicode(self.create_slug(model_instance, add))
- setattr(model_instance, self.attname, value)
- return value
-
- def get_internal_type(self):
- return "SlugField"
-
-class CreationDateTimeField(DateTimeField):
- """ CreationDateTimeField
-
- By default, sets editable=False, blank=True, default=datetime.now
- """
-
- def __init__(self, *args, **kwargs):
- kwargs.setdefault('editable', False)
- kwargs.setdefault('blank', True)
- kwargs.setdefault('default', datetime.datetime.now)
- DateTimeField.__init__(self, *args, **kwargs)
-
- def get_internal_type(self):
- return "DateTimeField"
-
-class ModificationDateTimeField(CreationDateTimeField):
- """ ModificationDateTimeField
-
- By default, sets editable=False, blank=True, default=datetime.now
-
- Sets value to datetime.now() on each save of the model.
- """
-
- def pre_save(self, model, add):
- value = datetime.datetime.now()
- setattr(model, self.attname, value)
- return value
-
- def get_internal_type(self):
- return "DateTimeField"
-
-class UUIDVersionError(Exception):
- pass
-
-class UUIDField(CharField):
- """ UUIDField
-
- By default uses UUID version 1 (generate from host ID, sequence number and current time)
-
- The field support all uuid versions which are natively supported by the uuid python module.
- For more information see: http://docs.python.org/lib/module-uuid.html
- """
-
- def __init__(self, verbose_name=None, name=None, auto=True, version=1, node=None, clock_seq=None, namespace=None, **kwargs):
- kwargs['max_length'] = 36
- if auto:
- kwargs['blank'] = True
- kwargs.setdefault('editable', False)
- self.version = version
- if version==1:
- self.node, self.clock_seq = node, clock_seq
- elif version==3 or version==5:
- self.namespace, self.name = namespace, name
- CharField.__init__(self, verbose_name, name, **kwargs)
-
- def get_internal_type(self):
- return CharField.__name__
-
- def create_uuid(self):
- if not self.version or self.version==4:
- return uuid.uuid4()
- elif self.version==1:
- return uuid.uuid1(self.node, self.clock_seq)
- elif self.version==2:
- raise UUIDVersionError("UUID version 2 is not supported.")
- elif self.version==3:
- return uuid.uuid3(self.namespace, self.name)
- elif self.version==5:
- return uuid.uuid5(self.namespace, self.name)
- else:
- raise UUIDVersionError("UUID version %s is not valid." % self.version)
-
- def pre_save(self, model_instance, add):
- if self.auto and add:
- value = unicode(self.create_uuid())
- setattr(model_instance, self.attname, value)
- return value
- else:
- value = super(UUIDField, self).pre_save(model_instance, add)
- if self.auto and not value:
- value = unicode(self.create_uuid())
- setattr(model_instance, self.attname, value)
- return value
-
View
17 demo/django_extensions/db/models.py
@@ -1,17 +0,0 @@
-"""
-Django Extensions abstract base model classes.
-"""
-
-from django.db import models
-from django_extensions.db.fields import ModificationDateTimeField, CreationDateTimeField
-
-class TimeStampedModel(models.Model):
- """ TimeStampedModel
- An abstract base class model that provides self-managed "created" and
- "modified" fields.
- """
- created = CreationDateTimeField()
- modified = ModificationDateTimeField()
-
- class Meta:
- abstract = True
View
11 demo/django_extensions/jobs/.svn/all-wcprops
@@ -1,11 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 45
-/svn/!svn/ver/98/trunk/django_extensions/jobs
-END
-__init__.py
-K 25
-svn:wc:ra_dav:version-url
-V 57
-/svn/!svn/ver/94/trunk/django_extensions/jobs/__init__.py
-END
View
6 demo/django_extensions/jobs/.svn/dir-prop-base
@@ -1,6 +0,0 @@
-K 10
-svn:ignore
-V 6
-*.pyc
-
-END
View
52 demo/django_extensions/jobs/.svn/entries
@@ -1,52 +0,0 @@
-8
-
-dir
-156
-http://django-command-extensions.googlecode.com/svn/trunk/django_extensions/jobs
-http://django-command-extensions.googlecode.com/svn
-
-
-
-2008-08-09T15:20:08.103400Z
-98
-v.oostveen
-has-props
-
-svn:special svn:externals svn:needs-lock
-
-
-
-
-
-
-
-
-
-
-
-70537768-783f-0410-b1a0-8399f7a62752
-
-weekly
-dir
-
-daily
-dir
-
-hourly
-dir
-
-__init__.py
-file
-
-
-
-
-2008-10-31T10:27:54.000000Z
-d41d8cd98f00b204e9800998ecf8427e
-2008-03-26T02:34:19.021242Z
-27
-v.oostveen
-
-monthly
-dir
-
View
1  demo/django_extensions/jobs/.svn/format
@@ -1 +0,0 @@
-8
View
0  demo/django_extensions/jobs/.svn/text-base/__init__.py.svn-base
No changes.
View
0  demo/django_extensions/jobs/__init__.py
No changes.
View
23 demo/django_extensions/jobs/daily/.svn/all-wcprops
@@ -1,23 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 51
-/svn/!svn/ver/98/trunk/django_extensions/jobs/daily
-END
-daily_cleanup.py
-K 25
-svn:wc:ra_dav:version-url
-V 68
-/svn/!svn/ver/94/trunk/django_extensions/jobs/daily/daily_cleanup.py
-END
-cache_cleanup.py
-K 25
-svn:wc:ra_dav:version-url
-V 68
-/svn/!svn/ver/94/trunk/django_extensions/jobs/daily/cache_cleanup.py
-END
-__init__.py
-K 25
-svn:wc:ra_dav:version-url
-V 63
-/svn/!svn/ver/94/trunk/django_extensions/jobs/daily/__init__.py
-END
View
6 demo/django_extensions/jobs/daily/.svn/dir-prop-base
@@ -1,6 +0,0 @@
-K 10
-svn:ignore
-V 6
-*.pyc
-
-END
View
64 demo/django_extensions/jobs/daily/.svn/entries
@@ -1,64 +0,0 @@
-8
-
-dir
-156
-http://django-command-extensions.googlecode.com/svn/trunk/django_extensions/jobs/daily
-http://django-command-extensions.googlecode.com/svn
-
-
-
-2008-08-09T15:20:08.103400Z
-98
-v.oostveen
-has-props
-
-svn:special svn:externals svn:needs-lock
-
-
-
-
-
-
-
-
-
-
-
-70537768-783f-0410-b1a0-8399f7a62752
-
-daily_cleanup.py
-file
-
-
-
-
-2008-10-31T10:27:54.000000Z
-de8100220499fa899fc0325d81a802cb
-2008-08-09T15:06:09.920616Z
-94
-v.oostveen
-
-cache_cleanup.py
-file
-
-
-
-
-2008-10-31T10:27:54.000000Z
-4e62dbce878bdeed397753da317066b3
-2008-08-09T15:06:09.920616Z
-94
-v.oostveen
-
-__init__.py
-file
-
-
-
-
-2008-10-31T10:27:54.000000Z
-d41d8cd98f00b204e9800998ecf8427e
-2008-03-26T02:34:19.021242Z
-27
-v.oostveen
-
View
1  demo/django_extensions/jobs/daily/.svn/format
@@ -1 +0,0 @@
-8
View
0  demo/django_extensions/jobs/daily/.svn/text-base/__init__.py.svn-base
No changes.
View
23 demo/django_extensions/jobs/daily/.svn/text-base/cache_cleanup.py.svn-base
@@ -1,23 +0,0 @@
-"""
-Daily cleanup job.
-
-Can be run as a cronjob to clean out old data from the database (only expired
-sessions at the moment).
-"""
-
-from django_extensions.management.jobs import DailyJob
-
-class Job(DailyJob):
- help = "Cache (db) cleanup Job"
-
- def execute(self):
- from django.conf import settings
- import os
-
- if settings.CACHE_BACKEND.startswith('db://'):
- os.environ['TZ'] = settings.TIME_ZONE
- table_name = settings.CACHE_BACKEND[5:]
- cursor = connection.cursor()
- cursor.execute("DELETE FROM %s WHERE %s < UTC_TIMESTAMP()" % \
- (backend.quote_name(table_name), backend.quote_name('expires')))
- transaction.commit_unless_managed()
View
22 demo/django_extensions/jobs/daily/.svn/text-base/daily_cleanup.py.svn-base
@@ -1,22 +0,0 @@
-"""
-Daily cleanup job.
-
-Can be run as a cronjob to clean out old data from the database (only expired
-sessions at the moment).
-"""
-
-from django_extensions.management.jobs import DailyJob
-
-class Job(DailyJob):
- help = "Django Daily Cleanup Job"
-
- def execute(self):
- # TODO: Remove the old way when Django 1.0 lands
- try:
- # old way of doing cleanup (pre r7844 in svn)
- from django.bin.daily_cleanup import clean_up
- clean_up()
- except:
- # new way using the management.call_command function
- from django.core import management
- management.call_command("cleanup")
View
0  demo/django_extensions/jobs/daily/__init__.py
No changes.
View
23 demo/django_extensions/jobs/daily/cache_cleanup.py
@@ -1,23 +0,0 @@
-"""
-Daily cleanup job.
-
-Can be run as a cronjob to clean out old data from the database (only expired
-sessions at the moment).
-"""
-
-from django_extensions.management.jobs import DailyJob
-
-class Job(DailyJob):
- help = "Cache (db) cleanup Job"
-
- def execute(self):
- from django.conf import settings
- import os
-
- if settings.CACHE_BACKEND.startswith('db://'):
- os.environ['TZ'] = settings.TIME_ZONE
- table_name = settings.CACHE_BACKEND[5:]
- cursor = connection.cursor()
- cursor.execute("DELETE FROM %s WHERE %s < UTC_TIMESTAMP()" % \
- (backend.quote_name(table_name), backend.quote_name('expires')))
- transaction.commit_unless_managed()
View
22 demo/django_extensions/jobs/daily/daily_cleanup.py
@@ -1,22 +0,0 @@
-"""
-Daily cleanup job.
-
-Can be run as a cronjob to clean out old data from the database (only expired
-sessions at the moment).
-"""
-
-from django_extensions.management.jobs import DailyJob
-
-class Job(DailyJob):
- help = "Django Daily Cleanup Job"
-
- def execute(self):
- # TODO: Remove the old way when Django 1.0 lands
- try:
- # old way of doing cleanup (pre r7844 in svn)
- from django.bin.daily_cleanup import clean_up
- clean_up()
- except:
- # new way using the management.call_command function
- from django.core import management
- management.call_command("cleanup")
View
11 demo/django_extensions/jobs/hourly/.svn/all-wcprops
@@ -1,11 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 52
-/svn/!svn/ver/94/trunk/django_extensions/jobs/hourly
-END
-__init__.py
-K 25
-svn:wc:ra_dav:version-url
-V 64
-/svn/!svn/ver/94/trunk/django_extensions/jobs/hourly/__init__.py
-END
View
40 demo/django_extensions/jobs/hourly/.svn/entries
@@ -1,40 +0,0 @@
-8
-
-dir
-156
-http://django-command-extensions.googlecode.com/svn/trunk/django_extensions/jobs/hourly
-http://django-command-extensions.googlecode.com/svn