From ee01d50d05b7d72dd372e8f3a0c78b9da6c23b38 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Rekucki?= Date: Sun, 28 Mar 2010 14:27:52 +0200 Subject: [PATCH] Minor cleanup. --- NOTICE | 2 +- apps/toolbar/management/commands/__init__.py | 4 ---- apps/toolbar/management/commands/fixbuttons.py | 6 +++++- apps/toolbar/models.py | 5 +++++ apps/toolbar/templatetags/toolbar_tags.py | 5 +++++ apps/wiki/forms.py | 5 +++++ apps/wiki/models.py | 5 +++++ apps/wiki/nice_diff.py | 7 +++++-- lib/test_vstorage.py | 4 ++++ lib/vstorage.py | 4 ++++ lib/wlapi.py | 5 +++++ platforma.wsgi.template | 1 - scripts/crop.py | 5 +++++ scripts/imgconv.py | 5 +++++ scripts/rip-themes-from-redmine.py | 1 - 15 files changed, 54 insertions(+), 10 deletions(-) diff --git a/NOTICE b/NOTICE index ff69f4ac..815f1c90 100644 --- a/NOTICE +++ b/NOTICE @@ -1,5 +1,5 @@ - FNP Librarian + FNP Redakcja Copyright © 2010 Fundacja Nowoczesna Polska diff --git a/apps/toolbar/management/commands/__init__.py b/apps/toolbar/management/commands/__init__.py index 5ff26b2a..e69de29b 100644 --- a/apps/toolbar/management/commands/__init__.py +++ b/apps/toolbar/management/commands/__init__.py @@ -1,4 +0,0 @@ -# To change this template, choose Tools | Templates -# and open the template in the editor. - - diff --git a/apps/toolbar/management/commands/fixbuttons.py b/apps/toolbar/management/commands/fixbuttons.py index 5482ddc5..7a49b37a 100644 --- a/apps/toolbar/management/commands/fixbuttons.py +++ b/apps/toolbar/management/commands/fixbuttons.py @@ -1,5 +1,9 @@ #!/usr/bin/env python -# -*- conding: utf-8 -*- +# -*- coding: utf-8 -*- +# +# This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# __author__="lreqc" __date__ ="$2009-09-08 14:31:26$" from django.core.management.base import NoArgsCommand diff --git a/apps/toolbar/models.py b/apps/toolbar/models.py index 0c40179b..6a20263e 100644 --- a/apps/toolbar/models.py +++ b/apps/toolbar/models.py @@ -1,3 +1,8 @@ +# -*- coding: utf-8 -*- +# +# This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# from django.db import models from django.utils.translation import ugettext_lazy as _ diff --git a/apps/toolbar/templatetags/toolbar_tags.py b/apps/toolbar/templatetags/toolbar_tags.py index ac7ebbb1..421709e9 100644 --- a/apps/toolbar/templatetags/toolbar_tags.py +++ b/apps/toolbar/templatetags/toolbar_tags.py @@ -1,3 +1,8 @@ +# -*- coding: utf-8 -*- +# +# This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# from django import template from toolbar import models diff --git a/apps/wiki/forms.py b/apps/wiki/forms.py index db5998de..506ec8e0 100644 --- a/apps/wiki/forms.py +++ b/apps/wiki/forms.py @@ -1,3 +1,8 @@ +# -*- coding: utf-8 -*- +# +# This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# from django import forms from wiki.models import Document, getstorage diff --git a/apps/wiki/models.py b/apps/wiki/models.py index 8ec4d32c..282d4c50 100644 --- a/apps/wiki/models.py +++ b/apps/wiki/models.py @@ -1,3 +1,8 @@ +# -*- coding: utf-8 -*- +# +# This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# import re import vstorage from vstorage import DocumentNotFound diff --git a/apps/wiki/nice_diff.py b/apps/wiki/nice_diff.py index 612fa22a..c000b13c 100755 --- a/apps/wiki/nice_diff.py +++ b/apps/wiki/nice_diff.py @@ -1,5 +1,8 @@ -#!/usr/bin/env python - +# -*- coding: utf-8 -*- +# +# This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# import difflib import re diff --git a/lib/test_vstorage.py b/lib/test_vstorage.py index 87b9a949..00df2f69 100644 --- a/lib/test_vstorage.py +++ b/lib/test_vstorage.py @@ -1,5 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- +# +# This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# import os import tempfile diff --git a/lib/vstorage.py b/lib/vstorage.py index 02f05039..2274a044 100644 --- a/lib/vstorage.py +++ b/lib/vstorage.py @@ -1,4 +1,8 @@ # -*- coding: utf-8 -*- +# +# This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# import os import tempfile import datetime diff --git a/lib/wlapi.py b/lib/wlapi.py index 6f49dfee..cc735963 100644 --- a/lib/wlapi.py +++ b/lib/wlapi.py @@ -1,3 +1,8 @@ +# -*- coding: utf-8 -*- +# +# This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# """ Abstraction over API for wolnelektury.pl """ diff --git a/platforma.wsgi.template b/platforma.wsgi.template index 76e39032..3528fe88 100644 --- a/platforma.wsgi.template +++ b/platforma.wsgi.template @@ -12,7 +12,6 @@ sys.stdout = sys.stderr # Add apps and lib directories to PYTHONPATH sys.path = [ - '%(path)s/releases/current/%(project_name)s', '%(path)s/releases/current', '%(path)s/releases/current/apps', '%(path)s/releases/current/lib', diff --git a/scripts/crop.py b/scripts/crop.py index a7d83840..3266e090 100644 --- a/scripts/crop.py +++ b/scripts/crop.py @@ -1,4 +1,9 @@ #!/usr/bin/env python +# -*- coding: utf-8 -*- +# +# This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# import sys import os from os.path import splitext, dirname, basename, realpath diff --git a/scripts/imgconv.py b/scripts/imgconv.py index ce514b32..3a7cfa9c 100644 --- a/scripts/imgconv.py +++ b/scripts/imgconv.py @@ -1,4 +1,9 @@ #!/usr/bin/env python +# -*- coding: utf-8 -*- +# +# This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# import sys import os import shutil diff --git a/scripts/rip-themes-from-redmine.py b/scripts/rip-themes-from-redmine.py index 379e8539..24c80081 100644 --- a/scripts/rip-themes-from-redmine.py +++ b/scripts/rip-themes-from-redmine.py @@ -1,5 +1,4 @@ #!/usr/bin/env python - import urllib from lxml import html -- 2.20.1