Ejemplo n.º 1
0
    def __init__(self, name=None):

        if name is None:
            raise ValueError('Parameter constructor requires a name')

        _ElementInterface.__init__(self, _ParameterListTag, {})
        self.set('name', name)
Ejemplo n.º 2
0
 def __init__(self):
     #        print "!!!!!!!!!!!!!!!!!!!!! AvailableServices __init__"
     _ElementInterface.__init__(self, 'Services', {})
     #        self.attrib['xmlns'] = 'urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/'
     #        self.attrib['xmlns:dc'] = 'http://purl.org/dc/elements/1.1/'
     #        self.attrib['xmlns:upnp'] = 'urn:schemas-upnp-org:metadata-1-0/upnp/'
     #        self.attrib['xmlns:dlna'] = 'urn:schemas-dlna-org:metadata-1-0'
     #        self.attrib['xmlns:r'] = 'urn:schemas-rinconnetworks-com:metadata-1-0/'
     self._items = []
Ejemplo n.º 3
0
    def __init__(self, name=None, value=None):

        if name is None:
            raise ValueError('Parameter constructor requires a name')

        if value is None:
            raise ValueError('Parameter constructor requires a value')

        #print "name=",name
        #print "value=",value
        #print "type=",get_str_type(value)

        attrib = {
            'name': name,
            'value': str(value),
            'type': get_str_type(value)
        }
        _ElementInterface.__init__(self, _ParameterTag, attrib)
Ejemplo n.º 4
0
 def __init__(self,name,elemtype):
     attr = {}
     attr['name'] = name
     _ElementInterface.__init__(self,elemtype,attr)
     self.name = name
     self.elemtype = elemtype
Ejemplo n.º 5
0
 def __init__(self, *args):
     _ElementInterface.__init__(self, self.tag, *args)
Ejemplo n.º 6
0
 def __init__(self, xmlRootTagName, attributeDict):
     _ElementInterface.__init__(self, xmlRootTagName, attributeDict)
Ejemplo n.º 7
0
 def __init__ (self, xmlRootTagName, attributeDict):
     _ElementInterface.__init__(self, xmlRootTagName, attributeDict)
Ejemplo n.º 8
0
	def __init__(self):
		_ElementInterface.__init__(self, 'DIDL-Lite', {})
		self.attrib['xmlns'] = 'urn:schemas-upnp-org:metadata-1-0/DIDL-Lite'
		self.attrib['xmlns:dc'] = 'http://purl.org/dc/elements/1.1/'
		self.attrib['xmlns:upnp'] = 'urn:schemas-upnp-org:metadata-1-0/upnp'