Welcome | Get started | Dive | Contribute | Topics | Reference | Changes | More

Experimental interface to Team using Bootstrap and self-made URLs

The lino_noi.lib.public front end is yet another way of providing read-only anonymous access. But it is probably deprecated because the React front end does it better.

This document describes the lino_book.projects.public variant of Lino Noi, which provides readonly anonymous access to the data of lino_book.projects.noi1e using the lino_noi.lib.public front end.

Lines starting with >>> in this document are code snippets that get tested as part of our development workflow.

>>> 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)
61
>>> print(links[0].get('href'))
/?ul=de
>>> print(links[1].get('href'))
/?ul=fr
>>> print(links[2].get('href'))
/ticket/113
>>> res = test_client.get('/ticket/13/')
>>> res.status_code
200
>>> soup = BeautifulSoup(res.content, 'lxml')
>>> print(soup.get_text(' ', strip=True))
... 
Home en de fr #13 Bar cannot foo State: Working


(last update ...) Created ... by Rolf Rompen Linking to [ticket 1] and to
 [url https://luc.lino-framework.org/blog/2015/0923.html blog]. This website runs Lino Noi ... using ...