aboutsummaryrefslogtreecommitdiffstats
path: root/uritemplate
diff options
context:
space:
mode:
authorIan Cordasco <graffatcolmingov@gmail.com>2013-07-25 20:20:02 -0500
committerIan Cordasco <graffatcolmingov@gmail.com>2013-07-25 20:20:02 -0500
commitb2874e1e44c2ba800c3ad067c30909ec0c466603 (patch)
treead44f70b2190e8b897461de010894048b3738499 /uritemplate
parent1d31a37d9930bf5ab76d5e4155c8a43a490e4103 (diff)
downloadplatform_external_python_uritemplates-b2874e1e44c2ba800c3ad067c30909ec0c466603.tar.gz
platform_external_python_uritemplates-b2874e1e44c2ba800c3ad067c30909ec0c466603.tar.bz2
platform_external_python_uritemplates-b2874e1e44c2ba800c3ad067c30909ec0c466603.zip
Document the URIVariable API
Diffstat (limited to 'uritemplate')
-rw-r--r--uritemplate/template.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/uritemplate/template.py b/uritemplate/template.py
index 7a4f94f..cc7382b 100644
--- a/uritemplate/template.py
+++ b/uritemplate/template.py
@@ -141,12 +141,19 @@ class URIVariable(object):
reserved = ":/?#[]@!$&'()*+,;="
def __init__(self, var):
+ #: The original string that comes through with the variable
self.original = var
+ #: The operator for the variable
self.operator = ''
+ #: List of safe characters when quoting the string
self.safe = ''
+ #: List of variables in this variable
self.variables = []
+ #: List of variable names
self.variable_names = []
+ #: List of defaults passed in
self.defaults = {}
+ # Parse the variable itself.
self.parse()
self.start = self.join_str = self.operator