Commit Graph

3 Commits

Author SHA1 Message Date
Neil Fraser
488539f636 Update storage.py to use ndb instead of db.
Back-ports from Blockly Games:
* db is old and busted, ndb is the new hotness (there’s no known
difference, just pointless API churn).
* Use SHA1 which is consistent, rather than Python’s hash() which has
started changing between executions.  This stops duplicate programs
from being stored.
* Restructure so that storage.py can be used as a library, with
xmlToKey and keyToXml being callable by external programs.
* Use print function compatible with Python 3.
2018-04-25 13:39:00 -07:00
Neil Fraser
ca966979a4 Fix Block Factory when types are saved. 2014-11-11 14:06:02 -08:00
ellen.spertus
a8acffd81c New initial commit with .svn directories and their contents ignored. 2013-10-30 14:46:03 -07:00