[4suite-checkins] In Amara/demo/bindery, files manual.py

Uche Ogbuji uogbuji at 4suite.org
Fri Dec 15 00:44:29 MST 2006


Modified Files:
    manual.py

Log Message:
Fix bug with mutation using mapping access
Beef up manual sections on XML/Python name mismatches

ViewCVS diff:
  http://cvs.4suite.org/viewcvs/Amara/demo/bindery/manual.py.diff?r1=1.6&r2=1.7
ViewCVS view:
  http://cvs.4suite.org/viewcvs/Amara/demo/bindery/manual.py?rev=1.7&content-type=text/vnd.viewcvs-markup

Index: manual.py
===================================================================
RCS file: /var/local/cvsroot/Amara/demo/bindery/manual.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -U2 -r1.6 -r1.7
--- manual.py	27 Oct 2005 16:38:22 -0000	1.6
+++ manual.py	15 Dec 2006 07:44:29 -0000	1.7
@@ -25,6 +25,4 @@
 print unicode(doc.xbel.folder.bookmark.title)
 print unicode(doc.xbel.folder.bookmark[0].title)
-print doc.xbel.folder.bookmark.title.xml_text_content()
-print doc.xbel.folder.bookmark.title[0].xml_text_content()
 
 """Cut from manual, but still demoed here:
@@ -41,6 +39,4 @@
 print repr(unicode(doc.xbel.folder.bookmark.title))
 print repr(unicode(doc.xbel.folder.bookmark[0].title))
-print repr(doc.xbel.folder.bookmark.title.xml_text_content())
-print repr(doc.xbel.folder.bookmark.title[0].xml_text_content())
 
 print unicode(doc.xbel.folder.bookmark.title).encode('utf-8')
@@ -85,5 +81,5 @@
 tl_folders = doc.xbel.xml_xpath(u'folder')
 for folder in tl_folders:
-    print folder.title.xml_text_content()
+    print unicode(folder.title)
 
 r = doc.xbel.folder.bookmark[0].xml_xpath(u'*[1]')
@@ -281,5 +277,4 @@
 doc = binder.read_xml(isrc)
 
-#xml_text_content() or str() no longer necessary to extract the text
 print isinstance(doc.xbel.folder.bookmark.title, unicode)
 print doc.xbel.folder.bookmark.title


More information about the 4suite-checkins mailing list