Annual report pursuant to Section 13 and 15(d)

Income taxes (Details) - Components of income (loss) before income taxes

v3.10.0.1
Income taxes (Details) - Components of income (loss) before income taxes - USD ($)
$ in Thousands
12 Months Ended
Jul. 31, 2018
Jul. 31, 2017
Jul. 31, 2016
Income taxes (Details) - Components of income (loss) before income taxes [Line Items]      
Income (loss) before taxes $ (11,418) $ (2,504) $ 46,360
Domestic Tax Authority [Member]      
Income taxes (Details) - Components of income (loss) before income taxes [Line Items]      
Income (loss) before taxes (9,540) (212) 48,692
Foreign Tax Authority [Member]      
Income taxes (Details) - Components of income (loss) before income taxes [Line Items]      
Income (loss) before taxes $ (1,878) $ (2,292) $ (2,332)