From: Łukasz Rekucki Date: Fri, 26 Mar 2010 23:10:51 +0000 (+0100) Subject: Added copyright and license notice to home made parts. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/1f74e9a6dc7dd2303f3271ccf4c7a3eb59e3e27e?ds=sidebyside Added copyright and license notice to home made parts. --- diff --git a/apps/api/handlers.py b/apps/api/handlers.py index 03115d894..799b60827 100644 --- a/apps/api/handlers.py +++ b/apps/api/handlers.py @@ -1,3 +1,7 @@ +# -*- coding: utf-8 -*- +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# from django.shortcuts import get_object_or_404 from django.contrib.auth.decorators import login_required, user_passes_test from piston.handler import BaseHandler diff --git a/apps/catalogue/admin.py b/apps/catalogue/admin.py index 9f1770d95..087523db2 100644 --- a/apps/catalogue/admin.py +++ b/apps/catalogue/admin.py @@ -1,4 +1,7 @@ # -*- coding: utf-8 -*- +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# from django.contrib import admin from newtagging.admin import TaggableModelAdmin diff --git a/apps/catalogue/fields.py b/apps/catalogue/fields.py index eedff6705..1c0eb4a22 100644 --- a/apps/catalogue/fields.py +++ b/apps/catalogue/fields.py @@ -1,4 +1,7 @@ # -*- coding: utf-8 -*- +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# import datetime from django.conf import settings diff --git a/apps/catalogue/forms.py b/apps/catalogue/forms.py index bf6b0df35..4b600b639 100644 --- a/apps/catalogue/forms.py +++ b/apps/catalogue/forms.py @@ -1,4 +1,7 @@ # -*- coding: utf-8 -*- +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# from django import forms from slughifi import slughifi diff --git a/apps/catalogue/management/commands/importbooks.py b/apps/catalogue/management/commands/importbooks.py index 0aa808137..52aa69feb 100644 --- a/apps/catalogue/management/commands/importbooks.py +++ b/apps/catalogue/management/commands/importbooks.py @@ -1,3 +1,7 @@ +# -*- coding: utf-8 -*- +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# import os import sys from optparse import make_option diff --git a/apps/catalogue/models.py b/apps/catalogue/models.py index a9e39de01..ac9a14cb1 100644 --- a/apps/catalogue/models.py +++ b/apps/catalogue/models.py @@ -1,4 +1,7 @@ # -*- coding: utf-8 -*- +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# from django.db import models from django.db.models import permalink, Q from django.utils.translation import ugettext_lazy as _ diff --git a/apps/catalogue/templatetags/catalogue_tags.py b/apps/catalogue/templatetags/catalogue_tags.py index d3f608ac9..41be051f2 100644 --- a/apps/catalogue/templatetags/catalogue_tags.py +++ b/apps/catalogue/templatetags/catalogue_tags.py @@ -1,4 +1,7 @@ # -*- coding: utf-8 -*- +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# import feedparser import datetime diff --git a/apps/catalogue/urls.py b/apps/catalogue/urls.py index 327e0fc72..5ebeb52b6 100644 --- a/apps/catalogue/urls.py +++ b/apps/catalogue/urls.py @@ -1,4 +1,7 @@ # -*- coding: utf-8 -*- +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# from django.conf.urls.defaults import * diff --git a/apps/catalogue/utils.py b/apps/catalogue/utils.py index 72b097392..36bd9e700 100644 --- a/apps/catalogue/utils.py +++ b/apps/catalogue/utils.py @@ -1,4 +1,7 @@ # -*- coding: utf-8 -*- +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# import random import time from base64 import urlsafe_b64encode diff --git a/apps/catalogue/views.py b/apps/catalogue/views.py index 92aa3e054..d0896a2b3 100644 --- a/apps/catalogue/views.py +++ b/apps/catalogue/views.py @@ -1,4 +1,7 @@ # -*- coding: utf-8 -*- +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# import tempfile import zipfile import sys diff --git a/apps/lessons/admin.py b/apps/lessons/admin.py index 813621f91..1447453c2 100644 --- a/apps/lessons/admin.py +++ b/apps/lessons/admin.py @@ -1,3 +1,7 @@ +# -*- coding: utf-8 -*- +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# from django.contrib import admin from django.utils.translation import ugettext_lazy as _ diff --git a/apps/lessons/models.py b/apps/lessons/models.py index b0cd59337..b3c79d71c 100644 --- a/apps/lessons/models.py +++ b/apps/lessons/models.py @@ -1,4 +1,7 @@ # -*- coding: utf-8 -*- +# This file is part of Wolnelektury, 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/lessons/urls.py b/apps/lessons/urls.py index d43ac3ab1..69a47e3ea 100644 --- a/apps/lessons/urls.py +++ b/apps/lessons/urls.py @@ -1,4 +1,7 @@ # -*- coding: utf-8 -*- +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# from django.conf.urls.defaults import * from catalogue import forms from lessons import models diff --git a/apps/lessons/views.py b/apps/lessons/views.py index e22691985..69380d688 100644 --- a/apps/lessons/views.py +++ b/apps/lessons/views.py @@ -1,3 +1,7 @@ +# -*- coding: utf-8 -*- +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# from django.views.generic.list_detail import object_detail from catalogue import forms from lessons import models diff --git a/apps/newtagging/managers.py b/apps/newtagging/managers.py index 1dbcb2999..7870092e0 100644 --- a/apps/newtagging/managers.py +++ b/apps/newtagging/managers.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- """ Custom managers for Django models registered with the tagging application. diff --git a/apps/newtagging/models.py b/apps/newtagging/models.py index e1e92b67e..37d1639d3 100644 --- a/apps/newtagging/models.py +++ b/apps/newtagging/models.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- """ Models and managers for generic tagging. """ diff --git a/apps/newtagging/views.py b/apps/newtagging/views.py index 150a08477..b88e9c42d 100644 --- a/apps/newtagging/views.py +++ b/apps/newtagging/views.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- """ Tagging related views. """ diff --git a/apps/sponsors/__init__.py b/apps/sponsors/__init__.py index f39d8b488..f6a851dc5 100644 --- a/apps/sponsors/__init__.py +++ b/apps/sponsors/__init__.py @@ -1,3 +1,6 @@ -# -*- encoding: utf-8 -*- +# -*- coding: utf-8 -*- +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# __author__ = u'Marek Stępniowski, ' __version__ = '0.1' diff --git a/apps/sponsors/admin.py b/apps/sponsors/admin.py index 55af9d764..f8e280104 100644 --- a/apps/sponsors/admin.py +++ b/apps/sponsors/admin.py @@ -1,3 +1,7 @@ +# -*- coding: utf-8 -*- +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# from django.contrib import admin from django.conf import settings diff --git a/apps/sponsors/fields.py b/apps/sponsors/fields.py index 678788e75..26effc541 100644 --- a/apps/sponsors/fields.py +++ b/apps/sponsors/fields.py @@ -1,4 +1,7 @@ -# -*- encoding: utf-8 -*- +# -*- coding: utf-8 -*- +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# import datetime from django.conf import settings diff --git a/apps/sponsors/models.py b/apps/sponsors/models.py index 03b0d656f..60e4c49c2 100644 --- a/apps/sponsors/models.py +++ b/apps/sponsors/models.py @@ -1,3 +1,7 @@ +# -*- coding: utf-8 -*- +# This file is part of Wolnelektury, 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 _ from django.template.loader import render_to_string diff --git a/apps/sponsors/processors.py b/apps/sponsors/processors.py index 8c3d74c6a..112241d96 100644 --- a/apps/sponsors/processors.py +++ b/apps/sponsors/processors.py @@ -1,3 +1,7 @@ +# -*- coding: utf-8 -*- +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# from PIL import Image, ImageFilter, ImageChops diff --git a/apps/sponsors/templatetags/sponsor_tags.py b/apps/sponsors/templatetags/sponsor_tags.py index c1d18d157..fb8e6b358 100644 --- a/apps/sponsors/templatetags/sponsor_tags.py +++ b/apps/sponsors/templatetags/sponsor_tags.py @@ -1,3 +1,7 @@ +# -*- coding: utf-8 -*- +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# from django import template from django.utils.safestring import mark_safe diff --git a/apps/sponsors/widgets.py b/apps/sponsors/widgets.py index ed06ba641..70ddde610 100644 --- a/apps/sponsors/widgets.py +++ b/apps/sponsors/widgets.py @@ -1,3 +1,7 @@ +# -*- coding: utf-8 -*- +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# from django.conf import settings from django import forms from django.utils.safestring import mark_safe diff --git a/scripts/conv_genre_families.py b/scripts/conv_genre_families.py index 611471322..247fc2c60 100644 --- a/scripts/conv_genre_families.py +++ b/scripts/conv_genre_families.py @@ -1,4 +1,8 @@ +#!/usr/bin/env python # -*- coding: utf-8 -*- +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# from lxml import etree from slughifi import slughifi from django.core.management import setup_environ diff --git a/scripts/import_links.py b/scripts/import_links.py index 671212d83..0bc190e77 100644 --- a/scripts/import_links.py +++ b/scripts/import_links.py @@ -1,3 +1,8 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# import sys sys.path.insert(0, '../apps') sys.path.insert(0, '../lib') diff --git a/scripts/irename.py b/scripts/irename.py index 3ac419224..9cc721b43 100755 --- a/scripts/irename.py +++ b/scripts/irename.py @@ -1,5 +1,8 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# from django.core.management import setup_environ from wolnelektury import settings import sys diff --git a/scripts/remove_duplicates.py b/scripts/remove_duplicates.py index e72512ba4..bea5cda27 100755 --- a/scripts/remove_duplicates.py +++ b/scripts/remove_duplicates.py @@ -1,4 +1,8 @@ #!/usr/bin/env python +# -*- coding: utf-8 -*- +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# import sys from django.core.management import setup_environ diff --git a/scripts/setmainpage.py b/scripts/setmainpage.py index 245ed1d75..e83a07f27 100755 --- a/scripts/setmainpage.py +++ b/scripts/setmainpage.py @@ -1,5 +1,8 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# from django.core.management import setup_environ from wolnelektury import settings import sys diff --git a/scripts/test_api.py b/scripts/test_api.py index 41d3f3d98..c53cfd3d1 100644 --- a/scripts/test_api.py +++ b/scripts/test_api.py @@ -1,3 +1,8 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# import httplib2 from poster.encode import multipart_encode from poster.streaminghttp import register_openers