Changeset 7627


Ignore:
Timestamp:
10 Feb 2012, 20:35:28 (13 years ago)
Author:
Henrik Bettermann
Message:

Move vocabularies to interfaces module.

batchprocessing.txt: fix test

Location:
main/waeup.sirp/trunk/src/waeup/sirp
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/batchprocessing.txt

    r7548 r7627  
    9696     'Applicants Container Importer',
    9797     'CourseTicket Importer',
     98     'Payment Importer',
    9899     'Student Importer',
    99100     'StudentStudyCourse Importer (update only)',
  • main/waeup.sirp/trunk/src/waeup/sirp/payments/interfaces.py

    r7623 r7627  
    1818from zope.interface import Attribute
    1919from zope import schema
    20 from waeup.sirp.interfaces import ISIRPObject
    21 from waeup.sirp.payments.vocabularies import (
    22     payment_states, payment_categories)
     20from waeup.sirp.interfaces import ISIRPObject, SimpleSIRPVocabulary
     21
     22payment_states = SimpleSIRPVocabulary(
     23    ('Not yet paid','unpaid'),
     24    ('Paid','paid'),
     25    ('Failed','failed'),
     26    )
     27
     28payment_categories = SimpleSIRPVocabulary(
     29    ('School Fee','schoolfee'),
     30    ('Clearance','clearance'),
     31    ('Bed Allocation','bed_allocation'),
     32    ('Hostel Maintenance','hostel_maintenance'),
     33    ('Transfer','transfer'),
     34    ('Gown','gown'),
     35    ('Acceptance Fee', 'acceptance'),
     36    )
    2337
    2438class IPaymentsContainer(ISIRPObject):
  • main/waeup.sirp/trunk/src/waeup/sirp/payments/payment.py

    r7195 r7627  
    2323from grok import index
    2424from waeup.sirp.payments.interfaces import (
    25     IPayment, ISCPayment, IOnlinePayment)
     25    IPayment, ISCPayment, IOnlinePayment,
     26    payment_states, payment_categories)
    2627from waeup.sirp.utils.helpers import attrs_to_fields
    27 from waeup.sirp.payments.vocabularies import payment_states, payment_categories
    2828
    2929class Payment(grok.Container):
Note: See TracChangeset for help on using the changeset viewer.