def _get_ldap_agent(self, bind=True, secondary=False): agent = ldap_config.ldap_agent_with_config(self._config, bind) try: agent._author = logged_in_user(self.REQUEST) except AttributeError: agent._author = "System user" return agent
def _get_ldap_agent(self, bind=True, secondary=False): agent = ldap_config.ldap_agent_with_config(self._config, bind, secondary=secondary) try: agent._author = logged_in_user(self.REQUEST) except AttributeError: agent._author = "System user" return agent
def _get_ldap_agent(self, bind=True, secondary=False): agent = ldap_config.ldap_agent_with_config(self._config, bind, secondary=secondary) agent._author = logged_in_user(self.REQUEST) return agent