cms_local.apps.services package

Submodules

cms_local.apps.services.admin module

class cms_local.apps.services.admin.ServicesCategoryAdmin(model, admin_site)

Bases: cms.core.admin.ContentAdmin, cms.core.admin.OrderableManyToManyAdmin, cms.apps.menus.admin.MenuableAdmin

Admin class for ServiceCategory.

fieldsets_append = {<django.utils.functional.__proxy__ object at 0x591eb90>: ('items',), <django.utils.functional.__proxy__ object at 0x591eb10>: ('title', 'titlesub', 'status', ('published_date', 'expired_date'))}
fieldsets_exclude = {<django.utils.functional.__proxy__ object at 0x591ea90>: ('keywords',), <django.utils.functional.__proxy__ object at 0x591e990>: ('title', 'status', 'mark', 'published_date', 'expired_date')}
list_display = ('get_published_date', 'get_title', 'count_items')
media
class cms_local.apps.services.admin.ServicesCategoryInline(parent_model, admin_site)

Bases: django.contrib.admin.options.TabularInline

exclude = ('order',)
extra = 1
media
model

alias of ServicesCategory_items

verbose_name = <django.utils.functional.__proxy__ object at 0x591ecd0>
verbose_name_plural = <django.utils.functional.__proxy__ object at 0x591ec50>
class cms_local.apps.services.admin.ServicesItemAdmin(model, admin_site)

Bases: cms.core.admin.ContentAdmin

Admin class for ServicesItem.

fieldsets_append = {<django.utils.functional.__proxy__ object at 0x59170d0>: ('technologies',)}
fieldsets_exclude = {<django.utils.functional.__proxy__ object at 0x5917050>: ('keywords',), <django.utils.functional.__proxy__ object at 0x591eed0>: ('mark',)}
filter_horizontal = ('technologies',)
get_categories(obj)
get_technologies(obj)
inlines = [<class 'cms_local.apps.services.admin.ServicesCategoryInline'>]
list_display = ('get_published_date', 'get_title', 'get_categories', 'get_technologies')
list_filter = ('published_date', 'status', 'login_required', 'keywords__keyword', 'technologies')
media
class cms_local.apps.services.admin.ServicesTechnologyAdmin(model, admin_site)

Bases: cms.core.admin.ContentAdmin

Admin class for ServicesTechnology.

fieldsets_append = {<django.utils.functional.__proxy__ object at 0x59176d0>: ('slug', 'copyright')}
fieldsets_exclude = {<django.utils.functional.__proxy__ object at 0x5917650>: ('slug',), <django.utils.functional.__proxy__ object at 0x59175d0>: ('keywords',), <django.utils.functional.__proxy__ object at 0x59171d0>: ('mark',)}
media
prepopulated_fields = {}

cms_local.apps.services.cms_plugin module

class cms_local.apps.services.cms_plugin.CMSPlugin

Bases: cms.core.plugins.CMSPluginBase

admin_icon_class = 'icon-mootoolsthree'
description = 'Services module.'
development_status = 'stable'
verbose_name = <django.utils.functional.__proxy__ object at 0x33d8610>
version = '0.2'

cms_local.apps.services.cms_sitemaps module

class cms_local.apps.services.cms_sitemaps.ServicesItemSitemap

Bases: cms.contrib.sitemaps.sitemap.SitemapBase

app_label = 'services'
get_queryset(model)
model_name = 'ServicesItem'

cms_local.apps.services.management module

cms_local.apps.services.management.create_group(sender, **kwargs)

cms_local.apps.services.models module

class cms_local.apps.services.models.ServicesCategory(*args, **kwargs)

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

A category for grouping services into a series.

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

class ServicesCategory.Menus
exception ServicesCategory.MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

ServicesCategory.SCHEMA_CHOICES = [('Product', <django.utils.functional.__proxy__ object at 0x3bcb850>), ('IndividualProduct', <django.utils.functional.__proxy__ object at 0x3bcb890>), ('ProductModel', <django.utils.functional.__proxy__ object at 0x3bcb8d0>), ('SomeProducts', <django.utils.functional.__proxy__ object at 0x3bcb910>), ('Vehicle', <django.utils.functional.__proxy__ object at 0x3bcb950>)]
class ServicesCategory.Settings
ITEMS_PER_PAGE = {'default': 6}
MEDIA_PATH = {'default': 'categories'}
SCHEMA = {'default': 'Service'}
SITEMAP_CHANGEFREQ = 'daily'
SITEMAP_PRIORITY = 1
class ServicesCategory.Translation
fields = ('titlesub',)
ServicesCategory.author
static ServicesCategory.autocomplete_search_fields()
ServicesCategory.clean_fields(exclude=None)
ServicesCategory.content

A descriptor used for the original translated field.

ServicesCategory.created_by
ServicesCategory.description

A descriptor used for the original translated field.

ServicesCategory.get_absolute_url(*args, **kwargs)
ServicesCategory.get_items
ServicesCategory.get_keywordsfield_name()
ServicesCategory.get_mark_display(*moreargs, **morekwargs)
ServicesCategory.get_next_by_created_date(*moreargs, **morekwargs)
ServicesCategory.get_next_by_modified_date(*moreargs, **morekwargs)
ServicesCategory.get_next_by_published_date(*moreargs, **morekwargs)
ServicesCategory.get_previous_by_created_date(*moreargs, **morekwargs)
ServicesCategory.get_previous_by_modified_date(*moreargs, **morekwargs)
ServicesCategory.get_previous_by_published_date(*moreargs, **morekwargs)
ServicesCategory.get_schema_display(*moreargs, **morekwargs)
ServicesCategory.get_status_display(*moreargs, **morekwargs)
ServicesCategory.image

A descriptor used for the original translated field.

ServicesCategory.image_de

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

ServicesCategory.image_en

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

ServicesCategory.imagedescription

A descriptor used for the original translated field.

ServicesCategory.imageteaser

A descriptor used for the original translated field.

ServicesCategory.imageteaser_de

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

ServicesCategory.imageteaser_en

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

ServicesCategory.imageteaserdescription

A descriptor used for the original translated field.

ServicesCategory.items
ServicesCategory.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.

ServicesCategory.keywords_string

A descriptor used for the original translated field.

ServicesCategory.license
ServicesCategory.modified_by
ServicesCategory.objects = <cms.core.translations.translator.NewMultilingualManager object at 0x46dae10>
ServicesCategory.related_label()
ServicesCategory.sites
ServicesCategory.slug

A descriptor used for the original translated field.

ServicesCategory.teaser

A descriptor used for the original translated field.

ServicesCategory.title

A descriptor used for the original translated field.

ServicesCategory.titlesub

A descriptor used for the original translated field.

class cms_local.apps.services.models.ServicesItem(id, keywords_string, created_date, modified_date, created_by_id, modified_by_id, description, description_auto, login_required, title, slug, status, published_date, expired_date, sitemapped, mark, content, teaser, teaser_auto, image, imagedescription, imageteaser, imageteaserdescription, license_id, schema, author_id)

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

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

class ServicesItem.Menus
exception ServicesItem.MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

ServicesItem.SCHEMA_CHOICES = [('Product', <django.utils.functional.__proxy__ object at 0x3bcb850>), ('IndividualProduct', <django.utils.functional.__proxy__ object at 0x3bcb890>), ('ProductModel', <django.utils.functional.__proxy__ object at 0x3bcb8d0>), ('SomeProducts', <django.utils.functional.__proxy__ object at 0x3bcb910>), ('Vehicle', <django.utils.functional.__proxy__ object at 0x3bcb950>)]
class ServicesItem.Settings
MEDIA_PATH = {'default': 'services'}
SCHEMA = {'default': 'Service'}
SITEMAP_CHANGEFREQ = 'weekly'
SITEMAP_PRIORITY = 0.8
ServicesItem.author
ServicesItem.categories
ServicesItem.clean_fields(exclude=None)
ServicesItem.content

A descriptor used for the original translated field.

ServicesItem.created_by
ServicesItem.description

A descriptor used for the original translated field.

ServicesItem.get_absolute_url(*args, **kwargs)
ServicesItem.get_keywordsfield_name()
ServicesItem.get_mark_display(*moreargs, **morekwargs)
ServicesItem.get_next_by_created_date(*moreargs, **morekwargs)
ServicesItem.get_next_by_modified_date(*moreargs, **morekwargs)
ServicesItem.get_next_by_published_date(*moreargs, **morekwargs)
ServicesItem.get_parent()
ServicesItem.get_previous_by_created_date(*moreargs, **morekwargs)
ServicesItem.get_previous_by_modified_date(*moreargs, **morekwargs)
ServicesItem.get_previous_by_published_date(*moreargs, **morekwargs)
ServicesItem.get_schema_display(*moreargs, **morekwargs)
ServicesItem.get_status_display(*moreargs, **morekwargs)
ServicesItem.image

A descriptor used for the original translated field.

ServicesItem.image_de

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

ServicesItem.image_en

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

ServicesItem.imagedescription

A descriptor used for the original translated field.

ServicesItem.imageteaser

A descriptor used for the original translated field.

ServicesItem.imageteaser_de

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

ServicesItem.imageteaser_en

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

ServicesItem.imageteaserdescription

A descriptor used for the original translated field.

ServicesItem.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.

ServicesItem.keywords_string

A descriptor used for the original translated field.

ServicesItem.license
ServicesItem.modified_by
ServicesItem.objects = <cms.core.translations.translator.NewMultilingualManager object at 0x46cfc10>
ServicesItem.parent
ServicesItem.related_label()
ServicesItem.servicescategory_set
ServicesItem.sites
ServicesItem.slug

A descriptor used for the original translated field.

ServicesItem.teaser

A descriptor used for the original translated field.

ServicesItem.technologies
ServicesItem.title

A descriptor used for the original translated field.

class cms_local.apps.services.models.ServicesTechnology(id, keywords_string, created_date, modified_date, created_by_id, modified_by_id, description, description_auto, login_required, title, slug, status, published_date, expired_date, sitemapped, mark, content, teaser, teaser_auto, image, imagedescription, imageteaser, imageteaserdescription, license_id, schema, author_id, copyright)

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

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception ServicesTechnology.MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

class ServicesTechnology.Settings
MEDIA_PATH = {'default': 'technologies'}
ServicesTechnology.author
ServicesTechnology.clean_fields(exclude=None)
ServicesTechnology.content

A descriptor used for the original translated field.

ServicesTechnology.created_by
ServicesTechnology.description

A descriptor used for the original translated field.

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

A descriptor used for the original translated field.

ServicesTechnology.image_de

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

ServicesTechnology.image_en

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

ServicesTechnology.imagedescription

A descriptor used for the original translated field.

ServicesTechnology.imageteaser

A descriptor used for the original translated field.

ServicesTechnology.imageteaser_de

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

ServicesTechnology.imageteaser_en

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

ServicesTechnology.imageteaserdescription

A descriptor used for the original translated field.

ServicesTechnology.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.

ServicesTechnology.keywords_string

A descriptor used for the original translated field.

ServicesTechnology.license
ServicesTechnology.modified_by
ServicesTechnology.objects = <cms.core.translations.translator.NewMultilingualManager object at 0x46c6bd0>
ServicesTechnology.servicesitem_set
ServicesTechnology.sites
ServicesTechnology.slug

A descriptor used for the original translated field.

ServicesTechnology.teaser

A descriptor used for the original translated field.

ServicesTechnology.title

A descriptor used for the original translated field.

cms_local.apps.services.search_indexes module

class cms_local.apps.services.search_indexes.ServicesCategoryIndex

Bases: cms.apps.search.models.SearchBase, cms.apps.search.models.SearchContent, haystack.constants.Indexable

fields = {'imageteaser': <haystack.fields.CharField object at 0x4521790>, 'modified_date': <haystack.fields.DateTimeField object at 0x45214d0>, 'published_date': <haystack.fields.DateTimeField object at 0x4521510>, 'description': <haystack.fields.CharField object at 0x45216d0>, 'author': <haystack.fields.CharField object at 0x45212d0>, 'url': <haystack.fields.CharField object at 0x4521590>, 'text': <haystack.fields.CharField object at 0x4521610>, 'image': <cms.apps.search.fields.FileField object at 0x4521710>, 'imagedescription': <haystack.fields.CharField object at 0x4521750>, 'keywords_string': <haystack.fields.CharField object at 0x4521810>, 'content': <haystack.fields.CharField object at 0x4521650>, 'imageteaserdescription': <haystack.fields.CharField object at 0x45217d0>, 'teaser': <haystack.fields.CharField object at 0x4521850>, 'titlesub': <haystack.fields.CharField object at 0x7c043d0>, 'content_auto': <haystack.fields.EdgeNgramField object at 0x4521690>, 'created_date': <haystack.fields.DateTimeField object at 0x4521490>, 'title': <haystack.fields.CharField object at 0x4521550>, 'schema': <haystack.fields.CharField object at 0x4521890>}
get_model()
index_queryset(using=None)
objects = <haystack.manager.SearchIndexManager object at 0x7d5ad10>
titlesub = <haystack.fields.CharField object at 0x7c043d0>
class cms_local.apps.services.search_indexes.ServicesItemIndex

Bases: cms.apps.search.models.SearchBase, cms.apps.search.models.SearchContent, haystack.constants.Indexable

fields = {'imageteaser': <haystack.fields.CharField object at 0x4521790>, 'modified_date': <haystack.fields.DateTimeField object at 0x45214d0>, 'published_date': <haystack.fields.DateTimeField object at 0x4521510>, 'description': <haystack.fields.CharField object at 0x45216d0>, 'author': <haystack.fields.CharField object at 0x45212d0>, 'url': <haystack.fields.CharField object at 0x4521590>, 'text': <haystack.fields.CharField object at 0x4521610>, 'image': <cms.apps.search.fields.FileField object at 0x4521710>, 'imagedescription': <haystack.fields.CharField object at 0x4521750>, 'keywords_string': <haystack.fields.CharField object at 0x4521810>, 'content': <haystack.fields.CharField object at 0x4521650>, 'imageteaserdescription': <haystack.fields.CharField object at 0x45217d0>, 'teaser': <haystack.fields.CharField object at 0x4521850>, 'content_auto': <haystack.fields.EdgeNgramField object at 0x4521690>, 'created_date': <haystack.fields.DateTimeField object at 0x4521490>, 'title': <haystack.fields.CharField object at 0x4521550>, 'technologies': <haystack.fields.MultiValueField object at 0x7d5a950>, 'schema': <haystack.fields.CharField object at 0x4521890>}
get_model()
index_queryset(using=None)
objects = <haystack.manager.SearchIndexManager object at 0x7d5aad0>
prepare_industries(obj)
technologies = <haystack.fields.MultiValueField object at 0x7d5a950>

cms_local.apps.services.urls module

cms_local.apps.services.views module

class cms_local.apps.services.views.ServicesBaseView(**kwargs)

Bases: cms.core.views.GenericTemplateView

get_category(category)
get_data(request, category)
class cms_local.apps.services.views.ServicesItemDetailView(**kwargs)

Bases: cms_local.apps.services.views.ServicesBaseView, cms.core.views.GenericTemplateTooltipView

get(request, category, slug)
post(request, category, slug)
schema_main = 'Service'
template_name = 'services/item_detail.html'
class cms_local.apps.services.views.ServicesItemListView(**kwargs)

Bases: cms_local.apps.services.views.ServicesBaseView

get(request, category)
schema_main = 'ItemList'
template_name = 'services/item_list.html'

Module contents