예제 #1
0
 def asDict(self):
   d = MobileFormItem.asDict(self)
   if self.getValue():
     d["value"] = "true"
   else:
     d["value"] = "false"
   return d
 def asDict(self):
     d = MobileFormItem.asDict(self)
     d["value"] = self.getValue()
     d["size"] = str(self.getSize())
     if not self.getUrl() in ("", None):
         d["url"] = str(self.getUrl())
     return d
 def asDict(self):
     d = MobileFormItem.asDict(self)
     d["value"] = self.getValue()
     items = list()
     for item in self.__values:
         d2 = OrderedDict()
         d2["item"] = item
         items.append(d2)
     d3 = OrderedDict()
     d3["items"] = items
     d["values"] = d3
     return d
예제 #4
0
 def asDict(self):
     d = MobileFormItem.asDict(self)
     values = OrderedDict()
     for items in self.__availableValues:
         rawsubitems = list()
         for subitem in items:
             if subitem in (" ", None):
                 subitem = ""
             rawsubitems.append({"item": subitem})
         values[items.getValue()] = rawsubitems
     d["values"] = values
     d["value"] = self.__selectedValue
     return d
예제 #5
0
 def asDict(self):
     d = MobileFormItem.asDict(self)
     d["value"] = self.getValue()
     return d
 def asDict(self):
     d = MobileFormItem.asDict(self)
     return d