Commit 254c5a95 authored by Nicolas Delaby's avatar Nicolas Delaby

if there is no dot in filename, the entirely string is returned.

so filename can become something like my_filename_without_extension.my_filename_without_extension

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40335 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 061f5845
......@@ -73,7 +73,7 @@ if context.getLanguage():\n
file_name = \'%s-%s\' % (file_name, context.getLanguage(),)\n
if format:\n
extension = format.rsplit(\'.\')[-1]\n
elif not extension and context.hasSourceReference():\n
elif not extension and \'.\' in context.getSourceReference(\'\'):\n
extension = context.getSourceReference().rsplit(\'.\')[-1]\n
if extension:\n
file_name = \'%s.%s\' % (file_name, extension,)\n
......
897
\ No newline at end of file
900
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment