[FIX] xpath not exists in Python 2.6, and not necessary with lxml
bzr revid: christophe.chauvet@syleam.fr-20091207183949-ff7qscvw8088pt4g
This commit is contained in:
@@ -29,12 +29,7 @@ import re
|
||||
import copy
|
||||
import sys
|
||||
|
||||
try:
|
||||
from xml import dom, xpath
|
||||
except ImportError:
|
||||
sys.stderr.write("ERROR: Import xpath module\n")
|
||||
sys.stderr.write("ERROR: Try to install the old python-xml package\n")
|
||||
sys.exit(2)
|
||||
from xml import dom
|
||||
|
||||
class actions(osv.osv):
|
||||
_name = 'ir.actions.actions'
|
||||
|
||||
Reference in New Issue
Block a user