- Timestamp:
- 11/22/07 10:09:19 (5 years ago)
- Location:
- demo/alchemy/infoarena
- Files:
-
- 1 added
- 1 edited
-
textile.py (added)
-
www/__init__.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
demo/alchemy/infoarena/www/__init__.py
r829 r830 48 48 else: 49 49 # Python sucks 50 start_response('200 OK', [('Content-Type', 'text/ plain')])51 head = ' File %s mime/type %s:\n' % (path, file['mime_type'])52 yield head.encode('ascii')50 start_response('200 OK', [('Content-Type', 'text/html')]) 51 head = '<h1>File %s mime/type %s:</h1>\n' % (path, file['mime_type']) 52 yield str(head) 53 53 54 from codecs import getencoder 55 str, len = getencoder('ascii')(file['content']) 56 yield str 54 from infoarena.textile import textile 55 yield textile(str(file['content'])) 57 56 58 57 def wsgi_main(environ, start_response):
Note: See TracChangeset
for help on using the changeset viewer.
![[infoarena] development](/chrome/site/logo.png)