--- a/thirdparty/google_appengine/google/appengine/ext/admin/__init__.py Sat Sep 05 14:04:24 2009 +0200
+++ b/thirdparty/google_appengine/google/appengine/ext/admin/__init__.py Sun Sep 06 23:31:53 2009 +0200
@@ -119,6 +119,8 @@
'interactive_execute_path': base_path + InteractiveExecuteHandler.PATH,
'memcache_path': base_path + MemcachePageHandler.PATH,
'queues_path': base_path + QueuesPageHandler.PATH,
+ 'xmpp_path': base_path + XMPPPageHandler.PATH,
+ 'inboundmail_path': base_path + InboundMailPageHandler.PATH,
}
if HAVE_CRON:
values['cron_path'] = base_path + CronPageHandler.PATH
@@ -248,6 +250,34 @@
self.generate('cron.html', values)
+class XMPPPageHandler(BaseRequestHandler):
+ """Tests XMPP requests."""
+ PATH = '/xmpp'
+
+ def get(self):
+ """Shows template displaying the XMPP."""
+ xmpp_configured = True
+ values = {
+ 'xmpp_configured': xmpp_configured,
+ 'request': self.request
+ }
+ self.generate('xmpp.html', values)
+
+
+class InboundMailPageHandler(BaseRequestHandler):
+ """Tests Mail requests."""
+ PATH = '/inboundmail'
+
+ def get(self):
+ """Shows template displaying the Inbound Mail form."""
+ inboundmail_configured = True
+ values = {
+ 'inboundmail_configured': inboundmail_configured,
+ 'request': self.request
+ }
+ self.generate('inboundmail.html', values)
+
+
class QueuesPageHandler(BaseRequestHandler):
"""Shows information about configured (and default) task queues."""
PATH = '/queues'
@@ -1214,7 +1244,12 @@
def _ParseCronYaml():
- """Load the cron.yaml file and parse it."""
+ """Loads the cron.yaml file and parses it.
+
+ The CWD of the dev_appserver is the root of the application here.
+
+ Returns a dict representing the contents of cron.yaml.
+ """
cronyaml_files = 'cron.yaml', 'cron.yml'
for cronyaml in cronyaml_files:
try:
@@ -1240,6 +1275,8 @@
('.*' + ImageHandler.PATH, ImageHandler),
('.*' + QueuesPageHandler.PATH, QueuesPageHandler),
('.*' + TasksPageHandler.PATH, TasksPageHandler),
+ ('.*' + XMPPPageHandler.PATH, XMPPPageHandler),
+ ('.*' + InboundMailPageHandler.PATH, InboundMailPageHandler),
('.*', DefaultPageHandler),
]
if HAVE_CRON: