diff licenser/licenses.py @ 0:b0665b243ccd

initial import of licenser
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 10 May 2010 09:18:26 -0700
parents
children cc5add25bf83
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/licenser/licenses.py	Mon May 10 09:18:26 2010 -0700
@@ -0,0 +1,9 @@
+from datetime import datetime
+
+class MPL(object):
+  """Mozilla Public License"""
+  template = 'MPL' # could be implicit here
+  variables = [ 'author' ]
+                
+  def pre(self, variables):
+    variables['year'] = datetime.now().year