Source

py4u-opensource / configure.py

Full commit
class Message(object):
    def __init__(self, content, type = "alert-success"):
        # ALERT_CLASS= {'BLOCK':'alert-block','ERROR':'alert-error', 'SUCESS':'alert-success','INFO':'alert-info'}
        self.content = content
        self.type = type

class Configure(object):
    DOMAIN = "py4u.com"
    TITLE = "PY4U" #<title>{{title}}</title>
    HEADER_TITLE = "PY4U"#<h1>{{title}}</h1>
    SLOGAN = "a place share something about <a href='http://www.python.org/'>python</a>"
    POSTNUMBER_PER_PAGE = 15
    ActivityNUMBER_PER_PAGE = 5
    POST_SAVE = 7 #days
    #NOTIFY_MESSAGE = Message("")
    #{'BLOCK':'alert-block','ERROR':'alert-error', 'SUCESS':'alert-success','INFO':'alert-info'}
    

configure = Configure()