예제 #1
0
파일: Flag.py 프로젝트: skyroot/RootTheBox
 def choicelist(self):
     #excludes the choice uuid
     choices = []
     if self._type == FLAG_CHOICE:
         choicelist = FlagChoice.by_flag_id(self.id)
         if choicelist is not None and len(choicelist) > 0:
             for flagchoice in choicelist:
                 choices.append(flagchoice.choice)
     return json.dumps(choices)
예제 #2
0
파일: Flag.py 프로젝트: moloch--/RootTheBox
 def choicelist(self):
     #excludes the choice uuid
     choices = []
     if self._type == FLAG_CHOICE:
         choicelist = FlagChoice.by_flag_id(self.id)
         if choicelist is not None and len(choicelist) > 0:
             for flagchoice in choicelist:
                 choices.append(flagchoice.choice)
     return json.dumps(choices)
예제 #3
0
파일: Flag.py 프로젝트: skyroot/RootTheBox
 def choices(self):
     #inlucdes the choice uuid - needed for editing choice
     choices = []
     if self._type == FLAG_CHOICE:
         choicelist = FlagChoice.by_flag_id(self.id)
         if choicelist is not None and len(choicelist) > 0:
             for flagchoice in choicelist:
                 choices.append(flagchoice.to_dict())
     return json.dumps(choices)
예제 #4
0
파일: Flag.py 프로젝트: moloch--/RootTheBox
 def choices(self):
     #inlucdes the choice uuid - needed for editing choice
     choices = []
     if self._type == FLAG_CHOICE:
         choicelist = FlagChoice.by_flag_id(self.id)
         if choicelist is not None and len(choicelist) > 0:
             for flagchoice in choicelist:
                 choices.append(flagchoice.to_dict())
     return json.dumps(choices)