Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed PluginAllreadyRegistered in PluginAlreadyRegistered

  • Loading branch information...
commit 11903c1b74ba8c5b161a89c4d4d611cc3e827faa 1 parent b93b7c7
Alberto Paro authored
Showing with 4 additions and 4 deletions.
  1. +1 −1  cms/exceptions.py
  2. +3 −3 cms/plugin_pool.py
View
2  cms/exceptions.py
@@ -1,4 +1,4 @@
-class PluginAllreadyRegistered(Exception):
+class PluginAlreadyRegistered(Exception):
pass
class PluginNotRegistered(Exception):
View
6 cms/plugin_pool.py
@@ -1,4 +1,4 @@
-from cms.exceptions import PluginAllreadyRegistered, PluginNotRegistered
+from cms.exceptions import PluginAlreadyRegistered, PluginNotRegistered
from django.conf import settings
from cms.plugin_base import CMSPluginBase
from cms.utils.helpers import reversion_register
@@ -19,7 +19,7 @@ def register_plugin(self, plugin_or_iterable):
"""
Registers the given plugin(s).
- If a plugin is already registered, this will raise PluginAllreadyRegistered.
+ If a plugin is already registered, this will raise PluginAlreadyRegistered.
"""
if not hasattr(plugin_or_iterable,'__iter__'):
plugin_or_iterable = [plugin_or_iterable]
@@ -27,7 +27,7 @@ def register_plugin(self, plugin_or_iterable):
assert issubclass(plugin, CMSPluginBase)
plugin_name = plugin.__name__
if plugin_name in self.plugins:
- raise PluginAllreadyRegistered("[%s] a plugin with this name is already registered" % plugin_name)
+ raise PluginAlreadyRegistered("[%s] a plugin with this name is already registered" % plugin_name)
plugin.value = plugin_name
self.plugins[plugin_name] = plugin
Please sign in to comment.
Something went wrong with that request. Please try again.