Changeset 12600 for main


Ignore:
Timestamp:
11 Feb 2015, 18:41:56 (10 years ago)
Author:
Henrik Bettermann
Message:

Add more RPC fields.

Add signatures in footer of RPC contract slip.

Location:
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers
Files:
2 edited

Legend:

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

    r12534 r12600  
    1717##
    1818
     19import grok
    1920from zope.component import getUtility
    2021from waeup.ikoba.interfaces import IIkobaUtils, IExtFileStore
     
    2223    PDFContractSlipPage, CustomerBaseEditFormPage)
    2324from ikobacustom.pcn.interfaces import MessageFactory as _
     25from ikobacustom.pcn.customers.interfaces import IRPCContract
    2426
    2527class PDFContractSlipPage(PDFContractSlipPage):
     
    3234        return self.context.title
    3335
     36    def _signatures(self):
     37        return ()
     38
     39    def _sigsInFooter(self):
     40        return ()
     41
     42class PDFRPCContractSlipPage(PDFContractSlipPage):
     43    """Deliver pdf file including metadata.
     44    """
     45
     46    grok.context(IRPCContract)
     47
     48    def _sigsInFooter(self):
     49        return (_('Date, Signature of Witness'),
     50                _('Date, Signature of Registrant'),
     51                )
    3452
    3553class CustomerBaseEditFormPage(CustomerBaseEditFormPage):
  • main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/interfaces.py

    r12591 r12600  
    420420    """
    421421
    422     state_of_origin = schema.Choice(
     422    nationality = schema.Choice(
    423423        vocabulary = nats_vocab,
    424         title = _(u'State of Origin'),
     424        title = _(u'Nationality'),
     425        required = False,
     426        )
     427
     428    nationality_aquired = schema.Choice(
     429        values=[_(u'birth'), _(u'naturalization')],
     430        title = _(u'Nationality acquired by'),
    425431        required = False,
    426432        )
     
    500506        )
    501507
     508    witness = schema.Text(
     509        title = _(u'Witness'),
     510        description = u'Enter name and adress of witness.',
     511        required = False,
     512        )
     513
    502514
    503515class IRPCContractOfficialUse(IIkobaObject):
Note: See TracChangeset for help on using the changeset viewer.