[FIX] anonymous: comment test code
bzr revid: chs@openerp.com-20120523165153-8c5m4yihczwsnsmq
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user