Added LICENSE note to source files
This commit is contained in:
parent
c5d1817334
commit
2688a169e1
|
@ -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 <eriol@mornie.org>
|
||||
|
||||
Read LICENSE for more informations.
|
||||
"""
|
||||
from django import forms
|
||||
from django.conf import settings
|
||||
from django.contrib import admin
|
||||
|
|
|
@ -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 <eriol@mornie.org>
|
||||
|
||||
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 _
|
||||
|
|
|
@ -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 <eriol@mornie.org>
|
||||
|
||||
Read LICENSE for more informations.
|
||||
"""
|
||||
from django.conf import settings
|
||||
|
||||
CKEDITOR_URL = getattr(settings, 'CKEDITOR_URL', 'ckeditor/ckeditor.js')
|
||||
|
|
|
@ -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 <eriol@mornie.org>
|
||||
|
||||
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'
|
||||
|
|
Loading…
Reference in New Issue