Add support for sending new messages.

This commit is contained in:
Lance Edgar 2016-02-05 14:42:56 -06:00
parent 9d802d8f25
commit 687b83e2e1
9 changed files with 228 additions and 18 deletions

View file

@ -2,7 +2,7 @@
################################################################################
#
# Rattail -- Retail Software Framework
# Copyright © 2010-2014 Lance Edgar
# Copyright © 2010-2016 Lance Edgar
#
# This file is part of Rattail.
#
@ -20,11 +20,12 @@
# along with Rattail. If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
"""
Autocomplete View
"""
from __future__ import unicode_literals, absolute_import
from tailbone.views.core import View
from tailbone.db import Session
@ -73,4 +74,4 @@ class AutocompleteView(View):
if not term:
return []
results = self.query(term).all()
return [{u'label': self.display(x), u'value': self.value(x)} for x in results]
return [{'label': self.display(x), 'value': self.value(x)} for x in results]