Pyxer Examples
You are running Pyxer 0.7.1 on Google App Engine (on stage? True) (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',
'HTTPS': 'off',
'HTTP_ACCEPT': 'Accept: text/xml,application/xhtml+xml,text/html;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_HOST': 'www.pyxer.net',
'HTTP_PRAGMA': 'no-cache',
'HTTP_USER_AGENT': 'CCBot/1.0 (+http://www.commoncrawl.org/bot.html),gzip(gfe),gzip(gfe)',
'HTTP_X_CC_LIST': 'List:1 For:74.125.93.121',
'PATH_INFO': '/',
'PATH_TRANSLATED': '/base/data/home/apps/pyxer/1.333847192292954043/pyxer-app.py',
'QUERY_STRING': '',
'REMOTE_ADDR': '38.103.63.55',
'REQUEST_METHOD': 'GET',
'SCRIPT_NAME': '',
'SERVER_NAME': 'www.pyxer.net',
'SERVER_PORT': '80',
'SERVER_PROTOCOL': 'HTTP/1.1',
'SERVER_SOFTWARE': 'Google Apphosting/1.0',
'TZ': 'UTC',
'USER': 'apphosting',
'USER_EMAIL': '',
'USER_ID': '',
'USER_IS_ADMIN': '0',
'USER_NICKNAME': ''}
(C) 2008 Dirk Holtwick