Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #64659

Elementree and insert new element if it is not present - FIXED

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!border2.nntp.ams2.giganews.com!border1.nntp.ams2.giganews.com!backlog3.nntp.ams3.giganews.com!backlog3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <tharanga.abeyseela@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.068
X-Spam-Evidence '*H*': 0.88; '*S*': 0.01; 'subject:not': 0.03; 'namespace': 0.09; 'fix': 0.17; 'message-id:@mail.gmail.com': 0.30; 'checking': 0.33; 'received:google.com': 0.35; 'add': 0.35; 'thanks': 0.36; 'subject:new': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'condition.': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=ekFsA+5shqh/xnGTV8D4S6/ReSa8Ic69az1g7VDCH5s=; b=cG0UhPoOyMvwlAZDICussHVfTI+fnyfmiXuBBPT4HdPPfqu39UWfpvjy7NVpoApDKq zmN8PELNELU1g6CPQ/GvjcTcweT4Y24aIiDit05eZ7WP0geAIkx8LRNKAJHZzOrNjqj/ 66326ymvNWxW+Ig91znrBXyCJnG21Mqz5Jce1O5Bi2Na9C8rBLKLhpX4eQUg1T05xr37 IWVy62lQP7zl/O9Yn2W9+tbncqJ6FCS2fRDEvjtWJSmHTjXJBnLMwO55Z629xxi2Xy55 OnJGGP2KF2ogZbnydhj6F+YHsKng5FZe9x898qQ8jgKxAa4AlSb77xwHDoKN/HIEHPRn xJcA==
MIME-Version 1.0
X-Received by 10.180.75.202 with SMTP id e10mr1470772wiw.50.1390533026106; Thu, 23 Jan 2014 19:10:26 -0800 (PST)
Date Fri, 24 Jan 2014 14:10:26 +1100
Subject Elementree and insert new element if it is not present - FIXED
From Tharanga Abeyseela <tharanga.abeyseela@gmail.com>
To python-list@python.org
Content-Type multipart/alternative; boundary=f46d0438956911d3bd04f0aeb3be
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.5929.1390533034.18130.python-list@python.org> (permalink)
Lines 13
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1390533034 news.xs4all.nl 2940 [2001:888:2000:d::a6]:48149
X-Complaints-To abuse@xs4all.nl
X-Original-Bytes 2995
Xref csiph.com comp.lang.python:64659

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

manged to fix it. need to add the namespace when checking the condition.

Thanks

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Elementree and insert new element if it is not present - FIXED Tharanga Abeyseela <tharanga.abeyseela@gmail.com> - 2014-01-24 14:10 +1100

csiph-web