version 1.1, 2004/10/05 07:34:58
|
version 1.4, 2004/10/06 13:02:56
|
Line 63 def proj2hash(self,xmlstring):
|
Line 63 def proj2hash(self,xmlstring):
|
addToDict(list,'WEB_project_header',sec[1]) # store title |
addToDict(list,'WEB_project_header',sec[1]) # store title |
addToDict(list,'WEB_project_description',sec[2]) #store description |
addToDict(list,'WEB_project_description',sec[2]) #store description |
else: # no information in heading |
else: # no information in heading |
level=sec[3] |
level=int(sec[3])+2 |
aTag="<h%s>"%level |
aTag="<h%i>"%level |
eTag="</h%s>"%level |
eTag="</h%i>"%level |
addToDict(list,"text",aTag+sec[1]+eTag) |
addToDict(list,"text",aTag+sec[1]+eTag) |
addToDict(list,"text",sec[2]) |
addToDict(list,"text",sec[2]) |
sectionXPath+="/section" |
sectionXPath+="/section" |
Line 150 def par2html(self,pars,tags=None):
|
Line 150 def par2html(self,pars,tags=None):
|
elif tagName=="pb": |
elif tagName=="pb": |
html+="<pb/>" |
html+="<pb/>" |
|
|
|
|
try: |
try: |
|
|
return html |
return html |