Пример #1
0
 def add(self, user):
     DBSession.add(user)
     transaction.commit()
     
     recurso = Recurso()
     recurso.proyecto = user
     recurso.tipo = 1
     DBSession.add(recurso)
     transaction.commit()
Пример #2
0
    def add(self, user):
        DBSession.add(user)
        transaction.commit()

        recurso = Recurso()
        recurso.proyecto = user
        recurso.tipo = 1
        DBSession.add(recurso)
        transaction.commit()
Пример #3
0
    def add(self, user):
        DBSession.add(user)
        transaction.commit()

        recurso = Recurso()
        recurso.fase = user
        recurso.tipo = 2
        DBSession.add(recurso)
        transaction.commit()
Пример #4
0
 def add(self, user):
     DBSession.add(user)
     transaction.commit()
     
     recurso = Recurso()
     recurso.fase = user
     recurso.tipo = 2
     DBSession.add(recurso)
     transaction.commit()
Пример #5
0
 def add(self, user):
     ''' Agrega un proyecto a la base datos
     @param: Objeto Proyecto
     @return: None'''
     DBSession.add(user)
     transaction.commit()
     recurso = Recurso()
     recurso.proyecto = user
     recurso.tipo = 1
     DBSession.add(recurso)
     transaction.commit()