Exemplo n.º 1
0
  def testAppSetup( self ):
    self.assert_( Setting.is_app_setup() == False )
    self.assert_( Application.has_been_setup() == False )

    Setting(
      app_name = 'Foobar',
      app_version = 0.01,
      allow_registration = True
    ).put()

    self.assert_( Setting.is_app_setup() == True )
    self.assert_( Application.has_been_setup() == True )
Exemplo n.º 2
0
 def get(self):
   if not Application.has_been_setup():
     self.redirect( '/admin/setup' )
     return
   else:
     self.response.out.write('Hello world!')