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