Changeset 12577 for main/ikobacustom.pcn


Ignore:
Timestamp:
10 Feb 2015, 09:39:55 (10 years ago)
Author:
Henrik Bettermann
Message:

'qualifications' must be a text field.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/interfaces.py

    r12572 r12577  
    313313        )
    314314
    315     qualifications = schema.List(
     315    qualifications = schema.Text(
    316316        title = _(u'Qualifications'),
    317         value_type = ResultEntryField(),
    318         required = False,
     317        description = u'Enter a list of certificates obtained.',
     318        required = False,
     319        readonly = False,
     320        )
     321
     322    certificates_object = schema.Choice(
     323        title = _(u'Certificates'),
     324        description = u'Select the document which contains scanned copies '
     325                      u'of your certificates. You must create such a '
     326                      u'document first.',
     327        source = CustomerDocumentSource(),
     328        required = False,
     329        )
     330
     331    referee1_name = schema.TextLine(
     332        title = _(u'First Referee Name'),
     333        required = False,
     334        readonly = False,
     335        )
     336
     337    referee1_address = schema.Text(
     338        title = _(u'First Referee Address'),
     339        required = False,
     340        readonly = False,
     341        )
     342
     343    referee1_license = schema.TextLine(
     344        title = _(u'First Referee License Number'),
     345        required = False,
     346        readonly = False,
     347        )
     348
     349    referee2_name = schema.TextLine(
     350        title = _(u'Second Referee Name'),
     351        required = False,
     352        readonly = False,
     353        )
     354
     355    referee2_address = schema.Text(
     356        title = _(u'Second Referee Address'),
     357        required = False,
     358        readonly = False,
     359        )
     360
     361    referee2_license = schema.TextLine(
     362        title = _(u'Second Referee License Number'),
     363        required = False,
     364        readonly = False,
     365        )
     366
     367    internship_address = schema.Text(
     368        title = _(u'Internship'),
     369        description = u'Enter name and address of company where you want to serve your internship.',
     370        required = False,
     371        readonly = False,
     372        )
     373
     374
     375
     376class IRPRContractOfficialUse(IIkobaObject):
     377    """Interface for editing RON official use data.
     378
     379    """
     380
     381    comment = schema.Text(
     382        title= _('Reason for rejection'),
     383        required = False,
     384        )
     385
     386
     387class IRPRContractProcess(IRPRContract, IRPRContractOfficialUse):
     388    """Interface for processing RON data.
     389    """
     390
     391    product_options = schema.List(
     392        title = _(u'Options/Fees'),
     393        value_type = ProductOptionField(),
     394        required = False,
     395        readonly = False,
    319396        default = [],
    320397        )
     398
     399class IRPRContractEdit(IRPRContract):
     400    """Interface for editing RON data by customers.
     401
     402    """
    321403
    322404    certificates = schema.Choice(
    323405        title = _(u'Certificates'),
    324406        source = CustomerDocumentSource(),
    325         required = False,
    326         )
    327 
    328     referee1_name = schema.TextLine(
    329         title = _(u'First Referee Name'),
    330         required = False,
    331         readonly = False,
    332         )
    333 
    334     referee1_address = schema.Text(
    335         title = _(u'First Referee Address'),
    336         required = False,
    337         readonly = False,
    338         )
    339 
    340     referee1_license = schema.TextLine(
    341         title = _(u'First Referee License Number'),
    342         required = False,
    343         readonly = False,
    344         )
    345 
    346     referee2_name = schema.TextLine(
    347         title = _(u'Second Referee Name'),
    348         required = False,
    349         readonly = False,
    350         )
    351 
    352     referee2_address = schema.Text(
    353         title = _(u'Second Referee Address'),
    354         required = False,
    355         readonly = False,
    356         )
    357 
    358     referee2_license = schema.TextLine(
    359         title = _(u'Second Referee License Number'),
    360         required = False,
    361         readonly = False,
    362         )
    363 
    364     internship_address = schema.Text(
    365         title = _(u'Internship'),
    366         description = u'Enter address of company where you want to serve your internship.',
    367         required = False,
    368         readonly = False,
    369         )
    370 
    371 
    372 
    373 class IRPRContractOfficialUse(IIkobaObject):
    374     """Interface for editing RON official use data.
    375 
    376     """
    377 
    378     comment = schema.Text(
    379         title= _('Reason for rejection'),
    380         required = False,
    381         )
    382 
    383 
    384 class IRPRContractProcess(IRPRContract, IRPRContractOfficialUse):
    385     """Interface for processing RON data.
    386     """
    387 
    388     product_options = schema.List(
    389         title = _(u'Options/Fees'),
    390         value_type = ProductOptionField(),
    391         required = False,
    392         readonly = False,
    393         default = [],
    394         )
    395 
    396 class IRPRContractEdit(IRPRContract):
    397     """Interface for editing RON data by customers.
    398 
    399     """
    400 
    401     certificates = schema.Choice(
    402         title = _(u'Certificates'),
    403         source = CustomerDocumentSource(),
    404         required = True,
    405         )
     407        required = True,
     408        )
Note: See TracChangeset for help on using the changeset viewer.