Changeset 440 for WAeUP_SRP/trunk/skins
- Timestamp:
- 29 Aug 2006, 11:56:53 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_custom/getContentInfo.py
r430 r440 187 187 info['url'] = utool.getUrlFromRpath(info['rpath']) 188 188 189 info['title_or_id'] = proxy. title_or_id()189 info['title_or_id'] = proxy.id 190 190 info['id'] = proxy.getId() 191 191 try: … … 193 193 except AttributeError: 194 194 raise AttributeError, 'invalid object: %s in %s' % (info['title_or_id'], 195 info['rpath']) 195 info['rpath']) 196 except TypeError: 197 info['title'] = proxy.getContent().id 198 196 199 info['icon'] = proxy.getIcon(relative_to_portal=1) 197 200 info['type'] = proxy.getPortalTypeName() … … 227 230 core = 'core' 228 231 if not doc.core_or_elective: 229 core = elective232 core = 'elective' 230 233 info['core_or_elective'] = core 231 234 info['time'] = doc.modified() -
WAeUP_SRP/trunk/skins/waeup_default/waeup_document_create_do.py
r373 r440 10 10 from Products.CMFCore.utils import getToolByName 11 11 12 id = datamodel.get('code').upper() 13 datamodel.set('code',id) 12 if type_name == "StudyLevel": 13 id = datamodel.get('code') 14 else: 15 id = datamodel.get('code').upper() 16 datamodel.set('code',id) 14 17 ##if not id: 15 18 ## id = 'my ' + type_name
Note: See TracChangeset for help on using the changeset viewer.