- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
- [text_view_frame.html] Add some JS driven CSS tricks for iPad
- [text_view_frame.html] move throbber's hiding-call in nested text_view_comments iframe onload signal (so it works with jQuery 1.10.2 and the hiding timing is good)
- [text_view_frame.html][base.html] factorize req_yui.html et req_jquery.html
- [main_tabs][text_tabs][f_client-min.js] rewrite jQuery UI Tabs API calls select in active
- [base.css] CSS fix grey frame appearence for all tabs
- hg remove bgiframe -> not loaded in templates anymore
- hg remove header_custom.html -> the file has been empty since 4 years
- hg remove controls.html -> the file has been empty since 4 years
def remove_extension(file_name):
"""
Remove 3 letters and 4 letters extension from filename
>>> remove_extension('my file.tex')
'my file'
>>> remove_extension('my file.html')
'my file'
>>> remove_extension('my file')
'my file'
"""
for point_loc in [3,4]:
if len(file_name)>point_loc and file_name[-point_loc-1] == '.':
return file_name[:-point_loc-1]
return file_name
if __name__ == "__main__":
import doctest
doctest.testmod()