Example #1
0
 def create(self, grpid):
     tgt = RasTarget()
     tgt.name = self.name.data
     tgt.group = grpid
     tgt.type = 'app'
     tgt.path = '{app}/{name}'.format(app=self.application.data,
                                      name=self.name.data)
     tgt.comment = self.comment.data
     tgt.save()
Example #2
0
 def create(self, grpid):
     tgt = RasTarget()
     group = RasGroup.get(RasGroup.id == self.group.data)
     tgt.name = group.name
     tgt.group = grpid
     tgt.type = 'ras'
     tgt.path = '{app}/{grp}'.format(app='RasEye', grp=group.name)
     tgt.comment = self.comment.data
     tgt.save()
Example #3
0
 def create(self, grpid):
     tgt = RasTarget()
     tgt.name = self.name.data
     tgt.group = grpid
     tgt.type = 'app'
     tgt.path = '{app}/{name}'.format(
         app=self.application.data, name=self.name.data)
     tgt.comment = self.comment.data
     tgt.save()
Example #4
0
 def create(self, grpid):
     tgt = RasTarget()
     group = RasGroup.get(RasGroup.id == self.group.data)
     tgt.name = group.name
     tgt.group = grpid
     tgt.type = 'ras'
     tgt.path = '{app}/{grp}'.format(app='RasEye', grp=group.name)
     tgt.comment = self.comment.data
     tgt.save()
Example #5
0
 def create(self, grpid):
     logger.debug("CREATE: {}".format(grpid))
     tgt = RasTarget()
     cell = Cell.get(Cell.id == self.cell.data)
     tgt.name = cell.name
     tgt.group = grpid
     tgt.type = 'cell'
     tgt.path = '{app}/{cell}'.format(app=cell.get_appname(),
                                      cell=cell.name)
     tgt.comment = self.comment.data
     tgt.save()
Example #6
0
 def create(self, grpid):
     logger.debug("CREATE: {}".format(grpid))
     tgt = RasTarget()
     cell = Cell.get(Cell.id == self.cell.data)
     tgt.name = cell.name
     tgt.group = grpid
     tgt.type = 'cell'
     tgt.path = '{app}/{cell}'.format(
         app=cell.get_appname(), cell=cell.name)
     tgt.comment = self.comment.data
     tgt.save()