OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 """This file defines datastore models used throughout the app.""" |
| 6 |
| 7 __author__ = 'agable@google.com (Aaron Gable)' |
| 8 |
| 9 |
| 10 from google.appengine.ext import ndb |
| 11 |
| 12 |
| 13 class EmailList(ndb.Model): |
| 14 """Represents a list of email addresses. |
| 15 |
| 16 Does not perform any validation on the email addresses. |
| 17 |
| 18 This app uses the id/name (unique datastore key) of the object to hold the |
| 19 google-group email address to which all these emails belong. |
| 20 |
| 21 Attributes: |
| 22 emails: List of strings, one per email. |
| 23 """ |
| 24 emails = ndb.StringProperty(repeated=True) |
OLD | NEW |