.. doctest docs/specs/noi/public.rst .. _noi.specs.public: ================================================================= Experimental interface to Team using Bootstrap and self-made URLs ================================================================= This document describes the :mod:`lino_book.projects.public` variant of :ref:`noi`, which provides readonly anonymous access to the data of :mod:`lino_book.projects.noi1e` using the :mod:`lino_noi.lib.public` front end. The :mod:`lino_noi.lib.public` front end is yet another way of providing read-only anonymous access. But it is experimental. .. contents:: :depth: 1 :local: .. include:: /../docs/shared/include/tested.rst >>> from lino import startup >>> startup('lino_book.projects.public.settings.demo') >>> from lino.api.doctest import * The home page: >>> res = test_client.get('/') >>> res.status_code 200 >>> soup = BeautifulSoup(res.content, 'lxml') >>> links = soup.find_all('a') >>> len(links) 57 >>> print(links[0].get('href')) /?ul=de >>> print(links[1].get('href')) /?ul=fr >>> print(links[2].get('href')) /ticket/111 >>> res = test_client.get('/ticket/13/') >>> res.status_code 200 >>> soup = BeautifulSoup(res.content, 'lxml') >>> print(soup.get_text(' ', strip=True)) ... #doctest: +NORMALIZE_WHITESPACE -REPORT_UDIFF +ELLIPSIS Home en de fr #13 Bar cannot foo State: Sleeping (last update ...) Created ... by Rolf Rompen Linking to [ticket 1] and to [url http://luc.lino-framework.org/blog/2015/0923.html blog]. This is Lino Noi ... using ...