Permalink
Browse files

first commit

  • Loading branch information...
0 parents commit 47c69970ed9bd20f59c743abe5e2a221e3b0e4c6 @ashok-raavi committed Jul 1, 2010
Showing with 2,763 additions and 0 deletions.
  1. 0 example/__init__.py
  2. +28 −0 example/blogango/__init__.py
  3. +16 −0 example/blogango/admin.py
  4. +372 −0 example/blogango/akismet.py
  5. 0 example/blogango/conf/__init__.py
  6. +5 −0 example/blogango/conf/settings.py
  7. +27 −0 example/blogango/context_processors.py
  8. +43 −0 example/blogango/feeds.py
  9. +1 −0 example/blogango/fixtures/initial_data.json
  10. +46 −0 example/blogango/forms.py
  11. +151 −0 example/blogango/models.py
  12. +32 −0 example/blogango/search.py
  13. +9 −0 example/blogango/templates/b-404.html
  14. +9 −0 example/blogango/templates/b-500.html
  15. +120 −0 example/blogango/templates/base.html
  16. +23 −0 example/blogango/templates/blogango/archive_view.html
  17. +20 −0 example/blogango/templates/blogango/author.html
  18. +22 −0 example/blogango/templates/blogango/blogroll.html
  19. +8 −0 example/blogango/templates/blogango/comment.html
  20. +5 −0 example/blogango/templates/blogango/commentcontrols.html
  21. +24 −0 example/blogango/templates/blogango/create.html
  22. +29 −0 example/blogango/templates/blogango/details.html
  23. +20 −0 example/blogango/templates/blogango/edit_preferences.html
  24. +1 −0 example/blogango/templates/blogango/eggs.html
  25. +6 −0 example/blogango/templates/blogango/entry_controls.html
  26. +26 −0 example/blogango/templates/blogango/install.html
  27. +29 −0 example/blogango/templates/blogango/mainpage.html
  28. +27 −0 example/blogango/templates/blogango/manage.html
  29. +32 −0 example/blogango/templates/blogango/manage_entries.html
  30. +34 −0 example/blogango/templates/blogango/mod_comment.html
  31. +20 −0 example/blogango/templates/blogango/tag_details.html
  32. +7 −0 example/blogango/templates/blogango/topbar.html
  33. +9 −0 example/blogango/templates/entry_footer.html
  34. +29 −0 example/blogango/templates/registration/login.html
  35. +17 −0 example/blogango/templates/registration/logout.html
  36. +25 −0 example/blogango/templates/registration/password_change.html
  37. +18 −0 example/blogango/templates/search.html
  38. 0 example/blogango/templatetags/__init__.py
  39. +12 −0 example/blogango/templatetags/filters.py
  40. +44 −0 example/blogango/templatetags/gravatar.py
  41. +59 −0 example/blogango/urls.py
  42. +359 −0 example/blogango/views.py
  43. +12 −0 example/doc.txt
  44. +11 −0 example/manage.py
  45. +101 −0 example/settings.py
  46. +114 −0 example/site_media/blogango/css/agiliqblog.css
  47. +1 −0 example/site_media/blogango/css/prettify.css
  48. BIN example/site_media/blogango/images/bg.png
  49. BIN example/site_media/blogango/images/blog.png
  50. BIN example/site_media/blogango/images/date_icon.png
  51. BIN example/site_media/blogango/images/icon_smile.gif
  52. BIN example/site_media/blogango/images/linesbg.png
  53. BIN example/site_media/blogango/images/linesbg2.png
  54. +23 −0 example/site_media/blogango/js/prettify.js
  55. +1 −0 example/subdomain_admin
  56. 0 example/subdomains/__init__.py
  57. 0 example/subdomains/conf/__init__.py
  58. +5 −0 example/subdomains/conf/settings.py
  59. +6 −0 example/subdomains/context_processors.py
  60. +57 −0 example/subdomains/decorators.py
  61. +31 −0 example/subdomains/forms.py
  62. +85 −0 example/subdomains/middleware.py
  63. +82 −0 example/subdomains/models.py
  64. +48 −0 example/subdomains/requestfactory.py
  65. +10 −0 example/subdomains/templates/subdomains/base.html
  66. +14 −0 example/subdomains/templates/subdomains/create_subdomain.html
  67. +147 −0 example/subdomains/tests.py
  68. +7 −0 example/subdomains/urls.py
  69. +35 −0 example/subdomains/views.py
  70. BIN example/tmp/subdomain_admin.db
  71. +27 −0 example/urls.py
  72. 0 subdomain_admin/__init__.py
  73. +36 −0 subdomain_admin/admin.py
  74. +66 −0 subdomain_admin/forms.py
  75. +24 −0 subdomain_admin/models.py
  76. +12 −0 subdomain_admin/templates/subdomain_admin/createsite.html
  77. +23 −0 subdomain_admin/tests.py
  78. +21 −0 subdomain_admin/views.py
No changes.
@@ -0,0 +1,28 @@
+
+from datetime import date, datetime, time
+from time import strptime
+
+from django.core.urlresolvers import reverse
+from django.db.models import signals
+
+from pingback import create_ping_func
+from pingback.client import ping_external_links, ping_directories
+from django_xmlrpc import xmlrpcdispatcher
+
+from blogango.models import BlogEntry
+
+def pingback_blog_handler(year, month, slug, **kwargs):
+ return BlogEntry.objects.get(created_on__year=year,
+ created_on__month=month,
+ slug=slug,
+ is_published=True)
+
+
+ping_details = {'blogango_details': pingback_blog_handler}
+
+ping_func = create_ping_func(**ping_details)
+
+xmlrpcdispatcher.register_function(ping_func, 'pingback.ping')
+
+signals.post_save.connect(ping_external_links(content_attr='text', url_attr='get_absolute_url'), sender=BlogEntry, weak=False)
+
@@ -0,0 +1,16 @@
+from django.contrib import admin
+
+from blogango.models import Blog, BlogEntry, Comment, BlogRoll
+
+from subdomain_admin.admin import SubdomainAdmin
+
+class BlogEntryAdmin(SubdomainAdmin):
+ prepopulated_fields = {'slug': ('title',)}
+
+class BlogRollAdmin(SubdomainAdmin):
+ pass
+
+admin.site.register(Blog)
+admin.site.register(BlogEntry, BlogEntryAdmin)
+admin.site.register(Comment)
+admin.site.register(BlogRoll, BlogRollAdmin)
Oops, something went wrong.

0 comments on commit 47c6997

Please sign in to comment.