Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
brainomics2: cw 3.20 3.24 compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
AGrigis committed Mar 9, 2017
1 parent 58fc939 commit eeea76d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
9 changes: 9 additions & 0 deletions brainomics2/schema/card.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@
# for details.
##########################################################################

# System import
from packaging import version

# Cubicweb import
import cubicweb
cw_version = version.parse(cubicweb.__version__)
if cw_version >= version.parse("3.21.0"):
from cubicweb import _

from yams.buildobjs import EntityType
from yams.buildobjs import String
from yams.buildobjs import RichString
Expand Down
10 changes: 9 additions & 1 deletion brainomics2/schema/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,15 @@
# for details.
##########################################################################

# CubicWeb import
# System import
from packaging import version

# Cubicweb import
import cubicweb
cw_version = version.parse(cubicweb.__version__)
if cw_version >= version.parse("3.21.0"):
from cubicweb import _

from yams.buildobjs import EntityType
from yams.buildobjs import String
from yams.buildobjs import RichString
Expand Down

0 comments on commit eeea76d

Please sign in to comment.