cms.apps.articles package

Submodules

cms.apps.articles.admin module

class cms.apps.articles.admin.ArticlesCategoryAdmin(model, admin_site)

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

Admin class for ArticlesCategory.

fieldsets_append = {<django.utils.functional.__proxy__ object at 0x58afc50>: ('sidebar',)}
fieldsets_exclude = {<django.utils.functional.__proxy__ object at 0x592fad0>: ('keywords',)}
list_display_meta = ('status', 'login_required', 'sidebar')
media
class cms.apps.articles.admin.ArticlesItemAdmin(model, admin_site)

Bases: cms.core.admin.ContentAdmin, cms.contrib.comments.admin.CommentableAdmin, cms.contrib.ratings.admin.RateableAdmin

Admin class for ArticlesItem.

autocomplete_lookup_fields = {'generic': [], 'm2m': ['sites', 'categories'], 'fk': ['author']}
fieldset_content = ((<django.utils.functional.__proxy__ object at 0x58aff90>, {'fields': ['title', 'pretitle', ('status', 'mark'), ('published_date', 'expired_date'), 'categories']}),)
fieldsets = ((<django.utils.functional.__proxy__ object at 0x58aff90>, {'fields': ['title', 'pretitle', ('status', 'mark'), ('published_date', 'expired_date'), 'categories']}), (<django.utils.functional.__proxy__ object at 0x5582610>, {'fields': ['image', 'imagedescription', 'content', 'imageteaser', 'imageteaserdescription', 'teaser', 'teaser_auto']}), (<django.utils.functional.__proxy__ object at 0x5582350>, {'fields': ['keywords']}), (<django.utils.functional.__proxy__ object at 0x5582750>, {'fields': [('login_required', 'sitemapped'), ('license', 'schema')]}), (<django.utils.functional.__proxy__ object at 0x5582490>, {'fields': ['slug', 'description', 'description_auto', 'author', 'sites']}))
fieldsets_append = {<django.utils.functional.__proxy__ object at 0x58bf990>: ('followup', 'related')}
filter_horizontal = ('followup', 'related')
formfield_for_manytomany(db_field, request=None, **kwargs)
get_categories(obj)
inlines = [<class 'cms.contrib.galleries.admin.GalleriesGalleryInline'>, <class 'cms.contrib.attachments.admin.AttachmentFileInline'>]
list_display = ('get_published_date', 'get_title', 'get_categories')
list_filter = ('published_date', 'status', 'login_required', 'keywords__keyword', 'categories')
media
raw_id_fields = ('author', 'sites', 'categories')
class cms.apps.articles.admin.ArticlesItemAdminModelstatsDashboardModule(request)

Bases: cms.contrib.modelstats.modules.ModelstatsDashboardModule

date_field = 'published_date'
get_actions(request)
get_objects(request)
get_objects_for_stats(request)
model

alias of ArticlesItem

only = ('comments_count', 'description', 'image', 'pk', 'published_date', 'ratings_count', 'status', 'title', 'author__first_name', 'author__last_name', 'author__name_middle', 'author__name_prefix', 'author__name_suffix', 'author__username')
perms = ('change_articlesitem_all', 'change_articlesitem')
template_recent = 'grappelli/dashboard/modules/modelstats_content_class.html'
title_stats = <django.utils.functional.__proxy__ object at 0x58bfd10>
class cms.apps.articles.admin.ArticlesItemAdminModelstatsUserModule

Bases: cms.contrib.modelstats.modules.ModelstatsUserModule

get_objects(request)
model

alias of ArticlesItem

cms.apps.articles.autofixtures module

class cms.apps.articles.autofixtures.ArticlesCategoryFixture(*args, **kwargs)

Bases: cms.core.dev.autofixtures.base.CMSAutoFixture

COUNT_DEFAULT = 5
field_values = {'imageteaser': <autofixture.generators.NoneGenerator object at 0x8331350>, 'title': <autofixture.generators.LoremGenerator object at 0x8331ed0>, 'image': <cms.core.dev.autofixtures.generators.ImageGenerator object at 0x8331290>, 'order': <autofixture.generators.PositiveSmallIntegerGenerator object at 0x8331d90>, 'imageteaserdescription': <autofixture.generators.NoneGenerator object at 0x8331cd0>, 'expired_date': <autofixture.generators.NoneGenerator object at 0x8560590>, 'published_date': <cms.core.dev.autofixtures.generators.DateTimeMaxNowGenerator object at 0x8331d50>, 'slug': <autofixture.generators.NoneGenerator object at 0x8331ad0>, 'pretitle': <autofixture.generators.LoremSentenceGenerator object at 0x8331d10>}
class cms.apps.articles.autofixtures.ArticlesItemFixture(*args, **kwargs)

Bases: cms.core.dev.autofixtures.base.CMSAutoFixture

COUNT_DEFAULT = 200
field_values = {'imageteaser': <autofixture.generators.NoneGenerator object at 0x8331350>, 'title': <autofixture.generators.LoremSentenceGenerator object at 0x8331c90>, 'image': <cms.core.dev.autofixtures.generators.ImageGenerator object at 0x8331290>, 'order': <autofixture.generators.PositiveSmallIntegerGenerator object at 0x8331d90>, 'imageteaserdescription': <autofixture.generators.NoneGenerator object at 0x8331cd0>, 'expired_date': <autofixture.generators.NoneGenerator object at 0x8560590>, 'published_date': <cms.core.dev.autofixtures.generators.DateTimeMaxNowGenerator object at 0x8331c50>, 'slug': <autofixture.generators.NoneGenerator object at 0x8331ad0>, 'pretitle': <autofixture.generators.LoremSentenceGenerator object at 0x8331d10>}

cms.apps.articles.cms_defaults module

cms.apps.articles.cms_initialize module

class cms.apps.articles.cms_initialize.CMSInitialize

Bases: cms.core.models.CMSInitializeBase

models = (<class 'cms.apps.articles.models.ArticlesCategory'>, <class 'cms.apps.articles.models.ArticlesItem'>)

cms.apps.articles.cms_plugin module

class cms.apps.articles.cms_plugin.CMSPlugin

Bases: cms.core.plugins.CMSPluginBase

admin_icon_class = 'icon-news'
description = <django.utils.functional.__proxy__ object at 0x3265250>
description_long = <django.utils.functional.__proxy__ object at 0x32652d0>
status = 'stable'
verbose_name = <django.utils.functional.__proxy__ object at 0x3265350>
version = '0.5'

cms.apps.articles.cms_sitemaps module

class cms.apps.articles.cms_sitemaps.ArticlesItemSitemap

Bases: cms.contrib.sitemaps.sitemap.SitemapBase

app_label = 'articles'
get_queryset(model)
model_name = 'ArticlesItem'

cms.apps.articles.management module

cms.apps.articles.management.create_group(sender, **kwargs)

cms.apps.articles.models module

class cms.apps.articles.models.ArticlesCategory(*args, **kwargs)

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

A category for grouping articles into a series.

class ApiPrivate
fields = ('articles', 'sidebar')
exception ArticlesCategory.DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

class ArticlesCategory.Menus
exception ArticlesCategory.MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

class ArticlesCategory.Settings
ITEMS_PER_PAGE = {'default': 6}
MEDIA_PATH = {'default': 'categories'}
SCHEMA = {'default': 'Blog'}
SIDEBAR_ARCHIV = {'default': True, 'type': <type 'bool'>, 'editable': True, 'description': <django.utils.functional.__proxy__ object at 0x411fa10>, 'label': <django.utils.functional.__proxy__ object at 0x411f990>}
SITEMAP_CHANGEFREQ = 'daily'
SITEMAP_PRIORITY = 1
ArticlesCategory.archive
ArticlesCategory.articles
ArticlesCategory.author
ArticlesCategory.clean_fields(exclude=None)
ArticlesCategory.content

A descriptor used for the original translated field.

ArticlesCategory.created_by
ArticlesCategory.description

A descriptor used for the original translated field.

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

A descriptor used for the original translated field.

ArticlesCategory.image_de

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

ArticlesCategory.image_en

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

ArticlesCategory.imagedescription

A descriptor used for the original translated field.

ArticlesCategory.imageteaser

A descriptor used for the original translated field.

ArticlesCategory.imageteaser_de

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

ArticlesCategory.imageteaser_en

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

ArticlesCategory.imageteaserdescription

A descriptor used for the original translated field.

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

ArticlesCategory.keywords_string

A descriptor used for the original translated field.

ArticlesCategory.license
ArticlesCategory.modified_by
ArticlesCategory.objects = <cms.core.translations.translator.NewMultilingualManager object at 0x4124f50>
ArticlesCategory.sites
ArticlesCategory.slug

A descriptor used for the original translated field.

ArticlesCategory.teaser

A descriptor used for the original translated field.

ArticlesCategory.title

A descriptor used for the original translated field.

class cms.apps.articles.models.ArticlesItem(*args, **kwargs)

Bases: cms.core.models.Content, cms.core.models.Ownable, cms.core.models.Ratable, cms.core.models.Commentable, cms.core.models.Siblings

An article.

class ApiPrivate
fields = ('categories', 'followup', 'related', 'pretitle')
exception ArticlesItem.DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

class ArticlesItem.Menus
exception ArticlesItem.MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

class ArticlesItem.Settings
MEDIA_PATH = {'default': 'articles'}
SCHEMA = {'default': 'BlogPosting'}
SITEMAP_CHANGEFREQ = 'daily'
SITEMAP_PRIORITY = 1
class ArticlesItem.Translation
fields = ('pretitle',)
ArticlesItem.author
ArticlesItem.categories
ArticlesItem.category
ArticlesItem.clean_fields(exclude=None)
ArticlesItem.comments

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.

ArticlesItem.comments_count

A descriptor used for the original translated field.

ArticlesItem.content

A descriptor used for the original translated field.

ArticlesItem.created_by
ArticlesItem.description

A descriptor used for the original translated field.

ArticlesItem.followup
ArticlesItem.followups
ArticlesItem.get_absolute_url(**kwargs)
ArticlesItem.get_commentsfield_name()
ArticlesItem.get_css_classes()
ArticlesItem.get_followup()
ArticlesItem.get_followups()
ArticlesItem.get_keywordsfield_name()
ArticlesItem.get_mark_display(*moreargs, **morekwargs)
ArticlesItem.get_next_by_created_date(*moreargs, **morekwargs)
ArticlesItem.get_next_by_modified_date(*moreargs, **morekwargs)
ArticlesItem.get_next_by_published_date(*moreargs, **morekwargs)
ArticlesItem.get_previous_by_created_date(*moreargs, **morekwargs)
ArticlesItem.get_previous_by_modified_date(*moreargs, **morekwargs)
ArticlesItem.get_previous_by_published_date(*moreargs, **morekwargs)
ArticlesItem.get_ratingfield_name()
ArticlesItem.get_schema_display(*moreargs, **morekwargs)
ArticlesItem.get_status_display(*moreargs, **morekwargs)
ArticlesItem.get_title
ArticlesItem.has_pretitle_css()
ArticlesItem.image

A descriptor used for the original translated field.

ArticlesItem.image_de

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

ArticlesItem.image_en

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

ArticlesItem.imagedescription

A descriptor used for the original translated field.

ArticlesItem.imageteaser

A descriptor used for the original translated field.

ArticlesItem.imageteaser_de

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

ArticlesItem.imageteaser_en

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

ArticlesItem.imageteaserdescription

A descriptor used for the original translated field.

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

ArticlesItem.keywords_string

A descriptor used for the original translated field.

ArticlesItem.license
ArticlesItem.modified_by
ArticlesItem.objects = <cms.core.translations.translator.NewMultilingualManager object at 0x4134dd0>
ArticlesItem.pk_long
ArticlesItem.pretitle

A descriptor used for the original translated field.

ArticlesItem.ratings

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.

ArticlesItem.related
ArticlesItem.related_label()
ArticlesItem.save(*args, **kwargs)
ArticlesItem.sites
ArticlesItem.slug

A descriptor used for the original translated field.

ArticlesItem.teaser

A descriptor used for the original translated field.

ArticlesItem.title

A descriptor used for the original translated field.

cms.apps.articles.search_indexes module

class cms.apps.articles.search_indexes.ArticlesItemIndex

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>, 'schema': <haystack.fields.CharField object at 0x4521890>}
get_model()
objects = <haystack.manager.SearchIndexManager object at 0x86e2a50>

cms.apps.articles.urls module

cms.apps.articles.views module

class cms.apps.articles.views.ArticlesBaseView(**kwargs)

Bases: cms.core.views.GenericTemplateView

get_category(category)
get_data(request, category)
include_parent_schema = True
use_deferred_manager = True
class cms.apps.articles.views.ArticlesItemDetailView(**kwargs)

Bases: cms.apps.articles.views.ArticlesBaseView, cms.core.views.GenericTemplateTooltipView

get(request, category, slug, pk)
include_parent_schema = False
post(request, category, slug, pk)
template_name = 'articles/item_detail.html'
use_deferred_manager = False
class cms.apps.articles.views.ArticlesItemListByAuthorView(**kwargs)

Bases: cms.apps.articles.views.ArticlesBaseView

get(request, category, author=None, page=None)
template_name = 'articles/item_list_by_author.html'
class cms.apps.articles.views.ArticlesItemListByKeywordView(**kwargs)

Bases: cms.apps.articles.views.ArticlesBaseView

get(request, category, keyword=None, page=None)
template_name = 'articles/item_list_by_keyword.html'
class cms.apps.articles.views.ArticlesItemListByMonthView(**kwargs)

Bases: cms.apps.articles.views.ArticlesBaseView

get(request, category, year, month, page=None)
template_name = 'articles/item_list_by_month.html'
class cms.apps.articles.views.ArticlesItemListByYearView(**kwargs)

Bases: cms.apps.articles.views.ArticlesBaseView

get(request, category, year, page=None)
template_name = 'articles/item_list_by_year.html'
class cms.apps.articles.views.ArticlesItemListView(**kwargs)

Bases: cms.apps.articles.views.ArticlesBaseView

get(request, category, page=None)
template_name = 'articles/item_list.html'

Module contents