Dexterity address behavior.
Project description
collective.address
This package provides an Dexterity behavior for location addresses to be used in Dexterity based types.
How to provide a default value for the country field
If you want to provide a default value for the IAddress’ country field, you can provide an ComputedWidgetAttribute adapter like so:
from zope.component import provideAdapter from z3c.form.widget import ComputedWidgetAttribute from collective.address.behaviors import IAddress DEFAULT_COUNTRY = "040" # Austria provideAdapter(ComputedWidgetAttribute( lambda data: DEFAULT_COUNTRY, field=IAddress['country']), name='default')
Changelog
1.6 (2019-06-07)
Python 3 compatibilty [petschki]
Added french translation. [bsuttor]
Added italian translation. [arsenico13]
Added update.sh script for i18ndude taken directly from plonecli. [arsenico13]
Updated DE .po file with the update.sh script. [arsenico13]
1.5 (2017-01-13)
Translate country name via pycountry translation catalog. [thet]
Code cleanup. [thet]
1.4 (2016-10-06)
Add behavior shortnames. [thet]
Remove for attribute in behavior registrations, as this is unsupported. [thet]
Change all URL fields to use zope.schema.URI. [thet]
Added behavior for social media urls. [agitator]
1.3.2 (2015-09-24)
Encode SearchableText indexer result in utf-8. [thet]
1.3.1 (2015-08-27)
Fix error on creating the title for Person types with non-ascii characters in names. [thet]
1.3 (2015-07-21)
Let IAddressable not derive from schema.Model to have a pure marker Interface. [thet]
Make sure, all SearchableText parts are seperated by a space. [thet]
1.2 (2015-07-15)
Require the last_name attribute of IPerson behavior. [thet]
For the IPerson behavior, compute the title from first and last name and add title (not required, hidden) and description to the IPerson behavior. [thet]
1.1 (2015-03-04)
Add IContact and IPerson behaviors in addition to the IAddress behavior. [thet]
PEP 8. [thet]
1.0 (2014-04-30)
initial.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file collective.address-1.6.tar.gz
.
File metadata
- Download URL: collective.address-1.6.tar.gz
- Upload date:
- Size: 15.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85b5ce50c1c3c3dd4e3533ef2950f0794ccd919ff41ef76357741e2c31d0f666 |
|
MD5 | 179c8664b224889f92bc6948067851c6 |
|
BLAKE2b-256 | de87bae0a906d3c5fad7fc7717e84c5229367072b6d855becc1008902640abb1 |