Source

wheezy.web / demos / guestbook / models.py

""" ``models`` module.
"""

from datetime import datetime

from wheezy.core.comp import u


class Greeting(object):

    def __init__(self, id=0, created_on=None, author=u(''), message=u('')):
        self.id = id
        self.created_on = created_on or datetime.now()
        self.author = author
        self.message = message