|
a/Allura/allura/model/discuss.py |
|
b/Allura/allura/model/discuss.py |
1 |
import logging
|
1 |
import logging
|
2 |
import urllib
|
2 |
import urllib
|
3 |
|
3 |
|
4 |
import tg
|
|
|
5 |
import pymongo
|
4 |
import pymongo
|
6 |
from pylons import c, g
|
5 |
from pylons import c, g
|
7 |
|
6 |
|
8 |
from ming import schema
|
7 |
from ming import schema
|
9 |
from ming.orm.base import session
|
8 |
from ming.orm.base import session
|
|
... |
|
... |
14 |
from .artifact import Artifact, VersionedArtifact, Snapshot, Message, Feed
|
13 |
from .artifact import Artifact, VersionedArtifact, Snapshot, Message, Feed
|
15 |
from .attachments import BaseAttachment
|
14 |
from .attachments import BaseAttachment
|
16 |
from .types import ArtifactReference, ArtifactReferenceType
|
15 |
from .types import ArtifactReference, ArtifactReferenceType
|
17 |
|
16 |
|
18 |
log = logging.getLogger(__name__)
|
17 |
log = logging.getLogger(__name__)
|
19 |
|
|
|
20 |
common_suffix = tg.config.get('forgemail.domain', '.sourceforge.net')
|
|
|
21 |
|
18 |
|
22 |
class Discussion(Artifact):
|
19 |
class Discussion(Artifact):
|
23 |
class __mongometa__:
|
20 |
class __mongometa__:
|
24 |
name='discussion'
|
21 |
name='discussion'
|
25 |
type_s = 'Discussion'
|
22 |
type_s = 'Discussion'
|