Commit fe811238 authored by Adrien Di Mascio's avatar Adrien Di Mascio
Browse files

[schema] enclose RichString import in a try/except ImportError to make it...

[schema] enclose RichString import in a try/except ImportError to make it compatible with stable (3.3.x) branch of cubicweb
parent 54c0efc127dd
from yams.buildobjs import (MetaUserEntityType, MetaUserRelationType,
ObjectRelation, String, RichString)
ObjectRelation, String)
try:
from yams.buildobjs import RichString
except ImportError:
from cubicweb.schema import RichString
from cubicweb.schema import ERQLExpression
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment