[IMP]: base_calendar: Raise exception if python-vobject is not installed

bzr revid: rpa@openerp.co.in-20100205054134-l154i68tdrs5k9ow
This commit is contained in:
rpa (Open ERP)
2010-02-05 11:11:34 +05:30
parent 84c6572288
commit e9f4543e02
+6 -1
View File
@@ -30,9 +30,14 @@ import pooler
import pytz
import re
import tools
import vobject
import time
try:
import vobject
except ImportError:
raise osv.except_osv('vobject Import Error!','Please install python-vobject from http://vobject.skyhouseconsulting.com/')
# O-1 Optional and can come only once
# O-n Optional and can come more than once
# R-1 Required and can come only once