Zeynel wrote:
>On Jan 16, 3:24 pm, TomF wrote:
>
>> vote refers to the Vote instance.
>
>So he must have instatiated previously like
>
>vote = Vote()
No, it's the line immediately above the one you asked about:
if vote is None:
vote = Vote(key_name = user.email(), parent =
On 2011-01-16 12:44:35 -0800, Zeynel said:
On Jan 16, 3:24 pm, TomF wrote:
vote refers to the Vote instance.
So he must have instatiated previously like
vote = Vote()
is this correct?
Yes.
So I have a model
class Item(db.Model):
title = db.StringProperty()
url = db.StringPro
On Jan 16, 3:24 pm, TomF wrote:
> vote refers to the Vote instance.
So he must have instatiated previously like
vote = Vote()
is this correct?
So I have a model
class Item(db.Model):
title = db.StringProperty()
url = db.StringProperty()
date = db.DateTimeProperty(auto_now_add=Tru
On 1/16/2011 12:59 PM, Zeynel wrote:
What does vote.vote refer to in this snippet?
"vote" is an instance of the Vote class, and "vote.vote" is the value of
the "vote" attribute on that instance. In this case, that will be an int.
More precisely, "vote.vote" is a value managed by the "vote"
On 2011-01-16 11:59:11 -0800, Zeynel said:
What does vote.vote refer to in this snippet?
def txn():
quote = Quote.get_by_id(quote_id)
vote = Vote.get_by_key_name(key_names = user.email(), parent =
quote)
if vote is None:
vote = Vote(key_name = user.email(