Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
User definition.

This is the user definition used by :mod:`repoze.who`, which requires at
least the ``user_name`` column.

src/h/i/hiringpond-0.1dev/hiringpond/websetup/bootstrap.py   hiringpond(Download)
    from sqlalchemy.exc import IntegrityError
    try:
        u = model.User()
        u.user_name = u'manager'
        u.display_name = u'Example manager'
        model.DBSession.add(p)
 
        u1 = model.User()
        u1.user_name = u'editor'
        u1.display_name = u'Example editor'