Ejemplo n.º 1
0
    def test_remove_widgets_in_key_area(self):
        area = 'admin'
        widget_instance = self.overwritten_widget_instance(self.html_content)

        WidgetManager.register_widget(area, widget_instance)
        WidgetManager.unregister_widget(area, self.widget_id)

        self.assertEqual(len(WidgetManager.get_widgets(area)), 0)
Ejemplo n.º 2
0
    def test_remove_widgets_in_key_area(self):
        area = 'admin'
        widget_instance = self.ovewrited_widget_instance(self.html_content)

        WidgetManager.register_widget(area, widget_instance)
        WidgetManager.unregister_widget(area, self.widget_id)

        self.assertEqual(len(WidgetManager.get_widgets(area)), 0)
from colab.widgets.widget_manager import WidgetManager
from colab_taiga.widgets.user_story import UserStoriesWidget


WidgetManager.register_widget('list', UserStoriesWidget())
Ejemplo n.º 4
0
from colab.widgets.widget_manager import WidgetManager
from colab.accounts.widgets.group import GroupWidget
from colab.accounts.widgets.group_membership import GroupMembershipWidget
from colab.accounts.widgets.latest_posted import LatestPostedWidget
from colab.accounts.widgets.latest_contributions import LatestContributionsWidget


WidgetManager.register_widget('group', GroupWidget())
WidgetManager.register_widget('button', GroupMembershipWidget())
WidgetManager.register_widget('list', LatestPostedWidget())
WidgetManager.register_widget('list', LatestContributionsWidget())
Ejemplo n.º 5
0
from colab.widgets.widget_manager import WidgetManager

from colab_gitlab.widgets.profile.profile import GitlabProfileWidget

WidgetManager.register_widget('profile', GitlabProfileWidget())
from colab.widgets.widget_manager import WidgetManager
from colab_wikilegis.widgets.home_section import WikilegisHomeSectionWidget
from colab_wikilegis.widgets.navigation_links import (
    WikilegisNavigationLinksWidget
)

WidgetManager.register_widget('home_section', WikilegisHomeSectionWidget())
WidgetManager.register_widget('navigation_links',
                              WikilegisNavigationLinksWidget())
from colab.widgets.widget_manager import WidgetManager
from colab_taiga.widgets.dashboard_most_relevant_projects import DashboardMostRelevantProjectsWidget


WidgetManager.register_widget(
    'dashboard', DashboardMostRelevantProjectsWidget())


    
Ejemplo n.º 8
0
from colab.widgets.widget_manager import WidgetManager
from colab.accounts.widgets.group import GroupWidget
from colab.accounts.widgets.group_membership import GroupMembershipWidget
from colab.accounts.widgets.latest_posted import LatestPostedWidget
from colab.accounts.widgets.latest_contributions import \
    LatestContributionsWidget

from colab.accounts.widgets.collaboration_chart import CollaborationChart
from colab.accounts.widgets.participation_chart import ParticipationChart

# Profile Widgets
WidgetManager.register_widget('group', GroupWidget())
WidgetManager.register_widget('button', GroupMembershipWidget())
WidgetManager.register_widget('list', LatestPostedWidget())
WidgetManager.register_widget('list', LatestContributionsWidget())
WidgetManager.register_widget('charts', CollaborationChart())
WidgetManager.register_widget('charts', ParticipationChart())
from colab.widgets.widget_manager import WidgetManager

from colab_noosfero.widgets.profile.profile import NoosferoProfileWidget

WidgetManager.register_widget('profile', NoosferoProfileWidget())
Ejemplo n.º 10
0
from colab.widgets.widget_manager import WidgetManager
from colab.super_archives.widgets.dashboard_latest_collaborations import DashboardLatestCollaborationsWidget
from colab.super_archives.widgets.dashboard_most_relevant_threads import DashboardMostRelevantThreadsWidget
from colab.super_archives.widgets.dashboard_latest_threads import DashboardLatestThreadsWidget
from colab.super_archives.widgets.dashboard_collaboration_graph import DashboardCollaborationGraphWidget

WidgetManager.register_widget('dashboard',
                              DashboardLatestCollaborationsWidget())
WidgetManager.register_widget('dashboard', DashboardCollaborationGraphWidget())
WidgetManager.register_widget('dashboard',
                              DashboardMostRelevantThreadsWidget())
WidgetManager.register_widget('dashboard', DashboardLatestThreadsWidget())
Ejemplo n.º 11
0
from colab.widgets.widget_manager import WidgetManager
from colab.accounts.widgets.collaboration_chart import CollaborationChart
from colab.accounts.widgets.participation_chart import ParticipationChart

WidgetManager.register_widget('charts', CollaborationChart())
WidgetManager.register_widget('charts', ParticipationChart())
Ejemplo n.º 12
0
 def setUp(self):
     self.widget = self.overwritten_widget_instance(self.html_content)
     WidgetManager.register_widget(self.widget_area, self.widget)
from colab.widgets.widget_manager import WidgetManager
from colab_discourse.widgets.home_section import DiscourseHomeSectionWidget
from colab_discourse.widgets.navigation_links import (
    DiscourseNavigationLinksWidget
)


WidgetManager.register_widget('home_section', DiscourseHomeSectionWidget())
WidgetManager.register_widget('navigation_links',
                              DiscourseNavigationLinksWidget())
Ejemplo n.º 14
0
from colab.widgets.widget_manager import WidgetManager
from colab.widgets.dashboard.dashboard_latest_collaborations import DashboardLatestCollaborationsWidget
from colab.widgets.dashboard.dashboard_collaboration_graph import DashboardCollaborationGraphWidget

WidgetManager.register_widget('dashboard',
                              DashboardLatestCollaborationsWidget())
WidgetManager.register_widget('dashboard', DashboardCollaborationGraphWidget())
Ejemplo n.º 15
0
from colab.widgets.widget_manager import WidgetManager

from colab.super_archives.widgets.dashboard_latest_collaborations import \
    DashboardLatestCollaborationsWidget
from colab.super_archives.widgets.dashboard_most_relevant_threads import \
    DashboardMostRelevantThreadsWidget
from colab.super_archives.widgets.dashboard_latest_threads import \
    DashboardLatestThreadsWidget
from colab.super_archives.widgets.dashboard_collaboration_graph import \
    DashboardCollaborationGraphWidget

# Dashboard Widgets
WidgetManager.register_widget('dashboard',
                              DashboardLatestCollaborationsWidget())
WidgetManager.register_widget('dashboard',
                              DashboardCollaborationGraphWidget())
WidgetManager.register_widget('dashboard',
                              DashboardMostRelevantThreadsWidget())
WidgetManager.register_widget('dashboard',
                              DashboardLatestThreadsWidget())

Ejemplo n.º 16
0
 def setUp(self):
     custom_widget = self.ovewrited_widget_instance(self.html_content)
     WidgetManager.register_widget(self.widget_area, custom_widget)
from colab.widgets.widget_manager import WidgetManager
from colab_audiencias.widgets.home_section import AudienciasHomeSectionWidget
from colab_audiencias.widgets.navigation_links import (
    AudienciasNavigationLinksWidget
)


WidgetManager.register_widget('home_section', AudienciasHomeSectionWidget())
WidgetManager.register_widget('navigation_links',
                              AudienciasNavigationLinksWidget())
Ejemplo n.º 18
0
from colab.widgets.widget_manager import WidgetManager
from colab.widgets.dashboard.dashboard_latest_collaborations import DashboardLatestCollaborationsWidget
from colab.widgets.dashboard.dashboard_collaboration_graph import DashboardCollaborationGraphWidget


WidgetManager.register_widget(
    'dashboard', DashboardLatestCollaborationsWidget())
WidgetManager.register_widget(
    'dashboard', DashboardCollaborationGraphWidget())