示例#1
0
#
# Copyright (C) 2016-2020 TU Muenchen and contributors of ANEXIA Internetdienstleistungs GmbH
# SPDX-License-Identifier: AGPL-3.0-or-later
#
from eric.core.models import BaseManager
from eric.labbooks.models.querysets import LabBookQuerySet, LabBookChildElementQuerySet, LabbookSectionQuerySet

LabBookManager = BaseManager.from_queryset(LabBookQuerySet)
LabBookChildElementManager = BaseManager.from_queryset(
    LabBookChildElementQuerySet)
LabbookSectionManager = BaseManager.from_queryset(LabbookSectionQuerySet)
示例#2
0
#
# Copyright (C) 2016-2020 TU Muenchen and contributors of ANEXIA Internetdienstleistungs GmbH
# SPDX-License-Identifier: AGPL-3.0-or-later
#
from eric.core.models import BaseManager
from eric.favourites.models.querysets import FavouriteQuerySet

FavouriteManager = BaseManager.from_queryset(FavouriteQuerySet)
示例#3
0
#
# Copyright (C) 2016-2020 TU Muenchen and contributors of ANEXIA Internetdienstleistungs GmbH
# SPDX-License-Identifier: AGPL-3.0-or-later
#
from eric.core.models import BaseManager
from eric.sortable_menu.models.querysets import MenuEntryQuerySet, MenuEntryParameterQuerySet

MenuEntryManager = BaseManager.from_queryset(MenuEntryQuerySet)
MenuEntryParameterManager = BaseManager.from_queryset(MenuEntryParameterQuerySet)
示例#4
0
#
# Copyright (C) 2016-2020 TU Muenchen and contributors of ANEXIA Internetdienstleistungs GmbH
# SPDX-License-Identifier: AGPL-3.0-or-later
#
from eric.core.models import BaseManager
from eric.short_url.models.querysets import ShortURLQuerySet

ShortURLManager = BaseManager.from_queryset(ShortURLQuerySet)
示例#5
0
#
# Copyright (C) 2016-2020 TU Muenchen and contributors of ANEXIA Internetdienstleistungs GmbH
# SPDX-License-Identifier: AGPL-3.0-or-later
#
from eric.core.models import BaseManager
from eric.base64_image_extraction.models.querysets import ExtractedImageQuerySet

# create managers for all our important objects
ExtractedImageManager = BaseManager.from_queryset(ExtractedImageQuerySet)
示例#6
0
#
# Copyright (C) 2016-2020 TU Muenchen and contributors of ANEXIA Internetdienstleistungs GmbH
# SPDX-License-Identifier: AGPL-3.0-or-later
#
from eric.core.models import BaseManager
from eric.shared_elements.models.querysets import ContactQuerySet, ElementLabelQuerySet, \
    NoteQuerySet, FileQuerySet, TaskQuerySet, TaskAssignedUserQuerySet, TaskCheckListQuerySet, \
    MeetingQuerySet, UserAttendsMeetingQuerySet, ContactAttendsMeetingQuerySet, CalendarAccessQuerySet, CommentQuerySet

ContactManager = BaseManager.from_queryset(ContactQuerySet)
ElementLabelManager = BaseManager.from_queryset(ElementLabelQuerySet)
NoteManager = BaseManager.from_queryset(NoteQuerySet)
CommentManager = BaseManager.from_queryset(CommentQuerySet)
FileManager = BaseManager.from_queryset(FileQuerySet)
TaskManager = BaseManager.from_queryset(TaskQuerySet)
TaskAssignedUserManager = BaseManager.from_queryset(TaskAssignedUserQuerySet)
TaskCheckListManager = BaseManager.from_queryset(TaskCheckListQuerySet)
MeetingManager = BaseManager.from_queryset(MeetingQuerySet)
UserAttendsMeetingManager = BaseManager.from_queryset(
    UserAttendsMeetingQuerySet)
ContactAttendsMeetingManager = BaseManager.from_queryset(
    ContactAttendsMeetingQuerySet)
CalendarAccessManager = BaseManager.from_queryset(CalendarAccessQuerySet)
示例#7
0
#
# Copyright (C) 2016-2020 TU Muenchen and contributors of ANEXIA Internetdienstleistungs GmbH
# SPDX-License-Identifier: AGPL-3.0-or-later
#
from eric.core.models import BaseManager
from eric.pictures.models.querysets import PictureQuerySet

PictureManager = BaseManager.from_queryset(PictureQuerySet)
示例#8
0
#
# Copyright (C) 2016-2020 TU Muenchen and contributors of ANEXIA Internetdienstleistungs GmbH
# SPDX-License-Identifier: AGPL-3.0-or-later
#
from eric.core.models import BaseManager
from eric.relations.querysets import RelationQuerySet

RelationManager = BaseManager.from_queryset(RelationQuerySet)
示例#9
0
#
# Copyright (C) 2016-2020 TU Muenchen and contributors of ANEXIA Internetdienstleistungs GmbH
# SPDX-License-Identifier: AGPL-3.0-or-later
#
from eric.core.models import BaseManager
from eric.plugins.models.querysets import PluginQuerySet, PluginInstanceQuerySet

PluginManager = BaseManager.from_queryset(PluginQuerySet)
PluginInstanceManager = BaseManager.from_queryset(PluginInstanceQuerySet)
示例#10
0
#
# Copyright (C) 2016-2020 TU Muenchen and contributors of ANEXIA Internetdienstleistungs GmbH
# SPDX-License-Identifier: AGPL-3.0-or-later
#
from eric.core.models import BaseManager
from eric.metadata.models.querysets import MetadataQuerySet

MetadataManager = BaseManager.from_queryset(MetadataQuerySet)
示例#11
0
#
# Copyright (C) 2016-2020 TU Muenchen and contributors of ANEXIA Internetdienstleistungs GmbH
# SPDX-License-Identifier: AGPL-3.0-or-later
#
from eric.core.models import BaseManager
from eric.model_privileges.querysets import ModelPrivilegeQuerySet

ModelPrivilegeManager = BaseManager.from_queryset(ModelPrivilegeQuerySet)
示例#12
0
#
# Copyright (C) 2016-2020 TU Muenchen and contributors of ANEXIA Internetdienstleistungs GmbH
# SPDX-License-Identifier: AGPL-3.0-or-later
#
from eric.core.models import BaseManager
from eric.userprofile.models.querysets import UserProfileQuerySet

UserProfileManager = BaseManager.from_queryset(UserProfileQuerySet)
示例#13
0
#
# Copyright (C) 2016-2021 TU Muenchen and contributors of ANEXIA Internetdienstleistungs GmbH
# SPDX-License-Identifier: AGPL-3.0-or-later
#
from eric.core.models import BaseManager
from eric.faq.models.querysets import FAQQuestionAndAnswerQuerySet, FAQCategoryQuerySet

FAQQuestionAndAnswerManager = BaseManager.from_queryset(
    FAQQuestionAndAnswerQuerySet)
FAQCategoryManager = BaseManager.from_queryset(FAQCategoryQuerySet)
示例#14
0
#
# Copyright (C) 2016-2020 TU Muenchen and contributors of ANEXIA Internetdienstleistungs GmbH
# SPDX-License-Identifier: AGPL-3.0-or-later
#
from eric.core.models import BaseManager
from eric.notifications.models.querysets import NotificationConfigurationQuerySet, NotificationQuerySet, \
    ScheduledNotificationQuerySet

NotificationConfigurationManager = BaseManager.from_queryset(
    NotificationConfigurationQuerySet)
NotificationManager = BaseManager.from_queryset(NotificationQuerySet)
ScheduledNotificationManager = BaseManager.from_queryset(
    ScheduledNotificationQuerySet)
示例#15
0
#
# Copyright (C) 2016-2020 TU Muenchen and contributors of ANEXIA Internetdienstleistungs GmbH
# SPDX-License-Identifier: AGPL-3.0-or-later
#
from eric.core.models import BaseManager
from eric.kanban_boards.models.querysets import KanbanBoardQuerySet, KanbanBoardColumnQuerySet, \
    KanbanBoardColumnTaskAssignmentQuerySet, KanbanBoardUserFilterSettingQuerySet, KanbanBoardUserSettingQuerySet

KanbanBoardManager = BaseManager.from_queryset(KanbanBoardQuerySet)
KanbanBoardColumnManager = BaseManager.from_queryset(KanbanBoardColumnQuerySet)
KanbanBoardColumnTaskAssignmentManager = BaseManager.from_queryset(
    KanbanBoardColumnTaskAssignmentQuerySet)
KanbanBoardUserFilterSettingManager = BaseManager.from_queryset(
    KanbanBoardUserFilterSettingQuerySet)
KanbanBoardUserSettingManager = BaseManager.from_queryset(
    KanbanBoardUserSettingQuerySet)
示例#16
0
#
# Copyright (C) 2016-2020 TU Muenchen and contributors of ANEXIA Internetdienstleistungs GmbH
# SPDX-License-Identifier: AGPL-3.0-or-later
#
from eric.core.models import BaseManager
from eric.versions.models.querysets import VersionQuerySet

VersionManager = BaseManager.from_queryset(VersionQuerySet)
示例#17
0
#
# Copyright (C) 2016-2020 TU Muenchen and contributors of ANEXIA Internetdienstleistungs GmbH
# SPDX-License-Identifier: AGPL-3.0-or-later
#
from eric.core.models import BaseManager
from eric.projects.models.querysets import ProjectQuerySet, ProjectRoleUserAssignmentQuerySet, RoleQuerySet, \
    ResourceQuerySet, UserStorageLimitQuerySet, ElementLockQuerySet
from mptt.managers import TreeManager

# create managers for all our important objects
ProjectManager = TreeManager.from_queryset(ProjectQuerySet)
ProjectRoleUserAssignmentManager = BaseManager.from_queryset(
    ProjectRoleUserAssignmentQuerySet)
ResourceManager = BaseManager.from_queryset(ResourceQuerySet)
RoleManager = BaseManager.from_queryset(RoleQuerySet)
UserStorageLimitManager = BaseManager.from_queryset(UserStorageLimitQuerySet)
ElementLockManager = BaseManager.from_queryset(ElementLockQuerySet)
示例#18
0
#
# Copyright (C) 2016-2020 TU Muenchen and contributors of ANEXIA Internetdienstleistungs GmbH
# SPDX-License-Identifier: AGPL-3.0-or-later
#
from eric.core.models import BaseManager
from eric.dss.models.querysets import DSSEnvelopeQuerySet, DSSContainerQuerySet, DSSFilesToImportQuerySet

DSSEnvelopeManager = BaseManager.from_queryset(DSSEnvelopeQuerySet)
DSSContainerManager = BaseManager.from_queryset(DSSContainerQuerySet)
DSSFilesToImportManager = BaseManager.from_queryset(DSSFilesToImportQuerySet)
示例#19
0
#
# Copyright (C) 2016-2020 TU Muenchen and contributors of ANEXIA Internetdienstleistungs GmbH
# SPDX-License-Identifier: AGPL-3.0-or-later
#
from eric.core.models import BaseManager
from eric.drives.models.querysets import DriveQuerySet, DirectoryQuerySet

DriveManager = BaseManager.from_queryset(DriveQuerySet)
DirectoryManager = BaseManager.from_queryset(DirectoryQuerySet)