[ADD]: Images: caldav, crm_caldav, document_webdav, project_caldav
[odoo/odoo.git] / addons / caldav / calendar_collection.py
index 8289276..1258ba5 100644 (file)
@@ -35,8 +35,6 @@ class calendar_collection(osv.osv):
     }
     
     def _get_root_calendar_directory(self, cr, uid, context=None):
-        if not context:
-            context = {}
         objid = self.pool.get('ir.model.data')
         try:
             mid = objid._get_id(cr, uid, 'document', 'dir_calendars')
@@ -52,8 +50,6 @@ class calendar_collection(osv.osv):
         return False
 
     def get_node_class(self, cr, uid, ids, dbro=None, dynamic=False, context=None):
-        if not context:
-            context = {}
         if dbro is None:
             dbro = self.browse(cr, uid, ids, context=context)
 
@@ -69,13 +65,9 @@ class calendar_collection(osv.osv):
 
     def get_description(self, cr, uid, ids, context=None):
         #TODO : return description of all calendars
-        if not context:
-            context = {}
         return False
 
     def get_schedule_inbox_URL(self, cr, uid, ids, context=None):
-        if not context:
-            context = {}
         calendar_obj = self.pool.get('basic.calendar')
 
         calendar_ids = calendar_obj.search(cr, uid, [