Ejemplo n.º 1
0
            'title': _("media"),
            'display': "tabs",
            'children': [Models()]
        })
        super(MainDashboard, self).__init__(**kwargs)


class Models(modules.ModelList):
    def __init__(self, **kwargs):
        kwargs.update({
            'title': _("main models"),
            'models': (
                'media.models.Photo',
                'media.models.Video',
            ),
        })
        super(Models, self).__init__(**kwargs)


class DefaultAppDashboard(AppIndexDashboard):
    def __init__(self, app_title, models, **kwargs):
        AppIndexDashboard.__init__(self, app_title, models, **kwargs)
        self.columns = 3

    def init_with_context(self, context):
        self.children.append(DefaultDashboard(), )


jmb_dashboard.register_group(MainDashboard, 'media')
admin_tools.dashboard.register(DefaultAppDashboard, 'media')
Ejemplo n.º 2
0
    def __init__(self, **kwargs):
        kwargs.update({
            'title': _("project"),
            'display': "tabs",
            'children': [Models()]
        })
        super(MainDashboard, self).__init__(**kwargs)


class Models(modules.ModelList):
    def __init__(self, **kwargs):
        kwargs.update({
            'title': _("main models"),
            'models': ('project.models.Project', 'project.models.Task',
                       ),
        })
        super(Models, self).__init__(**kwargs)


class DefaultAppDashboard(AppIndexDashboard):
    def __init__(self, app_title, models, **kwargs):
        AppIndexDashboard.__init__(self, app_title, models, **kwargs)
        self.columns = 3

    def init_with_context(self, context):
        self.children.append(DefaultDashboard(), )


jmb_dashboard.register_group(MainDashboard, 'project')
admin_tools.dashboard.register(DefaultAppDashboard, 'project')
Ejemplo n.º 3
0
class MainDashboard(modules.Group):
    def __init__(self, **kwargs):
        kwargs.update({
            'title': _("notify"),
            'display': "tabs",
            'children': [Models()]
        })
        super(MainDashboard, self).__init__(**kwargs)


class Models(modules.ModelList):
    def __init__(self, **kwargs):
        kwargs.update({
            'title': _("main models"),
            'models': ('notify.models.Notify', ),
        })
        super(Models, self).__init__(**kwargs)


class DefaultAppDashboard(AppIndexDashboard):
    def __init__(self, app_title, models, **kwargs):
        AppIndexDashboard.__init__(self, app_title, models, **kwargs)
        self.columns = 3

    def init_with_context(self, context):
        self.children.append(DefaultDashboard(), )


jmb_dashboard.register_group(MainDashboard, 'notify')
admin_tools.dashboard.register(DefaultAppDashboard, 'notify')
Ejemplo n.º 4
0
class MainDashboard(modules.Group):
    def __init__(self, **kwargs):
        kwargs.update({
            'title': _("document"),
            'display': "tabs",
            'children': [Models()]
        })
        super(MainDashboard, self).__init__(**kwargs)


class Models(modules.ModelList):
    def __init__(self, **kwargs):
        kwargs.update({
            'title': _("main models"),
            'models': ('document.models.Document', ),
        })
        super(Models, self).__init__(**kwargs)


class DefaultAppDashboard(AppIndexDashboard):
    def __init__(self, app_title, models, **kwargs):
        AppIndexDashboard.__init__(self, app_title, models, **kwargs)
        self.columns = 3

    def init_with_context(self, context):
        self.children.append(DefaultDashboard(), )


jmb_dashboard.register_group(MainDashboard, 'document')
admin_tools.dashboard.register(DefaultAppDashboard, 'document')
Ejemplo n.º 5
0
        })
        super(MainDashboard, self).__init__(**kwargs)


class Models(modules.ModelList):
    def __init__(self, **kwargs):
        kwargs.update({
            'title':
            _("main models"),
            'models': (
                'profile.models.Company',
                'profile.models.Profile',
                'profile.models.Invite',
                'profile.models.Favourite',
            ),
        })
        super(Models, self).__init__(**kwargs)


class DefaultAppDashboard(AppIndexDashboard):
    def __init__(self, app_title, models, **kwargs):
        AppIndexDashboard.__init__(self, app_title, models, **kwargs)
        self.columns = 3

    def init_with_context(self, context):
        self.children.append(DefaultDashboard(), )


jmb_dashboard.register_group(MainDashboard, 'profile')
admin_tools.dashboard.register(DefaultAppDashboard, 'profile')
Ejemplo n.º 6
0
class MainDashboard(modules.Group):
    def __init__(self, **kwargs):
        kwargs.update({
            'title': _("message"),
            'display': "tabs",
            'children': [Models()]
        })
        super(MainDashboard, self).__init__(**kwargs)


class Models(modules.ModelList):
    def __init__(self, **kwargs):
        kwargs.update({
            'title': _("main models"),
            'models': ('message.models.Message', ),
        })
        super(Models, self).__init__(**kwargs)


class DefaultAppDashboard(AppIndexDashboard):
    def __init__(self, app_title, models, **kwargs):
        AppIndexDashboard.__init__(self, app_title, models, **kwargs)
        self.columns = 3

    def init_with_context(self, context):
        self.children.append(DefaultDashboard(), )


jmb_dashboard.register_group(MainDashboard, 'message')
admin_tools.dashboard.register(DefaultAppDashboard, 'message')
Ejemplo n.º 7
0
        kwargs.update({
            'title': _("quotation"),
            'display': "tabs",
            'children': [Models()]
        })
        super(MainDashboard, self).__init__(**kwargs)


class Models(modules.ModelList):
    def __init__(self, **kwargs):
        kwargs.update({
            'title': _("main models"),
            'models': ('quotation.models.Bom', 'quotation.models.BomRow', 'quotation.models.Quotation',
                       'quotation.models.QuotationRow', 'quotation.models.Offer', 'quotation.models.Certification',
                       ),
        })
        super(Models, self).__init__(**kwargs)


class DefaultAppDashboard(AppIndexDashboard):
    def __init__(self, app_title, models, **kwargs):
        AppIndexDashboard.__init__(self, app_title, models, **kwargs)
        self.columns = 3

    def init_with_context(self, context):
        self.children.append(DefaultDashboard(), )


jmb_dashboard.register_group(MainDashboard, 'quotation')
admin_tools.dashboard.register(DefaultAppDashboard, 'quotation')