cubicweb/web/test/data/schema.py
changeset 11240 1694e6e9ff94
parent 11129 97095348b3ee
equal deleted inserted replaced
11239:19cacea03fde 11240:1694e6e9ff94
    15 #
    15 #
    16 # You should have received a copy of the GNU Lesser General Public License along
    16 # You should have received a copy of the GNU Lesser General Public License along
    17 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
    17 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
    18 
    18 
    19 from yams.buildobjs import (EntityType, RelationDefinition, SubjectRelation,
    19 from yams.buildobjs import (EntityType, RelationDefinition, SubjectRelation,
    20                             String, Int, Datetime, Boolean, Float)
    20                             String, Int, Datetime, Boolean, Float, TZDatetime)
    21 from yams.constraints import IntervalBoundConstraint
    21 from yams.constraints import IntervalBoundConstraint
    22 
    22 
    23 from cubicweb import _
    23 from cubicweb import _
    24 
    24 
    25 
    25 
    56     ass    = String(maxsize=128)
    56     ass    = String(maxsize=128)
    57     web    = String(maxsize=128)
    57     web    = String(maxsize=128)
    58     tel    = Int()
    58     tel    = Int()
    59     fax    = Int()
    59     fax    = Int()
    60     datenaiss = Datetime()
    60     datenaiss = Datetime()
       
    61     tzdatenaiss = TZDatetime()
    61     test   = Boolean()
    62     test   = Boolean()
    62     description = String()
    63     description = String()
    63     salary = Float()
    64     salary = Float()
    64     travaille = SubjectRelation('Societe')
    65     travaille = SubjectRelation('Societe')
    65 
    66