equal
deleted
inserted
replaced
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 """entities tests schema""" |
18 """entities tests schema""" |
19 |
19 |
20 from yams.buildobjs import EntityType, String, RichString |
20 from yams.buildobjs import EntityType, String, RichString, Int |
21 from cubicweb.schema import make_workflowable |
21 from cubicweb.schema import make_workflowable |
22 |
22 |
23 class Company(EntityType): |
23 class Company(EntityType): |
|
24 order = Int() |
24 name = String() |
25 name = String() |
25 description = RichString() |
26 description = RichString() |
26 |
27 |
27 class Division(Company): |
28 class Division(Company): |
28 __specializes_schema__ = True |
29 __specializes_schema__ = True |