- 04 Sep, 2012 3 commits
-
-
Cédric de Saint Martin authored
-
Cédric de Saint Martin authored
-
Cédric de Saint Martin authored
-
- 30 Aug, 2012 6 commits
-
-
Cédric de Saint Martin authored
-
Cédric de Saint Martin authored
-
Cédric de Saint Martin authored
-
Cédric de Saint Martin authored
-
Cédric de Saint Martin authored
-
Antoine Catton authored
-
- 23 Aug, 2012 1 commit
-
-
Cédric de Saint Martin authored
-
- 02 Aug, 2012 7 commits
-
-
Cédric de Saint Martin authored
-
Cédric de Saint Martin authored
-
Cédric de Saint Martin authored
-
Cédric de Saint Martin authored
-
Cédric de Saint Martin authored
-
Antoine Catton authored
-
Antoine Catton authored
-
- 17 Jul, 2012 2 commits
-
-
Antoine Catton authored
-
Antoine Catton authored
The script is formatted with self.options dictionnary. For example : [foobar] recipe = slapos.recipe.build foo = bar script = print '%(foo)s' Produces : Installing foobar. bar But this can mess up the python code, because there's no escaping. For example : [foobar] recipe = slapos.recipe.build foo = bar's script = print '%(foo)s' Produces : While: Installing foobar. An internal error occurred due to a bug in either zc.buildout or in a recipe being used: Traceback (most recent call last): File "<string>", line 2 print 'bar's' ^ SyntaxError: invalid syntax We can workaround this by using : [foobar] recipe = slapos.recipe.build foo = bar's script = print '%%s' %% self.options['foo'] But every percent sign has to be escaped. That's why, this commit introduces : [foobar] recipe = slapos.recipe.build foo = bar's format = no script = print '%s' % self.options['foo'] NB: This commit doesn't remove formating for backward compatibility.
-
- 07 Jun, 2012 6 commits
-
-
Cédric de Saint Martin authored
-
Cédric de Saint Martin authored
-
Cédric de Saint Martin authored
-
Cédric de Saint Martin authored
-
Cédric de Saint Martin authored
-
Cédric de Saint Martin authored
-
- 29 Mar, 2012 4 commits
-
-
Cédric de Saint Martin authored
-
Cédric de Saint Martin authored
-
Cédric de Saint Martin authored
-
Vincent Pelletier authored
- Do not use a property for a local variable. - Use new-style class. - Stop using logger. - Save a few getattr calls. - Do not keep references to buildout & options outside of __init__ . - Convert mode in __init__ to detect errors early. - Factorise several accesses (buildout['buildout'], properties) - Drop redundant "cache" download.Download parameter: it is automatically fetched from first parameter internally. - "Backward compatibility with other recipes" is just not "backward". - Return downloaded file path, not just the optionally-created directory.
-
- 11 Nov, 2011 1 commit
-
-
Cédric de Saint Martin authored
-
- 08 Nov, 2011 3 commits
-
-
Cédric de Saint Martin authored
-
Cédric de Saint Martin authored
-
Alain Takoudjou authored
-
- 27 Sep, 2011 2 commits
-
-
Cédric de Saint Martin authored
-
Cédric de Saint Martin authored
-
- 26 Sep, 2011 1 commit
-
-
Cédric de Saint Martin authored
-
- 08 Sep, 2011 4 commits
-
-
Cédric de Saint Martin authored
-
Łukasz Nowak authored
-
Łukasz Nowak authored
-
Łukasz Nowak authored
-