You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

42 lines
1.0 KiB

#-*- coding: utf -8-*-
from cms.plugin_base import CMSPluginBase
from cms.plugin_pool import plugin_pool
import models
class ExamplePlugin(CMSPluginBase):
model = models.Example
name = u'Пример'
render_template = u'articles/example.html'
class AttentionPlugin(CMSPluginBase):
model = models.Attention
name = u'Внимание'
render_template = u'articles/attention.html'
class AdvisePlugin(CMSPluginBase):
model = models.Advise
name = u'Совет'
render_template = u'articles/advise.html'
class FormulaPlugin(CMSPluginBase):
model = models.Formula
name = u'Формула'
render_template = u'articles/formula.html'
class FileExtPlugin(CMSPluginBase):
model = models.FileExt
name = u'Файл (статья)'
render_template = u'articles/file_ext.html'
plugin_pool.register_plugin(ExamplePlugin)
plugin_pool.register_plugin(AttentionPlugin)
plugin_pool.register_plugin(AdvisePlugin)
plugin_pool.register_plugin(FormulaPlugin)
plugin_pool.register_plugin(FileExtPlugin)