cleaning of utils.py
authorrougeronj
Tue, 25 Sep 2012 11:19:20 +0200
changeset 797 b8a758761a59
parent 796 7d1267aa2f55
child 799 76aa5fbbfd02
cleaning of utils.py
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):