From 78943ca7de03a0f59b072c71540be92b5a6d433f Mon Sep 17 00:00:00 2001 From: zuber Date: Wed, 10 Feb 2010 23:48:13 +0100 Subject: [PATCH] =?utf8?q?Podpisywanie,=20kto=20wykona=C5=82=20dan=C4=85?= =?utf8?q?=20zmian=C4=99.=20Usuni=C4=99cie=20print,=20kt=C3=B3re=20zapodzi?= =?utf8?q?a=C5=82y=20si=C4=99=20w=20kodzie.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- apps/wiki/views.py | 1 - lib/vstorage.py | 1 - platforma/static/js/main.js | 2 +- platforma/templates/wiki/document_details.html | 2 +- 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/wiki/views.py b/apps/wiki/views.py index ec43deea..d64a5292 100644 --- a/apps/wiki/views.py +++ b/apps/wiki/views.py @@ -41,7 +41,6 @@ def document_detail(request, name, template_name='wiki/document_details.html'): def document_gallery(request, directory): try: base_dir = os.path.join(settings.MEDIA_ROOT, settings.FILEBROWSER_DIRECTORY, directory) - print base_dir images = ['%s%s%s/%s' % (settings.MEDIA_URL, settings.FILEBROWSER_DIRECTORY, directory, f) for f in os.listdir(base_dir) if os.path.splitext(f)[1].lower() in ('.jpg', '.jpeg', '.png')] return HttpResponse(json.dumps(images)) except (IndexError, OSError), e: diff --git a/lib/vstorage.py b/lib/vstorage.py index 9710c7be..00f844ad 100644 --- a/lib/vstorage.py +++ b/lib/vstorage.py @@ -265,7 +265,6 @@ class VersionedStorage(object): def open_page(self, title): if title not in self: - print 'whatever', list(self.all_pages()) raise DocumentNotFound() try: diff --git a/platforma/static/js/main.js b/platforma/static/js/main.js index 22ec7332..56160ee1 100644 --- a/platforma/static/js/main.js +++ b/platforma/static/js/main.js @@ -674,7 +674,7 @@ $(function() { name: $('#document-name').html(), text: metaComment + editor.getCode(), revision: $('#document-revision').html(), - author: 'annonymous', + author: $('#username').html() || 'annonymous', comment: $('#komentarz').val() }; diff --git a/platforma/templates/wiki/document_details.html b/platforma/templates/wiki/document_details.html index 496f1f08..ead13824 100644 --- a/platforma/templates/wiki/document_details.html +++ b/platforma/templates/wiki/document_details.html @@ -29,7 +29,7 @@