2 Slixmpp: The Slick XMPP Library
3 Copyright (C) 2012 Nathanael C. Fritz, Lance J.T. Stout
4 This file is part of Slixmpp.
6 See the file LICENSE for copying permission.
9 from slixmpp
.xmlstream
import ElementBase
12 class VCardTempUpdate(ElementBase
):
14 namespace
= 'vcard-temp:x:update'
15 plugin_attrib
= 'vcard_temp_update'
16 interfaces
= set(['photo'])
17 sub_interfaces
= interfaces
19 def set_photo(self
, value
):
21 self
._set
_sub
_text
('photo', value
, keep
=True)
23 self
._del
_sub
('photo')
26 photo
= self
.xml
.find('{%s}photo' % self
.namespace
)