1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
########################################################################################
# #
# Author: Bertrand Neron, #
# Organization:'Biological Software and Databases' Group, Institut Pasteur, Paris. #
# Distributed under GPLv2 Licence. Please refer to the COPYING.LIB document. #
# #
########################################################################################
"""
Content the Mobyle Parameter types related to the structural biology
"""
from Mobyle.MobyleError import MobyleError , UserValueError , UnDefAttrError
from Mobyle.Classes.Core import *
class StructureDataType(DataType):
@staticmethod
def convert( value , param ):
"""
Do the general control and cast the value in the right type.
if a control or the casting fail a MobyleError is raised.
@param value: the value provide by the User for this parameter
@type value: String
@return:
"""
raise NotImplementedError ,"ToDo"
@staticmethod
def validate( param ):
raise NotImplementedError ,"ToDo"
class PropertiesDataType(DataType):
@staticmethod
def convert( value , param ):
"""
Do the general control and cast the value in the right type.
if a control or the casting fail a MobyleError is raised.
@param value: the value provide by the User for this parameter
@type value: String
@return:
"""
raise NotImplementedError ,"ToDo"
@staticmethod
def validate( param ):
raise NotImplementedError ,"ToDo"
|