Hi,

The issue here is that if a property is required, it must be declared when
the model is constructed.

It seems like for this code anyway, you would should use either
auto_current_user or auto_current_user_add at any rate:
http://code.google.com/appengine/docs/python/datastore/typesandpropertyclasses.html#UserProperty

-Marzia

On Sat, Feb 21, 2009 at 2:36 PM, riteshn <[email protected]> wrote:

>
> Hi
>
> http://paste.pocoo.org/show/104839/
>
> My code 34-41 nor 43 works if I set the *required=True* for user
> property.
>
> To double check, I even put :
>
> assert users.get_current_user()
>
> and it works but it never saves the entity.
>
> If I remove required=True, then voila everything is working and the
> entity even has the user property correctly saved.
>
> Any thoughts?
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to