示例#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()
示例#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()
示例#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()
示例#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()
示例#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()
示例#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()