Skip to content

pyphrb/webpyMvc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webpyMVC一个基于web.py的MVC简洁框架

Manager.py

config.py
<code data-origin="
#!/usr/bin/env python

coding=utf-8

author = 'pyphrb' import web

class Route(object):

def __init__(self):
    self.urlConfig = None

def url(self):
    self.urlConfig = (
        &quot;/.*&quot;, &quot;hello&quot;

        )
    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

" 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

coding=utf-8

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

control.py

<code data-origin="

class hello: def GET(self): return "hello world"

" 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"

About

一个基于web.py的简单的MVC的框架

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages