コード例 #1
0
ファイル: classes.py プロジェクト: Bryukh/ajenti
 def set(self, attr, val):
     """
     Sets `attr` attribute to `val`, converting value to unicode string.
     """
     etree.ElementBase.set(self, attr, fix_unicode(str(val)))
     return self
コード例 #2
0
ファイル: classes.py プロジェクト: LittleForker/ajenti
 def __setitem__(self, idx, val):
     self.set(idx, fix_unicode(str(val)))
コード例 #3
0
ファイル: classes.py プロジェクト: vlara/ajenti
 def set(self, attr, val):
     """
     Sets `attr` attribute to `val`, converting value to unicode string.
     """
     etree.ElementBase.set(self, attr, fix_unicode(str(val)))
     return self
コード例 #4
0
ファイル: classes.py プロジェクト: Ozerich/ajenti
 def __setitem__(self, idx, val):
     self.set(idx, fix_unicode(str(val)))