Changeset 144 for waeup_product/trunk
- Timestamp:
- 3 Nov 2005, 08:41:59 (19 years ago)
- Location:
- waeup_product/trunk/skins
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup_product/trunk/skins/waeup_default/getWAeUPLayouts.py
r142 r144 63 63 'data': { 64 64 'fields': ['Title'], 65 'level': 1,66 65 'is_i18n': 0, 67 66 'is_required': 1, … … 821 820 'widgets': { 822 821 'heading': { 823 'type': ' Heading Widget',822 'type': 'String Widget', 824 823 'data': { 825 824 'fields': ['heading'], 826 'level': 2,827 825 'is_i18n': 0, 828 826 'is_required': 1, … … 834 832 }, 835 833 }, 836 'title': Title,837 834 'text': Text, 838 835 'level': { … … 920 917 'ncols': 1, 921 918 'rows': [ 922 #[{'widget_id': 'heading', 'ncols': 1},],923 [{'widget_id': 'title', 'ncols': 1},],919 [{'widget_id': 'heading', 'ncols': 1},], 920 #[{'widget_id': 'Title', 'ncols': 1},], 924 921 [{'widget_id': 'text', 'ncols': 1},], 925 922 [{'widget_id': 'level', 'ncols': 1},], … … 1032 1029 'widgets': { 1033 1030 'heading': { 1034 'type': ' Heading Widget',1031 'type': 'String Widget', 1035 1032 'data': { 1036 1033 'fields': ['heading'], … … 1045 1042 }, 1046 1043 }, 1047 'Title': Title,1048 1044 'text': Text, 1049 1045 'which_sex': { … … 1137 1133 'ncols': 1, 1138 1134 'rows': [ 1139 #[{'widget_id': 'heading', 'ncols': 1},],1140 [{'widget_id': 'Title', 'ncols': 1},],1135 [{'widget_id': 'heading', 'ncols': 1},], 1136 #[{'widget_id': 'Title', 'ncols': 1},], 1141 1137 [{'widget_id': 'text', 'ncols': 1},], 1142 1138 [{'widget_id': 'which_sex', 'ncols': 1},], -
waeup_product/trunk/skins/waeup_default/getWAeUPSchemas.py
r142 r144 321 321 322 322 course_schema = { ###( 323 'Title': {324 'type': 'CPS String Field',325 'data': {326 'default_expr': '',327 'is_searchabletext': True,328 },329 },323 ## 'Title': { 324 ## 'type': 'CPS String Field', 325 ## 'data': { 326 ## 'default_expr': '', 327 ## 'is_searchabletext': True, 328 ## }, 329 ## }, 330 330 'heading': { 331 331 'type': 'CPS String Field', 332 332 'data': { 333 'default_expr': '',334 333 'is_searchabletext': True, 335 334 }, … … 338 337 'type': 'CPS String Field', 339 338 'data': { 340 'default_expr': 'string:',341 339 'is_searchabletext': True, 342 340 }, … … 381 379 accommodation = { ###( 382 380 'heading': { 383 'type': 'CPS String Field',384 'data': {385 'is_searchabletext': True,386 },387 },388 'Title': {389 381 'type': 'CPS String Field', 390 382 'data': { -
waeup_product/trunk/skins/waeup_faculty/create_course.py
r142 r144 2 2 # $Id$ 3 3 """ 4 Create a Faculty4 Create a Course 5 5 6 6 """ … … 28 28 create = 1, 29 29 type_name = type_name, 30 #psm = str(ds),31 30 psm = 'Please correct your errors', 32 31 ) … … 41 40 oid = "%s" % ds.get('code').replace(' ','') 42 41 context.invokeFactory(type_name,oid) 43 object = getattr(context,oid) 42 object = getattr(context,oid) 43 ds.set('title',ds.get('heading')) 44 44 object.getContent().edit(mapping=ds,proxy=object) 45 45 context.notifyCPSDocumentCreation(ob=object) -
waeup_product/trunk/skins/waeup_student/add_accommodation.py
r139 r144 37 37 ) 38 38 elif psm == 'valid': 39 oid = "%s" % ds.get(' Title').replace(' ','')39 oid = "%s" % ds.get('heading').replace(' ','') 40 40 context.invokeFactory(type_name,oid) 41 41 object = getattr(context,oid) 42 ds.set('title',ds.get('heading')) 42 43 object.getContent().edit(mapping=ds) 43 44 context.notifyCPSDocumentCreation(ob=object)
Note: See TracChangeset for help on using the changeset viewer.