From: zuber Date: Wed, 10 Feb 2010 22:48:13 +0000 (+0100) Subject: Podpisywanie, kto wykonał daną zmianę. Usunięcie print, które zapodziały się w kodzie. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/78943ca7de03a0f59b072c71540be92b5a6d433f Podpisywanie, kto wykonał daną zmianę. Usunięcie print, które zapodziały się w kodzie. --- 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 @@