Example #1
0
def main():
  """Sets up handlers for the zip files."""
  fck_editor = zipserve.make_zip_handler('/home/ihab/software/projects/webatat-lab/webatat/third_party/fckeditor.zip')
  ext = zipserve.make_zip_handler('/home/ihab/software/projects/webatat-lab/webatat/third_party/ext.zip')
  
  application = webapp.WSGIApplication(
      [  ('/fckeditor/(.*)', fck_editor),
	('/ext/(.*)', ext),
      ])
  util.run_wsgi_app(application)
def main():
  """Sets up handlers for the zip files."""
  file_icons = zipserve.make_zip_handler('static/images/fileicons.zip')
  fck_editor = zipserve.make_zip_handler('third_party/fckeditor.zip')
  
  application = webapp.WSGIApplication(
      [('/static/images/fileicons/(.*)', file_icons),
       ('/fckeditor/(.*)', fck_editor),
      ])
  util.run_wsgi_app(application)
def main():
    """Sets up handlers for the zip files."""
    ck_editor = zipserve.make_zip_handler('third_party/ckeditor.zip')

    application = webapp.WSGIApplication([
        ('/ckeditor/(.*)', ck_editor),
    ])
    util.run_wsgi_app(application)
Example #4
0
def getZipHandler(**args):
    return ('/xheditor/(.*)',
            zipserve.make_zip_handler(
                '''D:\\Projects\\eric-guo\\plugins\\xheditor\\xheditor.zip'''))
Example #5
0
def getZipHandler(**args):
	return ('/xheditor/(.*)',zipserve.make_zip_handler('''D:\\work\\micolog\\plugins\\xheditor\\xheditor.zip'''))
Example #6
0
def getZipHandler(**args):
    return ('/xheditor/(.*)',zipserve.make_zip_handler('''D:\\Projects\\eric-guo\\plugins\\xheditor\\xheditor.zip'''))
def main():
    """Sets up handlers for the zip files."""
    ck_editor = zipserve.make_zip_handler("third_party/ckeditor.zip")

    application = webapp.WSGIApplication([("/ckeditor/(.*)", ck_editor)])
    util.run_wsgi_app(application)
Example #8
0
 def register_urlzip(self,name,zipfile):
     zipfile=os.path.join(self.dir,zipfile)
     self._handlerlist[name]=zipserve.make_zip_handler(zipfile)
Example #9
0
def getZipHandler(**args):
    return ('/xheditor/(.*)',
            zipserve.make_zip_handler(
                '''D:\\work\\micolog\\plugins\\xheditor\\xheditor.zip'''))
Example #10
0
def getZipHandler(**args):
    return ("/xheditor/(.*)", zipserve.make_zip_handler("""D:\\work\\micolog\\plugins\\xheditor\\xheditor.zip"""))
Example #11
0
 def register_urlzip(self, name, zipfile):
     zipfile = os.path.join(self.dir, zipfile)
     self._handlerlist[name] = zipserve.make_zip_handler(zipfile)
Example #12
0
                ('/admin/upload', admin.Upload),
                ('/admin/filemanager',admin.FileManager),
                ('/admin/uploadex', admin.UploadEx),

                ('.*',admin.Error404)
            ], debug=True, config=myconfig_dict)


micolog_app = webapp2.WSGIApplication(
            [   
                ('/', blog.MainPage),
                webapp2.Route('/post/<postid:\d+>', blog.SinglePost),
                webapp2.Route('/page/<page:\d+>', blog.SinglePost),
                ('/themes/[\\w\\-]+/templates/.*',theme.NotFound),
                ('/themes/(?P<prefix>[\\w\\-]+)/(?P<name>.+)', theme.GetFile),
                ('/tinymce/(.*)', zipserve.make_zip_handler('tinymce.zip')),
                ('/media/([^/]*)/{0,1}.*',blog.getMedia),
                ('/checkimg/', blog.CheckImg),
                #('/checkimg2/', blog.CheckImg2),
                ('/checkcode/', blog.CheckCode),
                ('/skin',blog.ChangeTheme),
                ('/feed', blog.FeedHandler),
                ('/feed/comments',blog.CommentsFeedHandler),
                ('/sitemap', blog.SitemapHandler),
                ('/sitemap\.xml', blog.SitemapHandler),
                ('/post_comment',blog.Post_comment),
                ('/category/(.*)',blog.entriesByCategory),
                ('/(\d{4})/(\d{1,2})',blog.archive_by_month),
                ('/tag/(.*)',blog.entriesByTag),

                webapp2.Route('/do/<slug:\w+>', blog.do_action),
Example #13
0
def getZipHandler(**args):
    return ("/xheditor/(.*)", zipserve.make_zip_handler("""D:\\Projects\\eric-guo\\plugins\\xheditor\\xheditor.zip"""))