Re: iterations of a list

2016-05-14 Thread James Schneider
On May 14, 2016 1:19 PM, "Shu Latif" wrote: > > It's this line in names(ftes) > > results = conn.search_s("o=domain.com", ldap.SCOPE_SUBTREE, "uid=" + ftes, attrlist=['gecos']) > getFTE() can return with a string or with a list. You are using that value for ftes when calling names(ftes). The

Re: iterations of a list

2016-05-14 Thread Shu Latif
It's this line in names(ftes) results = conn.search_s("o=domain.com", ldap.SCOPE_SUBTREE, "uid=" + ftes, attrlist=['gecos']) On Saturday, May 14, 2016 at 1:00:22 AM UTC-7, James Schneider wrote: > > > On May 13, 2016 6:34 PM, > wrote: > > > > I'm basically trying to get employees of a man

Re: iterations of a list

2016-05-14 Thread James Schneider
On May 13, 2016 6:34 PM, wrote: > > I'm basically trying to get employees of a manger using ldap. The error I get is TypeError at /aboutus-test/ cannot concatenate 'str' and 'list' objects. I think the issue is it's taking the list of employees and trying to put them all into a function rather tha

iterations of a list

2016-05-13 Thread shulatif
I'm basically trying to get employees of a manger using ldap. The error I get is TypeError at /aboutus-test/ cannot concatenate 'str' and 'list' objects. I think the issue is it's taking the list of employees and trying to put them all into a function rather than one by one. But I am not sure h