Пример #1
0
 def event_receivers(self):
     """Get Event receivers"""
     return self.properties.get(
         'EventReceivers',
         EventReceiverDefinitionCollection(
             self.context, ResourcePath("eventReceivers",
                                        self.resource_path), self))
Пример #2
0
 def event_receivers(self):
     """
     Provides event receivers for events that occur at the scope of the site collection.
     """
     return self.properties.get('EventReceivers',
                                EventReceiverDefinitionCollection(self.context,
                                                                  ResourcePath("eventReceivers", self.resource_path),
                                                                  self))