[Zope3-Users] getUtilitiesFor without context
    Florian Lindner 
    mailinglists at xgm.de
       
    Wed Jan 10 16:03:04 EST 2007
    
    
  
Hello,
I have some local utilites registered. Now I try to call them from a function 
that don't have a context:
    utils = getUtilitiesFor(INewsfeed)
    for i in utils:
        print "Utility called:", i.__name__
        i.sendNotification()
but that always deliver no utilities. How do get them without supplying a 
context. (the function is called regularly from a scheduler object, therefore 
it needs to be static)
Thanks,
Florian
    
    
More information about the Zope3-users
mailing list