Skip to content

Commit

Permalink
The new_dexterity_type function nolonger overwrites the 'klass' argum…
Browse files Browse the repository at this point in the history
…ent. Fixes #1
  • Loading branch information
href committed Nov 27, 2013
1 parent fa9e080 commit ba53e03
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion seantis/plonetools/tools.py
Expand Up @@ -151,7 +151,9 @@ def add_new_dexterity_type(name, **kwargs):
Behaviors may be given as a list (Dexterity needs a multiline string).
"""
new_type = DexterityFTI(name)
kwargs['klass'] = 'plone.dexterity.content.Container'

if not 'klass' in kwargs:
kwargs['klass'] = 'plone.dexterity.content.Container'

if 'behaviors' in kwargs:
if isinstance(kwargs['behaviors'], list):
Expand Down

0 comments on commit ba53e03

Please sign in to comment.