
from django.conf.urls.defaults import *
from piston.resource import Resource
from api.handlers import CalcHandler

class CsrfExemptResource( Resource ):
    def __init__( self, handler, authentication = None ):
        super( CsrfExemptResource, self ).__init__( handler, authentication )
        self.csrf_exempt = getattr( self.handler, 'csrf_exempt', True )

calc_resource = CsrfExemptResource( CalcHandler )

urlpatterns = patterns( '',
    url( r'^calc/(?P<expression>.*)$', calc_resource )
)

 

a5847fbac6b7a3f8850ad6c9e0878e1560cbd2c1
<mask token>


class CsrfExemptResource(Resource):
    <mask token>


<mask token>

<mask token>


class CsrfExemptResource(Resource):

    def __init__(self, handler, authentication=None):
        super(CsrfExemptResource, self).__init__(handler, authentication)
        self.csrf_exempt = getattr(self.handler, 'csrf_exempt', True)


<mask token>

<mask token>


class CsrfExemptResource(Resource):

    def __init__(self, handler, authentication=None):
        super(CsrfExemptResource, self).__init__(handler, authentication)
        self.csrf_exempt = getattr(self.handler, 'csrf_exempt', True)


calc_resource = CsrfExemptResource(CalcHandler)
urlpatterns = patterns('', url('^calc/(?P<expression>.*)$', calc_resource))

from django.conf.urls.defaults import *
from piston.resource import Resource
from api.handlers import CalcHandler


class CsrfExemptResource(Resource):

    def __init__(self, handler, authentication=None):
        super(CsrfExemptResource, self).__init__(handler, authentication)
        self.csrf_exempt = getattr(self.handler, 'csrf_exempt', True)


calc_resource = CsrfExemptResource(CalcHandler)
urlpatterns = patterns('', url('^calc/(?P<expression>.*)$', calc_resource))


from django.conf.urls.defaults import *
from piston.resource import Resource
from api.handlers import CalcHandler

class CsrfExemptResource( Resource ):
    def __init__( self, handler, authentication = None ):
        super( CsrfExemptResource, self ).__init__( handler, authentication )
        self.csrf_exempt = getattr( self.handler, 'csrf_exempt', True )

calc_resource = CsrfExemptResource( CalcHandler )

urlpatterns = patterns( '',
    url( r'^calc/(?P<expression>.*)$', calc_resource )
)

 
