Changeset 340 for collective.imstransport/trunk/collective/imstransport/utilities/moodle/imsmoodlewriter.py
- Timestamp:
- 07/07/09 13:06:30 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
collective.imstransport/trunk/collective/imstransport/utilities/moodle/imsmoodlewriter.py
r339 r340 114 114 115 115 if hasattr(obj.aq_explicit, 'Format'): 116 from urlparse import urlparse 116 117 if 'text/html' == obj.Format(): 117 path += '.html' 118 url = urlparse(path) 119 if url[2].split('.')[-1] not in ['htm', 'html']: 120 path += '.html' 118 121 119 122 return path
