'Update an existing record.
:param record: Record to update.
:type  record: :class:`Record`
:param name: Record name without the domain name (e.g. www).
Note: If you want to create a record for a base domain
name, you should specify empty string (\'\') for this
argument.
:type  name: ``str``
:param type: DNS record type (MX, CNAME, A, NS, SRV, TXT).
:type  type: :class:`RecordType`
:param data: Data for the record (depends on the record type).
:type  data: ``str``
:param extra: Contains \'entry\' Entry position (1 thru 40)
:type extra: ``dict``
:rtype: :class:`Record`'

def update_record(self, record, name, type, data, extra=None):

    if ((extra is None) or ('entry' not in extra)):
        raise WorldWideDNSError(value="You    must    enter    'entry'    parameter", driver=self)
    record_id = extra.get('entry')
    if (name == ''):
        name = '@'
    if (type not in self.RECORD_TYPE_MAP):
        raise RecordError(value='Record    type    is    not    allowed', driver=record.zone.driver, record_id=name)
    zone = record.zone
    extra = {('S%s' % record_id): name, ('T%s' % record_id): type, ('D%s' % record_id): data}
    zone = self.update_zone(zone, zone.domain, extra=extra)
    record = self.get_record(zone.id, record_id)
    return record
