JSON serialization of Google App Engine models

For some AJAX requests you’ll need an rpc urls returning a serialized objects. In principle its simple just use JSON serialization build in in Django or simplejson module itself. Here are sample view methods: def entity_list(request, entity_key=None): user = users.get_current_user().email().lower(); col = models.Entity.gql(’WHERE user=:1′,user).fetch(300, 0) json = serializers.serialize(„json”, col) return …

Running command in command line with admin privileges.

If you don’t want to turn UAC off, don’t want to jump through hoops when running a command with administrator privileges, and non of this right-click-run-as-administrator or create-a-shortcut-ran-as-administrator nonsense, you’re in a bit of trouble. As far as I know MS didn’t provide any means to run a command with administrative privileges from …

Back to Top