| # -*- coding: utf-8 -*- |
| |
| # Licensed to the Apache Software Foundation (ASF) under one |
| # or more contributor license agreements. See the NOTICE file |
| # distributed with this work for additional information |
| # regarding copyright ownership. The ASF licenses this file |
| # to you under the Apache License, Version 2.0 (the |
| # "License"); you may not use this file except in compliance |
| # with the License. You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, |
| # software distributed under the License is distributed on an |
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| # KIND, either express or implied. See the License for the |
| # specific language governing permissions and limitations |
| # under the License. |
| |
| """The application's model objects""" |
| |
| from .neighborhood import Neighborhood, NeighborhoodFile |
| from .project import Project, ProjectCategory, TroveCategory, ProjectFile, AppConfig |
| from .index import ArtifactReference, Shortlink |
| from .artifact import Artifact, MovedArtifact, Message, VersionedArtifact, Snapshot, Feed, AwardFile, Award, AwardGrant, VotableArtifact |
| from .discuss import Discussion, Thread, PostHistory, Post, DiscussionAttachment |
| from .attachments import BaseAttachment |
| from .auth import AuthGlobals, User, ProjectRole, EmailAddress, OldProjectRole |
| from .auth import AuditLog, audit_log, AlluraUserProperty |
| from .filesystem import File |
| from .notification import Notification, Mailbox |
| from .repository import Repository, RepositoryImplementation |
| from .repository import MergeRequest, GitLikeTree |
| from .stats import Stats |
| from .oauth import OAuthToken, OAuthConsumerToken, OAuthRequestToken, OAuthAccessToken |
| from .monq_model import MonQTask |
| from .webhook import Webhook |
| |
| from .types import ACE, ACL, EVERYONE, ALL_PERMISSIONS, DENY_ALL, MarkdownCache |
| from .session import main_doc_session, main_orm_session |
| from .session import project_doc_session, project_orm_session |
| from .session import artifact_orm_session, repository_orm_session |
| from .session import task_orm_session |
| from .session import ArtifactSessionExtension |
| |
| from . import repository |
| from . import repo_refresh |
| |
| from ming.orm import Mapper |
| Mapper.compile_all() |