Did I find the right examples for you? yes no

All Samples(21)  |  Call(13)  |  Derive(0)  |  Import(8)

src/c/u/cubes-1.0alpha/cubes/auth.py   cubes(Download)
from collections import namedtuple, defaultdict
from .extensions import Extensible
from .browser import Cell, cut_from_string, cut_from_dict, PointCut
from .browser import string_to_drilldown
from .errors import *
                restriction_cuts.append(cut)
 
            restriction = Cell(cube, restriction_cuts)
        else:
            restriction = Cell(cube)
            # TODO: set as hidden
            cut = PointCut(ident_dim, [identity], hierarchy=hier, hidden=True)
            restriction = restriction & Cell(cube, [cut])
 
        if cell:

src/c/u/cubes-HEAD/cubes/auth.py   cubes(Download)
from collections import namedtuple, defaultdict
from .extensions import Extensible
from .browser import Cell, cut_from_string, cut_from_dict, PointCut
from .browser import string_to_drilldown
from .errors import *
                restriction_cuts.append(cut)
 
            restriction = Cell(cube, restriction_cuts)
        else:
            restriction = Cell(cube)
            # TODO: set as hidden
            cut = PointCut(ident_dim, [identity], hierarchy=hier, hidden=True)
            restriction = restriction & Cell(cube, [cut])
 
        if cell:

src/c/u/cubes-HEAD/cubes/server/blueprint.py   cubes(Download)
 
from ..workspace import Workspace, SLICER_INFO_KEYS
from ..browser import Cell, SPLIT_DIMENSION_NAME, cut_from_dict
from ..errors import *
from ..extensions import extensions
def cube_cell(cube_name):
    details = g.browser.cell_details(g.cell)
 
    if not g.cell:
        g.cell = Cell(g.cube)
        # Override URL cut with the one in report
        cuts = [cut_from_dict(cut) for cut in cell_cuts]
        cell = Cell(g.cube, cuts)
        logger.info("using cell from report specification (URL parameters "
                    "are ignored)")
    else:
        if not g.cell:
            cell = Cell(g.cube)
        else:
            cell = g.cell

src/c/u/cubes-1.0alpha/cubes/server/decorators.py   cubes(Download)
from ..workspace import Workspace
from ..auth import NotAuthorized
from ..browser import Cell, cuts_from_string, SPLIT_DIMENSION_NAME
from ..errors import *
from .utils import *
 
    if cuts:
        cell = Cell(g.cube, cuts)
    else:
        cell = None

src/c/u/cubes-HEAD/cubes/server/decorators.py   cubes(Download)
from ..workspace import Workspace
from ..auth import NotAuthorized
from ..browser import Cell, cuts_from_string, SPLIT_DIMENSION_NAME
from ..errors import *
from .utils import *
 
    if cuts:
        cell = Cell(g.cube, cuts)
    else:
        cell = None

src/c/u/cubes-1.0alpha/cubes/server/blueprint.py   cubes(Download)
 
from ..workspace import Workspace, SLICER_INFO_KEYS
from ..browser import Cell, SPLIT_DIMENSION_NAME
from ..errors import *
from ..extensions import extensions
def cube_cell(cube_name):
    details = g.browser.cell_details(g.cell)
 
    if not g.cell:
        g.cell = Cell(g.cube)
        # Override URL cut with the one in report
        cuts = [cut_from_dict(cut) for cut in cell_cuts]
        cell = Cell(g.cube, cuts)
        logger.info("using cell from report specification (URL parameters "
                    "are ignored)")

src/c/u/cubes-1.0alpha/cubes/backends/sql/query.py   cubes(Download)
# -*- coding=utf -*-
 
from ...browser import Drilldown, Cell, PointCut, SetCut, RangeCut
from ...browser import SPLIT_DIMENSION_NAME
from ...errors import *

src/c/u/cubes-HEAD/cubes/backends/sql/query.py   cubes(Download)
# -*- coding=utf -*-
 
from ...browser import Drilldown, Cell, PointCut, SetCut, RangeCut
from ...browser import SPLIT_DIMENSION_NAME
from ...model import Attribute