# HG changeset patch # User rougeronj # Date 1348564760 -7200 # Node ID b8a758761a59773ef561090f1fa794505c715b9b # Parent 7d1267aa2f55b71eaf74dacfa3d545ef79c1e904 cleaning of utils.py diff -r 7d1267aa2f55 -r b8a758761a59 src/ldt/ldt/security/utils.py --- a/src/ldt/ldt/security/utils.py Tue Sep 25 11:13:51 2012 +0200 +++ b/src/ldt/ldt/security/utils.py Tue Sep 25 11:19:20 2012 +0200 @@ -40,15 +40,10 @@ m_cls = m_cls.model_class() new_content = c_cls.safe_objects.filter(iri_id=content.iri_id) - logging.debug("new_content : " + str(new_content)) if new_content: - logging.debug("new_content[0].media_obj.id : " + str(new_content[0].media_obj.id)) media = m_cls.safe_objects.filter(id=new_content[0].media_obj.id) - logging.debug("new_media : " + str(media)) if not media: - logging.debug("je retourne True") return True - logging.debug("je retourne false") return False def add_change_attr(user, obj_list):