Hi, list

I'd like to share my trial implementation of transaction between
entities in different entity groups. I will be glad if you can discuss
about this implementation freely.
This implementation is basically inspired by this thread:
http://groups.google.com/group/google-appengine/browse_thread/thread/ba1c22ffffb37581/6e92b0d15b5cb587

main.py:
http://pastebin.com/m5aef20b5

This script works with following app.yaml.
---- app.yaml ----
application: tm-test
version: 1
runtime: python
api_version: 1

handlers:
- url: /.*
  script: main.py
---- app.yaml ----

This script indicates how a particular amount of money/points/etc can
move from User A to User B in transaction manner.
As a notice, this script itself is not perfect. To make this work
correctly, we need cron job or something like that to take care of
incomplete transactions.

Any comments, thoughts, ideas, all of those are welcome.

I hope someone can make this implementation more sophisticated.

Regards,

-- Takashi Matsuo

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to