Changeset 830 for demo


Ignore:
Timestamp:
11/22/07 10:09:19 (5 years ago)
Author:
cdleonard@…
Message:

IA3: Prototype pytextile support

Location:
demo/alchemy/infoarena
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • demo/alchemy/infoarena/www/__init__.py

    r829 r830  
    4848    else: 
    4949        # 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) 
    5353 
    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'])) 
    5756 
    5857def wsgi_main(environ, start_response): 
Note: See TracChangeset for help on using the changeset viewer.