Beispiel #1
0
 def setSource(self, sourceCode, item, filename):
     self._code = utils.string(sourceCode)
     if isinstance(item, Item):
         self._item = item
     else:
         self._item = Item()
     self._filename = utils.string(filename)
Beispiel #2
0
 def setSource(self, sourceCode, item, filename):
     self._code = utils.string(sourceCode)
     if isinstance(item, Item):
         self._item = item
     else:
         self._item = Item()
     self._filename = utils.string(filename)
Beispiel #3
0
 def addItemId(self, itemId):
     if self._itemId == '':
         self.setItemId(itemId)
     else:
         lst = self.itemIdList()
         if isinstance(itemId, list) or isinstance(itemId, set):
             lst.extend(itemId)
         else:
             lst.append(utils.string(itemId))
         self.setItemId(lst)
Beispiel #4
0
 def addItemId(self, itemId):
     if self._itemId == '':
         self.setItemId(itemId)
     else:
         lst = self.itemIdList()
         if isinstance(itemId, list) or isinstance(itemId, set):
             lst.extend(itemId)
         else:
             lst.append(utils.string(itemId))
         self.setItemId(lst)
Beispiel #5
0
 def setCategory(self, category):
     self._category = utils.string(category)
     self.changed.emit()
Beispiel #6
0
 def setModified(self, modified):
     self._modified = utils.string(modified)
Beispiel #7
0
 def setCreated(self, created):
     self._created = utils.string(created)
Beispiel #8
0
 def setComment(self, comment):
     self._comment = utils.string(comment)
     self.changed.emit()
Beispiel #9
0
 def setCategory(self, category):
     self._category = utils.string(category)
     self.changed.emit()
Beispiel #10
0
 def setCreated(self, created):
     self._created = utils.string(created)
Beispiel #11
0
 def setCreator(self, creator):
     self._creator = utils.string(creator)
Beispiel #12
0
 def setItemId(self, itemId):
     if isinstance(itemId, list) or isinstance(itemId, set):
         self._itemId = utils.listToRange(itemId)
     else:
         self._itemId = utils.string(itemId)
Beispiel #13
0
 def setClassCode(self, classCode):
     self._classCode = utils.string(classCode)
Beispiel #14
0
 def setSiteCode(self, siteCode):
     self._siteCode = utils.string(siteCode)
Beispiel #15
0
 def setSourceCode(self, sourceCode):
     self._code = utils.string(sourceCode)
Beispiel #16
0
 def setLabel(self, label):
     self._label = utils.string(label)
     self.changed.emit()
Beispiel #17
0
 def setComment(self, comment):
     self._comment = utils.string(comment)
     self.changed.emit()
Beispiel #18
0
 def setModifier(self, modifier):
     self._modifier = utils.string(modifier)
Beispiel #19
0
 def setLabel(self, label):
     self._label = utils.string(label)
     self.changed.emit()
Beispiel #20
0
 def setModified(self, modified):
     self._modified = utils.string(modified)
Beispiel #21
0
 def setCreator(self, creator):
     self._creator = utils.string(creator)
Beispiel #22
0
 def setSiteCode(self, siteCode):
     self._siteCode = utils.string(siteCode)
Beispiel #23
0
 def setModifier(self, modifier):
     self._modifier = utils.string(modifier)
Beispiel #24
0
 def setClassCode(self, classCode):
     self._classCode = utils.string(classCode)
Beispiel #25
0
 def setFilename(self, filename):
     self._filename = utils.string(filename)
Beispiel #26
0
 def setItemId(self, itemId):
     if isinstance(itemId, list) or isinstance(itemId, set):
         self._itemId = utils.listToRange(itemId)
     else:
         self._itemId = utils.string(itemId)
Beispiel #27
0
 def setSourceCode(self, sourceCode):
     self._code = utils.string(sourceCode)
Beispiel #28
0
 def setFilename(self, filename):
     self._filename = utils.string(filename)