This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def show_query(query): | |
| """ | |
| Represent a query as a string | |
| Based on http://kupuguy.googlecode.com/svn/trunk/appengine-doctests/showquery.py | |
| """ | |
| from google.appengine.api import datastore | |
| kind = query._model_class.kind() | |
| ancestor = query._Query__ancestor | |
| filters = query._Query__query_sets[0] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
| "http://www.w3.org/TR/html4/loose.dtd"> | |
| <html lang="en"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
| <title>Netcycler RSS feed example page</title> | |
| <!-- Date: 2010-12-30 --> | |
| </head> | |
| <body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
| "http://www.w3.org/TR/html4/loose.dtd"> | |
| <html lang="en"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
| <title>Netcycler RSS feed</title> | |
| <!-- Date: 2010-12-30 --> | |
| </head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def run_in_namespace(namespace): | |
| """ | |
| Decorator for executing a function in a given namespace, then return back to the | |
| current namescape. | |
| """ | |
| def decorator(function): | |
| def wrapper(*args, **kwargs): | |
| current_namespace = namespace_manager.get_namespace() | |
| try: | |
| current_namespace = namespace_manager.get_namespace() |
NewerOlder