Add basic form validation when sending new messages
This avoids the message body for now, since that's implemented a couple different ways in the real world...
This commit is contained in:
parent
378f1ae7fb
commit
94a7a15e6d
4 changed files with 26 additions and 5 deletions
|
@ -2,7 +2,7 @@
|
|||
################################################################################
|
||||
#
|
||||
# Rattail -- Retail Software Framework
|
||||
# Copyright © 2010-2014 Lance Edgar
|
||||
# Copyright © 2010-2016 Lance Edgar
|
||||
#
|
||||
# This file is part of Rattail.
|
||||
#
|
||||
|
@ -24,18 +24,20 @@
|
|||
FormAlchemy Forms
|
||||
"""
|
||||
|
||||
from __future__ import unicode_literals
|
||||
from __future__ import unicode_literals, absolute_import
|
||||
|
||||
from rattail.core import Object
|
||||
|
||||
from pyramid.renderers import render
|
||||
from ..db import Session
|
||||
|
||||
from tailbone.db import Session
|
||||
|
||||
|
||||
class AlchemyForm(Object):
|
||||
"""
|
||||
Form to contain a :class:`formalchemy.FieldSet` instance.
|
||||
"""
|
||||
|
||||
id = None
|
||||
create_label = "Create"
|
||||
update_label = "Save"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue