config.py
<code data-origin="
" style="border: 0px; display: block;font-family: Consolas, Inconsolata, Courier, monospace; font-weight: bold; white-space: pre; margin: 0px;border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); padding: 0px 5px; margin: 0px 2px;font-size: 1em; letter-spacing: -1px; font-weight: bold;">#!/usr/bin/env python#!/usr/bin/env python
author = 'pyphrb' import web
class Route(object):
def __init__(self): self.urlConfig = None def url(self): self.urlConfig = ( "/.*", "hello" ) return self.urlConfig
class Application(object):
def __init__(self, URLS, GLOBALS): self.urls = URLS self.globals = GLOBALS self.app = None def application(self): self.app = web.application(self.urls, self.globals) return self.app
class Dbconfig(object):
def __init__(self): self.db = None
author = 'pyphrb' import web
class Route(object):
def __init__(self): self.urlConfig = None def url(self): self.urlConfig = ( "/.*", "hello" ) return self.urlConfig
class Application(object):
def __init__(self, URLS, GLOBALS): self.urls = URLS self.globals = GLOBALS self.app = None def application(self): self.app = web.application(self.urls, self.globals) return self.app
class Dbconfig(object):
def __init__(self): self.db = None
<code data-origin="" style="border: 0px; display: block;font-family: Consolas, Inconsolata, Courier, monospace; font-weight: bold; white-space: pre; margin: 0px;border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); padding: 0px 5px; margin: 0px 2px;font-size: 1em; letter-spacing: -1px; font-weight: bold;">
class hello: def GET(self): return "hello world"
class hello: def GET(self): return "hello world"
-
Notifications
You must be signed in to change notification settings - Fork 0
pyphrb/webpyMvc
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
一个基于web.py的简单的MVC的框架
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published