示例#1
0
 def insert_field(cls, index, field_name, field_type):
     cls._insert_field_impl(index, field_name, field_type)
     # There could have been changes to field_type in ComplexModel so we
     # should not use field_type directly from above
     if cls.__table__ is not None:
         add_column(cls, field_name, cls._type_info[field_name])
     cls._insert_to_variants(index, field_name, field_type)
示例#2
0
文件: complex.py 项目: Akihtrak/spyne
 def insert_field(cls, index, field_name, field_type):
     cls._insert_field_impl(index, field_name, field_type)
     # There could have been changes to field_type in ComplexModel so we
     # should not use field_type directly from above
     if cls.__table__ is not None:
         add_column(cls, field_name, cls._type_info[field_name])
     cls._insert_to_variants(index, field_name, field_type)
示例#3
0
文件: complex.py 项目: jstuyck/spyne
 def insert_field(cls, index, field_name, field_type):
     super(TableModelBase, cls).insert_field(index, field_name, field_type)
     # There could have been changes to field_type in ComplexModel so we
     # should not use field_type directly from above
     add_column(cls, field_name, cls._type_info[field_name])