本文整理汇总了Python中models.Game.platforms方法的典型用法代码示例。如果您正苦于以下问题:Python Game.platforms方法的具体用法?Python Game.platforms怎么用?Python Game.platforms使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类models.Game
的用法示例。
在下文中一共展示了Game.platforms方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: get
# 需要导入模块: from models import Game [as 别名]
# 或者: from models.Game import platforms [as 别名]
def get( self ):
alias = self.request.get( 'alias' )
name = self.request.get( 'name' )
platforms = self.request.get( 'platforms' ).split( ',' )
category = self.request.get( 'category' )
download_link_linux = self.request.get( 'download_link_linux' )
download_link_osx = self.request.get( 'download_link_osx' )
download_link_windows = self.request.get( 'download_link_windows' )
download_link_java = self.request.get( 'download_link_java' )
store_link_chrome = self.request.get( 'store_link_chrome' )
store_link_android = self.request.get( 'store_link_android' )
store_link_ios = self.request.get( 'store_link_ios' )
model = Game()
model.alias = alias
model.name = name
model.platforms = platforms
model.category = category
model.download_link_linux = download_link_linux
model.download_link_osx = download_link_osx
model.download_link_windows = download_link_windows
model.download_link_java = download_link_java
model.store_link_chrome = store_link_chrome
model.store_link_android = store_link_android
model.store_link_ios = store_link_ios
model.put()
self.send_json_response( True )