Matthew,

Why are you trying to add an extended_property to set the Name property?
Can you explain what is that you are trying to do?
Are you trying to add a custom property to be used by your business logic
only?
Thanks

Claudio

On Wed, Apr 6, 2011 at 9:39 PM, Matthew Riedel <[email protected]>wrote:

> I'm using the python gdata library version 2.0.14 to manage some Google
> Apps for Education user accounts.
>
> I'm having a hard time adding an extended_property value to a UserEntry
> object.
>
> In this example:
>
> userEntry = gae.RetrieveUser('username')
> userEntry.extended_property.append(gdata.apps.Property(name="Name",
> value="Value"))
> print userEntry.ToString()
>
>
> When I look at the output of "userEntry.ToString()", I do not see any
> evidence that it added the extended property. I can modify other settings,
> and tey will show up there. For example, if I do something like:
>
> userEntry.name.given_name = "NewName"
>
> Then print out the ToString() value of userEntry, I will see that it
> updated the givenName attribute to "NewName".
>
> Also, if I run "print userEntry.extended_property[0].__dict__" I do see the
> key/value pair. Also, "print userEntry.extended_property[0].ToString()"
> produces appropriate-looking XML code.
>
> I've tried using the gdata.data.Property class as well, with the same
> results.
>
> Any thoughts on what to try next?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Apps Domain Information and Management APIs" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-apps-mgmt-apis?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Apps Domain Information and Management APIs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-apps-mgmt-apis?hl=en.

Reply via email to