cms.apps.pages package¶
Submodules¶
cms.apps.pages.admin module¶
-
class
cms.apps.pages.admin.
PagesBaseAdmin
(model, admin_site)¶ Bases:
django.contrib.admin.options.ModelAdmin
-
media
¶
-
-
class
cms.apps.pages.admin.
PagesTextAdmin
(model, admin_site)¶ Bases:
cms.core.admin.ContentAdmin
,cms.contrib.comments.admin.CommentableAdmin
,cms.contrib.ratings.admin.RateableAdmin
,cms.apps.menus.admin.MenuableAdmin
Admin class for PagesText.
-
autocomplete_lookup_fields
= {'generic': [], 'm2m': ['sites'], 'fk': ['author', 'parent']}¶
-
fields_with_sibling
= ('description', 'image', 'teaser', 'imageteaser', 'contenttemplatepre', 'content', 'image', 'teaser', 'imageteaser')¶
-
fieldsets_append
= {<django.utils.functional.__proxy__ object at 0x5938bd0>: ('image', 'imagedescription', 'contenttemplatepre', 'content', 'contenttemplatepost', 'imageteaser', 'imageteaserdescription', 'teaser', 'teaser_auto'), <django.utils.functional.__proxy__ object at 0x5938b50>: ('parent',), <django.utils.functional.__proxy__ object at 0x5938c50>: (('is_homepage', 'is_undeletable'),)}¶
-
fieldsets_exclude
= {<django.utils.functional.__proxy__ object at 0x59388d0>: ('image', 'imagedescription', 'content', 'imageteaser', 'imageteaserdescription', 'teaser', 'teaser_auto'), <django.utils.functional.__proxy__ object at 0x5938a50>: ('keywords',)}¶
-
has_delete_permission
(request, obj=None)¶
-
inlines
= [<class 'cms.contrib.galleries.admin.GalleriesGalleryInline'>, <class 'cms.contrib.attachments.admin.AttachmentFileInline'>]¶
-
list_filter
= ('published_date', 'status', 'login_required', 'keywords__keyword', 'is_homepage')¶
-
media
¶
-
raw_id_fields
= ('author', 'sites', 'parent')¶
-
-
class
cms.apps.pages.admin.
PagesTextModelstatsUserModule
¶ Bases:
cms.contrib.modelstats.modules.ModelstatsUserModule
-
get_objects
(request)¶
-
model
¶ alias of
PagesText
-
cms.apps.pages.autofixtures module¶
-
class
cms.apps.pages.autofixtures.
PagesTextFixture
(*args, **kwargs)¶ Bases:
cms.core.dev.autofixtures.base.CMSAutoFixture
-
COUNT_DEFAULT
= 50¶
-
field_values
= {'image': <cms.core.dev.autofixtures.generators.ImageGenerator object at 0x8331290>, 'contenttemplatepost': <autofixture.generators.NoneGenerator object at 0x7d82fd0>, 'imageteaserdescription': <autofixture.generators.NoneGenerator object at 0x8331cd0>, 'expired_date': <autofixture.generators.NoneGenerator object at 0x8560590>, 'is_homepage': False, 'slug': <autofixture.generators.NoneGenerator object at 0x8331ad0>, 'pretitle': <autofixture.generators.LoremSentenceGenerator object at 0x8331d10>, 'imageteaser': <autofixture.generators.NoneGenerator object at 0x8331350>, 'title': <autofixture.generators.LoremSentenceGenerator object at 0x8331c90>, 'contenttemplatepre': <autofixture.generators.NoneGenerator object at 0x7d822d0>, 'published_date': <cms.core.dev.autofixtures.generators.DateTimeMaxNowGenerator object at 0x8331d50>, 'is_undeletable': False, 'order': <autofixture.generators.PositiveSmallIntegerGenerator object at 0x8331d90>}¶
-
cms.apps.pages.cms_initialize module¶
-
class
cms.apps.pages.cms_initialize.
CMSInitialize
¶ Bases:
cms.core.models.CMSInitializeBase
-
models
= (<class 'cms.apps.pages.models.PagesText'>,)¶
-
cms.apps.pages.cms_plugin module¶
cms.apps.pages.models module¶
-
class
cms.apps.pages.models.
PagesBase
(id, author_id, content_model, parent_id)¶ Bases:
cms.core.models.Ownable
-
exception
PagesBase.
DoesNotExist
¶
-
class
PagesBase.
Menus
¶
-
exception
PagesBase.
MultipleObjectsReturned
¶
-
static
PagesBase.
autocomplete_search_fields
()¶
-
PagesBase.
can_add
(request)¶ Dynamic
add
permission for content types to override.
-
PagesBase.
can_change
(request)¶ Dynamic
change
permission for content types to override.
-
PagesBase.
can_delete
(request)¶ Dynamic
delete
permission for content types to override.
-
PagesBase.
children
()¶
-
PagesBase.
get_cache_key
(items=(), pk=None, lang=False)¶
-
PagesBase.
get_content_model
()¶
-
PagesBase.
objects
= <django.db.models.manager.Manager object at 0x43fe210>¶
-
PagesBase.
pagesbase_set
¶
-
PagesBase.
pagestext
¶
-
PagesBase.
parent
¶
-
PagesBase.
parents
¶
-
PagesBase.
save
(*args, **kwargs)¶
-
PagesBase.
slug_absolute
(lang)¶
-
exception
-
class
cms.apps.pages.models.
PagesText
(id, author_id, content_model, parent_id, pagesbase_ptr_id, comments_count, comments_count_all, keywords_string, ratings_count, ratings_sum, ratings_average, 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, comments_allow, comments_close, ratings_allow, contenttemplatepre, contenttemplatepost, is_homepage, is_undeletable)¶ Bases:
cms.core.models.Content
,cms.apps.pages.models.PagesBase
,cms.core.models.Ratable
,cms.core.models.Commentable
-
exception
PagesText.
DoesNotExist
¶ Bases:
cms.apps.pages.models.DoesNotExist
-
exception
PagesText.
MultipleObjectsReturned
¶ Bases:
cms.apps.pages.models.MultipleObjectsReturned
-
class
PagesText.
Settings
¶ -
ITEMS_DISPLAY_DATE
= {'default': False}¶
-
MEDIA_PATH
= {'default': 'text'}¶
-
SCHEMA
= {'default': 'WebPage'}¶
-
SITEMAP_CHANGEFREQ
= 'weekly'¶
-
SITEMAP_PRIORITY
= 0.8¶
-
-
PagesText.
clean_fields
(exclude=None)¶
-
PagesText.
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.
-
PagesText.
comments_count
¶ A descriptor used for the original translated field.
-
PagesText.
content
¶ A descriptor used for the original translated field.
-
PagesText.
contenttemplatepost
¶ A descriptor used for the original translated field.
-
PagesText.
contenttemplatepost_path
¶
-
PagesText.
contenttemplatepre
¶ A descriptor used for the original translated field.
-
PagesText.
contenttemplatepre_path
¶
-
PagesText.
created_by
¶
-
PagesText.
description
¶ A descriptor used for the original translated field.
-
PagesText.
get_absolute_url
()¶
-
PagesText.
get_commentsfield_name
()¶
-
PagesText.
get_contenttemplatepost_de_display
(*moreargs, **morekwargs)¶
-
PagesText.
get_contenttemplatepost_display
(*moreargs, **morekwargs)¶
-
PagesText.
get_contenttemplatepost_en_display
(*moreargs, **morekwargs)¶
-
PagesText.
get_contenttemplatepre_de_display
(*moreargs, **morekwargs)¶
-
PagesText.
get_contenttemplatepre_display
(*moreargs, **morekwargs)¶
-
PagesText.
get_contenttemplatepre_en_display
(*moreargs, **morekwargs)¶
-
PagesText.
get_description
()¶
-
PagesText.
get_keywordsfield_name
()¶
-
PagesText.
get_mark_display
(*moreargs, **morekwargs)¶
-
PagesText.
get_next_by_created_date
(*moreargs, **morekwargs)¶
-
PagesText.
get_next_by_modified_date
(*moreargs, **morekwargs)¶
-
PagesText.
get_next_by_published_date
(*moreargs, **morekwargs)¶
-
PagesText.
get_previous_by_created_date
(*moreargs, **morekwargs)¶
-
PagesText.
get_previous_by_modified_date
(*moreargs, **morekwargs)¶
-
PagesText.
get_previous_by_published_date
(*moreargs, **morekwargs)¶
-
PagesText.
get_ratingfield_name
()¶
-
PagesText.
get_schema_display
(*moreargs, **morekwargs)¶
-
PagesText.
get_status_display
(*moreargs, **morekwargs)¶
-
PagesText.
image
¶ A descriptor used for the original translated field.
-
PagesText.
image_de
¶ A placeholder class that provides a way to set the attribute on the model.
-
PagesText.
image_en
¶ A placeholder class that provides a way to set the attribute on the model.
-
PagesText.
imagedescription
¶ A descriptor used for the original translated field.
A descriptor used for the original translated field.
A placeholder class that provides a way to set the attribute on the model.
A placeholder class that provides a way to set the attribute on the model.
A descriptor used for the original translated field.
-
PagesText.
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.
-
PagesText.
keywords_string
¶ A descriptor used for the original translated field.
-
PagesText.
license
¶
-
PagesText.
modified_by
¶
-
PagesText.
objects
= <cms.core.translations.translator.NewMultilingualManager object at 0x4400bd0>¶
-
PagesText.
pagesbase_ptr
¶
-
PagesText.
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.
-
PagesText.
render_content
()¶
-
PagesText.
save
(*args, **kwargs)¶
-
PagesText.
sites
¶
-
PagesText.
slug
¶ A descriptor used for the original translated field.
A descriptor used for the original translated field.
-
PagesText.
title
¶ A descriptor used for the original translated field.
-
exception
cms.apps.pages.search_indexes module¶
-
class
cms.apps.pages.search_indexes.
PagesTextIndex
¶ 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 0xac508d0>¶
-
cms.apps.pages.urls module¶
cms.apps.pages.views module¶
-
class
cms.apps.pages.views.
PagesBaseView
(**kwargs)¶ Bases:
cms.core.views.GenericTemplateView
-
get_data
(request)¶
-
-
class
cms.apps.pages.views.
PagesTextDetailView
(**kwargs)¶ Bases:
cms.apps.pages.views.PagesBaseView
-
get
(request, slug)¶
-
get_template_names
()¶
-
template_name
= 'pages/base.html'¶
-