entity.py
changeset 2421 08d42928fe36
parent 2381 caad2367d940
child 2613 5e19c2bb370e
equal deleted inserted replaced
2420:46c83be959b7 2421:08d42928fe36
    21 from cubicweb.rset import ResultSet
    21 from cubicweb.rset import ResultSet
    22 from cubicweb.selectors import yes
    22 from cubicweb.selectors import yes
    23 from cubicweb.appobject import AppRsetObject
    23 from cubicweb.appobject import AppRsetObject
    24 from cubicweb.schema import RQLVocabularyConstraint, RQLConstraint, bw_normalize_etype
    24 from cubicweb.schema import RQLVocabularyConstraint, RQLConstraint, bw_normalize_etype
    25 
    25 
    26 try:
    26 from cubicweb.common.uilib import printable_value, soup2xhtml
    27     from cubicweb.common.uilib import printable_value, soup2xhtml
    27 from cubicweb.common.mixins import MI_REL_TRIGGERS
    28     from cubicweb.common.mixins import MI_REL_TRIGGERS
    28 from cubicweb.common.mttransforms import ENGINE
    29     from cubicweb.common.mttransforms import ENGINE
       
    30 except ImportError:
       
    31     # missing -common
       
    32     MI_REL_TRIGGERS = {}
       
    33 
    29 
    34 _marker = object()
    30 _marker = object()
    35 
    31 
    36 def greater_card(rschema, subjtypes, objtypes, index):
    32 def greater_card(rschema, subjtypes, objtypes, index):
    37     for subjtype in subjtypes:
    33     for subjtype in subjtypes: