def initializeUserProfileManagerHandler(serviceInfo): global gUPDB try: gUPDB = UserProfileDB() except Exception as e: return S_ERROR("Can't initialize UserProfileDB: %s" % str(e)) return S_OK()
def initializeHandler(cls, serviceInfo): """ Handler initialization """ cls.upDB = UserProfileDB() return S_OK()