Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

three_legged removed from __init__

urls as a static
  • Loading branch information...
commit 4c36ff5c0fc3a9ef6e8241bec7b726247d027ddd 1 parent 58fdf42
Piotr Zalewa authored October 08, 2012

Showing 1 changed file with 3 additions and 4 deletions. Show diff stats Hide diff stats

  1. 7  marketplace/client.py
7  marketplace/client.py
@@ -24,7 +24,7 @@
24 24
 MARKETPLACE_DOMAIN = 'marketplace.mozilla.org'
25 25
 MARKETPLACE_PROTOCOL = 'https'
26 26
 
27  
-urls = {'validate': '/apps/validation/',
  27
+URLS = {'validate': '/apps/validation/',
28 28
         'validation_result': '/apps/validation/%s/',
29 29
         'create': '/apps/app/',
30 30
         'app': '/apps/app/%s/',
@@ -42,13 +42,12 @@ class Client:
42 42
     def __init__(self, domain=MARKETPLACE_DOMAIN,
43 43
                  protocol=MARKETPLACE_PROTOCOL,
44 44
                  port=MARKETPLACE_PORT,
45  
-                 prefix='', three_legged=False,
  45
+                 prefix='',
46 46
                  consumer_key=None, consumer_secret=None):
47 47
         self.domain = domain
48 48
         self.protocol = protocol
49 49
         self.port = port
50 50
         self.prefix = prefix
51  
-        self.three_legged = three_legged
52 51
         self.conn = None
53 52
         if consumer_secret and consumer_key:
54 53
             self.conn = self.get_connection(consumer_key, consumer_secret)
@@ -61,7 +60,7 @@ def url(self, key):
61 60
         """Creates a full URL to the API using urls dict
62 61
         """
63 62
         return urlunparse((self.protocol, '%s:%s' % (self.domain, self.port),
64  
-                           '%s/api%s' % (self.prefix, urls[key]),
  63
+                           '%s/api%s' % (self.prefix, URLS[key]),
65 64
                            '', '', ''))
66 65
 
67 66
     def validate_manifest(self, manifest_url):

0 notes on commit 4c36ff5

Please sign in to comment.
Something went wrong with that request. Please try again.