annotate firefoxaddon/__init__.py @ 0:9869cf47fcf8 default tip

initial commit of Firefox addon template
author k0s <k0scist@gmail.com>
date Sun, 28 Mar 2010 16:25:58 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9869cf47fcf8 initial commit of Firefox addon template
k0s <k0scist@gmail.com>
parents:
diff changeset
1 from paste.script import templates
9869cf47fcf8 initial commit of Firefox addon template
k0s <k0scist@gmail.com>
parents:
diff changeset
2
9869cf47fcf8 initial commit of Firefox addon template
k0s <k0scist@gmail.com>
parents:
diff changeset
3 var = templates.var
9869cf47fcf8 initial commit of Firefox addon template
k0s <k0scist@gmail.com>
parents:
diff changeset
4
9869cf47fcf8 initial commit of Firefox addon template
k0s <k0scist@gmail.com>
parents:
diff changeset
5 class FirefoxAddon(templates.Template):
9869cf47fcf8 initial commit of Firefox addon template
k0s <k0scist@gmail.com>
parents:
diff changeset
6 _template_dir = 'template'
9869cf47fcf8 initial commit of Firefox addon template
k0s <k0scist@gmail.com>
parents:
diff changeset
7 summary = 'template for a firefox addon'
9869cf47fcf8 initial commit of Firefox addon template
k0s <k0scist@gmail.com>
parents:
diff changeset
8 vars = [
9869cf47fcf8 initial commit of Firefox addon template
k0s <k0scist@gmail.com>
parents:
diff changeset
9 var('description', 'One-line description of the package'),
9869cf47fcf8 initial commit of Firefox addon template
k0s <k0scist@gmail.com>
parents:
diff changeset
10 var('author', 'Author name'),
9869cf47fcf8 initial commit of Firefox addon template
k0s <k0scist@gmail.com>
parents:
diff changeset
11 var('url', 'URL of homepage'),
9869cf47fcf8 initial commit of Firefox addon template
k0s <k0scist@gmail.com>
parents:
diff changeset
12 ]
9869cf47fcf8 initial commit of Firefox addon template
k0s <k0scist@gmail.com>
parents:
diff changeset
13
9869cf47fcf8 initial commit of Firefox addon template
k0s <k0scist@gmail.com>
parents:
diff changeset
14 def pre(self, command, output_dir, vars):
9869cf47fcf8 initial commit of Firefox addon template
k0s <k0scist@gmail.com>
parents:
diff changeset
15 """
9869cf47fcf8 initial commit of Firefox addon template
k0s <k0scist@gmail.com>
parents:
diff changeset
16 called before the template is applied
9869cf47fcf8 initial commit of Firefox addon template
k0s <k0scist@gmail.com>
parents:
diff changeset
17 """
9869cf47fcf8 initial commit of Firefox addon template
k0s <k0scist@gmail.com>
parents:
diff changeset
18
9869cf47fcf8 initial commit of Firefox addon template
k0s <k0scist@gmail.com>
parents:
diff changeset
19 def post(self, command, output_dir, vars):
9869cf47fcf8 initial commit of Firefox addon template
k0s <k0scist@gmail.com>
parents:
diff changeset
20 """
9869cf47fcf8 initial commit of Firefox addon template
k0s <k0scist@gmail.com>
parents:
diff changeset
21 called after the template is applied
9869cf47fcf8 initial commit of Firefox addon template
k0s <k0scist@gmail.com>
parents:
diff changeset
22 """