Remove meta_type overrides #41067
This fixes standard copy-paste behavior. The overrides don't seem useful inside the GED. https://groups.google.com/forum/#!topic/dexterity-development/78si45jllyA
This commit is contained in:
parent
94ba5f6afd
commit
89f2b1eba0
|
@ -52,7 +52,7 @@ class Directory(Container):
|
|||
"""Directory content type"""
|
||||
implements(IDirectory)
|
||||
|
||||
meta_type = 'directory'
|
||||
# meta_type = 'directory'
|
||||
|
||||
|
||||
class DirectorySchemaPolicy(grok.GlobalUtility,
|
||||
|
|
|
@ -89,7 +89,7 @@ class HeldPosition(Container):
|
|||
|
||||
implements(IHeldPosition)
|
||||
|
||||
meta_type = 'held_position'
|
||||
# meta_type = 'held_position'
|
||||
use_parent_address = NO_VALUE
|
||||
parent_address = NO_VALUE
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@ class Person(Container):
|
|||
|
||||
implements(IPerson)
|
||||
|
||||
meta_type = 'person'
|
||||
# meta_type = 'person'
|
||||
is_created = False
|
||||
# plone.dexterity.content.Content.__getattr__ retrieve the field.default
|
||||
# so step 1.2.1 in z3c.form.widget.py returns something instead of NO_VALUE
|
||||
|
|
|
@ -56,7 +56,7 @@ class Position(Container):
|
|||
|
||||
implements(IPosition)
|
||||
|
||||
meta_type = 'position'
|
||||
# meta_type = 'position'
|
||||
use_parent_address = NO_VALUE
|
||||
parent_address = NO_VALUE
|
||||
|
||||
|
|
Reference in New Issue