/[theodore]/snips/search.cgi


UCC Code Repository

Contents of /snips/search.cgi

Parent Directory Parent Directory | Revision Log Revision Log


Revision 56 - (show annotations) (download)
Tue Jul 1 13:46:22 2008 UTC (11 years, 1 month ago) by theodore
File size: 282 byte(s)


1 #!/usr/bin/python
2 import cgi
3 import cgitb; cgitb.enable()
4 import snips
5
6 """
7
8 """
9 form = cgi.FieldStorage()
10
11 if form.has_key('new'):
12 snips.new_snip()
13
14 elif form.has_key('snip'):
15 snip_index = int(form['snip'].value)
16 snips.print_snip(snip_index)
17
18 else:
19 snips.display_search_home()

Properties

Name Value
svn:executable *

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26