Skip to content

Commit

Permalink
todo
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandr-rakov committed Feb 23, 2014
1 parent 6d881f0 commit 45fdd45
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pyayml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,3 +276,5 @@ def set_offers(self, offers_data):
for key in OFFERS_TAGS[offer.get('type','')]:
if key in offer:
etree.SubElement(offer_tag, key).text = offer[key]
# from xml.sax.saxutils import unescape
# etree.SubElement(offer_tag, key,text = unescape(offer[key]))
5 changes: 4 additions & 1 deletion pyayml/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ def test_001(self):
obj.set_categories(data['categories'])
obj.set_offers(data['offers'])

print obj.get_xml()
#print obj.get_xml()

#self.assertEqual(info['project'], 'pyayml')

#https://wiki.python.org/moin/EscapingXml
#https://wiki.python.org/moin/EscapingHtml

0 comments on commit 45fdd45

Please sign in to comment.