Ignore:
Timestamp:
10.12.2011 23:46:41 (5 months ago)
Author:
zmsdev
Message:

applied minor performance-fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ZMS/trunk/_confmanager.py

    r1747 r1756  
    506506 
    507507 
    508     # -------------------------------------------------------------------------- 
    509     #  ConfManager.getNotifications: 
    510     # 
    511     #  Collects notifications from services. 
    512     # -------------------------------------------------------------------------- 
    513     def getNotifications(self,format='json'): 
    514       """ 
    515       getNotifications 
    516       """ 
    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 notifications 
    526  
    527  
    528508    """ 
    529509    ############################################################################ 
Note: See TracChangeset for help on using the changeset viewer.