code: def design_publish(self, name, syncwait=0):
          
          existing = self.design_get(name, use_devmode=True)
          rv = self.design_create(name, existing.value, use_devmode=False,
                             syncwait=syncwait)
          self.design_delete(name, use_devmode=True,
                             syncwait=syncwait)
          self._design_poll(name, 'add', None,
                            timeout=syncwait, use_devmode=False)
          return rv
docs: Convert a development mode view into a production mode views.
          Production mode views, as opposed to development views, operate on the
          entire cluster data (rather than a restricted subset thereof).
  
          :param string name: The name of the view to convert.
  
          Once the view has been converted, ensure that all functions (such as
          :meth:`design_get`) have the ``use_devmode`` parameter disabled,
          otherwise an error will be raised when those functions are used.
  
          Note that the ``use_devmode`` option is missing. This is intentional
          as the design document must currently be a development view.
  
          :return: An :class:`~couchbase.result.HttpResult` object.
  
          :raise: :exc:`couchbase.exceptions.HTTPError` if the design does not
              exist
  
          .. seealso:: :meth:`design_create`, :meth:`design_delete`,
              :meth:`design_get`