Skip to content

Commit

Permalink
Updated comments re .txt format
Browse files Browse the repository at this point in the history
git-svn-id: https://urly.googlecode.com/svn/trunk@6 4bb6f403-2351-0410-a0e4-d75a30d34d26
  • Loading branch information
adam@stilesoft.com committed Oct 14, 2009
1 parent 798725a commit 0e2dec7
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@
All Urly records in the database have an id and an href. We base62 that
integer id to create a short code that represents that Urly.
/{code} Redirect user to urly with this code
/{code}(.json|.xml|.html) Show user formatted urly with this code
/new(.json|.xml|.html)?href={href} Create a new urly with this href or
return existing one if it already exists
Note special handling for 'new' code
when we have a href GET parameter 'cause
'new' by itself looks like a code
Format options are: json, xml, html, and txt
/{code} Redirect user to urly with this code
/{code}(.format) Show user formatted urly with this code
/new(.format)?href={href} Create a new urly with this href or
return existing one if it already exists
Note special handling for 'new' code
when we have a href GET parameter 'cause
'new' by itself looks like a code
"""
import wsgiref.handlers
import re, os, logging
Expand Down

0 comments on commit 0e2dec7

Please sign in to comment.