Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

# -*- coding: UTF-8 -*- 

# Copyright 2013-2015 Luc Saffre 

# License: BSD (see file COPYING for details) 

 

from __future__ import unicode_literals 

 

from lino.projects.std.settings import * 

 

from django.utils.translation import ugettext_lazy as _ 

 

 

class Site(Site): 

 

    verbose_name = "Lino Belref" 

    description = _("Belgian Reference") 

    version = "0.1" 

    url = "http://www.lino-framework.org/examples/belref.html" 

    author = 'Luc Saffre' 

    author_email = 'luc.saffre@gmail.com' 

 

    demo_fixtures = 'demo all_countries be inscodes' 

 

    #~ admin_prefix = 'admin' 

    default_ui = 'bootstrap3' 

 

    #~ anonymous_user_profile = 

 

    languages = 'fr nl de' 

 

    def get_installed_apps(self): 

        yield super(Site, self).get_installed_apps() 

        # yield 'lino.modlib.bootstrap3' 

        #~ yield 'lino.modlib.gfks' 

        #~ yield 'lino.modlib.users' 

        yield 'lino.modlib.system' 

        yield 'lino.modlib.statbel.countries' 

        #~ yield 'lino.modlib.contacts' 

        #~ yield 'lino_xl.lib.outbox' 

        #~ yield 'lino_xl.lib.blogs' 

        #~ yield 'lino.modlib.tickets' 

        #~ yield 'lino_xl.lib.pages' 

        yield 'lino.modlib.concepts' 

        yield 'lino.projects.belref' 

 

    def setup_menu(self, profile, main): 

        """ 

        We create a new menu from scratch because the default menu structure 

        wouldn't fit. 

        """ 

        from lino.api import dd 

        mg = dd.plugins.concepts 

        m = main.add_menu(mg.app_label, mg.verbose_name) 

        m.add_action(self.modules.concepts.Concepts) 

        m.add_action(self.modules.countries.Countries) 

        m.add_action(self.modules.countries.Places) 

 

    # def get_main_action(self, user): 

    #     return self.modules.belref.Main.default_action