Add the entities to the context too
authorSverre Rabbelier <srabbelier@gmail.com>
Sun, 05 Apr 2009 23:39:25 +0000
changeset 2089 b8a9691da6e7
parent 2088 353d73af0ba6
child 2090 a07ff1e1bd1f
Add the entities to the context too This makes it easier to quickly get specific entities from the datastore. Patch by: Sverre Rabbelier
scripts/stats.py
--- a/scripts/stats.py	Sun Apr 05 22:51:54 2009 +0000
+++ b/scripts/stats.py	Sun Apr 05 23:39:25 2009 +0000
@@ -215,6 +215,11 @@
       'getOrgAdmins': getEntities(OrgAdmin),
       'getProps': getProps,
       'countStudentsWithProposals': countStudentsWithProposals,
+      'Organization': Organization,
+      'User': User,
+      'Student': Student,
+      'Mentor': Mentor,
+      'OrgAdmin': OrgAdmin,
   }
 
   interactive.remote(args, context)