If u r looking for a scenario...I have a table called WorkTracker
define like this:

class WorkTracker(db.Model):
        api_key = db.StringProperty()
        scriptid = db.StringProperty()
        status = db.StringProperty()
        trials = db.IntegerProperty()

There is a scheduled task which does its work based on scriptid and
api_key...the task processes only 1 scriptid at a time (1 scripid per
request). I am supposed to update the status of that particular record
based on how the scheduled task was executed. So how do I write the
update inside the scheduled job? Don't understand how 2 use db.get()
in this context...there is no key_name...

--deostroll

On Nov 14, 11:04 pm, deostroll <[email protected]> wrote:
> Don't understand the db.get(some_key) part...why is it possible to do
> such a call in the first place...? I mean wht is so special in the db
> model we've defined which allows us to do a db.get()...?
>
> --deostroll

--

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


Reply via email to