Triangle CMS v1.0.2
  • Configuration
    • Default Settings
  • Developer
    • Introduction
    • Core packages
    • Local packages
  • Plugins
    • Installed Plugins
  • Model Graph
  • Good to know
    • Authors
    • License
 
Triangle CMS v1.0.2
  • Docs »
  • Developer »
  • cms package »
  • cms.apps package »
  • cms.apps.links package

cms.apps.links package¶

Submodules¶

cms.apps.links.admin module¶

class cms.apps.links.admin.LinksCategoryAdmin(model, admin_site)¶

Bases: cms.core.admin.DisplayableAdmin, cms.core.admin.OrderableAdmin, cms.core.admin.OrderableManyToManyAdmin, cms.apps.menus.admin.MenuableAdmin

Admin class for LinksCategory.

fieldsets_append = {<django.utils.functional.__proxy__ object at 0x5ad5e90>: ('items',)}¶
fieldsets_exclude = {<django.utils.functional.__proxy__ object at 0x5ad5d90>: ('keywords',)}¶
get_prefetch_related()¶
list_display = ('order', 'get_published_date', 'get_title')¶
list_editable = ('order',)¶
list_exclude = ('sitemapped',)¶
media¶
sortable_field_name = 'order'¶
class cms.apps.links.admin.LinksCategoryInline(parent_model, admin_site)¶

Bases: cms.contrib.admin.admin.CMSTabularInline

exclude = ('order',)¶
extra_on_add = 1¶
media¶
model¶

alias of LinksCategory_items

verbose_name = <django.utils.functional.__proxy__ object at 0x5ad5fd0>¶
verbose_name_plural = <django.utils.functional.__proxy__ object at 0x59380d0>¶
class cms.apps.links.admin.LinksItemAdmin(model, admin_site)¶

Bases: cms.core.admin.DisplayableAdmin

Admin class for LinksItem.

fieldsets_append = {<django.utils.functional.__proxy__ object at 0x5938450>: ('slug', 'target', 'rel')}¶
fieldsets_exclude = {<django.utils.functional.__proxy__ object at 0x59383d0>: ('slug',), <django.utils.functional.__proxy__ object at 0x5938350>: ('keywords',), <django.utils.functional.__proxy__ object at 0x5938210>: ('sitemapped',)}¶
get_categories(obj)¶
get_prefetch_related()¶
inlines = [<class 'cms.apps.links.admin.LinksCategoryInline'>]¶
list_display = ('get_published_date', 'get_title', 'get_categories')¶
list_exclude = ('sitemapped',)¶
list_filter = ('published_date', 'status', 'login_required', 'keywords__keyword', 'linkscategory')¶
media¶
prepopulated_fields = {}¶

cms.apps.links.autofixtures module¶

class cms.apps.links.autofixtures.LinksCategoryFixture(*args, **kwargs)¶

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

COUNT_DEFAULT = 2¶
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 0x8331d50>, 'slug': <autofixture.generators.NoneGenerator object at 0x8331ad0>, 'pretitle': <autofixture.generators.LoremSentenceGenerator object at 0x8331d10>}¶
follow_m2m = {'ALL': (1, 10)}¶
class cms.apps.links.autofixtures.LinksItemFixture(*args, **kwargs)¶

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

COUNT_DEFAULT = 10¶
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 0x8331d50>, 'slug': <autofixture.generators.URLGenerator object at 0x9bec890>, 'pretitle': <autofixture.generators.LoremSentenceGenerator object at 0x8331d10>}¶

cms.apps.links.cms_initialize module¶

class cms.apps.links.cms_initialize.CMSInitialize¶

Bases: cms.core.models.CMSInitializeBase

models = (<class 'cms.apps.links.models.LinksCategory'>, <class 'cms.apps.links.models.LinksItem'>)¶

cms.apps.links.cms_plugin module¶

class cms.apps.links.cms_plugin.CMSPlugin¶

Bases: cms.core.plugins.CMSPluginBase

admin_icon_class = 'icon-link'¶
description = <django.utils.functional.__proxy__ object at 0x3265a10>¶
status = 'stable'¶
verbose_name = <django.utils.functional.__proxy__ object at 0x3265a90>¶
version = '0.2'¶

cms.apps.links.management module¶

cms.apps.links.management.create_group(sender, **kwargs)¶

cms.apps.links.models module¶

class cms.apps.links.models.LinksCategory(*args, **kwargs)¶

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

A simple Links-Model.

class ApiPrivate¶
fields = ('items',)¶
queryset_prefetch_related = ('items',)¶
exception LinksCategory.DoesNotExist¶

Bases: django.core.exceptions.ObjectDoesNotExist

class LinksCategory.Menus¶
exception LinksCategory.MultipleObjectsReturned¶

Bases: django.core.exceptions.MultipleObjectsReturned

LinksCategory.author¶
LinksCategory.clean_fields(exclude=None)¶
LinksCategory.created_by¶
LinksCategory.description¶

A descriptor used for the original translated field.

LinksCategory.get_absolute_url()¶
LinksCategory.get_keywordsfield_name()¶
LinksCategory.get_mark_display(*moreargs, **morekwargs)¶
LinksCategory.get_next_by_created_date(*moreargs, **morekwargs)¶
LinksCategory.get_next_by_modified_date(*moreargs, **morekwargs)¶
LinksCategory.get_next_by_published_date(*moreargs, **morekwargs)¶
LinksCategory.get_previous_by_created_date(*moreargs, **morekwargs)¶
LinksCategory.get_previous_by_modified_date(*moreargs, **morekwargs)¶
LinksCategory.get_previous_by_published_date(*moreargs, **morekwargs)¶
LinksCategory.get_status_display(*moreargs, **morekwargs)¶
LinksCategory.items¶
LinksCategory.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.

LinksCategory.keywords_string¶

A descriptor used for the original translated field.

LinksCategory.modified_by¶
LinksCategory.objects = <cms.core.translations.translator.NewMultilingualManager object at 0x429dd50>¶
LinksCategory.sites¶
LinksCategory.slug¶

A descriptor used for the original translated field.

LinksCategory.title¶

A descriptor used for the original translated field.

class cms.apps.links.models.LinksItem(*args, **kwargs)¶

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

A simple Links-Model.

class ApiPrivate¶
fields = ('rel', 'target')¶
exception LinksItem.DoesNotExist¶

Bases: django.core.exceptions.ObjectDoesNotExist

class LinksItem.Menus¶
exception LinksItem.MultipleObjectsReturned¶

Bases: django.core.exceptions.MultipleObjectsReturned

LinksItem.author¶
LinksItem.clean_fields(exclude=None)¶
LinksItem.created_by¶
LinksItem.description¶

A descriptor used for the original translated field.

LinksItem.get_absolute_url()¶
LinksItem.get_keywordsfield_name()¶
LinksItem.get_mark_display(*moreargs, **morekwargs)¶
LinksItem.get_next_by_created_date(*moreargs, **morekwargs)¶
LinksItem.get_next_by_modified_date(*moreargs, **morekwargs)¶
LinksItem.get_next_by_published_date(*moreargs, **morekwargs)¶
LinksItem.get_previous_by_created_date(*moreargs, **morekwargs)¶
LinksItem.get_previous_by_modified_date(*moreargs, **morekwargs)¶
LinksItem.get_previous_by_published_date(*moreargs, **morekwargs)¶
LinksItem.get_status_display(*moreargs, **morekwargs)¶
LinksItem.get_target_display(*moreargs, **morekwargs)¶
LinksItem.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.

LinksItem.keywords_string¶

A descriptor used for the original translated field.

LinksItem.linkscategory_set¶
LinksItem.modified_by¶
LinksItem.objects = <cms.core.translations.translator.NewMultilingualManager object at 0x4297110>¶
LinksItem.sites¶
LinksItem.slug¶

A descriptor used for the original translated field.

LinksItem.title¶

A descriptor used for the original translated field.

cms.apps.links.urls module¶

cms.apps.links.views module¶

class cms.apps.links.views.LinkCategoryDetailView(**kwargs)¶

Bases: cms.apps.links.views.LinksBaseView, cms.core.views.GenericTemplateTooltipView

get(request, category)¶
template_name = 'links/category_detail.html'¶
class cms.apps.links.views.LinkCategoryListView(**kwargs)¶

Bases: cms.apps.links.views.LinksBaseView

get(request)¶
template_name = 'links/categories_list.html'¶
class cms.apps.links.views.LinksBaseView(**kwargs)¶

Bases: cms.core.views.GenericTemplateView

get_categories()¶
get_category(category)¶
get_data()¶

Module contents¶

Next Previous

© Copyright 2012 - 2016 inMeta.Networks. Last updated on Feb 25, 2016 - 05:38.