incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [7/21] git commit: [#5070] check _id.generation_time more carefully since some Artifacts like Thread have a non-ObjectId _id
Date Thu, 11 Oct 2012 19:58:51 GMT
[#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/cj/4942
Commit: 995547d0638145a19738e5cfbd074ebe10512f0d
Parents: 0ab1a49
Author: Dave Brondsema <dbrondsema@geek.net>
Authored: Wed Oct 10 19:54:03 2012 +0000
Committer: Dave Brondsema <dbrondsema@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),


Mime
View raw message