From b2874e1e44c2ba800c3ad067c30909ec0c466603 Mon Sep 17 00:00:00 2001 From: Ian Cordasco Date: Thu, 25 Jul 2013 20:20:02 -0500 Subject: Document the URIVariable API --- uritemplate/template.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'uritemplate') 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 -- cgit v1.2.3