Remove stuff related to is_created

This commit is contained in:
Cédric Messiant 2013-10-24 09:15:56 +02:00
parent 334b8282cb
commit 2b66fed686
3 changed files with 0 additions and 11 deletions

View File

@ -27,8 +27,6 @@ from plone.app.textfield import RichText
class IOrganization(model.Schema, IContactContent):
"""Interface for Organization content type"""
is_created = Attribute(u"Marker to know if the object is already created")
activity = RichText(
title=_("Activity"),
required=False,
@ -87,7 +85,6 @@ class Organization(Container):
implements(IOrganization)
#meta_type = 'organization'
is_created = False
use_parent_address = NO_VALUE
parent_address = NO_VALUE

View File

@ -21,8 +21,6 @@ from collective.contact.core.content.held_position import IHeldPosition
class IPosition(model.Schema, IContactContent):
"""Interface for Position content type"""
is_created = Attribute(u"Marker to know if the object is already created")
position_type = schema.Choice(
title=_("Type"),
vocabulary="PositionTypes",
@ -59,7 +57,6 @@ class Position(Container):
implements(IPosition)
meta_type = 'position'
is_created = False
use_parent_address = NO_VALUE
parent_address = NO_VALUE

View File

@ -10,11 +10,6 @@ from collective.contact.core.content.person import IPerson
from collective.contact.core.content.organization import IOrganization
@grok.subscribe(IContactContent, IObjectAddedEvent)
def set_is_created(obj, event):
obj.is_created = True
# update indexes of related content when a content is modified
# you can monkey patch this value if you have an index that needs this
indexes_to_update = ['SearchableText']