|
a/bitergiametrics/model/metrics.py |
|
b/bitergiametrics/model/metrics.py |
|
... |
|
... |
9 |
|
9 |
|
10 |
from ming import schema
|
10 |
from ming import schema
|
11 |
from ming.orm import FieldProperty, ForeignIdProperty, Mapper, session, state
|
11 |
from ming.orm import FieldProperty, ForeignIdProperty, Mapper, session, state
|
12 |
from allura import model as M
|
12 |
from allura import model as M
|
13 |
from allura.lib import helpers as h
|
13 |
from allura.lib import helpers as h
|
14 |
from allura.lib import utils, patience
|
14 |
from allura.lib import utils
|
15 |
|
15 |
|
16 |
config = utils.ConfigProxy(
|
16 |
config = utils.ConfigProxy(
|
17 |
common_suffix='forgemail.domain')
|
17 |
common_suffix='forgemail.domain')
|
18 |
|
18 |
|
19 |
class MetricSnapshot(M.Snapshot):
|
19 |
class MetricSnapshot(M.Snapshot):
|
|
... |
|
... |
133 |
c.user.username, self.title)
|
133 |
c.user.username, self.title)
|
134 |
if self.state == 'published':
|
134 |
if self.state == 'published':
|
135 |
M.Notification.post(
|
135 |
M.Notification.post(
|
136 |
artifact=self, topic='metadata', text=description, subject=subject)
|
136 |
artifact=self, topic='metadata', text=description, subject=subject)
|
137 |
|
137 |
|
138 |
Mapper.compile_all() |
138 |
Mapper.compile_all()
|