# mfe_source.py # (c) William Stein, 2003 # If the input is valid render the page. import mfd, constants def Link(source): if source == constants.not_computed: s ="" else: if type(source) == type(1): id = source author = "source" else: id = source.get_id() author = source.get_author() sw = source.get_software().get_name() if sw != "": author = author + " (%s)"%sw url="%s/mfe_source_html.py?id=%s"%(constants.CGIROOT,id) js = "onClick=\"window.open('%s','Data Source %s','height=100,width=400');return false\""%(url,author) s=' %s '%(url,js,author) return s def Display_Page(source): title = 'Modular Forms Explorer: Source of Data' link = '' body = '
' print '