diff --git a/addons/document_caldav/__init__.py b/addons/document_caldav/__init__.py deleted file mode 100644 index d764dfca72d..00000000000 --- a/addons/document_caldav/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# Copyright (C) 2004-2010 Tiny SPRL (). -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -############################################################################## - -import document_caldav -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/document_caldav/__terp__.py b/addons/document_caldav/__terp__.py deleted file mode 100644 index d7480c734bd..00000000000 --- a/addons/document_caldav/__terp__.py +++ /dev/null @@ -1,37 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# Copyright (C) 2004-2010 Tiny SPRL (). -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -############################################################################## - - -{ - 'name': 'Support for caldav based on Document Management System', - 'version': '1.0', - 'category': 'Generic Modules/Others', - 'description': """Allows to synchronise calendars with others applications.""", - 'author': 'Tiny', - 'website': 'http://www.openerp.com', - 'depends': ['caldav','document_webdav', 'crm'], - 'init_xml': ['document_data.xml'], - 'update_xml': ['document_view.xml'], - 'demo_xml': ['document_demo.xml'], - 'installable': True, - 'active': False, -} -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/document_caldav/document_caldav.py b/addons/document_caldav/document_caldav.py deleted file mode 100644 index 01af5d0d345..00000000000 --- a/addons/document_caldav/document_caldav.py +++ /dev/null @@ -1,60 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# Copyright (C) 2004-2010 Tiny SPRL (). -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -############################################################################## - -from document.nodes import node_content -from osv import osv, fields -from osv.orm import except_orm -import base64 -import os - -class document_directory_content(osv.osv): - _inherit = 'document.directory.content' - _columns = { - 'object_id': fields.many2one('ir.model', 'Object', required=True), - } - - def process_write(self, cr, uid, node, data, context=None): - if node.extension != '.ics': - return super(document_directory_content, self).process_write(cr, uid, node, data, context) - content = self.browse(cr, uid, node.cnt_id, context) - fobj = self.pool.get(content.object_id.model) - if not context: - context = {} - fobj.import_cal(cr, uid, base64.encodestring(data), context=context) - return True - - def process_read(self, cr, uid, node, context=None): - ctx = (context or {}) - ctx.update(node.context.context.copy()) - ctx.update(node.dctx) - content = self.browse(cr, uid, node.cnt_id, ctx) - obj_class = self.pool.get(content.object_id.model) - domain = [] - if node.act_id: - domain.append(('id','=',node.act_id)) - # print "process read clause:",domain - ids = obj_class.search(cr, uid, domain, context=ctx) - ctx.update({'model': content.object_id.model}) - s = obj_class.export_cal(cr, uid, ids, context=ctx) - return s -document_directory_content() -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: - diff --git a/addons/document_caldav/document_data.xml b/addons/document_caldav/document_data.xml deleted file mode 100644 index aa9009aadb1..00000000000 --- a/addons/document_caldav/document_data.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - .ics - ICS Calendar - text/calendar - - - - diff --git a/addons/document_caldav/document_demo.xml b/addons/document_caldav/document_demo.xml deleted file mode 100644 index 6a0e4d10d7b..00000000000 --- a/addons/document_caldav/document_demo.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - Meeting Calendars - - - - Meeting Calendars - meetings - - .ics - - - - - - diff --git a/addons/document_caldav/document_view.xml b/addons/document_caldav/document_view.xml deleted file mode 100644 index ce937d1e286..00000000000 --- a/addons/document_caldav/document_view.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - document.directory - document.directory - form - - - - - - - - - -