diff --git a/microcms/admin.py b/microcms/admin.py index cbcdb88..73a4f8f 100644 --- a/microcms/admin.py +++ b/microcms/admin.py @@ -1,4 +1,11 @@ # -*- coding: utf-8 -*- +"""microcms.admin module, admin site configuration and options. + +THIS SOFTWARE IS UNDER BSD LICENSE. +Copyright (c) 2010 Daniele Tricoli + +Read LICENSE for more informations. +""" from django import forms from django.conf import settings from django.contrib import admin diff --git a/microcms/models.py b/microcms/models.py index cf7bd46..3688d87 100644 --- a/microcms/models.py +++ b/microcms/models.py @@ -1,8 +1,14 @@ # -*- coding: utf-8 -*- +"""microcms.models module, Page the core model of microcms. + +THIS SOFTWARE IS UNDER BSD LICENSE. +Copyright (c) 2010 Daniele Tricoli + +Read LICENSE for more informations. +""" import datetime from django.db import models -from django.conf import settings from django.contrib.auth.models import User from django.contrib.flatpages.models import FlatPage from django.utils.translation import ugettext_lazy as _ diff --git a/microcms/settings.py b/microcms/settings.py index f0dcdb2..23304c6 100644 --- a/microcms/settings.py +++ b/microcms/settings.py @@ -1,4 +1,11 @@ # -*- coding: utf-8 -*- +"""microcms.settings module, custom settings for microcms. + +THIS SOFTWARE IS UNDER BSD LICENSE. +Copyright (c) 2010 Daniele Tricoli + +Read LICENSE for more informations. +""" from django.conf import settings CKEDITOR_URL = getattr(settings, 'CKEDITOR_URL', 'ckeditor/ckeditor.js') diff --git a/microcms/templatetags/microcms_tags.py b/microcms/templatetags/microcms_tags.py index a7952ed..58907cd 100644 --- a/microcms/templatetags/microcms_tags.py +++ b/microcms/templatetags/microcms_tags.py @@ -1,4 +1,12 @@ # -*- coding: utf-8 -*- +"""microcms.templatetags.microcms_tags module, some useful template tags for +microcms. + +THIS SOFTWARE IS UNDER BSD LICENSE. +Copyright (c) 2010 Daniele Tricoli + +Read LICENSE for more informations. +""" from django import template from django.template.defaultfilters import stringfilter @@ -7,7 +15,10 @@ register = template.Library() @register.filter @stringfilter def active_page(url, regex): - """Check the current url with regex and return 'active' if matched.""" + """Check the current url with regex and return 'active' if matched. + + Avoid using this filter: better is to make use of CSS inheritance. + """ import re if re.search(regex, url): return 'active'