Skip to content

Commit 3b1fb7d

Browse files
committed
namespace clean-up for DataBrewery#31
1 parent a96bb0a commit 3b1fb7d

File tree

3 files changed

+34
-16
lines changed

3 files changed

+34
-16
lines changed

cubes/__init__.py

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,8 @@
1212
common._configure_logger()
1313

1414
__all__ = [
15-
"logger_name",
16-
"load_model",
17-
"model_from_path",
18-
"cuts_from_string",
19-
"string_from_cuts",
20-
"attribute_list",
21-
"Model",
22-
"Cube",
23-
"Dimension",
24-
"Hierarchy",
25-
"Level",
26-
"AggregationBrowser",
27-
"Cuboid",
28-
"PointCut",
29-
"MongoSimpleCubeBuilder",
30-
]
15+
"logger_name"
16+
]
17+
18+
__all__ += browser.__all__
19+
__all__ += model.__all__

cubes/browser.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,20 @@
77
except ImportError:
88
from ordereddict import OrderedDict
99

10+
__all__ = [
11+
"AggregationBrowser",
12+
"Cell",
13+
"Cut",
14+
"PointCut",
15+
"RangeCut",
16+
"SetCut",
17+
"AggregationResult",
18+
"cuts_from_string",
19+
"string_from_cuts",
20+
"string_from_path",
21+
"path_from_string"
22+
]
23+
1024
class AggregationBrowser(object):
1125
"""Class for browsing data cube aggregations
1226

cubes/model.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,21 @@
2121
except ImportError:
2222
import simplejson as json
2323

24+
__all__ = [
25+
"load_model",
26+
"model_from_path",
27+
"attribute_list",
28+
"Model",
29+
"Cube",
30+
"Dimension",
31+
"Hierarchy",
32+
"Level",
33+
"Attribute",
34+
"Measure",
35+
36+
"ModelError"
37+
]
38+
2439
DIMENSION = 1
2540
MEASURE = 2
2641
DETAIL = 3

0 commit comments

Comments
 (0)