Pyxer Examples
You are running Pyxer 0.7.1 on Google App Engine (on stage? False) (Platform: linux2)
- Local Directory Listing
Lists the content of the current directory. On GAE you may use this to have a look what has been transfered to your site.
- Error Output
Just showing how an error in a controller is displayed by the system.
- Guestbook
Simple guest book showing how to use databases, 'expose' controllers and redirects.
- JSON and AJAX
This demo shows the easy generation of JSON by Pyxer in a simple AJAX demo that calculates the square root of a number on the serbver side.
- Session
Simple session usage in Pyxer. Session handling is internaly done by Beaker.
Environment Variables
{'APPLICATION_ID': 'pyxer',
'AUTH_DOMAIN': 'gmail.com',
'CURRENT_VERSION_ID': '1.333847192292954043',
'DATACENTER': 'na5',
'HTTPS': 'off',
'HTTP_ACCEPT': 'text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5',
'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5',
'HTTP_CACHE_CONTROL': 'no-cache',
'HTTP_COOKIE': 'beaker.session.id=a07f30a5892d62b185c5d1e1c319f5b9',
'HTTP_HOST': 'www.pyxer.net',
'HTTP_IF_MODIFIED_SINCE': 'Fri, 02 Apr 2010 14:26:38 GMT',
'HTTP_PRAGMA': 'no-cache',
'HTTP_USER_AGENT': 'CCBot/1.0 (+http://www.commoncrawl.org/bot.html),gzip(gfe),gzip(gfe)',
'HTTP_X_CC_ID': 'ccc01-02',
'HTTP_X_ZOO': 'app-id=pyxer',
'PATH_INFO': '/',
'PATH_TRANSLATED': '/base/data/home/apps/pyxer/1.333847192292954043/pyxer-app.py',
'QUERY_STRING': '',
'REMOTE_ADDR': '38.107.191.88',
'REQUEST_ID_HASH': '6BEF374E',
'REQUEST_METHOD': 'GET',
'SCRIPT_NAME': '',
'SERVER_NAME': 'www.pyxer.net',
'SERVER_PORT': '80',
'SERVER_PROTOCOL': 'HTTP/1.1',
'SERVER_SOFTWARE': 'Google App Engine/1.3.5',
'TZ': 'UTC',
'USER': 'apphosting',
'USER_EMAIL': '',
'USER_ID': '',
'USER_IS_ADMIN': '0',
'USER_NICKNAME': '',
'USER_ORGANIZATION': ''}
(C) 2008 Dirk Holtwick