coova / coova-chilli

CoovaChilli is an open-source software access controller for captive portal hotspots.
Other
512 stars 258 forks source link

coova-chilli with Python 3 #552

Open rexy74 opened 2 years ago

rexy74 commented 2 years ago

Hi, To make coova work properly with python 3, we have slightly modified "conf/CoovaChilliLib.py.in" like that :

1c1 < #!/usr/bin/python

!/usr/bin/python3

151c151 < print "Storing configuration changes" print ("Storing configuration changes") 184c184 < print line print (line) 225c225 < print 'Releasing '+self.selectedMac print ('Releasing '+self.selectedMac) 231c231 < print 'Blocking access from '+self.selectedMac print ('Blocking access from '+self.selectedMac) 238c238 < print 'Authorizing '+self.selectedSessionId print ('Authorizing '+self.selectedSessionId) 308c308 < print 'change to '+section print ('change to '+section) 332c332 < print action print (action) 340c340 < print 'Selected: '+mac print ('Selected: '+mac) 345c345 < print action print (action) 502c502 < print 'hello' print ('hello')