@@ -0,0 +1,2086 @@
+# Copyright 2013 the Melange authors.%0A#%0A# Licensed under the Apache License, Version 2.0 (the %22License%22);%0A# you may not use this file except in compliance with the License.%0A# You may obtain a copy of the License at%0A#%0A#   http://www.apache.org/licenses/LICENSE-2.0%0A#%0A# Unless required by applicable law or agreed to in writing, software%0A# distributed under the License is distributed on an %22AS IS%22 BASIS,%0A# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A# See the License for the specific language governing permissions and%0A# limitations under the License.%0A%0A%22%22%22This module contains a model that stores an address.%22%22%22%0A%0Afrom google.appengine.ext import ndb%0A%0Afrom soc.models import countries%0A%0A%0Aclass Address(ndb.Model):%0A  %22%22%22Model to store address information.%22%22%22%0A%0A  #: Optional name information to link a specific person to this address.%0A  #: Can only be ASCII, not UTF-8 text, because it may be used as%0A  #: a shipping address.%0A  name = ndb.StringProperty()%0A%0A  #: Required field containing street information. Can only be ASCII,%0A  #: not UTF-8 text, because it may be used as a shipping address.%0A  street = ndb.StringProperty(requred=True)%0A%0A  #: Required field containing city information. Can only be ASCII,%0A  #: not UTF-8 text, because it may be used as a shipping address.%0A  city = ndb.StringProperty(required=True)%0A%0A  #: Optional field containing province or state information. It is used only%0A  #: for certain countries. Can only be ASCII, not UTF-8 text, because%0A  #: it may be used as a shipping address.%0A  province = ndb.StringProperty()%0A%0A  #: Required field containing residence country or territory information.%0A  #: Can only be ASCII, not UTF-8 text, because it may be used as %0A  #: a shipping address.%0A  country = ndb.StringProperty(%0A      required=True, choices=countries.COUNTRIES_AND_TERRITORIES)%0A%0A  #: Required field containing residence postal code, also known as ZIP code%0A  #: in some countries, information.Can only be ASCII, not UTF-8 text, because%0A  #: it may be used as a shipping address.%0A  postal_code = ndb.StringProperty(required=True)%0A

Address model added.