Author: jmorliaguet Date: Thu Mar 2 11:01:26 2006 New Revision: 2505 Modified: cpsskins/branches/jmo-perspectives/ui/authoring/definitions.py cpsskins/branches/jmo-perspectives/ui/authoring/views.py Log:
- all MVC components now have an id Modified: cpsskins/branches/jmo-perspectives/ui/authoring/definitions.py ============================================================================== --- cpsskins/branches/jmo-perspectives/ui/authoring/definitions.py (original) +++ cpsskins/branches/jmo-perspectives/ui/authoring/definitions.py Thu Mar 2 11:01:26 2006 @@ -104,6 +104,7 @@ # Top area 'action-pad': { + 'id': 'action-pad', 'widget': { 'type': 'panel', }, @@ -114,6 +115,7 @@ }, 'tooltip': { + 'id': 'tooltip', 'widget': { 'type': 'tooltip', }, @@ -124,6 +126,7 @@ }, 'perspective-selector': { + 'id': 'perspective-selector', 'widget': { 'type': 'panel', }, @@ -134,6 +137,7 @@ # Main area 'theme-tabs': { + 'id': 'theme-tabs', 'widget': { 'type': 'panel', }, @@ -143,6 +147,7 @@ }, 'page-tabs': { + 'id': 'page-tabs', 'widget': { 'type': 'panel', }, @@ -152,6 +157,7 @@ }, 'location-selector': { + 'id': 'location-selector', 'widget': { 'type': 'panel', }, @@ -165,6 +171,7 @@ # rendered pages 'page-designer': { + 'id': 'page-designer', 'widget': { 'type': 'panel', }, @@ -174,6 +181,7 @@ }, 'layout-designer': { + 'id': 'layout-designer', 'widget': { 'type': 'panel', }, @@ -183,6 +191,7 @@ }, 'content-author': { + 'id': 'content-author', 'widget': { 'type': 'panel', }, @@ -193,6 +202,7 @@ # screen 'site-designer': { + 'id': 'site-designer', 'widget': { 'type': 'panel', }, @@ -203,6 +213,7 @@ # site designer panels 'settings': { + 'id': 'settings', 'widget': { 'type': 'panel', }, @@ -212,6 +223,7 @@ }, 'associations': { + 'id': 'associations', 'widget': { 'type': 'panel', }, @@ -221,6 +233,7 @@ }, 'management': { + 'id': 'management', 'widget': { 'type': 'panel', }, @@ -231,6 +244,7 @@ # Bottom area 'portlet-factory': { + 'id': 'portlet-factory', 'widget': { 'type': 'panel', }, @@ -241,8 +255,9 @@ # Contextual menu 'context-menu': { - 'controller': 'menuactions', - 'widget': { + 'id': 'context-menu', + 'controller': 'menuactions', + 'widget': { 'type': 'contextmenu', 'items': [ {'type': 'item', Modified: cpsskins/branches/jmo-perspectives/ui/authoring/views.py ============================================================================== --- cpsskins/branches/jmo-perspectives/ui/authoring/views.py (original) +++ cpsskins/branches/jmo-perspectives/ui/authoring/views.py Thu Mar 2 11:01:26 2006 @@ -229,11 +229,13 @@ class JSONViews(BrowserView): - def _encode(self, data): - return json.write({'data': data}) - def getHint(self, msgid): - return self._encode({'hint': _(msgid)}) + return json.write({ + 'id': msgid, + 'data': { + 'hint': _(msgid) + } + }) def getModel(self, id): return json.write(MODELS[id]) -- http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins