Jannis Leidel avatar Jannis Leidel committed ee68f3e

Minor cosmetic fixes.

Comments (0)

Files changed (5)

 
 Contributors:
 Alban Tiberghien
+Thomas Schreiber
-Copyright (c) 2008-2011, Bela Hausmann and individual contributors
+Copyright (c) 2008-2012, Bela Hausmann and individual contributors
 All rights reserved.
  
 Redistribution and use in source and binary forms, with or without

licenses/models.py

     '''
         Organization/Authors of licenses.
     '''
-    name = CharField(_('name'), max_length = 100, unique = True,
-        help_text = _('The complete name of a organization which is resposible for a license.'))
-    slug = SlugField(_('slug'), unique = True)
-    abbreviation = CharField(_('abbreviation'), max_length = 50, blank = True,
-        help_text = _('The short name of the organization.'))
+    name = CharField(_('name'), max_length=100, unique=True,
+        help_text=_('The complete name of a organization which is resposible for a license.'))
+    slug = SlugField(_('slug'), unique=True)
+    abbreviation = CharField(_('abbreviation'), max_length=50, blank=True,
+        help_text=_('The short name of the organization.'))
     website = URLField(_('website'),
-        help_text = _('The website of the organization.'))
-    description = TextField(_('description'), blank = True,
-        help_text = _('Additional information about the organization, that is not covered by the above fields.'))
+        help_text=_('The website of the organization.'))
+    description = TextField(_('description'), blank=True,
+        help_text=_('Additional information about the organization, that is not covered by the above fields.'))
 
     class Meta:
         db_table = 'licenses_organization'
     '''
         A license.
     '''
-    name = CharField(_('name'), max_length = 200, unique = True,
-        help_text = _('The full name of the license.'))
-    slug = SlugField(_('slug'), unique = True)
-    organization = ForeignKey(Organization, verbose_name = _('organization'), related_name = 'licenses', blank = True, null = True)
-    abbreviation = CharField(_('abbreviation'), max_length = 50, blank = True,
-        help_text = _('The short name of the license.'))
+    name = CharField(_('name'), max_length=200, unique=True,
+        help_text=_('The full name of the license.'))
+    slug = SlugField(_('slug'), unique=True)
+    organization = ForeignKey(Organization, verbose_name=_('organization'),
+        related_name='licenses', blank=True, null=True)
+    abbreviation = CharField(_('abbreviation'), max_length=50, blank=True,
+        help_text=_('The short name of the license.'))
     url = URLField(_('url'),
-        help_text = _('The URL to the legal text/online representation of the license.'))
-    logo = URLField(_('logo'), blank = True,
-        help_text = _('A logo/icon/badge that is clearly associated with the license.'))
-    description = TextField(_('description'), blank = True)
-    is_active = BooleanField(_('active'), default = True,
-        help_text = _('Disable, if license shouldn\'t be available to users any more.'))
+        help_text=_('The URL to the legal text/online representation of the license.'))
+    logo = URLField(_('logo'), blank=True,
+        help_text=_('A logo/icon/badge that is clearly associated with the license.'))
+    description = TextField(_('description'), blank=True)
+    is_active = BooleanField(_('active'), default=True,
+        help_text=_('Disable, if license shouldn\'t be available to users any more.'))
 
     def __unicode__(self):
         return self.name

licenses/templatetags/licensing.py

                 raise template.TemplateSyntaxError("Second argument in %s must be 'as'" % tokens[0])
             lookup = tokens[1]
             # trim quotation marks
-            if (lookup[0]=='"' and lookup[-1]=='"') or (lookup[0]=="'" and lookup[-1]=="'"):
+            if (lookup[0] == '"' and lookup[-1] == '"') or (lookup[0] == "'" and lookup[-1] == "'"):
                 lookup = lookup[1:-1]
             return cls(lookup=lookup, varname=tokens[3], field=field)
         else:
 from distutils.core import setup
 
 setup(
-    name = 'django-licenses',
-    version = '0.2.4',
-    description = 'A Django application that provides the ability to publish content under different licenses.',
-    author = 'Bela Hausmann',
-    author_email = 'post@belahausmann.name',
-    maintainer = 'Jannis Leidel',
-    maintainer_email = 'jannis@leidel.info',
-    url = 'http://bitbucket.org/jezdez/django-licenses/',
-    packages = [
+    name='django-licenses',
+    version='0.2.5',
+    description='A Django application that provides the ability to publish content under different licenses.',
+    author='Bela Hausmann',
+    author_email='post@belahausmann.name',
+    maintainer='Jannis Leidel',
+    maintainer_email='jannis@leidel.info',
+    url='http://bitbucket.org/jezdez/django-licenses/',
+    packages=[
         'licenses',
         'licenses.templatetags',
     ],
-    package_dir = {
+    package_dir={
         'licenses': 'licenses',
     },
-    package_data = {
+    package_data={
         'licenses': [
             'templates/licenses/*.html',
             'fixtures/*.json'
         ]
     },
-    zip_safe = False,
-    classifiers = [
+    zip_safe=False,
+    classifiers=[
         'Development Status :: 4 - Beta',
         'Environment :: Web Environment',
         'Intended Audience :: Developers',
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.