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

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

# Copyright 2009-2013 Luc Saffre 

# License: BSD (see file COPYING for details) 

 

from django.conf import settings 

from lino.core.utils import resolve_model 

from lino.utils.instantiator import Instantiator 

#from lino import reports 

#contacts = reports.get_app('contacts') 

 

 

def objects(): 

    #~ city = Instantiator('countries.Place','name country').build 

    #~ yield city('Vigala','EE') 

    if 'et' in settings.SITE.languages: 

        lang = 'et' 

    else: 

        # if language 'et' is not available, use the default language 

        lang = settings.SITE.languages[0] 

 

    company = Instantiator( 

        "contacts.Company", country='EE', language=lang).build 

    yield company(name=u'Minu Firma OÜ') 

    yield company(name=u'Mets ja Puu OÜ') 

    yield company(name=u'Kenavälja OÜ') 

 

    person = Instantiator("contacts.Person", 

                          "first_name last_name", country='EE').build 

    yield person(u'Aare', u'Aaresild') 

    yield person(u'Ahti', u'Aaspere') 

    yield person(u'Peeter', u'Bach') 

    yield person(u'Tiina', u'Engelbert') 

    yield person(u'Inge', u'Hallik') 

    yield person(u'Harri', u'Hunt') 

    yield person(u'Ingmar', u'Iliste') 

    yield person(u'Jaan', u'Janno') 

    yield person(u'Jaan', u'Jõgi') 

    yield person(u'Karl', u'Kask') 

    yield person(u'Leo', u'Lepamets') 

    yield person(u'Madis', u'Mäeorg') 

    yield person(u'Natalja', u'Nagel') 

    yield person(u'Ott', u'Ojavee') 

    yield person(u'Piret', u'Paas') 

    yield person(u'Rannes', u'Rannala') 

    yield person(u'Silja', u'Sääsk') 

    yield person(u'Tõnu', u'Tamm') 

    yield person(u'Tiina', u'Türnpuu') 

    yield person(u'Urmas', u'Uukivi')