5 |
5 |
6 |
6 |
7 <PortalTemplate mon_template> |
7 <PortalTemplate mon_template> |
8 name = 'template1' |
8 name = 'template1' |
9 __annotations__['pyams_portal.template'] = PortalTemplateConfiguration: |
9 __annotations__['pyams_portal.template'] = PortalTemplateConfiguration: |
10 __parent__ = mon_template |
10 __parent__ = <mon_template> |
11 rows = 2 |
11 rows = 2 |
|
12 last_portlet_id = 5 |
12 slot_names = ['slot1', 'slot2', 'slot3'] |
13 slot_names = ['slot1', 'slot2', 'slot3'] |
13 slot_order = {0: ['slot1', 'slot2], |
14 slot_order = {0: ['slot1', 'slot2], |
14 1: ['slot3']} |
15 1: ['slot3']} |
15 slots = {0: {'slot1': [1, 2], |
16 slot_config = {'slot1': <SlotConfiguration(portlets=[0, 2, 6])>, |
16 'slot2': [3, 4, 5]}, |
17 'slot2': <SlotConfiguration(portlets=[3, 4])>, |
17 1: {'slot3': []}}, |
18 'slot3': <SlotConfiguration(portlets=[])>}, |
18 slot_config = {'slot1': <SlotConfiguration>, |
19 __annotations__['pyams_portal.portlets'] = PortalPortletsConfiguration = <PersistentMapping>: |
19 'slot2': <SlotConfiguration>, |
20 __parent__ = <mon_template> |
20 'slot3': <SlotConfiguration>}, |
21 0: <Portlet1Configuration(portlet='portlet1')> |
21 portlets = {1: 'portlet1', |
22 __parent__ = <mon_template> |
22 2: 'portlet2', |
23 __name__ = ++portlet++0 |
23 3: 'portlet1', |
24 can_inherit = False |
24 4: 'portlet3', |
25 inherit_parent = False |
25 5: 'portlet1'}, |
26 settings = <Portlet1Settings> |
26 __annotations__['pyams_portal.portlets'] = PortalPortletsConfiguration: |
27 2: <Portlet2Configuration(portlet='portlet2')> |
27 portlet_config = {1: <Portlet1Configuration(portlet='portlet1')>, |
28 3: <Portlet1Configuration(portlet='portlet1')> |
28 2: <Portlet2Configuration(portlet='portlet2')>}, |
29 4: <Portlet3Configuration(portlet='portlet3')> |
29 3: <Portlet1Configuration(portlet='portlet1')>, |
30 5: <Portlet1Configuration(portlet='portlet1')> |
30 4: <Portlet3Configuration(portlet='portlet3')>, |
|
31 5: <Portlet1Configuration(portlet='portlet1')>}} |
|
32 |
31 |
33 |
32 |
34 <PortalContext mon_contexte> |
33 <PortalContext mon_contexte> |
35 shared_template = 'template1' |
34 shared_template = 'template1' |
36 template = mon_template |
35 template = <mon_template> |
37 __annotations__['pyams_portal.template'] = PortalTemplateConfiguration: |
36 __annotations__['pyams_portal.portlets'] = PortalPortletsConfiguration = <PersistentMapping> |
38 __parent__ = mon_contexte |
37 __parent__ = <mon_contexte> |
39 slots = {0: {'slot1': [1, 2], |
38 0: <Portlet1Configuration(portlet='portlet1')> |
40 'slot2': [3, 4, 5]}, |
39 __parent__ = <mon_contexte> |
41 1: {'slot3': []}}, |
40 __name__ = ++portlet++0 |
42 slot_config = {'slot1': <SlotConfiguration>, |
41 can_inherit = True |
43 'slot2': <SlotConfiguration>, |
42 inherit_parent = True |
44 'slot3': <SlotConfiguration>}, |
43 2: <Portlet2Configuration(portlet='portlet2')> |
45 __annotations__['pyams_portal.portlets'] = PortalPortletsConfiguration: |
44 __parent__ = <mon_contexte> |
46 portlet_config = {1: <Portlet1Configuration(portlet='portlet1')>, |
45 __name__ = ++portlet++0 |
47 2: <Portlet2Configuration(portlet='portlet2')>}, |
46 can_inherit = True |
48 3: <Portlet1Configuration(portlet='portlet1')>, |
47 inherit_parent = False |
49 4: <Portlet3Configuration(portlet='portlet3')>, |
48 3: <Portlet1Configuration(portlet='portlet1')> |
50 5: <Portlet1Configuration(portlet='portlet1')>}} |
49 4: <Portlet3Configuration(portlet='portlet3')> |
|
50 5: <Portlet1Configuration(portlet='portlet1')> |
51 |
51 |
52 |
52 |
53 <IPortalContext context1>: |
53 <IPortalContext context1>: |
54 <PortalPage> |
54 <PortalPage> |
55 __parent__ = context1 |
55 __parent__ = <context1> |
56 inherit_parent = False |
56 inherit_parent = False |
57 use_local_template = False |
57 use_local_template = False |
58 shared_template = 'template1' |
58 shared_template = 'template1' |
59 |
59 |
60 |
60 |
61 <IPortalContext context2>: |
61 <IPortalContext context2>: |
62 <PortalPage> |
62 <PortalPage> |
63 __parent__ = context2 |
63 __parent__ = <context2> |
64 inherit_parent = False |
64 inherit_parent = False |
65 use_local_template = True |
65 use_local_template = True |
66 local_template = <PortalWfTemplate ++template++> |
66 local_template = <PortalWfTemplate ++template++> |
67 __annotations__['pyams_portal.portlets'] = PortalPortletsConfiguration: |
67 __annotations__['pyams_portal.portlets'] = PortalPortletsConfiguration: |
68 __parent__ = ++template++ |
68 __parent__ = ++template++ |
|
69 |
|
70 |
|
71 Gestion de l'héritage |
|
72 ===================== |
|
73 |
|
74 |
|
75 |
|
76 Configuration des portlets |
|
77 ========================== |
|
78 |
|
79 Sur un modèle (partagé ou local) : |
|
80 - configuration obligatoirement locale |
|
81 - pas d'héritage possible |
|
82 |
|
83 Sur un contexte "racine" : |
|
84 - héritage possible du modèle |
|
85 |
|
86 Sur un contexte "interne" : |
|
87 - héritage possible du parent |