|
a/Allura/allura/model/artifact.py |
|
b/Allura/allura/model/artifact.py |
|
... |
|
... |
277 |
indexes = [ 'app_config_id' ]
|
277 |
indexes = [ 'app_config_id' ]
|
278 |
def before_save(data):
|
278 |
def before_save(data):
|
279 |
if not getattr(artifact_orm_session._get(), 'skip_mod_date', False):
|
279 |
if not getattr(artifact_orm_session._get(), 'skip_mod_date', False):
|
280 |
data['mod_date'] = datetime.utcnow()
|
280 |
data['mod_date'] = datetime.utcnow()
|
281 |
else:
|
281 |
else:
|
282 |
log.info('Not updating mod_date')
|
282 |
log.debug('Not updating mod_date')
|
283 |
if c.project:
|
283 |
if c.project:
|
284 |
c.project.last_updated = datetime.utcnow()
|
284 |
c.project.last_updated = datetime.utcnow()
|
285 |
type_s = 'Generic Artifact'
|
285 |
type_s = 'Generic Artifact'
|
286 |
|
286 |
|
287 |
# Artifact base schema
|
287 |
# Artifact base schema
|