Changeset 119 for waeup_product/trunk/skins/waeup_student
- Timestamp:
- 28 Oct 2005, 19:44:25 (19 years ago)
- Location:
- waeup_product/trunk/skins/waeup_student
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup_product/trunk/skins/waeup_student/accommodation_index_html.py
r103 r119 3 3 # $Id$ 4 4 5 """Default view for the Accommodation. 5 """Default view for the Accommodation. 6 6 """ 7 7 … … 10 10 roles = member.getRoles() 11 11 if 'Manager' in roles: 12 return context. folder_view()12 return context.accommodation_view_manager(psm=psm) 13 13 elif 'StudentManager' in roles: 14 14 return context.accommodation_view_manager(psm=psm) -
waeup_product/trunk/skins/waeup_student/accommodation_view_all.pt
r103 r119 12 12 tal:define="items here/contentValues" 13 13 > 14 <h2> <span tal:content="context/id" /></h2>14 <h2>Accomodation</h2> 15 15 <table cellspacing="0" cellpadding="0"> 16 16 <tal:block condition="python: len(items)"> … … 19 19 <a href="jamb" 20 20 tal:attributes="href item/absolute_url" 21 tal:content="item/ title_or_id"></a>21 tal:content="item/heading"></a> 22 22 </td> 23 23 </tr> -
waeup_product/trunk/skins/waeup_student/accommodation_view_manager.pt
r103 r119 12 12 tal:define="items here/contentValues" 13 13 > 14 <h2> <span tal:content="context/id" /></h2>14 <h2>Accomodation</h2> 15 15 <table cellspacing="0" cellpadding="0"> 16 16 <tal:block condition="python: len(items)"> … … 19 19 <a href="jamb" 20 20 tal:attributes="href item/absolute_url" 21 tal:content="item/ title_or_id"></a>21 tal:content="item/heading"></a> 22 22 </td> 23 23 </tr> -
waeup_product/trunk/skins/waeup_student/accommodation_view_student.pt
r103 r119 12 12 tal:define="items here/contentValues" 13 13 > 14 <h2> <span tal:content="context/title_or_id" /></h2>14 <h2>Accomodation</h2> 15 15 <table cellspacing="0" cellpadding="0"> 16 16 <tal:block condition="python: len(items)"> … … 19 19 <a href="jamb" 20 20 tal:attributes="href item/absolute_url" 21 tal:content="item/ title_or_id"></a>21 tal:content="item/heading"></a> 22 22 </td> 23 23 </tr> -
waeup_product/trunk/skins/waeup_student/add_accommodation.py
r107 r119 16 16 lt = context.portal_layouts 17 17 18 accofolder = getattr(context,"Accommodation",None)19 if accofolder is None:20 context.invokeFactory('AccoFolder','Accommodation')21 accofolder = getattr(context,"Accommodation")22 context.notifyCPSDocumentCreation(ob=accofolder)23 24 25 18 res,psm,ds = lt.renderLayout(layout_id= 'accommodation', 26 19 schema_id = 'accommodation', … … 45 38 elif psm == 'valid': 46 39 oid = "%s" % ds.get('heading').replace(' ','') 47 accofolder.invokeFactory(type_name,oid)48 object = getattr( accofolder,oid)40 context.invokeFactory(type_name,oid) 41 object = getattr(context,oid) 49 42 object.getContent().edit(mapping=ds) 50 43 context.notifyCPSDocumentCreation(ob=object) 51 44 psm = 'new %s created' % oid 52 context_ti = context.portal_types[context.portal_type] 45 context_ti = context.portal_types[context.portal_type] 53 46 index = context_ti.getActionById('view','university_view') 54 47 return getattr(context,index)(psm=psm)
Note: See TracChangeset for help on using the changeset viewer.