A
download Address.py
Language: Python
LOC: 26
Project Info
Public Action Center(pac)
Server: Savannah NonGNU
Type: cvs
...U\p\pac\pac\pac\PACDefault\
   __init__.py
   ActionEMail.py
   ActionFax.py
   ActionLetter.py
   ActionPhone.py
   ActionRecipient.py
   ActionRecipientList.py
   ActionTelegram.py
   Address.py
   Committee.py
   config.py
   ContactInfo.py
   CustomizationPolicy.py
   FormLetter.py
   PACTool.py
   properties.py
   PublicAction.py
   TalkingPoint.py

from Products.Archetypes.public import *
from Products.Archetypes.TemplateMixin import TemplateMixin

from Products.PACDefault.config import *

schema = BaseSchema + Schema((

    StringField('address1', 
        widget=StringWidget(label='Address Line 1'),
        ),
    StringField('address2', 
        widget=StringWidget(label='Address Line 2'),
        ),
    StringField('city', 
        widget=StringWidget(label='City'),
        ),
    StringField('state', 
        widget=StringWidget(label='State'),
        ),
    StringField('zip', 
        widget=StringWidget(label='Zip'),
        ),

    )) + TemplateMixin.schema

class Address(TemplateMixin, BaseContent):
    """Generic Address object."""
    schema = schema
    archetype_name = "Address"
    actions = TemplateMixin.actions

registerType(Address)

About Koders | Resources | Downloads | Support | Black Duck | Terms of Service | DMCA | Privacy Policy | Contact Us