Yup I know i have to set all the required fields, but I would to do it later
So if this is the class
Class Test(db.Model)
prop1 = db.StringProperty()
or
Class Test(db.Model)
prop1 = db.StringProperty(required = True)
I would like to create an empty object first
test = Test()
and then set its all required/non-required fields
test.prop1 = "val"
then i would like to commit the changes
test.put()
On Sun, Dec 26, 2010 at 3:57 PM, Tim Hoffman <[email protected]> wrote:
> HI
> The error you are getting doesn't reflect the code/model you have posted
> here, which makes it hard to help you.
> That error is specifically referring to a Picture property.
> You will should to supply real code that generates the error rather than
> something for the posting .
> As hint though, your model probably has a Picture =
> db.<Some>Property(requred=True) property defined in your
> model, which means when you instantiate the class you will need to specify
> all of the required properties.
> e.g
> test = Test(Picture=some_value)
> Rgds
> Tim
>
> --
> 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.
>
--
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.