Ignore:
Timestamp:
17 Mar 2013, 08:40:59 (12 years ago)
Author:
Henrik Bettermann
Message:

Use better class names. The PaymentWebservice? adapter is not a webservice. KofaPaymentRequest? is not a request but a view for a simple web service.

We do not publish the data of the payee but of the payer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/payment.py

    r9984 r10030  
    2727from waeup.kofa.interfaces import MessageFactory as _
    2828from waeup.kofa.payments import OnlinePayment
    29 from waeup.kofa.payments.interfaces import IPaymentWebservice
     29from waeup.kofa.payments.interfaces import IPayer
    3030from waeup.kofa.applicants.interfaces import IApplicantOnlinePayment
    3131from waeup.kofa.utils.helpers import attrs_to_fields
     
    7878    ApplicantOnlinePayment, omit=['display_item'])
    7979
    80 class PaymentWebservice(grok.Adapter):
    81     """An adapter to publish applicant data through a webservice.
     80class Payer(grok.Adapter):
     81    """An adapter to publish applicant data through a simple webservice.
    8282    """
    8383    grok.context(IApplicantOnlinePayment)
    84     grok.implements(IPaymentWebservice)
     84    grok.implements(IPayer)
    8585
    8686    @property
    8787    def display_fullname(self):
    88         "Name of  payee"
     88        "Name of  payer"
    8989        return self.context.__parent__.display_fullname
    9090
    9191    @property
    9292    def id(self):
    93         "Id of payee"
     93        "Id of payer"
    9494        return self.context.__parent__.applicant_id
    9595
    9696    @property
    9797    def reg_number(self):
    98         "Reg number of payee"
     98        "Reg number of payer"
    9999        return self.context.__parent__.reg_number
    100100
Note: See TracChangeset for help on using the changeset viewer.