Changeset 96
- Timestamp:
- 27 Oct 2005, 06:51:08 (19 years ago)
- Location:
- waeup_product/trunk
- Files:
-
- 3 added
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup_product/trunk/Extensions/install.py
r89 r96 72 72 if CPSSubscriptions: ###( 73 73 ptypes = "('Portal', 'CPSMailAccess Message', 'CPSMailAccess Box', 'CPSMailAccess Folder',"\ 74 + "'University', 'StudentsFolder', 'Student', 'Jamb' )"74 + "'University', 'StudentsFolder', 'Student', 'Jamb', 'Faculty', 'Department','Course')" 75 75 condition = "object.portal_type not in %s" % ptypes 76 76 … … 85 85 self.verifyAction('portal_subscriptions', **action) 86 86 if CPSForum: 87 ptypes = "('University', 'StudentsFolder', 'Student', 'Jamb')"87 ptypes = "('University','StudentsFolder','Student', 'Jamb','Faculty', 'Department','Course')" 88 88 condition = "object.portal_type not in %s" % ptypes 89 89 … … 314 314 dirtool = getattr(self,'portal_directories') 315 315 groups = dirtool.groups 316 for newEntry in ('Students','StudentManager'): 316 for delEntry in ('StudentManager',): 317 if delEntry in groups.listEntryIds(): 318 groups.deleteEntry(delEntry) 319 for newEntry in ('Students',): 317 320 if newEntry not in groups.listEntryIds(): 318 321 groups.createEntry({'group': newEntry, 319 322 'members': []}) 320 groups.manage_setLocalGroupRoles(groupid = 'StudentManager',roles=('Manager',))323 #groups.manage_setLocalGroupRoles(groupid = 'StudentManager',roles=('Manager',)) 321 324 #groups.manage_setLocalGroupRoles(groupid = 'Students',roles=('Contributor',)) 322 325 sections = getattr(self,'sections') -
waeup_product/trunk/skins/waeup_default/faculties.pt
r85 r96 13 13 > 14 14 <span> 15 <h2>The Faculties</h2> 15 16 <table cellspacing="0" cellpadding="0"> 16 17 <tal:block condition="python: len(items)"> -
waeup_product/trunk/skins/waeup_default/getWAeUPLayouts.py
r84 r96 29 29 ###) 30 30 31 Heading = { ###( 32 'type': 'Heading Widget', 33 'data': { 34 'fields': ['heading'], 35 'level': 1, 36 'is_i18n': 0, 37 'is_required': 1, 38 'label_edit': 'Headline', 39 'help': 'a short headline', 40 'display_width': 40, 41 'size_max': 200, 42 }, 43 }###) 44 45 Text = { ###( 46 'type': 'Text Widget', 47 'data': { 48 'fields': ['text'], 49 'is_i18n': 1, 50 'label_edit': 'Text', 51 'label': 'Text', 52 'help': 'a short Description', 53 'css_class': 'description', 54 'width': 72, 55 'height': 5, 56 'render_format': 'text', 57 'hidden_layout_modes': (), 58 }, 59 }###) 60 61 Title = { ###( 62 'type': 'Heading Widget', 63 'data': { 64 'fields': ['Title'], 65 'level': 1, 66 'is_i18n': 0, 67 'is_required': 1, 68 'label_edit': 'Name', 69 'display_width': 40, 70 'size_max': 200, 71 }, 72 }###) 73 74 Description = { ###( 75 'type': 'Text Widget', 76 'data': { 77 'fields': ['Description'], 78 'is_i18n': 1, 79 'label_edit': 'Description', 80 'label': 'Description', 81 'css_class': 'description', 82 'width': 72, 83 'height': 5, 84 'render_format': 'text', 85 'hidden_layout_modes': (), 86 }, 87 }###) 88 31 89 common_layout = {###( 32 90 'widgets': { … … 37 95 }, 38 96 }, 39 'Title': { 40 'type': 'Heading Widget', 41 'data': { 42 'fields': ['Title'], 43 'level': 1, 44 'is_i18n': 1, 45 'is_required': 1, 46 'label_edit': 'Name', 47 'display_width': 40, 48 'size_max': 200, 49 }, 50 }, 51 'Description': { 52 'type': 'Text Widget', 53 'data': { 54 'fields': ['Description'], 55 'is_i18n': 1, 56 'label_edit': 'cpsdoc_description_label_edit', 57 'label': '', 58 'css_class': 'ddescription', 59 'width': 72, 60 'height': 5, 61 'render_format': 'text', 62 'hidden_layout_modes': ('create','edit', 'view'), 63 }, 64 }, 97 'Title': Title, 98 'Description': Description, 65 99 'LanguageSelectorCreation': { 66 100 'type': 'Select Widget', … … 790 824 ###) 791 825 792 department = { ###(793 'widgets': {},794 'layout': {795 'style_prefix': 'layout_waeup_',796 'flexible_widgets': (),797 'ncols': 1,798 'rows': [],799 },800 }801 ###)802 waeup_default = { ###(803 'widgets': {},804 'layout': {805 'style_prefix': 'layout_waeup_',806 'flexible_widgets': (),807 'ncols': 1,808 'rows': [],809 },810 }811 ###)812 813 826 course = { ###( 814 827 'widgets': { 815 ## 'title': { 816 ## 'type': 'String Widget', 817 ## 'data': { 818 ## 'title': '', 819 ## 'fields': ('title',), 820 ## 'is_required': True, 821 ## 'label': 'Title', 822 ## 'label_edit': 'Title', 823 ## 'description': '', 824 ## 'help': '', 825 ## 'is_i18n': False, 826 ## 'display_width': 10, 827 ## 'size_max': 0, 828 ## }, 829 ## }, 828 'heading': Heading, 829 'text': Text, 830 830 'level': { 831 831 'type': 'String Widget', … … 913 913 'ncols': 1, 914 914 'rows': [ 915 [{'widget_id': 'title', 'ncols': 1},], 915 [{'widget_id': 'heading', 'ncols': 1},], 916 [{'widget_id': 'text', 'ncols': 1},], 916 917 [{'widget_id': 'level', 'ncols': 1},], 917 918 [{'widget_id': 'code', 'ncols': 1},], … … 925 926 926 927 layouts = {} 927 layouts['university'] = waeup_default928 layouts['university'] = common_layout 928 929 layouts['waeup_common'] = common_layout 929 930 layouts['student'] = student_layout … … 933 934 layouts['jambcreate'] = jamb_layoutcreate 934 935 layouts['jamb'] = jamb_layout 935 layouts['faculty'] = waeup_default936 layouts['department'] = waeup_default936 layouts['faculty'] = common_layout 937 layouts['department'] = common_layout 937 938 layouts['course'] = course 938 939 layouts['admission_status'] = admission_status -
waeup_product/trunk/skins/waeup_default/getWAeUPSchemas.py
r78 r96 239 239 240 240 course_schema = { ###( 241 'heading': { 242 'type': 'CPS String Field', 243 'data': { 244 'default_expr': 'string:', 245 'is_searchabletext': True, 246 }, 247 }, 248 'text': { 249 'type': 'CPS String Field', 250 'data': { 251 'default_expr': 'string:', 252 'is_searchabletext': True, 253 }, 254 }, 241 255 'level': { 242 256 'type': 'CPS String Field', -
waeup_product/trunk/skins/waeup_default/getWAeUPTypes.py
r92 r96 34 34 'condition': "python:member and 'Manager' in member.getRoles()", 35 35 'permissions': (View,)}, 36 {'id': 'add Faculty',36 {'id': 'add_faculty', 37 37 'name': 'Add a Faculty', 38 'action': 'folder_factories', 38 'action' : 'string:${object/absolute_url}/create_common?type_name=Faculty', 39 #'action': 'folder_factories', 39 40 'permissions': (ModifyPortalContent,UniversityManage,)}, 40 41 {'id': 'contents', … … 56 57 'name': 'action_local_roles', 57 58 'action': 'folder_localrole_form', 58 'condition': ' not:portal/portal_membership/isAnonymousUser',59 'permissions': ( ChangePermissions,)},59 'condition': 'python:0', 60 'permissions': (ModifyPortalContent,)}, 60 61 ) 61 62 } … … 87 88 'condition': "python:member and 'Manager' in member.getRoles()", 88 89 'permissions': (View,)}, 89 {90 'id' : 'add_content',91 'name' : 'Add Content',92 'action' : 'string:${object/absolute_url}/folder_factories',93 'condition': "python:member and 'Manager' in member.getRoles()",94 'permissions': (StudentManage,)},90 ## { 91 ## 'id' : 'add_content', 92 ## 'name' : 'Add Content', 93 ## 'action' : 'string:${object/absolute_url}/folder_factories', 94 ## 'condition': "python:member and 'Manager' in member.getRoles()", 95 ## 'permissions': (StudentManage,)}, 95 96 { 96 97 'id' : 'add_jamb', … … 320 321 'filter_content_types': True, 321 322 'allowed_content_types': ('Department'), 322 'allow_discussion': False,323 'allow_discussion': 0, 323 324 'cps_is_searchable': True, 324 325 'cps_proxy_type': 'folder', 325 326 'cps_display_as_document_in_listing': True, 326 327 'schemas': ['metadata','common','faculty'], 327 'layouts': [' common','faculty'],328 'layouts': ['faculty'], 328 329 'flexible_layouts': (), 329 'layout_clusters': ['metadata:metadata' ],330 'layout_clusters': ['metadata:metadata',], 330 331 'cps_section_wf': 'waeup_section_wf', 331 332 'use_content_status_history': 0, … … 336 337 'condition': '', 337 338 'permission': (View,), 338 'category': 'object',339 339 'visible': True,}, 340 340 {'id': 'edit', … … 343 343 'condition': '', 344 344 'permission': (UniversityManage,), 345 'category': 'object', 346 'visible': True,}, 345 'visible': True,}, 346 {'id': 'add_department', 347 'name': 'Add a Department', 348 'action' : 'string:${object/absolute_url}/create_common?type_name=Department', 349 'permissions': (ModifyPortalContent,UniversityManage,)}, 350 {'id': 'contents', 351 'name': 'action_folder_contents', 352 'action': 'folder_contents', 353 'condition': "python:member and 'Manager' in member.getRoles()", 354 'permissions': (ModifyPortalContent,UniversityManage,)}, 355 {'id': 'edit', 356 'name': 'action_edit', 357 'action': 'cpsdocument_edit_form', 358 'condition': "python:member and 'Manager' in member.getRoles()", 359 'permissions': (ModifyPortalContent,UniversityManage,)}, 360 {'id': 'metadata', 361 'name': 'action_metadata', 362 'action': 'cpsdocument_metadata', 363 'condition': "python:member and 'Manager' in member.getRoles()", 364 'permissions': (ModifyPortalContent,)}, 365 {'id': 'localroles', 366 'name': 'action_local_roles', 367 'action': 'folder_localrole_form', 368 'condition': 'python:0', 369 'permissions': (ModifyPortalContent,)}, 347 370 ) 348 371 } … … 365 388 'cps_display_as_document_in_listing': True, 366 389 'schemas': ['metadata','common','department'], 367 'layouts': ['department', 'common',],390 'layouts': ['department',], 368 391 'flexible_layouts': (), 369 'layout_clusters': ['metadata:metadata' ],392 'layout_clusters': ['metadata:metadata',], 370 393 'cps_section_wf': 'waeup_section_wf', 371 394 'use_content_status_history': 0, … … 376 399 'condition': '', 377 400 'permission': ('View',), 378 'category': 'object',379 401 'visible': True,}, 380 402 {'id': 'edit', … … 383 405 'condition': '', 384 406 'permission': (FacultyManage,), 385 'category': 'object', 386 'visible': True,}, 407 'visible': True,}, 408 {'id': 'create_course', 409 'name': 'Add a Course', 410 'action' : 'string:${object/absolute_url}/create_course', 411 'permissions': (ModifyPortalContent,UniversityManage,)}, 412 {'id': 'contents', 413 'name': 'action_folder_contents', 414 'action': 'folder_contents', 415 'condition': "python:member and 'Manager' in member.getRoles()", 416 'permissions': (ModifyPortalContent,UniversityManage,)}, 417 {'id': 'edit', 418 'name': 'action_edit', 419 'action': 'cpsdocument_edit_form', 420 'condition': "python:member and 'Manager' in member.getRoles()", 421 'permissions': (ModifyPortalContent,UniversityManage,)}, 422 {'id': 'metadata', 423 'name': 'action_metadata', 424 'action': 'cpsdocument_metadata', 425 'condition': "python:member and 'Manager' in member.getRoles()", 426 'permissions': (ModifyPortalContent,)}, 427 {'id': 'localroles', 428 'name': 'action_local_roles', 429 'action': 'folder_localrole_form', 430 'condition': 'python:0', 431 'permissions': (ModifyPortalContent,)}, 387 432 ) 388 433 } 389 434 ###) 390 435 391 course_type = { ###( 436 course_type = { ###( 392 437 'title': 'WAeUP Course', 393 438 'description': '', … … 405 450 'cps_display_as_document_in_listing': True, 406 451 'schemas': ['metadata','common','course'], 407 'layouts': ['common','course' ],452 'layouts': ['common','course',], 408 453 'flexible_layouts': (), 409 'layout_clusters': ['metadata:metadata' ],454 'layout_clusters': ['metadata:metadata','coursetotal:metadata,course'], 410 455 'cps_section_wf': 'waeup_section_wf', 411 456 'use_content_status_history': 0, … … 425 470 'category': 'object', 426 471 'visible': True,}, 472 {'id': 'contents', 473 'name': 'action_folder_contents', 474 'action': 'folder_contents', 475 'condition': "python:member and 'Manager' in member.getRoles()", 476 'permissions': (ModifyPortalContent,UniversityManage,)}, 477 {'id': 'edit', 478 'name': 'action_edit', 479 'action': 'cpsdocument_edit_form', 480 'condition': "python:member and 'Manager' in member.getRoles()", 481 'permissions': (ModifyPortalContent,UniversityManage,)}, 482 {'id': 'metadata', 483 'name': 'action_metadata', 484 'action': 'cpsdocument_metadata', 485 'condition': "python:member and 'Manager' in member.getRoles()", 486 'permissions': (ModifyPortalContent,)}, 487 {'id': 'localroles', 488 'name': 'action_local_roles', 489 'action': 'folder_localrole_form', 490 'condition': 'python:0', 491 'permissions': (ModifyPortalContent,)}, 427 492 ) 428 493 } -
waeup_product/trunk/skins/waeup_default/layout_waeup_create.pt
r86 r96 1 1 <tal:block define="global creation python:1" /> 2 <metal:block use-macro="here/waeup_layout_lib/macros/ default_edit" />2 <metal:block use-macro="here/waeup_layout_lib/macros/common_edit" /> -
waeup_product/trunk/skins/waeup_default/university_view.py
r90 r96 7 7 member = context.portal_membership.getAuthenticatedMember() 8 8 9 if not context.portal_membership.isAnonymousUser :9 if not context.portal_membership.isAnonymousUser(): 10 10 if 'Manager' in member.getRoles(): 11 11 return context.folder_view() -
waeup_product/trunk/skins/waeup_default/waeup_layout_lib.pt
r76 r96 203 203 204 204 </metal:block> 205 <!-- default edit --> 206 207 <metal:block define-macro="common_edit" 208 tal:define="layout options/layout; 209 ds options/datastructure; 210 creation creation|nothing; 211 metadata metadata|nothing; 212 type_name request/type_name|nothing; 213 ti python:type_name and getattr(here.portal_types,type_name,None) or getattr(here.portal_types,here.portal_type,None); 214 tin python:type_name and getattr(here.portal_types,type_name,None); 215 creation_form options/create_action|string:create_common; 216 edit_form options/edit_action|string:cpsdocument_edit_form; 217 metadata_form python:ti and ti.getActionById('metadata', 'cpsdocument_metadata') or 'cpsdocument_metadata'; 218 formaction python: test(creation, creation_form, 219 test(metadata, metadata_form, 220 edit_form)); 221 first_layout python:1; 222 last_layout python:1; 223 is_flexible options/is_flexible; 224 cpsmcat nocall:here/translation_service; 225 "> 226 <tal:block condition="first_layout"> 227 <span tal:condition="python: 0"> 228 <span tal:content="request/type_name|string:No Typename" /><br /> 229 <span tal:content="creation_form" /><br /> 230 <span tal:content="ti" /><br /> 231 <span tal:content="python:ti.getActionById('create', 'cpsdocument_create_form')" /><br /> 232 <span tal:content="python:getattr(here.portal_types,type_name,'no type')" /><br /> 233 </span> 234 <tal:block 235 content="structure string:<form action='${formaction}' method='post' 236 enctype='multipart/form-data' class='workflow'> 237 <div class='group'><div class='documentFields'>" /> 238 <input type="hidden" name="type_name" value="." 239 tal:condition="creation" tal:attributes="value request/type_name" /> 240 </tal:block> 241 242 <table width="100%" cellpadding="2" cellspacing="2" summary="Form layout"> 243 <tr tal:repeat="row layout/rows" valign="top"> 244 <td tal:repeat="cell row" 245 tal:attributes="colspan cell/ncols"> 246 <tal:block define="widget cell/widget; 247 wid widget/getWidgetId; 248 dm options/datastructure/getDataModel; 249 err python:ds.getError(wid); 250 err_mapping python:ds.getErrorMapping(wid); 251 is_required widget/is_required|nothing; 252 tooltip_id python:wid + '_help'; 253 widget_css_class cell/widget_css_class|nothing; 254 widget_css_class python:test(is_flexible, 'group', widget_css_class); 255 css_class python:test(err, 'row error', 256 test(is_flexible, 'group', 'row'))"> 257 <div tal:attributes="class widget_css_class; 258 id python:widget.getHtmlWidgetId()+'_widget'; 259 "> 260 <div class="label" tal:condition="widget/label_edit" 261 tal:attributes="class python:test(is_required, 'label required', 262 'label')"> 263 <label i18n:translate="" tal:condition="widget/is_i18n" 264 tal:content="widget/label_edit" 265 tal:attributes="for cell/widget_input_area_id|nothing;">label</label> 266 <label tal:condition="not:widget/is_i18n" 267 tal:content="widget/label_edit" 268 tal:attributes="for cell/widget_input_area_id|nothing;">label</label> 269 </div> 270 <button type="button" class="tooltipControl" 271 tal:condition="widget/help" 272 tal:attributes="onclick python:'toggleElementVisibility(\'%s\')' % tooltip_id;"> ? </button> 273 <div class="field"> 274 <div tal:replace="structure cell/widget_rendered"/> 275 </div> 276 <div class="tooltipArea" style="visibility: hidden;" 277 tal:condition="widget/help" 278 tal:attributes="id tooltip_id; 279 onclick python:'showElement(false, \'%s\')' % tooltip_id;"> 280 <tal:block i18n:translate="" tal:condition="widget/is_i18n" 281 tal:content="widget/help">i18_key-help_for_this_field</tal:block> 282 <tal:block tal:condition="not:widget/is_i18n" 283 tal:content="widget/help">This is the help for this field</tal:block> 284 </div> 285 <tal:block condition="err"> 286 <tal:block define="msg python:cpsmcat(err, mapping=err_mapping)"> 287 <br /><em style="color: red" 288 tal:content="msg">err</em> 289 </tal:block> 290 </tal:block> 291 <div style="float: right;" tal:condition="is_flexible"> 292 <input type="submit" value="button_move_up" 293 tal:condition="not:repeat/row/start" 294 tal:attributes="name string:uprow_${repeat/row/index}" 295 class="context moveUp" i18n:attributes="value" /> 296 <input type="submit" value="button_move_down" 297 tal:condition="not:repeat/row/end" 298 tal:attributes="name string:downrow_${repeat/row/index}" 299 class="context moveDown" i18n:attributes="value" /> 300 <input type="submit" value="button_delete" 301 class="destructive" i18n:attributes="value" 302 tal:attributes="name string:deleterow_${repeat/row/index}; 303 onclick python:'return window.confirm(\'%s\')' % 304 (cpsmcat('description_confirm_delete'), )" /> 305 </div> 306 </div> 307 </tal:block> 308 </td> 309 </tr> 310 </table> 311 312 <tal:block condition="is_flexible"> 313 <div style="float: right;" 314 tal:define="flexible_widgets options/flexible_widgets"> 315 <input type="hidden" name="layout_id" value="." 316 tal:attributes="value layout/layout_id" /> 317 <tal:select condition="python:len(flexible_widgets)>1"> 318 <select name="widget_type"> 319 <tal:block repeat="widget options/flexible_widgets"> 320 <option value="." 321 tal:condition="widget/is_i18n" 322 i18n:translate="" 323 tal:attributes="value widget/getWidgetId" 324 tal:content="widget/title_or_id">Type</option> 325 <option value="." 326 tal:condition="not:widget/is_i18n" 327 tal:attributes="value widget/getWidgetId" 328 tal:content="widget/title_or_id">Type</option> 329 </tal:block> 330 </select> 331 <input type="submit" name="addwidget_button" value="button_add" 332 class="context" 333 i18n:attributes="value" /> 334 </tal:select> 335 <tal:button condition="python:len(flexible_widgets) == 1"> 336 <tal:block define="widget python:flexible_widgets[0]"> 337 <input type="hidden" name="widget_type" 338 tal:attributes="value widget/getWidgetId"> 339 <input type="submit" name="addwidget_button" 340 tal:define="button_add python:cpsmcat('button_add'); 341 widget_title python:cpsmcat(widget.title_or_id())" 342 tal:attributes="value string:${button_add} ${widget_title}" 343 class="context" /> 344 </tal:block> 345 </tal:button> 346 </div> 347 </tal:block> 348 349 <tal:block condition="last_layout"> 350 <tal:block content="structure string:</div>" /> 351 <metal:block define-slot="additional_content" /> 352 353 <input type="submit" class="standalone" name="cpsdocument_edit_button" 354 value="button_change" i18n:attributes="value" 355 tal:condition="not:creation" /> 356 <input type="submit" class="standalone" name="cpsdocument_create_button" 357 value="button_create" i18n:attributes="value" tal:condition="creation" /> 358 <tal:block content="structure string:</div></form>" /> 359 </tal:block> 360 361 </metal:block> 205 362 -
waeup_product/trunk/skins/waeup_faculty/course_index_html.py
r91 r96 5 5 """Default view for the Student.""" 6 6 member = context.portal_membership.getAuthenticatedMember() 7 if not context.portal_membership.isAnonymousUser :7 if not context.portal_membership.isAnonymousUser(): 8 8 roles = member.getRoles() 9 9 if 'Manager' in roles: -
waeup_product/trunk/skins/waeup_faculty/department_index_html.py
r91 r96 1 ##parameters=p ost_id=None, REQUEST=None1 ##parameters=psm=None, REQUEST=None 2 2 3 3 # $Id$ … … 5 5 """Default view for a Faculty.""" 6 6 member = context.portal_membership.getAuthenticatedMember() 7 if not context.portal_membership.isAnonymousUser :7 if not context.portal_membership.isAnonymousUser(): 8 8 roles = member.getRoles() 9 9 if 'Manager' in roles: -
waeup_product/trunk/skins/waeup_faculty/department_index_html.py~
r91 r96 1 ##parameters=p ost_id=None, REQUEST=None1 ##parameters=psm=None, REQUEST=None 2 2 3 # $Id: department_index_html.py 89 2005-10-26 11:54:25Z joachim $3 # $Id: department_index_html.py 91 2005-10-26 12:30:11Z joachim $ 4 4 5 5 """Default view for a Faculty.""" 6 6 member = context.portal_membership.getAuthenticatedMember() 7 if member:7 if not context.portal_membership.isAnonymousUser(): 8 8 roles = member.getRoles() 9 9 if 'Manager' in roles: -
waeup_product/trunk/skins/waeup_faculty/department_view_manager.pt
r80 r96 14 14 15 15 <metal:block fill-slot="main" 16 tal:define=" student_folderhere/getContent;16 tal:define="department here/getContent; 17 17 items here/contentValues" 18 18 > 19 <span> 19 <span> 20 <h2 tal:content="department/title_or_id"></h2> 21 <p tal:content="department/Description"> 22 </p> 23 <br /> 24 20 25 <table cellspacing="0" cellpadding="0"> 21 26 <tal:block condition="python: len(items)"> … … 28 33 <tr tal:condition="python:not len(items)"> 29 34 <td> 30 no thingyet !35 no courses yet ! 31 36 </td> 32 37 </tr> -
waeup_product/trunk/skins/waeup_faculty/faculty_index_html.py
r91 r96 1 ##parameters=p ost_id=None, REQUEST=None1 ##parameters=psm=None, REQUEST=None 2 2 3 3 # $Id$ … … 6 6 member = context.portal_membership.getAuthenticatedMember() 7 7 8 member = context.portal_membership.getAuthenticatedMember() 9 if not context.portal_membership.isAnonymousUser: 8 if not context.portal_membership.isAnonymousUser(): 10 9 roles = member.getRoles() 11 10 if 'Manager' in roles: -
waeup_product/trunk/skins/waeup_faculty/faculty_view_manager.pt
r80 r96 14 14 15 15 <metal:block fill-slot="main" 16 tal:define=" student_folderhere/getContent;16 tal:define="faculty here/getContent; 17 17 items here/contentValues" 18 18 > 19 <h2 tal:content="faculty/title_or_id"></h2> 20 <p tal:content="faculty/Description"></p> 19 21 <span> 20 22 <table cellspacing="0" cellpadding="0"> -
waeup_product/trunk/skins/waeup_student/create_jamb.py
r89 r96 41 41 context.invokeFactory('Student',s_id) 42 42 student = getattr(context,s_id) 43 student. edit(mapping=skw)43 student.getContent().edit(mapping=skw) 44 44 context.notifyCPSDocumentCreation(ob=student) 45 45 jamb_id = 'JAMB' … … 47 47 jamb = getattr(student,jamb_id) 48 48 ds.set('title', name) 49 jamb. edit(mapping=ds)49 jamb.getContent().edit(mapping=ds) 50 50 context.notifyCPSDocumentCreation(ob=jamb) 51 51 psm = 'Student created' -
waeup_product/trunk/skins/waeup_student/student_index_html.py
r91 r96 7 7 8 8 #return context.student_view_manager() 9 if not context.portal_membership.isAnonymousUser :9 if not context.portal_membership.isAnonymousUser(): 10 10 roles = member.getRoles() 11 11 if 'Manager' in roles: -
waeup_product/trunk/skins/waeup_student/student_personal_index_html.py
r91 r96 7 7 8 8 #return context.student_view_manager() 9 if not context.portal_membership.isAnonymousUser :9 if not context.portal_membership.isAnonymousUser(): 10 10 roles = member.getRoles() 11 11 if 'Manager' in roles: -
waeup_product/trunk/skins/waeup_student/students_folder_view.py
r91 r96 7 7 8 8 member = context.portal_membership.getAuthenticatedMember() 9 if not context.portal_membership.isAnonymousUser :9 if not context.portal_membership.isAnonymousUser(): 10 10 roles = member.getRoles() 11 11 if 'Manager' in roles:
Note: See TracChangeset for help on using the changeset viewer.