You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2012/10/10 21:54:11 UTC
git commit: [#5070] check _id.generation_time more carefully since
some Artifacts like Thread have a non-ObjectId _id
Updated Branches:
refs/heads/master 0ab1a49fd -> 995547d06
[#5070] check _id.generation_time more carefully since some Artifacts like Thread have a non-ObjectId _id
Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/995547d0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/995547d0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/995547d0
Branch: refs/heads/master
Commit: 995547d0638145a19738e5cfbd074ebe10512f0d
Parents: 0ab1a49
Author: Dave Brondsema <db...@geek.net>
Authored: Wed Oct 10 19:54:03 2012 +0000
Committer: Dave Brondsema <db...@geek.net>
Committed: Wed Oct 10 19:54:03 2012 +0000
----------------------------------------------------------------------
Allura/allura/model/artifact.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/995547d0/Allura/allura/model/artifact.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/artifact.py b/Allura/allura/model/artifact.py
index ef69c96..725da86 100644
--- a/Allura/allura/model/artifact.py
+++ b/Allura/allura/model/artifact.py
@@ -217,7 +217,7 @@ class Artifact(MappedClass):
project = self.project
return dict(
id=self.index_id(),
- created_dt=self._id.generation_time,
+ created_dt=getattr(self._id, 'generation_time', None),
mod_date_dt=self.mod_date,
title_s='Artifact %s' % self._id,
project_id_s=str(project._id),