Ignore:
Timestamp:
23 Nov 2014, 16:54:27 (10 years ago)
Author:
Henrik Bettermann
Message:

Implement customer self-registration.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/interfaces.py

    r12018 r12039  
    205205
    206206
    207 class ICustomerRequestPW(ICustomer):
    208     """Representation of an customer for first-time password request.
     207class ICustomerRequestPW(IIkobaObject):
     208    """Representation of a customer for first-time password request.
    209209
    210210    This interface is used when customers use the requestpw page to
     
    228228
    229229
     230class ICustomerCreate(IIkobaObject):
     231    """Representation of an customer for account creation.
     232
     233    This interface is used when customers use the createaccount page.
     234    """
     235
     236    firstname = schema.TextLine(
     237        title = _(u'First Name'),
     238        required = True,
     239        )
     240
     241    middlename = schema.TextLine(
     242        title = _(u'Middle Name'),
     243        required = False,
     244        )
     245
     246    lastname = schema.TextLine(
     247        title = _(u'Last Name (Surname)'),
     248        required = True,
     249        )
     250
     251    email = schema.ASCIILine(
     252        title = _(u'Email Address'),
     253        required = True,
     254        constraint=validate_email,
     255        )
     256
     257
    230258# Customer document interfaces
    231259
Note: See TracChangeset for help on using the changeset viewer.