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 ...@@ -56,7 +56,7 @@ to return the file in the base-data format.\n
"""\n """\n
request = context.REQUEST\n request = context.REQUEST\n
response = request.RESPONSE\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 return context.index_html(request, response, format=\'base-data\')\n
</string> </value> </string> </value>
</item> </item>
......
...@@ -57,7 +57,7 @@ file data change).\n ...@@ -57,7 +57,7 @@ file data change).\n
"""\n """\n
request = context.REQUEST\n request = context.REQUEST\n
request.RESPONSE.setHeader(\'Content-type\', context.getSnapshotContentType())\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 return context.getSnapshotData()\n
</string> </value> </string> </value>
</item> </item>
......
...@@ -261,19 +261,13 @@ ...@@ -261,19 +261,13 @@
</record> </record>
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple>
<string>Products.Formulator.TALESField</string>
<string>TALESMethod</string>
</tuple>
<none/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>here/getStandardFileName</string> </value> <value> <string>here/getStandardFilename</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
1248 1249
\ 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