80 # (public) name information |
80 # (public) name information |
81 #==================================================================== |
81 #==================================================================== |
82 |
82 |
83 #: Required field storing the parts of the Role's name |
83 #: Required field storing the parts of the Role's name |
84 #: corresponding to the field names; displayed publicly. |
84 #: corresponding to the field names; displayed publicly. |
85 #: given_name can only be lower ASCII, not UTF-8 text, because it is |
85 #: given_name can only be ASCII, not UTF-8 text, because it is |
86 #: used, for example, as part of the shipping (mailing) address. |
86 #: used, for example, as part of the shipping (mailing) address. |
87 given_name = db.StringProperty(required=True, |
87 given_name = db.StringProperty(required=True, |
88 verbose_name=ugettext('First (given) name')) |
88 verbose_name=ugettext('First (given) name')) |
89 given_name.help_text = ugettext('lower ASCII characters only') |
89 given_name.help_text = ugettext( |
|
90 '<a href="http://en.wikipedia.org/wiki/ASCII">ASCII</a> characters only') |
90 given_name.group = ugettext("1. Public Info") |
91 given_name.group = ugettext("1. Public Info") |
91 |
92 |
92 #: Required field storing the parts of the Role's name |
93 #: Required field storing the parts of the Role's name |
93 #: corresponding to the field names; displayed publicly. |
94 #: corresponding to the field names; displayed publicly. |
94 #: Surname can only be lower ASCII, not UTF-8 text, because it is |
95 #: Surname can only be ASCII, not UTF-8 text, because it is |
95 #: used, for example, as part of the shipping (mailing) address. |
96 #: used, for example, as part of the shipping (mailing) address. |
96 surname = db.StringProperty( |
97 surname = db.StringProperty( |
97 required=True, |
98 required=True, |
98 verbose_name=ugettext('Last (family) name')) |
99 verbose_name=ugettext('Last (family) name')) |
99 surname.help_text = ugettext('lower ASCII characters only') |
100 surname.help_text = ugettext( |
|
101 '<a href="http://en.wikipedia.org/wiki/ASCII">ASCII</a> characters only') |
100 surname.group = ugettext("1. Public Info") |
102 surname.group = ugettext("1. Public Info") |
101 |
103 |
102 #: Optional field used as a display name, such as for awards |
104 #: Optional field used as a display name, such as for awards |
103 #: certificates. Should be the entire name in the format |
105 #: certificates. Should be the entire name in the format |
104 #: the Role would like it displayed (could be surname followed by |
106 #: the Role would like it displayed (could be surname followed by |
177 #==================================================================== |
179 #==================================================================== |
178 # (private) contact information |
180 # (private) contact information |
179 #==================================================================== |
181 #==================================================================== |
180 |
182 |
181 #: Required field containing residence street address; kept private. |
183 #: Required field containing residence street address; kept private. |
182 #: Residence street address can only be lower ASCII, not UTF-8 text, because |
184 #: Residence street address can only be ASCII, not UTF-8 text, because |
183 #: it may be used as a shipping address. |
185 #: it may be used as a shipping address. |
184 res_street = db.StringProperty(required=True, |
186 res_street = db.StringProperty(required=True, |
185 verbose_name=ugettext('Street address')) |
187 verbose_name=ugettext('Street address')) |
186 res_street.help_text = ugettext( |
188 res_street.help_text = ugettext( |
187 'street number and name, lower ASCII characters only') |
189 'street number and name, ' |
|
190 '<a href="http://en.wikipedia.org/wiki/ASCII">ASCII</a> characters only') |
188 res_street.group = ugettext("2. Contact Info (Private)") |
191 res_street.group = ugettext("2. Contact Info (Private)") |
189 |
192 |
190 #: Required field containing residence address city; kept private. |
193 #: Required field containing residence address city; kept private. |
191 #: Residence city can only be lower ASCII, not UTF-8 text, because it |
194 #: Residence city can only be ASCII, not UTF-8 text, because it |
192 #: may be used as a shipping address. |
195 #: may be used as a shipping address. |
193 res_city = db.StringProperty(required=True, |
196 res_city = db.StringProperty(required=True, |
194 verbose_name=ugettext('City')) |
197 verbose_name=ugettext('City')) |
195 res_city.help_text = ugettext('lower ASCII characters only') |
198 res_city.help_text = ugettext( |
|
199 '<a href="http://en.wikipedia.org/wiki/ASCII">ASCII</a> characters only') |
196 res_city.group = ugettext("2. Contact Info (Private)") |
200 res_city.group = ugettext("2. Contact Info (Private)") |
197 |
201 |
198 #: Optional field containing residence address state or province; kept |
202 #: Optional field containing residence address state or province; kept |
199 #: private. Residence state/province can only be lower ASCII, not UTF-8 |
203 #: private. Residence state/province can only be ASCII, not UTF-8 |
200 #: text, because it may be used as a shipping address. |
204 #: text, because it may be used as a shipping address. |
201 res_state = db.StringProperty( |
205 res_state = db.StringProperty( |
202 verbose_name=ugettext('State/Province')) |
206 verbose_name=ugettext('State/Province')) |
203 res_state.help_text = ugettext( |
207 res_state.help_text = ugettext( |
204 'optional if country/territory does not have states or provinces, ' |
208 'optional if country/territory does not have states or provinces, ' |
205 'lower ASCII characters only') |
209 '<a href="http://en.wikipedia.org/wiki/ASCII">ASCII</a> characters only') |
206 res_state.group = ugettext("2. Contact Info (Private)") |
210 res_state.group = ugettext("2. Contact Info (Private)") |
207 |
211 |
208 #: Required field containing residence address country or territory; kept |
212 #: Required field containing residence address country or territory; kept |
209 #: private. |
213 #: private. |
210 res_country = db.StringProperty(required=True, |
214 res_country = db.StringProperty(required=True, |
212 choices=countries.COUNTRIES_AND_TERRITORIES) |
216 choices=countries.COUNTRIES_AND_TERRITORIES) |
213 res_country.group = ugettext("2. Contact Info (Private)") |
217 res_country.group = ugettext("2. Contact Info (Private)") |
214 |
218 |
215 #: Required field containing residence address postal code (ZIP code in |
219 #: Required field containing residence address postal code (ZIP code in |
216 #: the United States); kept private. Residence postal code can only be |
220 #: the United States); kept private. Residence postal code can only be |
217 #: lower ASCII, not UTF-8 text, because it may be used as a shipping address. |
221 #: ASCII, not UTF-8 text, because it may be used as a shipping address. |
218 res_postalcode = db.StringProperty(required=True, |
222 res_postalcode = db.StringProperty(required=True, |
219 verbose_name=ugettext('ZIP/Postal Code')) |
223 verbose_name=ugettext('ZIP/Postal Code')) |
220 res_postalcode.help_text = ugettext('lower ASCII characters only') |
224 res_postalcode.help_text = ugettext( |
|
225 '<a href="http://en.wikipedia.org/wiki/ASCII">ASCII</a> characters only') |
221 res_postalcode.group = ugettext("2. Contact Info (Private)") |
226 res_postalcode.group = ugettext("2. Contact Info (Private)") |
222 |
227 |
223 #: Required field containing a phone number that will be used to |
228 #: Required field containing a phone number that will be used to |
224 #: contact the user, also supplied to shippers; kept private. |
229 #: contact the user, also supplied to shippers; kept private. |
225 phone = db.PhoneNumberProperty( |
230 phone = db.PhoneNumberProperty( |
239 publish_location.group = ugettext("2. Contact Info (Private)") |
244 publish_location.group = ugettext("2. Contact Info (Private)") |
240 |
245 |
241 #: Optional field containing a separate shipping street address; kept |
246 #: Optional field containing a separate shipping street address; kept |
242 #: private. If shipping address is not present in its entirety, the |
247 #: private. If shipping address is not present in its entirety, the |
243 #: residence address will be used instead. Shipping street address can only |
248 #: residence address will be used instead. Shipping street address can only |
244 #: be lower ASCII, not UTF-8 text, because, if supplied, it is used as a |
249 #: be ASCII, not UTF-8 text, because, if supplied, it is used as a |
245 #: shipping address. |
250 #: shipping address. |
246 ship_street = db.StringProperty( |
251 ship_street = db.StringProperty( |
247 verbose_name=ugettext('Shipping Street address')) |
252 verbose_name=ugettext('Shipping Street address')) |
248 ship_street.help_text = ugettext( |
253 ship_street.help_text = ugettext( |
249 'street number and name, lower ASCII characters only, ' |
254 'street number and name, ' |
|
255 '<a href="http://en.wikipedia.org/wiki/ASCII">ASCII</a> characters only' |
250 'fill in only if not same as above') |
256 'fill in only if not same as above') |
251 ship_street.group = ugettext("3. Shipping Info (Private and Optional)") |
257 ship_street.group = ugettext("3. Shipping Info (Private and Optional)") |
252 |
258 |
253 #: Optional field containing shipping address city; kept private. |
259 #: Optional field containing shipping address city; kept private. |
254 #: Shipping city can only be lower ASCII, not UTF-8 text, because, if |
260 #: Shipping city can only be ASCII, not UTF-8 text, because, if |
255 #: supplied, it is used as a shipping address. |
261 #: supplied, it is used as a shipping address. |
256 ship_city = db.StringProperty( |
262 ship_city = db.StringProperty( |
257 verbose_name=ugettext('Shipping City')) |
263 verbose_name=ugettext('Shipping City')) |
258 ship_city.help_text = ugettext('lower ASCII characters only' |
264 ship_city.help_text = ugettext( |
259 'fill in only if not same as above') |
265 '<a href="http://en.wikipedia.org/wiki/ASCII">ASCII</a> characters only' |
|
266 'fill in only if not same as above') |
260 ship_city.group = ugettext("3. Shipping Info (Private and Optional)") |
267 ship_city.group = ugettext("3. Shipping Info (Private and Optional)") |
261 |
268 |
262 #: Optional field containing shipping address state or province; kept |
269 #: Optional field containing shipping address state or province; kept |
263 #: private. Shipping state/province can only be lower ASCII, not UTF-8 |
270 #: private. Shipping state/province can only be ASCII, not UTF-8 |
264 #: text, because, if supplied, it is used as a shipping address. |
271 #: text, because, if supplied, it is used as a shipping address. |
265 ship_state = db.StringProperty( |
272 ship_state = db.StringProperty( |
266 verbose_name=ugettext('Shipping State/Province')) |
273 verbose_name=ugettext('Shipping State/Province')) |
267 ship_state.help_text = ugettext( |
274 ship_state.help_text = ugettext( |
268 'optional if country/territory does not have states or provinces, ' |
275 'optional if country/territory does not have states or provinces, ' |
269 'lower ASCII characters only, fill in only if not same as above') |
276 '<a href="http://en.wikipedia.org/wiki/ASCII">ASCII</a> characters only ' |
|
277 'fill in only if not same as above') |
270 ship_state.group = ugettext("3. Shipping Info (Private and Optional)") |
278 ship_state.group = ugettext("3. Shipping Info (Private and Optional)") |
271 |
279 |
272 #: Optional field containing shipping address country or territory; kept |
280 #: Optional field containing shipping address country or territory; kept |
273 #: private. |
281 #: private. |
274 ship_country = db.StringProperty( |
282 ship_country = db.StringProperty( |
277 ship_country.help_text = ugettext('fill in only if not same as above') |
285 ship_country.help_text = ugettext('fill in only if not same as above') |
278 ship_country.group = ugettext("3. Shipping Info (Private and Optional)") |
286 ship_country.group = ugettext("3. Shipping Info (Private and Optional)") |
279 |
287 |
280 #: Optional field containing shipping address postal code (ZIP code in |
288 #: Optional field containing shipping address postal code (ZIP code in |
281 #: the United States); kept private. Shipping postal code can only be |
289 #: the United States); kept private. Shipping postal code can only be |
282 #: lower ASCII, not UTF-8 text, because, if supplied, it is used as a |
290 #: ASCII, not UTF-8 text, because, if supplied, it is used as a |
283 #: shipping address. |
291 #: shipping address. |
284 ship_postalcode = db.StringProperty( |
292 ship_postalcode = db.StringProperty( |
285 verbose_name=ugettext('Shipping ZIP/Postal Code')) |
293 verbose_name=ugettext('Shipping ZIP/Postal Code')) |
286 ship_postalcode.help_text = ugettext('lower ASCII characters only' |
294 ship_postalcode.help_text = ugettext( |
287 'fill in only if not same as above') |
295 '<a href="http://en.wikipedia.org/wiki/ASCII">ASCII</a> characters only' |
|
296 'fill in only if not same as above') |
288 ship_postalcode.group = ugettext("3. Shipping Info (Private and Optional)") |
297 ship_postalcode.group = ugettext("3. Shipping Info (Private and Optional)") |
289 |
298 |
290 |
299 |
291 #==================================================================== |
300 #==================================================================== |
292 # (private) personal information |
301 # (private) personal information |