Ignore:
Timestamp:
23 Sep 2016, 16:38:53 (8 years ago)
Author:
Henrik Bettermann
Message:

Further customizations.

Location:
main/ikobacustom.uniben/trunk/src/ikobacustom/uniben
Files:
4 added
12 edited

Legend:

Unmodified
Added
Removed
  • main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/customers/batching.py

    r14181 r14184  
    2424from ikobacustom.uniben.customers.interfaces import (
    2525    IUnibenCustomer,
    26     IUnibenCustomerDocument, IUnibenContract)
     26    IUnibenCustomerDocument, IRIAAContract)
    2727from ikobacustom.uniben.interfaces import MessageFactory as _
    2828
     
    3737
    3838
    39 class UnibenCustomerDocumentProcessor(CustomerDocumentProcessorBase):
     39class UnibenCustomerPDFDocumentProcessor(CustomerDocumentProcessorBase):
    4040    """A batch processor for IUnibenCustomerDocument objects.
    4141    """
    42     util_name = 'unibencustomerdocumentprocessor'
     42    util_name = 'unibencustomerpdfdocumentprocessor'
    4343    grok.name(util_name)
    44     name = _('Uniben Customer Document Processor')
     44    name = _('Uniben Customer PDF Document Processor')
    4545    iface = IUnibenCustomerDocument
    46     factory_name = 'waeup.UnibenCustomerDocument'
     46    factory_name = 'waeup.UnibenCustomerPDFDocument'
    4747
    4848
    49 class UnibenContractProcessor(ContractProcessorBase):
    50     """A batch processor for IUnibenContract objects.
     49class RIAAContractProcessor(ContractProcessorBase):
     50    """A batch processor for IRIAAContract objects.
    5151    """
    52     util_name = 'unibencontractprocessor'
     52    util_name = 'riaacontractprocessor'
    5353    grok.name(util_name)
    54     name = _('Uniben Customer Contract Processor')
    55     iface = IUnibenContract
    56     factory_name = 'waeup.UnibenContract'
     54    name = _('RIAA Contract Processor')
     55    iface = IRIAAContract
     56    factory_name = 'waeup.RIAAContract'
  • main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/customers/contracts.py

    r14181 r14184  
    2828from ikobacustom.uniben.interfaces import MessageFactory as _
    2929from ikobacustom.uniben.customers.interfaces import (
    30     IUnibenContract, IUnibenContractEdit, IUnibenContractProcess,
    31     IUnibenContractOfficialUse)
     30    IRIAAContract, IRIAAContractEdit, IRIAAContractProcess,
     31    IRIAAContractOfficialUse)
    3232
    3333
    3434class UnibenContract(ContractBase):
    35     """This is a sample contract.
     35    """This is a baseclass contract.
     36    """
     37
     38class RIAAContract(UnibenContract):
     39    """Research and Innovative Achievement Award
    3640    """
    3741
    3842    grok.implements(
    39         IUnibenContractProcess,
    40         IUnibenContract,
    41         IUnibenContractEdit,
     43        IRIAAContractProcess,
     44        IRIAAContract,
     45        IRIAAContractEdit,
    4246        ICustomerNavigation)
    4347
    44     contract_category = 'sample'
     48    contract_category = 'riaa'
    4549
    46     form_fields_interface = IUnibenContract
     50    form_fields_interface = IRIAAContract
    4751
    48     edit_form_fields_interface = IUnibenContractEdit
     52    edit_form_fields_interface = IRIAAContractEdit
    4953
    50     ou_form_fields_interface = IUnibenContractOfficialUse
     54    ou_form_fields_interface = IRIAAContractOfficialUse
    5155
    52     check_docs_interface = IUnibenContract
     56    check_docs_interface = IRIAAContract
    5357
    54 UnibenContract = attrs_to_fields(UnibenContract)
     58RIAAContract = attrs_to_fields(RIAAContract)
    5559
    5660
    5761# Contracts must be importable. So we might need a factory.
    58 class UnibenContractFactory(grok.GlobalUtility):
    59     """A factory for contracts.
     62class RIAAContractFactory(grok.GlobalUtility):
     63    """A factory for RIAAContract.
    6064    """
    6165    grok.implements(IFactory)
    62     grok.name(u'waeup.UnibenContract')
    63     title = u"Create a new contract.",
    64     description = u"This factory instantiates new sample contract instances."
     66    grok.name(u'waeup.RIAAContract')
     67    title = u"Create a new riaa contract.",
     68    description = u"This factory instantiates new riaa contract instances."
    6569
    6670    def __call__(self, *args, **kw):
    67         return UnibenContract(*args, **kw)
     71        return RIAAContract(*args, **kw)
    6872
    6973    def getInterfaces(self):
    70         return implementedBy(UnibenContract)
     74        return implementedBy(RIAAContract)
  • main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/customers/documents.py

    r14181 r14184  
    2626from waeup.ikoba.customers.documents import CustomerDocumentBase
    2727from ikobacustom.uniben.interfaces import MessageFactory as _
    28 from ikobacustom.uniben.customers.interfaces import IUnibenCustomerDocument
     28from ikobacustom.uniben.customers.interfaces import (
     29    IUnibenCustomerDocument, IUnibenCustomerPDFDocument)
    2930
    3031
     
    4041    # only one file per Document object. Thus the following
    4142    # tuple should contain only a single filename string.
    42     filenames = ('sample',)
     43    filenames = ('scan',)
    4344
    4445    form_fields_interface = IUnibenCustomerDocument
     
    6162    def getInterfaces(self):
    6263        return implementedBy(UnibenCustomerDocument)
     64
     65class UnibenCustomerPDFDocument(CustomerDocumentBase):
     66    """This is a sample customer document.
     67    """
     68
     69    grok.implements(IUnibenCustomerPDFDocument, ICustomerNavigation)
     70    grok.provides(IUnibenCustomerPDFDocument)
     71
     72    filenames = ('scan.pdf',)
     73
     74    form_fields_interface = IUnibenCustomerPDFDocument
     75
     76UnibenCustomerPDFDocument = attrs_to_fields(UnibenCustomerPDFDocument)
     77
     78
     79class UnibenCustomerPDFDocumentFactory(grok.GlobalUtility):
     80    """A factory for customer documents.
     81    """
     82    grok.implements(IFactory)
     83    grok.name(u'waeup.UnibenCustomerPDFDocument')
     84    title = u"Create a new document.",
     85    description = u"This factory instantiates new document instances."
     86
     87    def __call__(self, *args, **kw):
     88        return UnibenCustomerPDFDocument(*args, **kw)
     89
     90    def getInterfaces(self):
     91        return implementedBy(UnibenCustomerPDFDocument)
  • main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/customers/export.py

    r14181 r14184  
    2222    CustomerExporter, CustomerDocumentExporterBase, ContractExporterBase)
    2323from ikobacustom.uniben.customers.interfaces import (
    24     IUnibenCustomer, IUnibenCustomerDocument, IUnibenContractProcess)
     24    IUnibenCustomer, IUnibenCustomerDocument, IRIAAContractProcess,
     25    IUnibenCustomerPDFDocument)
    2526from ikobacustom.uniben.interfaces import MessageFactory as _
    2627
     
    3233
    3334
    34 class UnibenCustomerDocumentExporter(CustomerDocumentExporterBase):
     35class UnibenCustomerPDFDocumentExporter(CustomerDocumentExporterBase):
    3536    """Exporter for documents.
    3637    """
    37     grok.name('unibencustomerdocuments')
    38     iface = IUnibenCustomerDocument
    39     title = _(u'Uniben Customer Documents')
    40     class_name = 'UnibenCustomerDocument'
     38    grok.name('unibencustomerpdfdocuments')
     39    iface = IUnibenCustomerPDFDocument
     40    title = _(u'Uniben Customer PDF Documents')
     41    class_name = 'UnibenCustomerPDFDocument'
    4142
    4243
    43 class UnibenContractExporter(ContractExporterBase):
     44class RIAAContractExporter(ContractExporterBase):
    4445    """Exporter for Contract instances.
    4546    """
    46     grok.name('unibencontracts')
    47     iface = IUnibenContractProcess
    48     title = _(u'Uniben Customer Contracts')
    49     class_name = 'UnibenContract'
     47    grok.name('riaacontracts')
     48    iface = IRIAAContractProcess
     49    title = _(u'RIAA Customer Contracts')
     50    class_name = 'RIAAContract'
  • main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/customers/fileviewlets.py

    r14181 r14184  
    2323    FileDisplay, FileUpload, Image)
    2424
    25 from ikobacustom.uniben.customers.documents import UnibenCustomerDocument
     25from ikobacustom.uniben.customers.documents import (
     26    UnibenCustomerDocument, UnibenCustomerPDFDocument)
    2627
    2728from waeup.ikoba.customers.browser import (
     
    8384    grok.view(PDFDocumentSlip)
    8485
     86class PDFScanManageUpload(FileUpload):
     87    """Scan upload viewlet for officers.
     88    """
     89    grok.view(DocumentManageFormPage)
     90    grok.context(UnibenCustomerPDFDocument)
     91    grok.require('waeup.manageCustomer')
     92    label = _(u'PDF File')
     93    title = _(u'PDF File')
     94    mus = 1024 * 1000
     95    download_name = u'scan.pdf'
     96    tab_redirect = '#tab2'
     97
     98    @property
     99    def download_filename(self):
     100        return u"%s.pdf" % self.context.document_id[:9]
     101
     102
     103class PDFScanEditUpload(PDFScanManageUpload):
     104    """Scan upload viewlet for customer.
     105    """
     106    grok.view(DocumentEditFormPage)
     107    grok.require('waeup.handleCustomer')
     108
     109
     110class PDFScanDisplay(FileDisplay):
     111    """Scan display viewlet.
     112    """
     113    grok.order(1)
     114    grok.context(UnibenCustomerPDFDocument)
     115    grok.require('waeup.viewCustomer')
     116    grok.view(DocumentDisplayFormPage)
     117    label = _(u'PDF Scan')
     118    title = _(u'PDF Scan')
     119    download_name = u'scan.pdf'
     120
     121    @property
     122    def download_filename(self):
     123        return u"%s.pdf" % self.context.document_id[:9]
     124
     125
     126class PDFScanImage(Image):
     127    """Scan document.
     128    """
     129    grok.name('scan.pdf')
     130    grok.context(UnibenCustomerPDFDocument)
     131    grok.require('waeup.viewCustomer')
     132    download_name = u'scan.pdf'
     133
     134    @property
     135    def download_filename(self):
     136        return u"%s" % self.context.document_id[:9]
     137
     138class PDFScanSlip(PDFScanDisplay):
     139    grok.view(PDFDocumentSlip)
  • main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/customers/interfaces.py

    r14181 r14184  
    2020from waeup.ikoba.interfaces import IIkobaObject
    2121from waeup.ikoba.customers.interfaces import (
    22     ICustomer, ICustomerDocument, IContract)
     22    ICustomer, ICustomerDocument, ICustomerPDFDocument, IContract)
    2323from waeup.ikoba.customers.vocabularies import (
    2424    ConCatProductSource, CustomerDocumentSource)
     
    4040    """
    4141
     42class IUnibenCustomerPDFDocument(ICustomerPDFDocument):
     43    """A customer pdf document.
     44
     45    """
     46
    4247# Customer contract interfaces
    4348
     
    5358        )
    5459
    55 class IUnibenContractOfficialUse(IIkobaObject):
    56     """Interface for editing official use data.
     60    document_object2 = schema.Choice(
     61        title = _(u'Document 2'),
     62        source = CustomerDocumentSource(),
     63        required = False,
     64        )
     65
     66class IRIAAContract(IUnibenContract):
     67    """A Retention of Name contract.
     68
     69    """
     70
     71class IRIAAContractOfficialUse(IIkobaObject):
     72    """Interface for editing RIAA official use data.
    5773
    5874    """
     
    6379        )
    6480
    65 class IUnibenContractProcess(IUnibenContract, IUnibenContractOfficialUse):
    66     """Interface for processing contract data.
     81
     82class IRIAAContractProcess(IRIAAContract, IRIAAContractOfficialUse):
     83    """Interface for processing RIAA data.
    6784    """
    6885
     
    7289        required = False,
    7390        readonly = False,
    74         default = [],
     91        defaultFactory=list,
    7592        )
    7693
    77 class IUnibenContractEdit(IUnibenContract):
    78     """Interface for editing sample contract data by customers.
     94class IRIAAContractEdit(IRIAAContract):
     95    """Interface for editing RIAA data by customers.
    7996
    8097    """
     
    85102        required = True,
    86103        )
     104
     105    document_object2 = schema.Choice(
     106        title = _(u'Document 2'),
     107        source = CustomerDocumentSource(),
     108        required = True,
     109        )
  • main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/customers/tests/test_browser.py

    r14181 r14184  
    3333    UnibenCustomerExporter,
    3434    UnibenCustomerDocumentExporter,
    35     UnibenContractExporter)
     35    RIAAContractExporter)
    3636from ikobacustom.uniben.customers.batching import (
    3737    UnibenCustomerProcessor,
    3838    UnibenCustomerDocumentProcessor,
    39     UnibenContractProcessor)
     39    RIAAContractProcessor)
    4040from ikobacustom.uniben.testing import FunctionalLayer, samples_dir
    4141
     
    4949
    5050    def setup_customizable_params(self):
    51         self._contract_category = u'sample'
     51        self._contract_category = u'riaa'
    5252        return
    5353
     
    6464        document.title = u'My first document'
    6565        customer['documents'].addDocument(document)
    66         contract = createObject(u'waeup.UnibenContract')
     66        contract = createObject(u'waeup.RIAAContract')
    6767        contract.tc_dict = {'en':u'Hello World'}
    6868        customer['contracts'].addContract(contract)
     
    162162        # set values we can expect in export file
    163163        self.setup_for_export()
    164         exporter = UnibenContractExporter()
     164        exporter = RIAAContractExporter()
    165165        exporter.export_all(self.app, self.outfile)
    166166        result = open(self.outfile, 'rb').read()
     
    169169            'fee_based,history,last_product_id,product_object,product_options,'
    170170            'state,tc_dict,title,user_id,valid_from,valid_to\r\n'
    171             'UnibenContract,,sample,%s,,0,'
     171            'RIAAContract,,riaa,%s,,0,'
    172172            '[u\'2014-12-21 22:26:00 WAT - Contract created by system\']'
    173173            ',,,[],created,{\'en\': u\'Hello World\'},,K1000000,,\r\n'
    174174            % self.contract.contract_id)
    175175        # We can reimport the file if we change the header (user_id -> customer_id)
    176         processor = UnibenContractProcessor()
     176        processor = RIAAContractProcessor()
    177177        open(self.outfile, 'wb').write(
    178178            'class_name,contract_category,contract_id,document_object,'
    179179            'history,last_product_id,product_object,product_options,'
    180180            'state,tc_dict,title,user_id\r\n'
    181             'UnibenContract,sample,%s,,'
     181            'RIAAContract,riaa,%s,,'
    182182            '[u\'2014-12-21 22:26:00 WAT - Contract created by system\']'
    183183            ',,,[],created,{\'en\': u\'Hello World\'},,K1000000\r\n'
     
    220220
    221221    def setup_customizable_params(self):
    222         self._contract_category = u'sample'
     222        self._contract_category = u'riaa'
    223223        self._document_factory = 'waeup.UnibenCustomerDocument'
    224         self._contract_factory = 'waeup.UnibenContract'
     224        self._contract_factory = 'waeup.RIAAContract'
    225225        return
    226226
     
    303303
    304304    def setup_customizable_params(self):
    305         self._contract_category = u'sample'
     305        self._contract_category = u'riaa'
    306306        self._document_factory = 'waeup.UnibenCustomerDocument'
    307         self._contract_factory = 'waeup.UnibenContract'
     307        self._contract_factory = 'waeup.RIAAContract'
    308308        return
    309309
  • main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/customers/tests/test_contract.py

    r14181 r14184  
    2929
    3030from ikobacustom.uniben.testing import (FunctionalLayer, FunctionalTestCase)
    31 from ikobacustom.uniben.customers.contracts import UnibenContract
    32 from ikobacustom.uniben.customers.interfaces import IUnibenContract
     31from ikobacustom.uniben.customers.contracts import RIAAContract
     32from ikobacustom.uniben.customers.interfaces import IRIAAContract
    3333
    3434
     
    3838
    3939    def test_interfaces(self):
    40         verify.verifyClass(IUnibenContract, UnibenContract)
    41         verify.verifyClass(ICustomerNavigation, UnibenContract)
    42         verify.verifyObject(IUnibenContract, UnibenContract())
    43         verify.verifyObject(ICustomerNavigation, UnibenContract())
     40        verify.verifyClass(IRIAAContract, RIAAContract)
     41        verify.verifyClass(ICustomerNavigation, RIAAContract)
     42        verify.verifyObject(IRIAAContract, RIAAContract())
     43        verify.verifyObject(ICustomerNavigation, RIAAContract())
    4444        return
    4545
    4646    def test_addContract(self):
    4747        container = ContractsContainer()
    48         contract = createObject(u'waeup.UnibenContract')
     48        contract = createObject(u'waeup.RIAAContract')
    4949        id = contract.contract_id
    5050        container.addContract(contract)
    5151        self.assertEqual(container[id], contract)
    5252        self.assertRaises(TypeError, container.addContract, object())
    53         self.assertEqual(contract.class_name, 'UnibenContract')
     53        self.assertEqual(contract.class_name, 'RIAAContract')
    5454        return
  • main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/customers/utils.py

    r14181 r14184  
    3333    #: A prefix used when generating new customer ids. Each customer id will
    3434    #: start with this string. The default is 'K'.
    35     CUSTOMER_ID_PREFIX = u'K'
     35    CUSTOMER_ID_PREFIX = u'B'
    3636
    3737    DOCMANAGE_CUSTOMER_STATES = (REQUESTED, APPROVED, PROVISIONALLY)
     
    4444
    4545    DOCTYPES_DICT = {
    46         #'CustomerSampleDocument': _('Sample Document'),
    47         #'CustomerPDFDocument': _('PDF Document'),
    48 
    49         'UnibenCustomerDocument': _('Uniben Document'),
     46        #'UnibenCustomerDocument': _('Uniben Document'),
     47        'UnibenCustomerPDFDocument': _('Uniben PDF Document'),
    5048        }
    5149
    5250    CONTYPES_DICT = {
    53         #'SampleContract': _('Sample Contract'),
    54 
    55         'UnibenContract': _('Uniben Contract'),
     51        'RIAAContract': _('RIAA Contract'),
    5652        }
    5753
     
    6258    EXPORTER_NAMES = (
    6359        'customers',
    64         'unibencustomerdocuments',
    65         'unibencontracts')
     60        'unibencustomerpdfdocuments',
     61        'riaacontracts')
  • main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/locales/en/LC_MESSAGES/waeup.ikoba.po

    r12302 r14184  
    99"Content-Type: text/plain; charset=iso-8859-1\n"
    1010"Content-Transfer-Encoding: 8bit\n"
    11 
     11"Language: en\n"
     12"X-Generator: Poedit 1.6.5\n"
     13
     14#. Default: "You don't have an account because you are a new customer? Create your customer account <strong><a href=\"createaccount\"> here</a></strong>."
     15#: waeup/ikoba/browser/templates/loginpage.pt:29
     16#: waeup/ikoba/browser/templates/loginpage.pt:34
     17msgid "login_trouble4"
     18msgstr ""
     19"If you are a new registrants, you can apply for registration by clicking "
     20"<strong><a href=\"createaccount\"> here</a></strong>."
     21
     22#. Default: "You don't have an account because you are a new customer and your record has been created for you? Inititialize your customer account <strong><a href=\"requestpw\"> here</a></strong>."
     23#: waeup/ikoba/browser/templates/loginpage.pt:38
     24msgid "login_trouble5"
     25msgstr ""
     26"You don't have an account because you are a new registrant  and your record "
     27"has been created for you? Inititialize your registrant account <strong><a "
     28"href=\"requestpw\"> here</a></strong>."
     29
     30#. Default: "Customers can enter either their customer id, registration number or email address. Officers must enter their user name."
     31#: waeup/ikoba/browser/templates/loginpage.pt:7
     32msgid "identifier_hint"
     33msgstr ""
     34"Registrants can enter either their registration id or email address. "
     35"Officers must enter their user name."
     36
     37#. Default: "Or simply forgot your id or password? Then request a new password <strong><a href=\"changepw\"> here</a></strong>."
     38#: waeup/ikoba/browser/templates/loginpage.pt:42
     39msgid "login_trouble3"
     40msgstr ""
     41"If you have forgotten your password, click  <strong><a href=\"changepw\"> "
     42"here</a></strong> to get a new one. "
     43
     44#: waeup/ikoba/customers/batching.py:142
     45msgid "Customer record created"
     46msgstr "Registration record created"
     47
     48#: waeup/ikoba/customers/batching.py:60
     49msgid "Customer Processor"
     50msgstr "Registrant Processor"
     51
     52#: waeup/ikoba/customers/browser.py:1085
     53msgid "Customer Documents"
     54msgstr "Registrant Documents"
     55
     56#: waeup/ikoba/customers/browser.py:1520
     57msgid "Customer Contracts"
     58msgstr "Registrant Licenses"
     59
     60#: waeup/ikoba/customers/browser.py:162 waeup/ikoba/customers/browser.py:205
     61#: waeup/ikoba/customers/browser.py:563 waeup/ikoba/customers/browser.py:575
     62msgid "No customer found."
     63msgstr "No registrant found."
     64
     65#: waeup/ikoba/customers/browser.py:174 waeup/ikoba/customers/viewlets.py:180
     66msgid "Manage customer section"
     67msgstr "Manage registration section"
     68
     69#: waeup/ikoba/customers/browser.py:233 waeup/ikoba/customers/viewlets.py:188
     70msgid "Add customer"
     71msgstr "Add registrant"
     72
     73#: waeup/ikoba/customers/browser.py:236
     74msgid "Create customer record"
     75msgstr "Create registration record"
     76
     77#: waeup/ikoba/customers/browser.py:241
     78msgid "Customer created."
     79msgstr "Registration record created."
     80
     81#: waeup/ikoba/customers/browser.py:474
     82msgid "Customer account has been activated."
     83msgstr "Registrant account has been activated."
     84
     85#: waeup/ikoba/customers/browser.py:494
     86msgid "Customer account has been deactivated."
     87msgstr "Registrant account has been deactivated."
     88
     89#: waeup/ikoba/customers/browser.py:610
     90msgid "Create customer account"
     91msgstr "Create registrant account"
     92
     93#: waeup/ikoba/customers/browser.py:648
     94msgid "You have successfully created a customer account for the"
     95msgstr "You have successfully created a registrant account for the"
     96
     97#: waeup/ikoba/customers/browser_templates/createaccount.pt:19
     98msgid ""
     99"A customer record will be created and your login credentials will be sent to "
     100"the email address given above. To be able to proceed you must provide a "
     101"valid email address!"
     102msgstr ""
     103"A registration record will be created and your login credentials will be "
     104"sent to the email address given above. To be able to proceed you must "
     105"provide a valid email address!"
     106
     107#. Default: "Ikoba is creating a temporary customer password which will replace the original password chosen by the customer. The password will be valid for ${minutes} minutes. The customer can't login during this time period. After expiration the customer can login with the original password again."
     108#: waeup/ikoba/customers/browser_templates/loginasstep1.pt:6
     109msgid "login_as_intro_1"
     110msgstr ""
     111"Ikoba is creating a temporary registrant password which will replace the "
     112"original password chosen by the registrant. The password will be valid for "
     113"${minutes} minutes. The registrant can't login during this time period. "
     114"After expiration the registrant can login with the original password again."
     115
     116#: waeup/ikoba/customers/browser_templates/requestpw.pt:19
     117msgid ""
     118"Your customer record will be looked up and your login credentials will be "
     119"sent to the email address given above. To be able to proceed you must "
     120"provide a valid email address!"
     121msgstr ""
     122"Your registration record will be looked up and your login credentials will "
     123"be sent to the email address given above. To be able to proceed you must "
     124"provide a valid email address!"
     125
     126#: waeup/ikoba/customers/contracts.py:147
     127#: waeup/ikoba/customers/documents.py:162
     128msgid "Customer has not yet been approved."
     129msgstr "Registration has not yet been approved."
     130
     131#: waeup/ikoba/customers/interfaces.py:96
     132#: waeup/ikoba/customers/browser_templates/containerpage.pt:31
     133msgid "Customer Id"
     134msgstr "Registrant Id"
     135
     136#: waeup/ikoba/customers/workflow.py:45
     137msgid "Create customer"
     138msgstr "Create registrant"
     139
     140#: waeup/ikoba/customers/workflow.py:82
     141msgid "Approve customer"
     142msgstr "Approve registration"
     143
     144#: waeup/ikoba/customers/workflow.py:48
     145msgid "Customer created"
     146msgstr "Registration record created"
     147
     148#: waeup/ikoba/customers/workflow.py:56
     149msgid "Customer registration started"
     150msgstr "Registration started"
     151
     152#: waeup/ikoba/customers/workflow.py:62
     153msgid "Customer registration requested"
     154msgstr "Registration requested"
     155
     156#: waeup/ikoba/customers/workflow.py:68
     157msgid "Approve customer provisionally"
     158msgstr "Approve registration provisionally"
     159
     160#: waeup/ikoba/customers/workflow.py:69
     161msgid "Customer registration provisionally approved"
     162msgstr "Registration provisionally approved"
     163
     164#: waeup/ikoba/customers/workflow.py:76
     165msgid "Customer registration finally approved"
     166msgstr "Registration finally approved"
     167
     168#: waeup/ikoba/customers/workflow.py:83
     169msgid "Customer registration approved"
     170msgstr "Registration approved"
     171
     172#: waeup/ikoba/customers/workflow.py:89
     173msgid "Reject customer"
     174msgstr "Reject registration"
     175
     176#: waeup/ikoba/customers/workflow.py:90
     177msgid "Customer registration rejected"
     178msgstr "Registration rejected"
     179
     180#: waeup/ikoba/customers/workflow.py:96 waeup/ikoba/customers/workflow.py:110
     181#: waeup/ikoba/customers/workflow.py:117
     182msgid "Reset customer"
     183msgstr "Reset registration"
     184
     185#: waeup/ikoba/customers/workflow.py:97 waeup/ikoba/customers/workflow.py:118
     186msgid "Reset to initial customer state"
     187msgstr "Reset to initial registration state"
     188
     189#: waeup/ikoba/customers/browser.py:132
     190msgid "Find customers"
     191msgstr "Find registrants"
     192
     193#: waeup/ikoba/customers/browser.py:133 waeup/ikoba/customers/browser.py:175
     194msgid "Find customer(s)"
     195msgstr "Find registrant(s)"
     196
     197#: waeup/ikoba/customers/browser.py:289
     198msgid "You successfully logged in as customer."
     199msgstr "You successfully logged in as registrant."
     200
     201#: waeup/ikoba/customers/viewlets.py:227
     202msgid "Login as customer"
     203msgstr "Login as registrant"
     204
     205#: waeup/ikoba/customers/browser.py:106 waeup/ikoba/customers/export.py:130
     206#: waeup/ikoba/customers/viewlets.py:54
     207msgid "Customers"
     208msgstr "Registrants"
  • main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/products/tests/test_browser.py

    r14181 r14184  
    4040        product = UnibenProduct()
    4141        product.product_id = u'SAM'
    42         product.contract_category = u'sample'
     42        product.contract_category = u'riaa'
    4343        product.valid_from = datetime.date(2015, 12, 4)
    4444        self.app['products'][product.product_id] = self.product = product
     
    5757            'product_id,terms_and_conditions,title,valid_from,valid_to,'
    5858            'users_with_local_roles\r\n'
    59             'sample,,,[],SAM,,Unnamed,2015-12-04#,,[]\r\n')
     59            'riaa,,,[],SAM,,Unnamed,2015-12-04#,,[]\r\n')
    6060        # We can import the same file.
    6161        processor = UnibenProductProcessor()
  • main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/utils/utils.py

    r14181 r14184  
    4646
    4747    CON_CATS_DICT = {
    48         'sample': 'Sample Category',
     48        'riaa': 'Research and Innovative Achievement Award',
    4949        'no': 'no contract',
    5050        }
     
    6666        'products',
    6767        'customers',
    68         'unibencustomerdocuments',
    69         'unibencontracts')
     68        'unibencustomerpdfdocuments',
     69        'riaacontracts')
    7070
    7171    BATCH_PROCESSOR_NAMES = (
    7272        'unibencustomerprocessor',
    73         'unibencustomerdocumentprocessor',
    74         'unibencontractprocessor',
     73        'unibencustomerpdfdocumentprocessor',
     74        'riaacontractprocessor',
    7575        'unibenproductprocessor',
    7676        'pdfdocumentprocessor',
Note: See TracChangeset for help on using the changeset viewer.