Changeset 161 for waeup_product/trunk/skins/waeup_default
- Timestamp:
- 8 Nov 2005, 09:07:53 (19 years ago)
- Location:
- waeup_product/trunk/skins/waeup_default
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup_product/trunk/skins/waeup_default/getWAeUPLayouts.py
r152 r161 312 312 'fields': ('birthday',), 313 313 'is_required': False, 314 'label': ' ',314 'label': 'Day of birth', 315 315 'label_edit': 'Day of birth', 316 316 'description': 'Day of birth', … … 326 326 'display_width': 10, 327 327 'size_max': 0, 328 }, 329 }, 330 'photo': { 331 'type': 'Photo Widget', 332 'data': { 333 'title': '', 334 'fields': ('photo',), 335 'is_required': False, 336 'label': 'Personal Picture', 337 'label_edit': 'Personal Picture', 338 'description': '', 339 'help': '', 340 'is_i18n': False, 341 'readonly_layout_modes': (), 342 'hidden_layout_modes': (), 343 'hidden_readonly_layout_modes': (), 344 'hidden_empty': False, 345 'hidden_if_expr': '', 346 'widget_mode_expr': '', 347 'css_class': '', 348 'css_class_expr': '', 349 'javascript_expr': '', 350 'deletable': True, 351 'size_max': 4194304, 352 'display_width': 90, 353 'display_height': 180, 354 'allow_resize': True, 355 'render_position': 'left', 356 'configurable': 'nothing', 357 'keep_original': 1, 358 }, 359 }, 360 'birth_certificate': { 361 'type': 'Image Widget', 362 'data': { 363 'title': '', 364 'fields': ('birth_certificate',), 365 'is_required': False, 366 'label': 'Birth Certificate', 367 'label_edit': 'Birth Certificate', 368 'description': '', 369 'help': '', 370 'is_i18n': False, 371 'readonly_layout_modes': (), 372 'hidden_layout_modes': (), 373 'hidden_readonly_layout_modes': (), 374 'hidden_empty': False, 375 'hidden_if_expr': '', 376 'widget_mode_expr': '', 377 'css_class': '', 378 'css_class_expr': '', 379 'javascript_expr': '', 380 'deletable': True, 381 'size_max': 4194304, 382 'display_width': 300, 383 'display_height':600, 384 'allow_resize': True, 328 385 }, 329 386 }, … … 339 396 [{'widget_id': 'sex', 'ncols': 1},], 340 397 [{'widget_id': 'birthday', 'ncols': 1},], 398 [{'widget_id': 'photo', 'ncols': 1},], 399 [{'widget_id': 'birth_certificate', 'ncols': 1},], 341 400 ] 342 401 }, -
waeup_product/trunk/skins/waeup_default/getWAeUPSchemas.py
r152 r161 152 152 }, 153 153 }, 154 'state': { 155 'type': 'CPS DateTime Field', 156 'data': { 157 'is_searchabletext': 1, 154 'photo': { 155 'type': 'CPS Image Field', 156 'data': { 157 'is_searchabletext': 0, 158 }, 159 }, 160 'birth_certificate': { 161 'type': 'CPS Image Field', 162 'data': { 163 'is_searchabletext': 0, 158 164 }, 159 165 }, -
waeup_product/trunk/skins/waeup_default/getWAeUPTypes.py
r155 r161 154 154 ###) 155 155 156 academics_folder_type = { ###(157 'title': 'WAeUP Academics Folder',158 'description': 'The WAeUP Academics Folder',159 'content_icon': '',160 'content_meta_type': 'AcademicsFolder',161 'product': 'CPSDefault',162 'factory': 'addFolder',163 'immediate_view': 'folder_view',164 'global_allow': 1,165 'filter_content_types': 1,166 'allowed_content_types': ('Faculty',),167 'allow_discussion': 0,168 'cps_is_searchable': 1,169 'cps_display_as_document_in_listing': 1,170 'cps_proxy_type': 'folder',171 'schemas': ['metadata', 'common', 'folder'],172 'layouts': ['waeup_common','folder'],173 'layout_clusters': ['metadata:metadata'],174 'cps_section_wf': 'waeup_section_wf',175 'actions': ({'id': 'view',176 'name': 'Standard View',177 #'action': 'academics_view',178 'action': 'temporary_view_all',179 'condition': "",180 'permissions': (View,)},181 {'id': 'add_faculty',182 'name': 'Add Faculty',183 'condition': "python:member and 'UniversityManager'in member.getRoles()",184 'action' : 'string:${object/absolute_url}/create_common?type_name=Faculty',185 'permissions': (UniversityManage,)},186 {'id': 'localroles',187 'name': 'delegate',188 'action': 'folder_localrole_form',189 'permissions': (UniversityManage,),190 'visible': False,191 },192 )193 }194 ###)195 196 156 student_type = { ###( 197 157 'title': 'WAeUP Student', … … 221 181 'action': 'temporary_view_all', 222 182 'condition': '', 223 'permission': ( View,StudentManage,UniversityManage),183 'permission': (StudentManage,UniversityManage), 224 184 'category': 'object', 225 185 'visible': True,}, … … 260 220 ) 261 221 } 222 ###) 223 224 academics_folder_type = { ###( 225 'title': 'WAeUP Academics Folder', 226 'description': 'The WAeUP Academics Folder', 227 'content_icon': '', 228 'content_meta_type': 'AcademicsFolder', 229 'product': 'CPSDefault', 230 'factory': 'addFolder', 231 'immediate_view': 'folder_view', 232 'global_allow': 1, 233 'filter_content_types': 1, 234 'allowed_content_types': ('Faculty',), 235 'allow_discussion': 0, 236 'cps_is_searchable': 1, 237 'cps_display_as_document_in_listing': 1, 238 'cps_proxy_type': 'folder', 239 'schemas': ['metadata', 'common', 'folder'], 240 'layouts': ['waeup_common','folder'], 241 'layout_clusters': ['metadata:metadata'], 242 'cps_section_wf': 'waeup_section_wf', 243 'actions': ({'id': 'view', 244 'name': 'Standard View', 245 #'action': 'academics_view', 246 'action': 'temporary_view_all', 247 'condition': "", 248 'permissions': (View,)}, 249 {'id': 'add_faculty', 250 'name': 'Add Faculty', 251 'condition': "python:member and 'UniversityManager'in member.getRoles()", 252 'action' : 'string:${object/absolute_url}/create_common?type_name=Faculty', 253 'permissions': (UniversityManage,)}, 254 {'id': 'localroles', 255 'name': 'delegate', 256 'action': 'folder_localrole_form', 257 'permissions': (UniversityManage,), 258 'visible': False, 259 }, 260 ) 261 } 262 262 ###) 263 263 -
waeup_product/trunk/skins/waeup_default/temporary_view_all.pt
r160 r161 13 13 <metal:block fill-slot="main" 14 14 tal:define="folder here/getContent; 15 items here/contentValues; 16 " 15 items python:context.filterContents(items=context.contentValues());" 17 16 > 18 17 <h1> <span tal:content="context/title_or_id" /></h1>
Note: See TracChangeset for help on using the changeset viewer.