Hi alex,

I haven't been able to reproduce this exactly, could I see the class
declaration for this class? I'm wondering if the integer property member is
being set to the IntegerProperty constructor instead of the result of
calling the constructor.

class X(db.Model):
  i = db.IntegerProperty # Note the missing ()
  s = db.StringProperty()

Thank you,

Jeff

On Mon, Apr 13, 2009 at 2:06 PM, alex <[email protected]> wrote:

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