Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Url of the repo changed

command added
  • Loading branch information...
commit ce68771deeed7bfd60828963b8ba676a94c8a1ee 1 parent 48b268d
@zalun zalun authored
View
2  example/README.rst
@@ -19,7 +19,7 @@ Usage
* Validate manifest. Will return ``manifest_id`` which is needed for the next steps::
- python main.py validate_manifest http://mozilla.github.com/MarketplaceClientExample/manifest.webapp
+ python main.py validate_manifest http://mozilla.github.com/Marketplace.Python/manifest.webapp
* Check if the manifest is valid::
View
8 example/commands.py
@@ -42,6 +42,14 @@ def create(auth, manifest_id):
'message': response.content}
+def list_webapps(auth):
+ response = auth.list_webapps()
+ content = json.loads(response.content)
+ if response.status_code == 200:
+ return {'success': True,
+ 'message': content}
+
+
def status(auth, app_id):
response = auth.status(app_id)
if response.status_code != 200:
View
1  example/main.py
@@ -9,6 +9,7 @@
COMMANDS = {'validate_manifest': commands.validate_manifest,
'is_manifest_valid': commands.is_manifest_valid,
'create': commands.create,
+ 'list_webapps': commands.list_webapps,
'status': commands.status,
'update': commands.update,
'add_screenshot': commands.add_screenshot,
View
8 marketplace/client.py
@@ -119,6 +119,14 @@ def create(self, manifest_id):
return self.conn.fetch('POST', self.url('create'),
{'manifest': '%s' % manifest_id})
+ def list_webapps(self):
+ """Lists all webapps owned by user
+
+ :returns: list
+ """
+ response = self.conn.fetch('GET', self.url('create'))
+ print response
+
def update(self, app_id, data):
"""Update app identified by app_id with data
View
2  setup.py
@@ -2,7 +2,7 @@
setup(
name='Marketplace',
- version='0.1.2a',
+ version='0.1.3a',
packages=['marketplace', ],
license='Mozilla Public License (MPL 2.0)',
author='Piotr Zalewa',
Please sign in to comment.
Something went wrong with that request. Please try again.