Permalink
Browse files

Added query_list/dict/multi_dict to URLObject.

  • Loading branch information...
1 parent 562eaaa commit 9892fff75fe194a774885135ecd113406cd90426 @zacharyvoase committed Feb 14, 2012
Showing with 12 additions and 0 deletions.
  1. +12 −0 lib/urlobject/urlobject.py
View
12 lib/urlobject/urlobject.py
@@ -101,6 +101,18 @@ def with_query(self, query):
def without_query(self):
return self.__replace(query='')
+ @property
+ def query_list(self):
+ return self.query.list
+
+ @property
+ def query_dict(self):
+ return self.query.dict
+
+ @property
+ def query_multi_dict(self):
+ return self.query.multi_dict
+
def add_query_param(self, name, value):
return self.with_query(self.query.add_param(name, value))
def add_query_params(self, *args, **kwargs):

0 comments on commit 9892fff

Please sign in to comment.