[open-allure-ds] push by jg07...@gmail.com - Show slide image along with question on 2011-11-18 01:20 GMT

2 views
Skip to first unread message

open-al...@googlecode.com

unread,
Nov 17, 2011, 8:21:20 PM11/17/11
to open-al...@googlegroups.com
Revision: bce0d2a8261a
Author: John Graves
Date: Thu Nov 17 17:19:47 2011
Log: Show slide image along with question
http://code.google.com/p/open-allure-ds/source/detail?r=bce0d2a8261a

Modified:
/odp2wts/odp2wts.py

=======================================
--- /odp2wts/odp2wts.py Thu Nov 3 20:13:18 2011
+++ /odp2wts/odp2wts.py Thu Nov 17 17:19:47 2011
@@ -20,6 +20,15 @@
20110915 Added boilerplate script comments including version number
20110916 Read Unicode
20110917 Write out bits of Question/Answer/Response
+20111118 Show image along with question. Requires slide with comment first.
+ Example:
+ Comment on Slide4
+ [questions=on]
+ Question for slide 4:
+ Answer 1 ; Response 1
+ [questions=off]
+
+ NOTE: last slide must not have questions

img1.png > img1.htm > img1.mp3
[questions=on]
@@ -33,7 +42,7 @@

[questions=off]
"""
-__version__ = "0.1.25"
+__version__ = "0.1.26"

import BeautifulSoup
from BeautifulSoup import BeautifulStoneSoup
@@ -667,8 +676,14 @@
'" style="border:0px"></a><br>\n')

else:
- htmlFile.write("""<br><br><hr><br><center>
-<table width="400" style="text-align:left"><tbody>
+ htmlFile.write("<br><br><hr><br><center>\n")
+ if len(question.linkToShow)>0:
+ # src but no link
+ htmlFile.write( \
+ '<img src="' +
+ question.linkToShow +
+ '" style="border:0px"><br>\n')
+ htmlFile.write("""<table width="400"
style="text-align:left"><tbody>
<tr><td>""")

htmlFile.write(" ".join(question.questionTexts)+ "</td></tr>\n" )

Reply all
Reply to author
Forward
0 new messages