Merge branch 'master' of git@stigma:platforma
authorLukasz <lreqc@debian.(none)>
Thu, 22 Oct 2009 21:03:34 +0000 (17:03 -0400)
committerLukasz <lreqc@debian.(none)>
Thu, 22 Oct 2009 21:03:34 +0000 (17:03 -0400)
apps/api/admin.py
apps/api/handlers/library_handlers.py
apps/api/handlers/manage_handlers.py
platforma/static/css/html.css
requirements.txt

index efa64f3..332935d 100644 (file)
@@ -1,6 +1,9 @@
 from django.contrib import admin
 
-import api.models
+from api import models
 
-admin.site.register(api.models.PullRequest)
-admin.site.register(api.models.PartCache)
+class PullRequestAdmin(admin.ModelAdmin):
+    list_display = ('comitter', 'timestamp', 'comment', 'document', 'source_revision')
+
+admin.site.register(models.PullRequest, PullRequestAdmin)
+admin.site.register(models.PartCache)
index a328582..942ea0e 100644 (file)
@@ -388,7 +388,7 @@ class DocumentGalleryHandler(BaseHandler):
                     
                 gallery['pages'].append( quote(url.encode('utf-8')) )
 
-#            gallery['pages'].sort()
+            gallery['pages'].sort()
             galleries.append(gallery)
 
         return galleries
index b94ca72..f9caf7b 100644 (file)
@@ -110,7 +110,7 @@ class PullRequestHandler(BaseHandler):
             # sync state with repository
             prq.status = 'A'
             prq.merged_revision = str(src_doc.shared().revision)
-            prq.merged_timestamp = datetime.now()
+            prq.merged_timestamp = datetime.datetime.now()
             prq.save()
 
             return SuccessAllOk().django_response({
index 9cfb772..6bc118d 100644 (file)
 }
 
 .htmlview .dzielo_nadrzedne {
-    font-size: 0.375em;
+    font-size: 1.5em;
     display: block;
     line-height: 1.5em;
     margin-bottom: -0.25em;
 
 /* .htmlview *[wl2o\:editable] {
     background-color: pink;
-} */
+}
 
 .htmlview *[wl2o\:editable] *[wl2o\:editable] {
     background-color: red;
-}
+} */
 
 
 .htmlview .annotation:hover {
index 07b94b5..acc34d9 100644 (file)
@@ -3,7 +3,7 @@
 Django==1.1.1
 lxml==2.2.2
 mercurial==1.3.1
-librarian==1.2.6
+librarian>=1.3.dev,<1.4
 django-piston==0.2.3rc1
 django-cas-consumer==0.1dev
 # MySQL-python>=1.2,<2.0