Hi. I am trying to use the hook api in Python to intercept all calls
to the datastore and run a check to ensure that the user has proper
authorization to take the action requested - possibly by adding a
filter or by querying some other tables. As an example, when
displaying results, I would like to add some additoinal filters to the
query while in the hook. However, I cannot figure out how to add
these filters. I am using
apiproxy_stub_map.apiproxy.GetPreCallHooks. THe hook provides 4
parameters - including an object that is a
google.appengine.datastore.datastore_pb.Query. How can I add an
additional filter to the query before it is run?
I have tried many different things - including:
request.filter("title","test item")
request.add_filter().MergeFromString("title = test item")
Thank you for your help.
--~--~---------~--~----~------------~-------~--~----~
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=en
-~----------~----~----~----~------~----~------~--~---