~allenap/maas/xxx-a-thon

« back to all changes in this revision

Viewing changes to src/maasserver/api/maas.py

  • Committer: MAAS Lander
  • Author(s): Gavin Panella
  • Date: 2016-02-11 12:25:26 UTC
  • mfrom: (4650.1.1 remove-simplejson)
  • Revision ID: maas_lander-20160211122526-21bdxd2jqitaqjtm
[r=blake-rouse,andreserl][bug=1543828][author=allenap] Remove simplejson as a dependency; use the stdlib's json module instead.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
    'MaasHandler',
8
8
    ]
9
9
 
 
10
import json
10
11
 
11
12
from django.http import HttpResponse
12
13
from formencode import validators
23
24
)
24
25
from maasserver.models import Config
25
26
from piston3.utils import rc
26
 
import simplejson as json
27
27
 
28
28
 
29
29
class MaasHandler(OperationsHandler):
36
36
        """Set a config value.
37
37
 
38
38
        :param name: The name of the config item to be set.
39
 
        :type name: unicode
40
39
        :param value: The value of the config item to be set.
41
 
        :type value: json object
42
40
 
43
41
        %s
44
42
        """
60
58
        """Get a config value.
61
59
 
62
60
        :param name: The name of the config item to be retrieved.
63
 
        :type name: unicode
64
61
 
65
62
        %s
66
63
        """