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

59

60

61

62

63

64

65

66

67

68

69

70

71

72

73

74

75

76

77

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

# Copyright 2012-2015 Luc Saffre 

# License: BSD (see file COPYING for details) 

 

"""A special settings module to be used as DJANGO_SETTINGS_MODULE when 

Sphinx generates the Lino docs. 

 

It contains (almost) all modlib modules, which makes no sense in 

practice and would maybe raise errors if you try to initialize a 

database or validate the models, but it is enough to have autodocs do 

its job.  And that's all we want. 

 

""" 

 

import os 

 

from lino.projects.std.settings import * 

 

 

class Site(Site): 

 

    demo_fixtures = 'std few_countries euvatrates furniture \ 

    demo demo2'.split() 

 

    verbose_name = "Lino Docs" 

 

    project_name = 'lino_docs' 

 

    project_model = 'contacts.Person' 

 

    # languages = 'en de fr' 

    languages = 'en de fr et nl pt-br es' 

 

    user_profiles_module = 'lino.modlib.users.roles' 

 

    def get_installed_apps(self): 

        yield super(Site, self).get_installed_apps() 

 

        yield 'lino.modlib.system' 

        # yield 'lino.modlib.gfks' 

        yield 'lino.modlib.users' 

        yield 'lino.modlib.changes' 

        yield 'lino.modlib.languages' 

        yield 'lino.modlib.countries' 

        # yield 'lino_xl.lib.properties' 

        yield 'lino.modlib.contacts' 

        # yield 'lino_xl.lib.addresses' 

        # yield 'lino_xl.lib.humanlinks'  # requires Person to be Born 

 

        yield 'lino.modlib.uploads' 

        # yield 'lino_xl.lib.notes' 

        # yield 'lino_xl.lib.outbox' 

        # yield 'lino_xl.lib.cal' 

        # yield 'lino_xl.lib.extensible' 

        # yield 'lino_xl.lib.reception' 

        # yield 'lino_xl.lib.excerpts' 

        yield 'lino.modlib.polls' 

        # yield 'lino_xl.lib.cv' 

        # yield 'lino_xl.lib.boards' 

        # yield 'lino_xl.lib.postings' 

        # yield 'lino_xl.lib.households' 

 

        yield 'lino.modlib.concepts' 

        # yield 'lino_xl.lib.pages' 

        # yield 'lino_xl.lib.beid' 

        yield 'lino.modlib.tinymce' 

        yield 'lino.modlib.export_excel' 

 

    def setup_plugins(self): 

        super(Site, self).setup_plugins() 

        self.plugins.countries.configure(country_code='BE') 

 

    # def do_site_startup(self): 

    #     # lino_xl.lib.reception requires some workflow to be imported 

    #     from lino_xl.lib.cal.workflows import feedback 

    #     super(Site, self).do_site_startup()