from pyramid.view import view_config, view_defaults
from StreamProject.ItemCreator.ItemCreatorService import *


@view_defaults(renderer="")
class ItemServices:
    def __init__(self, request):
        self.request = request

    @view_config(route_name="itemservice.json", renderer="json", request_method="POST")
    def createItemFromJson(self):
        data = self.request.POST
        ItemCreatorService.create_item_from_json(data)

        return {'data': data}

b3b4de67b5b69b0582655fdbca5df78e61a6ac79
<mask token>


@view_defaults(renderer='')
class ItemServices:
    <mask token>
    <mask token>

<mask token>


@view_defaults(renderer='')
class ItemServices:
    <mask token>

    @view_config(route_name='itemservice.json', renderer='json',
        request_method='POST')
    def createItemFromJson(self):
        data = self.request.POST
        ItemCreatorService.create_item_from_json(data)
        return {'data': data}

<mask token>


@view_defaults(renderer='')
class ItemServices:

    def __init__(self, request):
        self.request = request

    @view_config(route_name='itemservice.json', renderer='json',
        request_method='POST')
    def createItemFromJson(self):
        data = self.request.POST
        ItemCreatorService.create_item_from_json(data)
        return {'data': data}

from pyramid.view import view_config, view_defaults
from StreamProject.ItemCreator.ItemCreatorService import *


@view_defaults(renderer='')
class ItemServices:

    def __init__(self, request):
        self.request = request

    @view_config(route_name='itemservice.json', renderer='json',
        request_method='POST')
    def createItemFromJson(self):
        data = self.request.POST
        ItemCreatorService.create_item_from_json(data)
        return {'data': data}

from pyramid.view import view_config, view_defaults
from StreamProject.ItemCreator.ItemCreatorService import *


@view_defaults(renderer="")
class ItemServices:
    def __init__(self, request):
        self.request = request

    @view_config(route_name="itemservice.json", renderer="json", request_method="POST")
    def createItemFromJson(self):
        data = self.request.POST
        ItemCreatorService.create_item_from_json(data)

        return {'data': data}
