shoop.xtheme.plugins package¶
Submodules¶
shoop.xtheme.plugins.consts module¶
-
shoop.xtheme.plugins.consts.
FALLBACK_LANGUAGE_CODE
= '*'¶ The pseudo-language code used by TranslatedFields and the relevant Plugin API to mark the untranslated/fallback content
shoop.xtheme.plugins.forms module¶
-
class
shoop.xtheme.plugins.forms.
PluginForm
(**kwargs)[source]¶ Bases:
django.forms.forms.Form
Base class for plugin configuration forms.
-
get_config
()[source]¶ Get the new
config
dict for a plugin.Called when the form is valid, akin to
django.forms.models.ModelForm.save
.The default implementation just augments the old config with the cleaned data for the form.
Returns: A new JSONable (!) config dict Return type: dict
-
base_fields
= OrderedDict()¶
-
declared_fields
= OrderedDict()¶
-
media
¶
-
shoop.xtheme.plugins.text module¶
-
class
shoop.xtheme.plugins.text.
TextPlugin
(config)[source]¶ Bases:
shoop.xtheme.Plugin
Very basic Markdown rendering plugin.
Instantiate a Plugin with the given
config
dictionary.Parameters: config (dict) – Dictionary of freeform configuration data -
identifier
= 'text'¶
-
name
= 'Text'¶
-
fields
= [('text', <shoop.xtheme.plugins.forms.TranslatableField object at 0x7f15c0c6ff60>)]¶
-