docs/README.txt
changeset 0 6f99128c6d48
child 6 f88ccd965f2d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/docs/README.txt	Wed Jun 17 09:58:33 2015 +0200
@@ -0,0 +1,68 @@
+
+
+Portal template configuration storage
+=====================================
+
+
+<PortalTemplate mon_template>
+	name = 'template1'
+	__annotations__['pyams_portal.template'] = PortalTemplateConfiguration:
+		__parent__ = mon_template
+		rows = 2
+		slot_names = ['slot1', 'slot2', 'slot3']
+		slot_order = {0: ['slot1', 'slot2],
+					  1: ['slot3']}
+		slots = {0: {'slot1': [1, 2],
+					 'slot2': [3, 4, 5]},
+				 1: {'slot3': []}},
+		slot_config = {'slot1': <SlotConfiguration>,
+					   'slot2': <SlotConfiguration>,
+					   'slot3': <SlotConfiguration>},
+		portlets = {1: 'portlet1',
+					2: 'portlet2',
+					3: 'portlet1',
+					4: 'portlet3',
+					5: 'portlet1'},
+	__annotations__['pyams_portal.portlets'] = PortalPortletsConfiguration:
+		portlet_config = {1: <Portlet1Configuration(portlet='portlet1')>,
+						  2: <Portlet2Configuration(portlet='portlet2')>},
+						  3: <Portlet1Configuration(portlet='portlet1')>,
+						  4: <Portlet3Configuration(portlet='portlet3')>,
+						  5: <Portlet1Configuration(portlet='portlet1')>}}
+
+
+<PortalContext mon_contexte>
+	shared_template = 'template1'
+	template = mon_template
+	__annotations__['pyams_portal.template'] = PortalTemplateConfiguration:
+		__parent__ = mon_contexte
+		slots = {0: {'slot1': [1, 2],
+					 'slot2': [3, 4, 5]},
+				 1: {'slot3': []}},
+		slot_config = {'slot1': <SlotConfiguration>,
+					   'slot2': <SlotConfiguration>,
+					   'slot3': <SlotConfiguration>},
+	__annotations__['pyams_portal.portlets'] = PortalPortletsConfiguration:
+		portlet_config = {1: <Portlet1Configuration(portlet='portlet1')>,
+						  2: <Portlet2Configuration(portlet='portlet2')>},
+						  3: <Portlet1Configuration(portlet='portlet1')>,
+						  4: <Portlet3Configuration(portlet='portlet3')>,
+						  5: <Portlet1Configuration(portlet='portlet1')>}}
+
+
+<IPortalContext context1>:
+	<PortalPage>
+		__parent__ = context1
+		inherit_parent = False
+		use_local_template = False
+		shared_template = 'template1'
+
+
+<IPortalContext context2>:
+	<PortalPage>
+		__parent__ = context2
+		inherit_parent = False
+		use_local_template = True
+		local_template = <PortalWfTemplate ++template++>
+		__annotations__['pyams_portal.portlets'] = PortalPortletsConfiguration:
+			__parent__ = ++template++