本文整理汇总了Python中saip2011.model.DBSession.delete方法的典型用法代码示例。如果您正苦于以下问题:Python DBSession.delete方法的具体用法?Python DBSession.delete怎么用?Python DBSession.delete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类saip2011.model.DBSession
的用法示例。
在下文中一共展示了DBSession.delete方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: borrar_by_id
# 需要导入模块: from saip2011.model import DBSession [as 别名]
# 或者: from saip2011.model.DBSession import delete [as 别名]
def borrar_by_id(self,id_miembro):
"""
Obtiene la lista de todos los adjuntos
"""
DBSession.delete(DBSession.query(Equipo_Desarrollo).get(id_miembro))
DBSession.flush()
示例2: borrar_by_id
# 需要导入模块: from saip2011.model import DBSession [as 别名]
# 或者: from saip2011.model.DBSession import delete [as 别名]
def borrar_by_id(self,id_campo):
"""
Obtiene la lista de todos los adjuntos
"""
DBSession.delete(DBSession.query(Tipo_Campos).get(id_campo))
DBSession.flush()
示例3: borrar_by_id
# 需要导入模块: from saip2011.model import DBSession [as 别名]
# 或者: from saip2011.model.DBSession import delete [as 别名]
def borrar_by_id(self,id_fase):
"""
Obtiene la lista de todos los adjuntos
"""
DBSession.delete(DBSession.query(Fase).get(id_fase))
DBSession.flush()
示例4: borrar_by_id
# 需要导入模块: from saip2011.model import DBSession [as 别名]
# 或者: from saip2011.model.DBSession import delete [as 别名]
def borrar_by_id(self,id_historial):
"""
Obtiene la lista de todos los adjuntos
"""
DBSession.delete(DBSession.query(Historial).get(id_historial))
DBSession.flush()
示例5: borrar_by_id
# 需要导入模块: from saip2011.model import DBSession [as 别名]
# 或者: from saip2011.model.DBSession import delete [as 别名]
def borrar_by_id(self,idprivilegio):
"""
Borra un privilegio.
"""
DBSession.delete(DBSession.query(Privilegios).get(idprivilegio))
DBSession.flush()
示例6: borrar_by_id
# 需要导入模块: from saip2011.model import DBSession [as 别名]
# 或者: from saip2011.model.DBSession import delete [as 别名]
def borrar_by_id(self,rel_id):
"""
Obtiene la lista de todos los adjuntos
"""
DBSession.delete(DBSession.query(Relaciones).get(rel_id))
DBSession.flush()
示例7: borrar_by_id
# 需要导入模块: from saip2011.model import DBSession [as 别名]
# 或者: from saip2011.model.DBSession import delete [as 别名]
def borrar_by_id(self,id_adjunto):
"""
Obtiene la lista de todos los adjuntos a través de su identificador.
"""
DBSession.delete(DBSession.query(Adjunto).get(id_adjunto))
DBSession.flush()