From 2b66fed6862a100d6122195760a35f3e800c575d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Messiant?= Date: Thu, 24 Oct 2013 09:15:56 +0200 Subject: [PATCH] Remove stuff related to is_created --- src/collective/contact/core/content/organization.py | 3 --- src/collective/contact/core/content/position.py | 3 --- src/collective/contact/core/subscribers.py | 5 ----- 3 files changed, 11 deletions(-) diff --git a/src/collective/contact/core/content/organization.py b/src/collective/contact/core/content/organization.py index 01f2a1c..4d0e5fb 100644 --- a/src/collective/contact/core/content/organization.py +++ b/src/collective/contact/core/content/organization.py @@ -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 diff --git a/src/collective/contact/core/content/position.py b/src/collective/contact/core/content/position.py index e496bb9..ae93eef 100644 --- a/src/collective/contact/core/content/position.py +++ b/src/collective/contact/core/content/position.py @@ -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 diff --git a/src/collective/contact/core/subscribers.py b/src/collective/contact/core/subscribers.py index 63c8615..50c5f86 100644 --- a/src/collective/contact/core/subscribers.py +++ b/src/collective/contact/core/subscribers.py @@ -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']