예제 #1
0
    def get(self):
        self.response.headers['Content-Type'] = 'text/plain'

        ogl = OilGasLease()
        ogl.bookPage = '12/345'
        ogl.county = 'Custer'

        t = Tract()
        t.sec = '01'
        t.twn = '02N'
        t.rng = '03W'

        #ez = EzTest(id=1)
        #ez.sprop = 'a string'
        #ez.iprop = 1
        #ez.put()

        ogl.put()
        t.oilGasLease = ogl
        t.put()

        outputString = 'a tract: ' + t.secTwnRng() + '\n' + 'a lease: ' + str(
            ogl)

        self.response.out.write(outputString)