source: mauRepo/newmoonProject/trunk/project/xmi2rdbms/src/main/resources/ascore/ascodelist.py @ 8174

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/newmoonProject/trunk/project/xmi2rdbms/src/main/resources/ascore/ascodelist.py@8174
Revision 8174, 502 bytes checked in by mnagni, 8 years ago (diff)
Line 
1'''
2Created on 5 Oct 2011
3
4@author: mnagni
5'''
6from ascore.asenumeration import ASEnumeration
7class ASCodeList(ASEnumeration):
8    def __init__(self, regex):
9        self.regex = 'other: \w{2,}'
10        ASEnumeration.__init__(self) 
11
12'''
13class EmployeeType(ASCodeList):
14    part_time = "part_time", "Part Time"
15    full_time = "full_time", "Full Time"
16    contractor = "contractor", "Contractor"
17   
18type = Column(EmployeeType.db_type())
19   
20employee = Employee(name, EmployeeType.part_time)   
21'''
Note: See TracBrowser for help on using the repository browser.