From 3b9a696f90c690e2c43f88656ee46a711d7c5f34 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sun, 17 Jun 2012 19:00:40 +0000 Subject: [PATCH] Cleanup svn: r19857 --- src/webapp/dbdjango.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/webapp/dbdjango.py b/src/webapp/dbdjango.py index e30b00041..22ec9dc43 100644 --- a/src/webapp/dbdjango.py +++ b/src/webapp/dbdjango.py @@ -639,18 +639,11 @@ class DbDjango(DbWriteBase, DbReadBase): def get_place_from_handle(self, handle): if handle in self.import_cache: return self.import_cache[handle] - # FIXME: use object cache try: - dji_obj = self.dji.Place.get(handle=handle) + place = self.dji.Place.get(handle=handle) except: - dji_obj = None - if dji_obj: - tuple_obj = self.dji.get_place(dji_obj) - if tuple_obj: - obj = gen.lib.Place() - obj.unserialize(tuple_obj) - return obj - return None + return None + return self.make_place(place) def get_citation_from_handle(self, handle): if handle in self.import_cache: