Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion append to paths = soup.findAll('path')

Received: by 10.58.225.134 with SMTP id rk6mr8890313vec.40.1351785433257;
        Thu, 01 Nov 2012 08:57:13 -0700 (PDT)
X-BeenThere: beautifulsoup@googlegroups.com
Received: by 10.221.10.72 with SMTP id oz8ls2537433vcb.5.gmail; Thu, 01 Nov
 2012 08:57:12 -0700 (PDT)
Received: by 10.52.91.168 with SMTP id cf8mr7644196vdb.6.1351785432528;
        Thu, 01 Nov 2012 08:57:12 -0700 (PDT)
Date: Thu, 1 Nov 2012 08:57:12 -0700 (PDT)
From: Jared Thompson <afo...@gmail.com>
To: beautifulsoup@googlegroups.com
Message-Id: <4587a891-40af-4f3d-84b8-f3a7958d606f@googlegroups.com>
In-Reply-To: <1429337a-f996-4fe3-91e1-539ea988bd01@googlegroups.com>
References: <1429337a-f996-4fe3-91e1-539ea988bd01@googlegroups.com>
Subject: Re: append to paths = soup.findAll('path')
MIME-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_390_19287002.1351785432204"

------=_Part_390_19287002.1351785432204
Content-Type: multipart/alternative; 
	boundary="----=_Part_391_31618222.1351785432208"

------=_Part_391_31618222.1351785432208
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

to clarify what is not working - on the 
print soup.prettify()
statement, the new element in paths is not making it into the final output
and I believe it might have to do with the ' ' surrounding the appended item



------=_Part_391_31618222.1351785432208
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

to clarify what is not working - on the&nbsp;<div>print soup.prettify()<br></div><div>statement, the new element in paths is not making it into the final output</div><div>and I believe it might have to do with the ' ' surrounding the appended item</div><div><br></div><div><br></div>
------=_Part_391_31618222.1351785432208--

------=_Part_390_19287002.1351785432204
Content-Type: image/svg+xml; name=model.svg
Content-Transfer-Encoding: 7bit
Content-ID: <9c157afe-3845-4aba-9309-0a625da0a8b3>
Content-Disposition: attachment; filename=model.svg
X-Attachment-Id: 9c157afe-3845-4aba-9309-0a625da0a8b3

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->

<svg
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:cc="http://creativecommons.org/ns#"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:svg="http://www.w3.org/2000/svg"
   xmlns="http://www.w3.org/2000/svg"
   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
   width="990"
   height="765"
   id="svg2"
   version="1.1"
   inkscape:version="0.48.3.1 r9886"
   sodipodi:docname="model.svg">
  <defs
     id="defs4" />
  <sodipodi:namedview
     id="base"
     pagecolor="#ffffff"
     bordercolor="#666666"
     borderopacity="1.0"
     inkscape:pageopacity="0.0"
     inkscape:pageshadow="2"
     inkscape:zoom="0.70710678"
     inkscape:cx="429.75704"
     inkscape:cy="578.38313"
     inkscape:document-units="px"
     inkscape:current-layer="layer1"
     showgrid="false"
     inkscape:window-width="1366"
     inkscape:window-height="716"
     inkscape:window-x="0"
     inkscape:window-y="24"
     inkscape:window-maximized="1" />
  <metadata
     id="metadata7">
    <rdf:RDF>
      <cc:Work
         rdf:about="">
        <dc:format>image/svg+xml</dc:format>
        <dc:type
           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
        <dc:title />
      </cc:Work>
    </rdf:RDF>
  </metadata>
  <g
     inkscape:label="Layer 1"
     inkscape:groupmode="layer"
     id="layer1"
     transform="translate(0,-287.36218)">
    <path
       sodipodi:type="arc"
       style="fill:#ff0000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:4.83134079;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
       id="CRM-1"
       sodipodi:cx="55.714287"
       sodipodi:cy="49.285713"
       sodipodi:rx="24.285715"
       sodipodi:ry="24.285715"
       d="m 80.000002,49.285713 c 0,13.41263 -10.873085,24.285715 -24.285715,24.285715 -13.41263,0 -24.285715,-10.873085 -24.285715,-24.285715 0,-13.41263 10.873085,-24.285715 24.285715,-24.285715 13.41263,0 24.285715,10.873085 24.285715,24.285715 z"
       transform="matrix(0.34198005,0,0,0.32070364,32.966341,320.55607)"
       inkscape:label="CRM" />
    <path
       sodipodi:type="arc"
       style="fill:#ff0000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:4.83134079;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
       id="CRM-2"
       sodipodi:cx="55.714287"
       sodipodi:cy="49.285713"
       sodipodi:rx="24.285715"
       sodipodi:ry="24.285715"
       d="m 80.000002,49.285713 c 0,13.41263 -10.873085,24.285715 -24.285715,24.285715 -13.41263,0 -24.285715,-10.873085 -24.285715,-24.285715 0,-13.41263 10.873085,-24.285715 24.285715,-24.285715 13.41263,0 24.285715,10.873085 24.285715,24.285715 z"
       transform="matrix(0.34198005,0,0,0.32070364,58.557678,320.55607)"
       inkscape:label="CRM" />
    <path
       sodipodi:type="arc"
       style="fill:#00ff00;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:4.83134078999999961;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
       id="STAR-1"
       sodipodi:cx="55.714287"
       sodipodi:cy="49.285713"
       sodipodi:rx="24.285715"
       sodipodi:ry="24.285715"
       d="m 80.000002,49.285713 c 0,13.41263 -10.873085,24.285715 -24.285715,24.285715 -13.41263,0 -24.285715,-10.873085 -24.285715,-24.285715 0,-13.41263 10.873085,-24.285715 24.285715,-24.285715 13.41263,0 24.285715,10.873085 24.285715,24.285715 z"
       transform="matrix(0.34198005,0,0,0.32070364,31.8943,412.55607)"
       inkscape:label="STAR" />
    <path
       sodipodi:type="arc"
       style="fill:#00ff00;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:4.83134078999999961;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
       id="STAR-2"
       sodipodi:cx="55.714287"
       sodipodi:cy="49.285713"
       sodipodi:rx="24.285715"
       sodipodi:ry="24.285715"
       d="m 80.000002,49.285713 c 0,13.41263 -10.873085,24.285715 -24.285715,24.285715 -13.41263,0 -24.285715,-10.873085 -24.285715,-24.285715 0,-13.41263 10.873085,-24.285715 24.285715,-24.285715 13.41263,0 24.285715,10.873085 24.285715,24.285715 z"
       transform="matrix(0.34198005,0,0,0.32070364,57.48564,412.55607)"
       inkscape:label="STAR" />
  </g>
</svg>

------=_Part_390_19287002.1351785432204--