Commits

Anonymous committed 05a6b79

Documentation fix for mimehelper

  • Participants
  • Parent commits d6450f4

Comments (0)

Files changed (1)

File webhelpers/mimehelper.py

         
             # some code likely in environment.py
             MIMETypes.init()
-            MIMETypes.alias('html', 'text/html')
-            MIMETypes.alias('xml', 'application/xml')
-            MIMETypes.alias('csv', 'text/csv')
+            MIMETypes.add_alias('html', 'text/html')
+            MIMETypes.add_alias('xml', 'application/xml')
+            MIMETypes.add_alias('csv', 'text/csv')
             
             # code in a controller
             def somaction(self):