[FIX] anonymous: comment test code

bzr revid: chs@openerp.com-20120523165153-8c5m4yihczwsnsmq
This commit is contained in:
Christophe Simonis
2012-05-23 18:51:53 +02:00
parent 6665eba384
commit f0abeb01cd
+4 -2
View File
@@ -1,7 +1,10 @@
import werkzeug
from openerp.addons.web.common import http as oeweb
from openerp.addons.web.controllers.main import db_list
#from openerp.addons.web.controllers.main import db_list
def db_list(r):
return ['trunk_anonymous']
class PublicController(oeweb.Controller):
_cp_path = '/public'
@@ -9,7 +12,6 @@ class PublicController(oeweb.Controller):
@oeweb.httprequest
def index(self, req):
dbs = db_list(req)
dbs = ['trunk_anonymous']
if len(dbs) == 1:
url = '/web/webclient/login?db=%s&login=anonymous&key=anonymous' % (dbs[0],)
else: