incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [36/44] git commit: [#6534] ticket:449 Fix Page.delete()
Date Fri, 04 Oct 2013 14:43:24 GMT
[#6534] ticket:449 Fix Page.delete()


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/3bd2b02b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/3bd2b02b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/3bd2b02b

Branch: refs/heads/master
Commit: 3bd2b02b63331c8aafc66fff6f82f5dff4face18
Parents: 905602c
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Mon Sep 30 17:41:04 2013 +0300
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Fri Oct 4 14:21:24 2013 +0000

----------------------------------------------------------------------
 ForgeWiki/forgewiki/model/wiki.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/3bd2b02b/ForgeWiki/forgewiki/model/wiki.py
----------------------------------------------------------------------
diff --git a/ForgeWiki/forgewiki/model/wiki.py b/ForgeWiki/forgewiki/model/wiki.py
index 40e7c63..8d5894a 100644
--- a/ForgeWiki/forgewiki/model/wiki.py
+++ b/ForgeWiki/forgewiki/model/wiki.py
@@ -219,7 +219,7 @@ class Page(VersionedArtifact, ActivityObject):
         return User.query.find({'_id':{'$in':user_ids}}).all()
 
     def delete(self):
-        Shortlink.query.remove(dict(ref_id=self.page.index_id()))
+        Shortlink.query.remove(dict(ref_id=self.index_id()))
         self.deleted = True
         suffix = " {dt.hour}:{dt.minute}:{dt.second} {dt.day}-{dt.month}-{dt.year}".format(dt=datetime.utcnow())
         self.title += suffix


Mime
View raw message