Commits

Anonymous committed c4bd5a2

Changed page WhatsNewIn21

  • Participants
  • Parent commits 2c8cae9

Comments (0)

Files changed (1)

File WhatsNewIn21.wiki

 }}}
 The "standard" filters are currently: baseurlfilter, cachefilter, decodingfilter, encodingfilter, gzipfilter, logdebuginfofilter, staticfilter, tidyfilter, virtualhostfilter, xmlrpcfilter
 
+{{{
+#!html
+<table border=0 cellspacing=0 cellpadding=0 bgcolor=#ffff99 width=100%><tr><td width=100%>
+}}}
+'''Steps to upgrade your site'''
+ * If you're using some of these default filters in your code, you can remove them from _cpFilterList and just enable them through the config file.
+{{{
+#!html
+</td></tr></table>
+}}}
+
 == New way of using static content ==
+
+Static content is now handled by a filter called "staticFilter" that can easily be enabled and configured in your config file. For instance, if you wanted to server /style.css from /home/site/style.css and /static/* from /home/site/static/*, you can use the following configuration:
+{{{
+[/style.css]
+staticFilter=on
+staticFilter.file=/home/site/style.css
+
+[/static]
+staticFilter=on
+staticFilter.dir=/home/site/static
+}}}
+
+{{{
+#!html
+<table border=0 cellspacing=0 cellpadding=0 bgcolor=#ffff99 width=100%><tr><td width=100%>
+}}}
+'''Steps to upgrade your site'''
+ * If you has a [staticContent] section in your config file, you need to turn it into the new syntax.
+{{{
+#!html
+</td></tr></table>
+}}}
+
+== New config option called server.environment ==
+
+Its value can be "dev", "staging" or "prod". The default value is "prod". Here is what happens for the different values:
+ * "dev":
+   * logDebugInfoFilter is enabled by default
+   * the default _cpOnError displays tracebacks in the browser if errors occur but still returns a "200" status code
+ * "prod":
+   * logDebugInfoFilter is disabled by default
+   * the default _cpOnError returns "304" or "500" status codes if errors occur (coming soon)
+ * "staging":
+   * same as "prod" for now
+
+
+== Coming soon ==
+ * new session implementation, sessions move into a filter called "sessionFilter"
+ * new file upload behavior (don't store file in a string)