equal
deleted
inserted
replaced
9 |
9 |
10 Augments the default search path for cubes |
10 Augments the default search path for cubes |
11 |
11 |
12 """ |
12 """ |
13 __docformat__ = "restructuredtext en" |
13 __docformat__ = "restructuredtext en" |
|
14 _ = unicode |
14 |
15 |
15 import sys |
16 import sys |
16 import os |
17 import os |
17 import logging |
18 import logging |
18 from os.path import exists, join, expanduser, abspath, normpath, basename, isdir |
19 from os.path import exists, join, expanduser, abspath, normpath, basename, isdir |
25 from cubicweb import CW_SOFTWARE_ROOT, CW_MIGRATION_MAP, ConfigurationError |
26 from cubicweb import CW_SOFTWARE_ROOT, CW_MIGRATION_MAP, ConfigurationError |
26 from cubicweb.toolsutils import env_path, create_dir |
27 from cubicweb.toolsutils import env_path, create_dir |
27 |
28 |
28 CONFIGURATIONS = [] |
29 CONFIGURATIONS = [] |
29 |
30 |
30 _ = unicode |
|
31 |
31 |
32 class metaconfiguration(type): |
32 class metaconfiguration(type): |
33 """metaclass to automaticaly register configuration""" |
33 """metaclass to automaticaly register configuration""" |
34 def __new__(mcs, name, bases, classdict): |
34 def __new__(mcs, name, bases, classdict): |
35 cls = super(metaconfiguration, mcs).__new__(mcs, name, bases, classdict) |
35 cls = super(metaconfiguration, mcs).__new__(mcs, name, bases, classdict) |