Exemplo n.º 1
0
def main():
  application = webapp.WSGIApplication(
      [('/(.*)',
        memcache_zipserve.create_handler([['0.zip', 'index.html'],
                                          ['1.zip',
                                           'content_dir/sub_dir1.html'],
                                          ])),
       ],
      debug=False)
  wsgiref.handlers.CGIHandler().run(application)
Exemplo n.º 2
0
def main():
    application = webapp.WSGIApplication([
        ('/(.*)',
         memcache_zipserve.create_handler([
             ['0.zip', 'index.html'],
             ['1.zip', 'content_dir/sub_dir1.html'],
         ])),
    ],
                                         debug=False)
    wsgiref.handlers.CGIHandler().run(application)
Exemplo n.º 3
0
def main():
  application = webapp.WSGIApplication([('/(.*)', memcache_zipserve.create_handler([['0.zip', 'app.yaml'],
['1.zip', 'guide/samples/ApiDemos/src/com/example/android/apis/app/ForwardTarget.html'],
['2.zip', 'images/dialog_list.png'],
['3.zip', 'images/widget_design/Music_widget_button_states.psd'],
['4.zip', 'reference/android/database/MatrixCursor.html'],
['5.zip', 'reference/android/test/suitebuilder/TestSuiteBuilder.FailedToCreateTests.html'],
['6.zip', 'reference/android/widget/ProgressBar.html'],
['7.zip', 'reference/java/nio/ByteOrder.html'],
['8.zip', 'reference/java/util/concurrent/locks/ReentrantReadWriteLock.WriteLock.html'],
['9.zip', 'reference/org/apache/http/impl/cookie/NetscapeDraftSpec.html'],
['10.zip', 'shareables/icon_templates-v1.0.zip'],
['11.zip', 'shareables/icon_templates-v1.0/launcher/Launcher-template-250.ai'],
])),
],
debug=False)
  wsgiref.handlers.CGIHandler().run(application)