Permalink
Browse files

Removed four extraneous references to an instance's product_code that…

… I added when I wasn't being careful.
  • Loading branch information...
1 parent 4691f6e commit f4e13727a4e25d883cbbb8895dc3c1e3bbf9b7e1 Luke Sneeringer committed Jan 21, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 __init__.py
View
@@ -371,7 +371,7 @@ def all(cls):
# retrieve the plans from CheddarGetter
try:
plans = []
- xml = CheddarGetter.request('/plans/get/', product_code = self._product_code)
+ xml = CheddarGetter.request('/plans/get/')
# make a list of Plan objects and return it
for plan_xml in xml.iterchildren(tag = 'plan'):
@@ -388,7 +388,7 @@ def get(cls, code):
"""Get a single pricing plan"""
# retrieve the plan from CheddarGetter
- xml = CheddarGetter.request('/plans/get/', code = code, product_code = self._product_code)
+ xml = CheddarGetter.request('/plans/get/', code = code)
# return a plan object
for plan_xml in xml.iterchildren(tag = 'plan'):
@@ -463,7 +463,7 @@ def search(cls, **kwargs):
# retreive the set of customers
try:
customers = []
- xml = CheddarGetter.request('/customers/get/', product_code = self._product_code, **kwargs)
+ xml = CheddarGetter.request('/customers/get/', **kwargs)
for customer_xml in xml.iterchildren('customer'):
customers.append(Customer.from_xml(customer_xml))
@@ -480,7 +480,7 @@ def get(cls, code):
Raises NotFound if the customer code does not exist
in CheddarGetter."""
- xml = CheddarGetter.request('/customers/get/', product_code = self._product_code, code = code)
+ xml = CheddarGetter.request('/customers/get/', code = code)
for customer_xml in xml.iterchildren('customer'):
return Customer.from_xml(customer_xml)

0 comments on commit f4e1372

Please sign in to comment.