summaryrefslogtreecommitdiff
path: root/bin/tools
diff options
context:
space:
mode:
authorapa-tiny <apa@tinyerp.com>2010-03-02 10:40:49 +0530
committerapa-tiny <apa@tinyerp.com>2010-03-02 10:40:49 +0530
commit1007ab593bf3951292c5e0d75c8dca0fcd9a83d7 (patch)
tree9c0a5f96797ff6ac9547e249bf4e616ba5942a3c /bin/tools
parentf22c3eb50f2335db7dfb5ab745881694791f5b38 (diff)
parent4e2beb23aeb6479900952f5a8b7cb4836505044c (diff)
merged
bzr revid: apa@tinyerp.com-20100302051049-fzug22vl8vwa05e6
Diffstat (limited to 'bin/tools')
-rw-r--r--bin/tools/convert.py19
1 files changed, 1 insertions, 18 deletions
diff --git a/bin/tools/convert.py b/bin/tools/convert.py
index 4314651d084..cc5b5bdc5df 100644
--- a/bin/tools/convert.py
+++ b/bin/tools/convert.py
@@ -18,6 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
+
import cStringIO
import csv
import logging
@@ -62,7 +63,6 @@ def _eval_xml(self,node, pool, cr, uid, idref, context=None):
f_search = node.get("search",'').encode('utf-8')
f_use = node.get("use",'id').encode('ascii')
f_name = node.get("name",'').encode('utf-8')
-
q = eval(f_search, idref)
ids = pool.get(f_model).search(cr, uid, q)
if f_use != 'id':
@@ -190,7 +190,6 @@ class assertion_report(object):
return res
class xml_import(object):
-
@staticmethod
def nodeattr2bool(node, attr, default=False):
if not node.get(attr):
@@ -866,19 +865,3 @@ def convert_xml_import(cr, module, xmlfile, idref=None, mode='init', noupdate=Fa
obj.parse(doc.getroot())
return True
-def convert_xml_export(res):
- uid=1
- pool=pooler.get_pool(cr.dbname)
- cr=pooler.db.cursor()
- idref = {}
- page = etree.Element ( 'terp' )
- doc = etree.ElementTree ( page )
- data = etree.SubElement ( page, 'data' )
- text_node = etree.SubElement ( page, 'text' )
- text_node.text = 'Some textual content.'
- cr.commit()
- cr.close()
-
-
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
-