List Mini-Web Pages with Editing Links,mini-webediting, #!C:/Python
List Mini-Web Pages with Editing Links,mini-webediting, #!C:/Python
#!C:/Python20/python.exe # import mx.ODBC.Windows as odbc from jetCursor import jetCursor import urllib print '''Content-Type: text/html\n <HTML> <HEAD> <TITLE>Min-Web Page List</TITLE> </HEAD> <BODY>''' cn = odbc.connect('WebData') cr = jetCursor(cn.cursor(), cn) sql = cr.SELECT('PgName', FROM='PgData') cr.execute(sql) data = cr.fetchall() cr.close() cn.close() print '''<P>Click the page name to show data in an edit form<BR>''' for d in data: PgName = d[0] print ''' <A HREF='thisFile.py?PgName=%s'>%s</A><BR>''' %Â (urllib.quote(PgName), PgName) print '''<BR> <A HREF='thisFile.py'>Create New Page</A><BR> </BODY> </HTML> '''
- pickle Module,picklemodule,#take almost
- unpickle the object,unpickleobject,#To unpickle
- Working with Directories,workingdirectories,# The os.p
- Working with File Objects,workingobjects,# Python has
- File Random Access,filerandomaccess,f = open(r'c
- Adding Line Numbers to a Python Script,addingpython,im
热门文章:
相关内容
- pickle Module,picklemodule,#take almost
- unpickle the object,unpickleobject,#To unpickle
- Working with Directories,workingdirectories,# The os.pat
- Working with File Objects,workingobjects,# Python has
- File Random Access,filerandomaccess,f = open(r'c
- Adding Line Numbers to a Python Script,addingpython,import filei
- Writes the contents of string to the file,writescontents,f = open('
- Zip file,zipfile,import zipfi
- Demonstrates reading from a text file,,# print 'Ope
- Reading characters from the file.,readingcharacters,print '\nRea
评论关闭