Do you reference the IntegerProperty with the class name or with self?

istr = str(MyCustomModel.iprop) # this gives your string value

or

istr = str(self.iprop)  # this should give the integer value


2009/4/13 alex <[email protected]>:
>
> Got a class that extends db.Model with an IntegerProperty among the
> others. It's gets set at creation time (moreover, has required=True).
> Now, when I fetch an instance of this class, all other properties
> resolve just fine (StringProperty, DateTimeProperty, etc.). Now,
> passing IntegerProperty to str(), here's what I get:
> --
> <bound method MyCustomModel.int_property of <my.models.MyCustomModel
> object at 0x01A0CC30>>
> --
> .filter('int_property = ', some_int_value) doesn't work as well.
> How could that be?
> TIA.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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