fabian wrote:
> 
> Hello everbody,
> 
> currently i am trying to write a user list plugin for plone. getting the
> users and their attributes works flawlessly unless the attribute is from
> ldap. what is wrong with my code?
> 

> from Products.CMFCore.utils import getToolByName
> 
> portal_membership = getToolByName(context, 'portal_membership')
> portal_groups = getToolByName(context, 'portal_groups')
> 
> for cur in portal_groups.getGroupById('mygroup').getGroupMembers():
>     print cur.getProperty('fullname')
>     print cur.getProperty('email')
>     print cur.getProperty('telephoneNumber')
>     print '\n\n'
> 
> return printed
> 

> 
> the output is:
> 

> John Doe
> [email protected]
> 
> 

> 
> thank you very muchfor your help,
> Fabian
> 

That's probably a bug in either PAS / PlonePAS or
LDAPMutliPlugins/LDAPUserFolder, a marker object must be being used as a
default value for the `default` argument to getProperty. You could supply
your own default argument, e.g. getProperty('telephoneNumber', None)

Laurence

--
View this message in context: 
http://plone.293351.n2.nabble.com/member-getProperty-returns-strange-object-for-LDAP-attribute-tp6371812p6372351.html
Sent from the Product Developers mailing list archive at Nabble.com.
_______________________________________________
Product-Developers mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/plone-product-developers

Reply via email to