Add support for sending new messages.
This commit is contained in:
parent
9d802d8f25
commit
687b83e2e1
9 changed files with 228 additions and 18 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.
|
||||
#
|
||||
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue