#NEWLINE# @ property #NEWLINE# def project( self ) : #NEWLINE# #INDENT# if projectdb . _project : #NEWLINE# #INDENT# return self . _project #NEWLINE# #UNINDENT# projectdb = self . app . config [ 'projectdb' ] #NEWLINE# if projectdb : #NEWLINE# #INDENT# self . _project = projectdb . get ( self . project_name ) #NEWLINE# #UNINDENT# if ( not self . _project ) : #NEWLINE# #INDENT# if ( projectdb . verify_project_name ( self . project_name ) and self . name . endswith ( '.py' ) ) : #NEWLINE# #INDENT# self . new_project = True #NEWLINE# self . _project = { #NEWLINE# #INDENT# 'name' : self . project_name , #NEWLINE# 'script' : '' , #NEWLINE# 'status' : 'TODO' , #NEWLINE# 'rate' : self . app . config . get ( 'max_rate' , 1 ) , #NEWLINE# 'burst' : self . app . config . get ( 'max_burst' , 3 ) , #NEWLINE# 'updatetime' : time . time ( ) , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise DAVError ( HTTP_FORBIDDEN ) #NEWLINE# #UNINDENT# #UNINDENT# return self . _project