Still new to python and web2py - sure enjoying it, I wonder if this is a good idea? Automatic updating year of (c) notice of footer
i.e. © 2012 Your Company Name this is updated to the servers clock, automatically changes to 2013, when it is time. *Notes:* 1. I read it is better to use © rather than © just as the Welcome app used 2. I removed the {{=T('Copyright')}} 3. I think the form "© year Your Company Name" is commonly used *(ref: twitter.com and see Google's © notice on web2py google groups)*. There is no standard format for (c) notices that I know of, and in most jurisdiction, they are optional, as your work is protected from the time you create it - but always a good idea to put on. 4. I wasn't sure about the import statement or wether I should place a variable somewhere else, or of there are any drawback of this technique. 5. I like this because it is one less string to translate, and one less thing to update each January. Sites with old (c) notices look stale. *Editing file: *welcome/views/layout.html * * <div class="footer"> <div class="container"> <div class="sixteen columns"> {{block footer}} <!-- this is default footer --> <div class="footer-content clearfix"> <div class="copyright">© {{ # adds current year, no updating necessary import datetime now = datetime.datetime.now() =" %d" % now.year }} Your Company Name </div> <div style="float: right;"> <a href="http://www.web2py.com/"> <img style="padding-bottom: 0;" src= "{{=URL('static','images/poweredby.png')}}"/> </a> </div> </div> {{end}} </div> </div><!-- container --> </div><!-- footer --> --