Changeset 1756 for ZMS/trunk/_confmanager.py
- Timestamp:
- 10.12.2011 23:46:41 (5 months ago)
- File:
-
- 1 edited
-
ZMS/trunk/_confmanager.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ZMS/trunk/_confmanager.py
r1747 r1756 506 506 507 507 508 # --------------------------------------------------------------------------509 # ConfManager.getNotifications:510 #511 # Collects notifications from services.512 # --------------------------------------------------------------------------513 def getNotifications(self,format='json'):514 """515 getNotifications516 """517 notifications = []518 if self.getConfProperty('ZMS.ConfManager.getNotifications.disabled',1) == 1:519 notifications.append({'severity':'disabled'})520 for ob in self.objectValues():521 if IZMSNotificationService in list(zope.interface.providedBy(ob)):522 notifications.extend(ob.getNotifications())523 if format == 'json':524 notifications = self.str_json(notifications)525 return notifications526 527 528 508 """ 529 509 ############################################################################
Note: See TracChangeset
for help on using the changeset viewer.
