def printIndex(dom): print "Content-Type: text/html" print printHead('Welcome to Hugomatic', ('banner','index','nav','footer'), extraText=HtmlTree.html_header_text) printBanner() printIndextNavBar() #printContactNavBar() print "<h1>Hugomatic CNC</h1><h2>online GCODE generators</h2>" print "<br>" print '<div id="main">' ##print '<div id="browser" class="filetree treeview-famfamfam">' tree = HtmlTree("browser") add_tree_nodes_from_xml(tree, dom) html_tree = tree.get_html() print html_tree ##print '</div>' print """ <div id="image"> <IMG SRC="images/index.jpg"> </div> """ print '</div>' # main printFooter() print "</body>"
# You can contact me at the following email address: # [email protected] # try: # google app engine from hugomatic.web.utils import printHead, printBanner, printFooter, printAboutNavBar except: from utils import printHead, printBanner, printFooter, printAboutNavBar print "Content-Type: text/html" print printHead('About Hugomatic',('nav','banner','footer'), path="") printBanner( path='') printAboutNavBar() print "<h1>About Hugomatic</h1>" print '<div id="about">' print """ <h2>What we do</h2> Hi, my name is Hugo Boyer and I founded a micro company called Hugomatic so I could share my fascination for robotics, electronics, computers and machines with my friends. We build Open Source platform to generate Open Physical Objects. We supply free projects for hobby CNC milling and lathes. We want to empower people to make professional objects simply, and want to remove the complexity of hobby robotics.
# # You will find the latest version of this code at the following address: # http://hugomatic.ca/source/cncOnline # # You can contact me at the following email address: # [email protected] # from hugomatic.web.utils import printHead, printBanner, printFooter, printContactNavBar print "Content-Type: text/html" print printHead('Contact Hugomatic',('nav','banner','footer'), path="") printBanner( path='') printContactNavBar() print "<h1>Contact us</h1>" print '<div id="contact">' print '<img src="stylesheets/img/phone.jpg">' print '<br>Hugomatic Enterprises' print '<br>email: [email protected]' print '<br><br><br>' print '</div>'