本文整理汇总了Python中tp.server.model.Model.remove方法的典型用法代码示例。如果您正苦于以下问题:Python Model.remove方法的具体用法?Python Model.remove怎么用?Python Model.remove使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类tp.server.model.Model
的用法示例。
在下文中一共展示了Model.remove方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: tearDown
# 需要导入模块: from tp.server.model import Model [as 别名]
# 或者: from tp.server.model.Model import remove [as 别名]
def tearDown( self ):
Category = self.model.use( 'Category' )
if Category.ById( self.cat.id ):
Model.remove( self.cat )
super( RemovePublicCategory, self ).tearDown()
示例2: tearDown
# 需要导入模块: from tp.server.model import Model [as 别名]
# 或者: from tp.server.model.Model import remove [as 别名]
def tearDown( self ):
Model.remove( self.components, self.properties, self.categories )
示例3: tearDown
# 需要导入模块: from tp.server.model import Model [as 别名]
# 或者: from tp.server.model.Model import remove [as 别名]
def tearDown( self ):
Model.remove( self.board )
示例4: resetModel
# 需要导入模块: from tp.server.model import Model [as 别名]
# 或者: from tp.server.model.Model import remove [as 别名]
def resetModel(self):
for name in ["Board", "Object", "Design", "Component", "Property", "ResourceType", "Category", "Player"]:
Object = self.model.use(name)
Model.remove(Object.query().all())
示例5: remove
# 需要导入模块: from tp.server.model import Model [as 别名]
# 或者: from tp.server.model.Model import remove [as 别名]
def remove( self ):
Model.drop( self.__game.model )
Model.remove( self.__game )
示例6: tearDown
# 需要导入模块: from tp.server.model import Model [as 别名]
# 或者: from tp.server.model.Model import remove [as 别名]
def tearDown( self ):
Model.remove( self.orders )
示例7: tearDown
# 需要导入模块: from tp.server.model import Model [as 别名]
# 或者: from tp.server.model.Model import remove [as 别名]
def tearDown( self ):
Model.remove( self.resources )
示例8: tearDown
# 需要导入模块: from tp.server.model import Model [as 别名]
# 或者: from tp.server.model.Model import remove [as 别名]
def tearDown( self ):
Model.remove( self.objects )
示例9: process
# 需要导入模块: from tp.server.model import Model [as 别名]
# 或者: from tp.server.model.Model import remove [as 别名]
def process( self, request, item, slot ):
Model.remove( item )
return self.Okay( request, "Removed %s with slot = %d." % ( item.__origname__, slot ) )