<s> from google . appengine . ext import db <EOL> class ApplicationModel ( db . Model ) : <EOL> app_name = db . StringProperty ( ) <EOL> description = db . TextProperty ( ) <EOL> app_key = db . StringProperty ( ) <EOL> owner = db . IntegerProperty ( ) <EOL> viewer = db . ListProperty ( long , indexed = True , default = [ ] ) <EOL> create_time = db . DateTimeProperty ( auto_now_add = True ) <EOL> def dict ( self ) : <EOL> result = { <EOL> '<STR_LIT:id>' : self . key ( ) . id ( ) , <EOL> '<STR_LIT:name>' : self . app_name , <EOL> '<STR_LIT:description>' : self . description , <EOL> '<STR_LIT>' : self . app_key , <EOL> '<STR_LIT>' : self . create_time . strftime ( '<STR_LIT>' ) <EOL> } <EOL> return result </s>
