web/webconfig.py
branchstable
changeset 8601 1a6000ff2080
parent 8475 65fecbeb9c3a
child 8605 797fc2e2fb78
equal deleted inserted replaced
8600:d74addac92bb 8601:1a6000ff2080
     1 # copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
     1 # copyright 2003-2012 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
     2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
     2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
     3 #
     3 #
     4 # This file is part of CubicWeb.
     4 # This file is part of CubicWeb.
     5 #
     5 #
     6 # CubicWeb is free software: you can redistribute it and/or modify it under the
     6 # CubicWeb is free software: you can redistribute it and/or modify it under the
   217          {'type' : 'yn',
   217          {'type' : 'yn',
   218           'default': True,
   218           'default': True,
   219           'help': 'use modconcat-like URLS to concat and serve JS / CSS files',
   219           'help': 'use modconcat-like URLS to concat and serve JS / CSS files',
   220           'group': 'web', 'level': 2,
   220           'group': 'web', 'level': 2,
   221           }),
   221           }),
       
   222         ('anonymize-jsonp-queries',
       
   223          {'type': 'yn',
       
   224           'default': True,
       
   225           'help': 'anonymize the connection before executing any jsonp query.',
       
   226           'group': 'web', 'level': 1
       
   227           }),
   222         ))
   228         ))
   223 
   229 
   224     def fckeditor_installed(self):
   230     def fckeditor_installed(self):
   225         return exists(self.uiprops['FCKEDITOR_PATH'])
   231         return exists(self.uiprops['FCKEDITOR_PATH'])
   226 
   232 
   249     def vc_config(self):
   255     def vc_config(self):
   250         return self.repository().get_versions()
   256         return self.repository().get_versions()
   251 
   257 
   252     def anonymous_user(self):
   258     def anonymous_user(self):
   253         """return a login and password to use for anonymous users.
   259         """return a login and password to use for anonymous users.
   254         
   260 
   255         None may be returned for both if anonymous connection is not
   261         None may be returned for both if anonymous connection is not
   256         allowed or if an empty login is used in configuration
   262         allowed or if an empty login is used in configuration
   257         """
   263         """
   258         try:
   264         try:
   259             user   = self['anonymous-user'] or None
   265             user   = self['anonymous-user'] or None