equal
deleted
inserted
replaced
384 {'type' : 'yn', |
384 {'type' : 'yn', |
385 'default': False, |
385 'default': False, |
386 'help': 'allow users to login with their primary email if set', |
386 'help': 'allow users to login with their primary email if set', |
387 'group': 'main', 'level': 2, |
387 'group': 'main', 'level': 2, |
388 }), |
388 }), |
389 ('use-request-subdomain', |
|
390 {'type' : 'yn', |
|
391 'default': None, |
|
392 'help': ('if set, base-url subdomain is replaced by the request\'s ' |
|
393 'host, to help managing sites with several subdomains in a ' |
|
394 'single cubicweb instance'), |
|
395 'group': 'main', 'level': 1, |
|
396 }), |
|
397 ('mangle-emails', |
389 ('mangle-emails', |
398 {'type' : 'yn', |
390 {'type' : 'yn', |
399 'default': False, |
391 'default': False, |
400 'help': "don't display actual email addresses but mangle them if \ |
392 'help': "don't display actual email addresses but mangle them if \ |
401 this option is set to yes", |
393 this option is set to yes", |
826 return None |
818 return None |
827 |
819 |
828 _cubes = None |
820 _cubes = None |
829 |
821 |
830 def init_cubes(self, cubes): |
822 def init_cubes(self, cubes): |
831 assert self._cubes is None, self._cubes |
823 assert self._cubes is None, repr(self._cubes) |
832 self._cubes = self.reorder_cubes(cubes) |
824 self._cubes = self.reorder_cubes(cubes) |
833 # load cubes'__init__.py file first |
825 # load cubes'__init__.py file first |
834 for cube in cubes: |
826 for cube in cubes: |
835 __import__('cubes.%s' % cube) |
827 __import__('cubes.%s' % cube) |
836 self.load_site_cubicweb() |
828 self.load_site_cubicweb() |
1158 self.info("loading language %s", language) |
1150 self.info("loading language %s", language) |
1159 try: |
1151 try: |
1160 tr = translation('cubicweb', path, languages=[language]) |
1152 tr = translation('cubicweb', path, languages=[language]) |
1161 self.translations[language] = (tr.ugettext, tr.upgettext) |
1153 self.translations[language] = (tr.ugettext, tr.upgettext) |
1162 except (ImportError, AttributeError, IOError): |
1154 except (ImportError, AttributeError, IOError): |
1163 self.exception('localisation support error for language %s', |
1155 if self.mode != 'test': |
1164 language) |
1156 # in test contexts, data/i18n does not exist, hence |
|
1157 # logging will only pollute the logs |
|
1158 self.exception('localisation support error for language %s', |
|
1159 language) |
1165 |
1160 |
1166 def vregistry_path(self): |
1161 def vregistry_path(self): |
1167 """return a list of files or directories where the registry will look |
1162 """return a list of files or directories where the registry will look |
1168 for application objects |
1163 for application objects |
1169 """ |
1164 """ |