source: mauRepo/MolesManager/trunk/src/MolesManager/dataaccess.py @ 7976

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/MolesManager/trunk/src/MolesManager/dataaccess.py@7976
Revision 7976, 436 bytes checked in by mnagni, 8 years ago (diff)

removed all the EA LIbrary until they are in stable status

Line 
1'''
2Created on 3 Nov 2011
3
4@author: mnagni
5'''
6from MolesManager.settings import MOLES3DB
7from ea_model.iso_19103_2005_schema_language.basic_types.primitive.date_and_time.date import Date
8
9
10def _buildFilter(key, keyValue):
11    return '%s = \'%s\'' % (key, keyValue)
12
13def getDateById(id):
14     
15    session = MOLES3DB.getSession()
16    res = session.query(Date).filter(*[_buildFilter('date_id', id)])
17    print(res)
18    return res.all()
19
Note: See TracBrowser for help on using the repository browser.