aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/journal/artifact_urls.py
diff options
context:
space:
mode:
authorbnewbold <bnewbold@eta.mit.edu>2009-01-25 13:05:25 -0500
committerbnewbold <bnewbold@eta.mit.edu>2009-01-25 13:05:25 -0500
commit75bc6a976f98e36a9426e6115d3f628a8fa73762 (patch)
treeabf42e0d4b94146506e0208a08afe8758eb11a93 /bn_django/journal/artifact_urls.py
parent296dc07f010d8692028db682d02ef3e88e525f01 (diff)
downloadbnewnet-75bc6a976f98e36a9426e6115d3f628a8fa73762.tar.gz
bnewnet-75bc6a976f98e36a9426e6115d3f628a8fa73762.zip
whew artifact stuff, all basic style
Diffstat (limited to 'bn_django/journal/artifact_urls.py')
-rw-r--r--bn_django/journal/artifact_urls.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/bn_django/journal/artifact_urls.py b/bn_django/journal/artifact_urls.py
new file mode 100644
index 0000000..9a3bde4
--- /dev/null
+++ b/bn_django/journal/artifact_urls.py
@@ -0,0 +1,27 @@
+from django.conf.urls.defaults import *
+from django.conf import settings
+
+from models import Artifact, VideoArtifact, ImageArtifact, LinkArtifact, CodeArtifact
+
+urlpatterns = patterns('django.views.generic.list_detail',
+ (r'^images/$', 'object_list',
+ dict(queryset=ImageArtifact.objects.order_by('-date'),
+ paginate_by=35, allow_empty=False)),
+ (r'^images/(?P<object_id>\d+)/$', 'object_detail',
+ dict(queryset=ImageArtifact.objects.all())),
+ (r'^links/$', 'object_list',
+ dict(queryset=LinkArtifact.objects.order_by('-date'),
+ paginate_by=35, allow_empty=False)),
+ (r'^links/(?P<object_id>\d+)/$', 'object_detail',
+ dict(queryset=LinkArtifact.objects.all())),
+ (r'^code/$', 'object_list',
+ dict(queryset=CodeArtifact.objects.order_by('-date'),
+ paginate_by=35, allow_empty=False)),
+ (r'^code/(?P<object_id>\d+)/$', 'object_detail',
+ dict(queryset=CodeArtifact.objects.all())),
+ (r'^videos/$', 'object_list',
+ dict(queryset=VideoArtifact.objects.order_by('-date'),
+ paginate_by=35, allow_empty=False)),
+ (r'^videos/(?P<object_id>\d+)/$', 'object_detail',
+ dict(queryset=VideoArtifact.objects.all())),
+)