وكانت القضاة تجيء إلى تونس من دار الخلافة والغالب عليهم المعجمة ومذهبهم مذهب أبي حنيفة رضي الله عنه فاحتاجوا حينئذ إلى نائب يكون بين يدي القاضي فيكون بمثابة قاضي الخصومات والقاضي التركي بمثابة قاضي الجماعة واحتاجوا أيضا لمجلس كما جرت به العادة في دولة بني أبي حفص يجعلونه بين يدي الباشا في هذه الدولة وكان يحضر بالمجلس أربعة من المفتين والمراد من حضورهم الأخبار بالأمور الشرعية إذا سئلوا عنها والقاضي ينفذها وأول من تصدر بتونس مفتيا حنفيا الشيخ أبو الحسن علي الشريف وباحتلال الدولة التركية أخذ
The qadis used to come to Tunis from the seat of the caliphate, most of them non-Arabs, and their school was the school of Abu Hanifa — God be pleased with him. So they then needed a deputy before the qadi, who would be in the position of the judge of disputes (qadi al-khusumat), while the Turkish qadi was in the position of the qadi al-jamaʿa. They also needed a council, as had been the custom in the state of the Banu Abi Hafs, which in this state they held before the Basha; four of the muftis attended the council, the purpose of their attendance being to give information on legal matters when they were asked about them, and the qadi would carry them out. The first to sit as a Hanafi mufti in Tunis was Shaykh Abu l-Hasan ʿAli al-Sharif. With the occupation of the Turkish state
المذهب الحنفي في الظهور بعد انقطاعه من مدة المعز الصنهاجي حسبما تقدمت الإشارة إلى ذلك في ترجمته.
the Hanafi school began to appear, after its interruption since the time of al-Muʿizz al-Sanhaji, as was pointed to in his biography.