Commit c5e18bbf authored by Nicolas Delaby's avatar Nicolas Delaby

replace getStandardFileName by getStandardFilename and quiet deprecation warnings

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45255 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent dc14f173
......@@ -56,7 +56,7 @@ to return the file in the base-data format.\n
"""\n
request = context.REQUEST\n
response = request.RESPONSE\n
response.setHeader(\'Content-disposition\', \'attachment; filename="%s"\' % context.getStandardFileName())\n
response.setHeader(\'Content-disposition\', \'attachment; filename="%s"\' % context.getStandardFilename())\n
return context.index_html(request, response, format=\'base-data\')\n
</string> </value>
</item>
......
......@@ -57,7 +57,7 @@ file data change).\n
"""\n
request = context.REQUEST\n
request.RESPONSE.setHeader(\'Content-type\', context.getSnapshotContentType())\n
request.RESPONSE.setHeader(\'Content-disposition\', \'attachment; filename="%s.pdf"\' % context.getStandardFileName())\n
request.RESPONSE.setHeader(\'Content-disposition\', \'attachment; filename="%s.pdf"\' % context.getStandardFilename())\n
return context.getSnapshotData()\n
</string> </value>
</item>
......
......@@ -261,19 +261,13 @@
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.TALESField</string>
<string>TALESMethod</string>
</tuple>
<none/>
</tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>here/getStandardFileName</string> </value>
<value> <string>here/getStandardFilename</string> </value>
</item>
</dictionary>
</pickle>
......
1248
\ No newline at end of file
1249
\ 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