本文整理匯總了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 ) )