#! /usr/bin/env python ############################################################################### # (c) Roger Whittaker 2015 # roger@disruptive.org.uk # Free software licenced under the GPL ############################################################################### from cgi import escape, FieldStorage from subprocess import Popen, PIPE ############################################################################### from checkform import good from config import url ############################################################################### print 'Content-Type: text/html' print print '' print '
' print ''
print 'gppg' print '' print '' print 'About gppg ' print ' Sample patterns' print 'Classic Penrose (all g = 0.2)' print 'Classic Penrose (all g = 0.4) ' print 'n = 5, all g = 0.5 ' print 'n = 8, all g = 0.125 ' print 'n = 7, all g = 0.5 ' print 'n = 9, no central symmetry ' print ' ' print 'In memory of EJW Whittaker' print ' | '
print ''
def stick(lst):
out = lst[0]
for i in lst[1:]:
out = out + "+" + i
return out
form = FieldStorage()
if not good(form):
print ' Incomplete or incorrect form values entered: please retry ' print ' |