source: mauRepo/MolesManager/trunk/src/ascore/astext.py @ 8014

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

The tables are correctly generated and the migration does not show major problem. Good!

Line 
1'''
2Created on 5 Dec 2011
3
4@author: mnagni
5'''
6from sqlalchemy.types import TypeDecorator, TEXT
7
8class ASText(TypeDecorator):
9    '''
10        Some ISO19103 primitive could be associated simply to an SQL type.
11    '''   
12    impl = TEXT
13
14    def process_bind_param(self, value, dialect):
15        return value
16
17    def process_result_value(self, value, dialect):
18        return value
Note: See TracBrowser for help on using the repository browser.