cms.contrib.licenses package

Submodules

cms.contrib.licenses.admin module

class cms.contrib.licenses.admin.LicensesLicenseAdmin(model, admin_site)

Bases: cms.core.admin.ContentAdmin

Admin class for LicensesLicense.

autocomplete_lookup_fields = {'m2m': ['sites'], 'fk': ['author', 'organization']}
fieldsets_append = {<django.utils.functional.__proxy__ object at 0x599bcd0>: ('organization', 'abbreviation', 'url')}
fieldsets_exclude = {<django.utils.functional.__proxy__ object at 0x599b990>: ('keywords',), <django.utils.functional.__proxy__ object at 0x599b890>: ('status', 'mark', 'published_date', 'expired_date'), <django.utils.functional.__proxy__ object at 0x599bc50>: ('license', 'schema')}
get_organization(obj)
list_display = ('get_published_date', 'get_title', 'get_organization')
list_exclude = ('comments_count',)
list_filter = ('published_date', 'status', 'login_required', 'keywords__keyword', 'organization')
media
prepopulated_fields = {'slug': ('abbreviation',)}
raw_id_fields = ('author', 'sites', 'organization')
search_fields = ('title', 'description', 'keywords__keyword__title', 'content', 'organization__title')
class cms.contrib.licenses.admin.LicensesOrganizationAdmin(model, admin_site)

Bases: cms.core.admin.DisplayableAdmin

Admin class for LicensesOrganization.

fields_with_sibling = ('image',)
fieldsets = ((<django.utils.functional.__proxy__ object at 0x599b6d0>, {'fields': ['title', 'abbreviation', 'url']}), (<django.utils.functional.__proxy__ object at 0x599b750>, {'fields': ['image', 'imagedescription', 'description']}), (<django.utils.functional.__proxy__ object at 0x599b7d0>, {'fields': ['slug', 'author', 'sites']}))
get_title(obj)
media
search_fields = ('title', 'description')

cms.contrib.licenses.cms_initialize module

class cms.contrib.licenses.cms_initialize.CMSInitialize

Bases: cms.core.models.CMSInitializeBase

models = (<class 'cms.contrib.licenses.models.LicensesLicense'>, <class 'cms.contrib.licenses.models.LicensesOrganization'>)

cms.contrib.licenses.cms_plugin module

class cms.contrib.licenses.cms_plugin.CMSPlugin

Bases: cms.core.plugins.CMSPluginBase

admin_icon_class = 'icon-copyright'
description = <django.utils.functional.__proxy__ object at 0x31fff10>
description_long = <django.utils.functional.__proxy__ object at 0x31fff50>
status = 'stable'
verbose_name = <django.utils.functional.__proxy__ object at 0x31fff90>
version = '0.3'

cms.contrib.licenses.management module

cms.contrib.licenses.management.create_group(sender, **kwargs)

cms.contrib.licenses.models module

class cms.contrib.licenses.models.LicensesLicense(*args, **kwargs)

Bases: cms.core.models.Content, cms.core.models.Ownable

A license.

class ApiPrivate
fields = ('abbreviation', 'organization', 'url')
exception LicensesLicense.DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception LicensesLicense.MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

class LicensesLicense.Settings
MEDIA_PATH = {'default': 'licenses'}
SITEMAP_CHANGEFREQ = 'monthly'
SITEMAP_PRIORITY = 0.2
class LicensesLicense.Translation
fields = ('url', 'abbreviation')
LicensesLicense.abbreviation

A descriptor used for the original translated field.

LicensesLicense.articles_articlescategory_license
LicensesLicense.articles_articlesitem_license
LicensesLicense.author
static LicensesLicense.autocomplete_search_fields()
LicensesLicense.clean_fields(exclude=None)
LicensesLicense.cms_eventsartist_license
LicensesLicense.cms_eventscategory_license
LicensesLicense.cms_eventsitem_license
LicensesLicense.cms_eventslocation_license
LicensesLicense.cms_eventsmedia_license
LicensesLicense.cms_eventssalespoint_license
LicensesLicense.cms_newslettercategory_license
LicensesLicense.cms_newsletteritem_license
LicensesLicense.cms_quizzesitem_license
LicensesLicense.cms_quizzesquestion_license
LicensesLicense.contact_contactcategory_license
LicensesLicense.contact_contactitem_license
LicensesLicense.content

A descriptor used for the original translated field.

LicensesLicense.created_by
LicensesLicense.description

A descriptor used for the original translated field.

LicensesLicense.employees_employeesitem_license
LicensesLicense.faq_faqcategory_license
LicensesLicense.faq_faqitem_license
LicensesLicense.get_absolute_url()
LicensesLicense.get_keywordsfield_name()
LicensesLicense.get_mark_display(*moreargs, **morekwargs)
LicensesLicense.get_next_by_created_date(*moreargs, **morekwargs)
LicensesLicense.get_next_by_modified_date(*moreargs, **morekwargs)
LicensesLicense.get_next_by_published_date(*moreargs, **morekwargs)
LicensesLicense.get_previous_by_created_date(*moreargs, **morekwargs)
LicensesLicense.get_previous_by_modified_date(*moreargs, **morekwargs)
LicensesLicense.get_previous_by_published_date(*moreargs, **morekwargs)
LicensesLicense.get_schema_display(*moreargs, **morekwargs)
LicensesLicense.get_status_display(*moreargs, **morekwargs)
LicensesLicense.image

A descriptor used for the original translated field.

LicensesLicense.image_de

A placeholder class that provides a way to set the attribute on the model.

LicensesLicense.image_en

A placeholder class that provides a way to set the attribute on the model.

LicensesLicense.image_upload_to(instance)
LicensesLicense.imagedescription

A descriptor used for the original translated field.

LicensesLicense.imageteaser

A descriptor used for the original translated field.

LicensesLicense.imageteaser_de

A placeholder class that provides a way to set the attribute on the model.

LicensesLicense.imageteaser_en

A placeholder class that provides a way to set the attribute on the model.

LicensesLicense.imageteaserdescription

A descriptor used for the original translated field.

LicensesLicense.keywords

This class provides the functionality that makes the related-object managers available as attributes on a model class, for fields that have multiple “remote” values and have a GenericRelation defined in their model (rather than having another model pointed at them). In the example “article.publications”, the publications attribute is a ReverseGenericRelatedObjectsDescriptor instance.

LicensesLicense.keywords_string

A descriptor used for the original translated field.

LicensesLicense.license
LicensesLicense.licenses_licenseslicense_license
LicensesLicense.modified_by
LicensesLicense.objects = <cms.core.translations.translator.NewMultilingualManager object at 0x41165d0>
LicensesLicense.organization
LicensesLicense.pages_pagestext_license
LicensesLicense.pendulum_pendulumproject_license
LicensesLicense.pendulum_pendulumtask_license
LicensesLicense.references_referencesclient_license
LicensesLicense.references_referenceswork_license
LicensesLicense.related_label()
LicensesLicense.services_servicescategory_license
LicensesLicense.services_servicesitem_license
LicensesLicense.services_servicestechnology_license
LicensesLicense.sites
LicensesLicense.slug

A descriptor used for the original translated field.

LicensesLicense.teaser

A descriptor used for the original translated field.

LicensesLicense.title

A descriptor used for the original translated field.

LicensesLicense.url

A descriptor used for the original translated field.

class cms.contrib.licenses.models.LicensesOrganization(*args, **kwargs)

Bases: cms.core.models.Displayable, cms.core.models.Ownable

Organization/Authors of licenses.

class ApiPrivate
fields = ('abbreviation', 'image', 'imagedescription', 'url')
exception LicensesOrganization.DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception LicensesOrganization.MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

class LicensesOrganization.Settings
MEDIA_PATH = {'default': 'organizations'}
SITEMAP_CHANGEFREQ = 'monthly'
SITEMAP_PRIORITY = 0.2
class LicensesOrganization.Translation
fields = ('url', 'abbreviation', 'image', 'imagedescription')
LicensesOrganization.abbreviation

A descriptor used for the original translated field.

LicensesOrganization.author
static LicensesOrganization.autocomplete_search_fields()
LicensesOrganization.clean_fields(exclude=None)
LicensesOrganization.created_by
LicensesOrganization.description

A descriptor used for the original translated field.

LicensesOrganization.get_keywordsfield_name()
LicensesOrganization.get_mark_display(*moreargs, **morekwargs)
LicensesOrganization.get_next_by_created_date(*moreargs, **morekwargs)
LicensesOrganization.get_next_by_modified_date(*moreargs, **morekwargs)
LicensesOrganization.get_next_by_published_date(*moreargs, **morekwargs)
LicensesOrganization.get_previous_by_created_date(*moreargs, **morekwargs)
LicensesOrganization.get_previous_by_modified_date(*moreargs, **morekwargs)
LicensesOrganization.get_previous_by_published_date(*moreargs, **morekwargs)
LicensesOrganization.get_status_display(*moreargs, **morekwargs)
LicensesOrganization.image

A descriptor used for the original translated field.

LicensesOrganization.image_de

A placeholder class that provides a way to set the attribute on the model.

LicensesOrganization.image_en

A placeholder class that provides a way to set the attribute on the model.

LicensesOrganization.imagedescription

A descriptor used for the original translated field.

LicensesOrganization.keywords

This class provides the functionality that makes the related-object managers available as attributes on a model class, for fields that have multiple “remote” values and have a GenericRelation defined in their model (rather than having another model pointed at them). In the example “article.publications”, the publications attribute is a ReverseGenericRelatedObjectsDescriptor instance.

LicensesOrganization.keywords_string

A descriptor used for the original translated field.

LicensesOrganization.licenses
LicensesOrganization.modified_by
LicensesOrganization.objects = <cms.core.translations.translator.NewMultilingualManager object at 0x410d7d0>
LicensesOrganization.related_label()
LicensesOrganization.sites
LicensesOrganization.slug

A descriptor used for the original translated field.

LicensesOrganization.title

A descriptor used for the original translated field.

LicensesOrganization.url

A descriptor used for the original translated field.

cms.contrib.licenses.urls module

cms.contrib.licenses.views module

class cms.contrib.licenses.views.LicensesBaseView(**kwargs)

Bases: cms.core.views.GenericTemplateView

get_data(request)
class cms.contrib.licenses.views.LicensesLicenseDetailView(**kwargs)

Bases: cms.contrib.licenses.views.LicensesBaseView, cms.core.views.GenericTemplateTooltipView

get(request, slug)
post(request, slug)
template_name = 'licenses/item_detail.html'
class cms.contrib.licenses.views.LicensesOrganizationDetailView(**kwargs)

Bases: cms.contrib.licenses.views.LicensesBaseView

get(request, slug)

Module contents