Changeset c694e8 in indico


Ignore:
Timestamp:
10/21/09 17:09:49 (4 years ago)
Author:
David Martín Clavo <david.martin.clavo@…>
Branches:
master, burotel, hello-world-walkthrough, ipv6, new-webex, prov-dual-interface, v0.97-series, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, 0da0c1403bae8e51d8229f460181c71b9e6dda72
Children:
c2d3a0
Parents:
9712a4
Message:

[ADDED] Video Services Guides 3 and 4

-Version 0.1 of VS Guides for Server Admin and VS Admin
-Small modifications in HTML fix script

Files:
25 added
1 edited
2 moved

Legend:

Unmodified
Added
Removed
  • bin/utils/VSGuideHTMLFix.py

    r562f19 rc694e8  
    7676        tag, attrs = MyHTMLParser._processAttrs(tag, attrs) 
    7777        strattrs = "".join([' %s="%s"' % (key, value) for key, value in attrs.iteritems()]) 
    78         self._out.write("<%s%s>\n" % (tag, strattrs)) 
     78        self._out.write("<%s%s>" % (tag, strattrs)) 
    7979         
    8080    def handle_startendtag(self, tag, attrs): 
    8181        tag, attrs = MyHTMLParser._processAttrs(tag, attrs) 
    8282        strattrs = "".join([' %s="%s"' % (key, value) for key, value in attrs]) 
    83         self._out.write("<%s%s />\n" % (tag, strattrs)) 
     83        self._out.write("<%s%s />" % (tag, strattrs)) 
    8484         
    8585    def handle_endtag(self, tag): 
    8686        if tag.lower() == 'style': 
    8787            self._inStyleTag = False 
    88         self._out.write("</%s>\n" % tag) 
     88        self._out.write("</%s>" % tag) 
    8989         
    9090    def handle_data(self, text): 
     
    9797            endIPStyle = text.find('}', iPStyle) 
    9898            self._out.write(text[:endIPStyle]) 
    99             self._out.write(';margin: 0; padding: 0;') 
     99            if not text[:endIPStyle].endswith(';margin: 0; padding: 0;'): 
     100                self._out.write(';margin: 0; padding: 0;') 
    100101            self._out.write(text[endIPStyle:]) 
    101102        else: 
     
    124125    p = MyHTMLParser() 
    125126    ihelpPath = "../../indico/htdocs/ihelp/" 
    126     p.process(ihelpPath + "VideoServices/IndicoUserGuide_VS/IndicoUserGuide_VS.html") 
    127     p.process(ihelpPath + "VideoServices/EventManagerUserGuide_VS/EventManagerUserGuide_VS.html") 
    128     p.process(ihelpPath + "VideoServices/ServerAdminUserGuide_VS/ServerAdminUserGuide_VS.html") 
    129     p.process(ihelpPath + "VideoServices/VSAdminUserGuide_VS/VSAdminUserGuide_VS.html") 
     127    p.process(ihelpPath + "VideoServices/IndicoUserGuide_VS/index.html") 
     128    p.process(ihelpPath + "VideoServices/EventManagerUserGuide_VS/index.html") 
     129    p.process(ihelpPath + "VideoServices/ServerAdminUserGuide_VS/index.html") 
     130    p.process(ihelpPath + "VideoServices/VSAdminUserGuide_VS/index.html") 
Note: See TracChangeset for help on using the changeset viewer.