skip to navigation
skip to content

marketplace-constants 0.1.4

Standard constants for the marketplace

Latest Version: 0.15.0

Global constants for the Firefox Marketplace, available in both JS and Python.



>>> from mpconstants import payments
{1: 'passed', 2: 'failed'}



> var c = require('./mpconstants.js')
> c('payments')['PAYMENT_STATUSES']
  { '1': 'passed',
    '2': 'failed' }

The content of these files are generated from multiple sources:

  • Python code copied out of the various marketplace repositories
  • JSON code pulled from the Mozilla SVN servers

If you want to update any constants from SVN, or add in any new constants, then run the generate script to build out the new files. Compare the differences, add or remove any files from git and commit. To run the generate script:


This package is on:

File Type Py Version Uploaded on Size
marketplace-constants-0.1.4.tar.gz (md5) Source 2014-09-02 157KB