def init(): global _default_context, _user_service _default_context = Context.get_default_context() _user_service = UserService(_default_context) logger.debug("_user_service = " + str(_user_service))
def _get_user_service(): global _user_service if _user_service is None: _user_service = UserService(_get_default_context()) return _user_service
def init(): global _default_context, _user_service, _profile_service _default_context = Context.get_default_context() _user_service = UserService(_default_context) _registration_service = RegisterLoginSvc() _profile_service = ProfileService(_default_context) logger.debug("_user_service = " + str(_user_service)) logger.debug("_profile_service = " + str(_profile_service))