skip to navigation
skip to content

collective.address 1.3.2

Dexterity address behavior.


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
    lambda data: DEFAULT_COUNTRY,
    field=IAddress['country']), name='default')


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.
File Type Py Version Uploaded on Size
collective.address-1.3.2.tar.gz (md5) Source 2015-09-24 13KB
  • Downloads (All Versions):
  • 6 downloads in the last day
  • 108 downloads in the last week
  • 589 downloads in the last month