Primitivus: misc fixes + menubar first draft
- Menu bar: first draft of class - Password widget fixed - change some str to unicode, notably for JID
This commit is contained in:
parent
126d529d46
commit
9fbbd52805
1 changed files with 81 additions and 9 deletions
|
|
@ -21,11 +21,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
|
||||
|
||||
|
||||
class JID(str):
|
||||
class JID(unicode):
|
||||
"""This class help manage JID (Node@Domaine/Resource)"""
|
||||
|
||||
def __new__(cls, jid):
|
||||
self = str.__new__(cls, jid)
|
||||
self = unicode.__new__(cls, jid)
|
||||
self.__parse()
|
||||
return self
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue