docs/README.txt
changeset 0 6f99128c6d48
child 6 f88ccd965f2d
equal deleted inserted replaced
-1:000000000000 0:6f99128c6d48
       
     1 
       
     2 
       
     3 Portal template configuration storage
       
     4 =====================================
       
     5 
       
     6 
       
     7 <PortalTemplate mon_template>
       
     8 	name = 'template1'
       
     9 	__annotations__['pyams_portal.template'] = PortalTemplateConfiguration:
       
    10 		__parent__ = mon_template
       
    11 		rows = 2
       
    12 		slot_names = ['slot1', 'slot2', 'slot3']
       
    13 		slot_order = {0: ['slot1', 'slot2],
       
    14 					  1: ['slot3']}
       
    15 		slots = {0: {'slot1': [1, 2],
       
    16 					 'slot2': [3, 4, 5]},
       
    17 				 1: {'slot3': []}},
       
    18 		slot_config = {'slot1': <SlotConfiguration>,
       
    19 					   'slot2': <SlotConfiguration>,
       
    20 					   'slot3': <SlotConfiguration>},
       
    21 		portlets = {1: 'portlet1',
       
    22 					2: 'portlet2',
       
    23 					3: 'portlet1',
       
    24 					4: 'portlet3',
       
    25 					5: 'portlet1'},
       
    26 	__annotations__['pyams_portal.portlets'] = PortalPortletsConfiguration:
       
    27 		portlet_config = {1: <Portlet1Configuration(portlet='portlet1')>,
       
    28 						  2: <Portlet2Configuration(portlet='portlet2')>},
       
    29 						  3: <Portlet1Configuration(portlet='portlet1')>,
       
    30 						  4: <Portlet3Configuration(portlet='portlet3')>,
       
    31 						  5: <Portlet1Configuration(portlet='portlet1')>}}
       
    32 
       
    33 
       
    34 <PortalContext mon_contexte>
       
    35 	shared_template = 'template1'
       
    36 	template = mon_template
       
    37 	__annotations__['pyams_portal.template'] = PortalTemplateConfiguration:
       
    38 		__parent__ = mon_contexte
       
    39 		slots = {0: {'slot1': [1, 2],
       
    40 					 'slot2': [3, 4, 5]},
       
    41 				 1: {'slot3': []}},
       
    42 		slot_config = {'slot1': <SlotConfiguration>,
       
    43 					   'slot2': <SlotConfiguration>,
       
    44 					   'slot3': <SlotConfiguration>},
       
    45 	__annotations__['pyams_portal.portlets'] = PortalPortletsConfiguration:
       
    46 		portlet_config = {1: <Portlet1Configuration(portlet='portlet1')>,
       
    47 						  2: <Portlet2Configuration(portlet='portlet2')>},
       
    48 						  3: <Portlet1Configuration(portlet='portlet1')>,
       
    49 						  4: <Portlet3Configuration(portlet='portlet3')>,
       
    50 						  5: <Portlet1Configuration(portlet='portlet1')>}}
       
    51 
       
    52 
       
    53 <IPortalContext context1>:
       
    54 	<PortalPage>
       
    55 		__parent__ = context1
       
    56 		inherit_parent = False
       
    57 		use_local_template = False
       
    58 		shared_template = 'template1'
       
    59 
       
    60 
       
    61 <IPortalContext context2>:
       
    62 	<PortalPage>
       
    63 		__parent__ = context2
       
    64 		inherit_parent = False
       
    65 		use_local_template = True
       
    66 		local_template = <PortalWfTemplate ++template++>
       
    67 		__annotations__['pyams_portal.portlets'] = PortalPortletsConfiguration:
       
    68 			__parent__ = ++template++