Commit bfbd9e20 authored by Ivan Tyagov's avatar Ivan Tyagov

Take last part of format which can contain multiple '.' separated identifiers.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36865 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f08fd29b
...@@ -75,7 +75,8 @@ if context.getVersion():\n ...@@ -75,7 +75,8 @@ if context.getVersion():\n
if context.getLanguage():\n if context.getLanguage():\n
file_name = \'%s-%s\' % (file_name, context.getLanguage(),)\n file_name = \'%s-%s\' % (file_name, context.getLanguage(),)\n
if format or original_extension:\n if format or original_extension:\n
file_name = \'%s.%s\' % (file_name, format or original_extension,)\n extension = (format or original_extension).split(\'.\')[-1]\n
file_name = \'%s.%s\' % (file_name, extension,)\n
return file_name\n return file_name\n
</string> </value> </string> </value>
</item> </item>
...@@ -120,6 +121,8 @@ return file_name\n ...@@ -120,6 +121,8 @@ return file_name\n
<string>None</string> <string>None</string>
<string>original_extension</string> <string>original_extension</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>_getitem_</string>
<string>extension</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
794 795
\ No newline at end of file \ 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