Skip to content

Commit

Permalink
Merge a0a26fe into a7fc69a
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTango committed Oct 23, 2018
2 parents a7fc69a + a0a26fe commit 0f1323a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
5 changes: 5 additions & 0 deletions CHANGES.rst
Expand Up @@ -5,9 +5,14 @@ Changelog
------------------

- Refactor and fix docs
[MrTango]

- Fix updating of parent FTI file, when parent type name contains spaces, fixes #331
[MrTango]

- Don't do git auto commit if git init was disabled in addon template, fixes #300
[MrTango]


3.5.0 (2018-10-17)
------------------
Expand Down
15 changes: 8 additions & 7 deletions bobtemplates/plone/addon.py
Expand Up @@ -137,10 +137,11 @@ def pre_ask(configurator):

def post_render(configurator):
_cleanup_package(configurator)
git_init(configurator)
git_commit(
configurator,
'Create addon: {0}'.format(
configurator.variables['package.dottedname'],
),
)
git_init_status = git_init(configurator)
if git_init_status:
git_commit(
configurator,
'Create addon: {0}'.format(
configurator.variables['package.dottedname'],
),
)
5 changes: 3 additions & 2 deletions bobtemplates/plone/base.py
Expand Up @@ -44,8 +44,8 @@ def to_boolean(value):
def git_support_enabled(configurator, question):
disabled = configurator.variables.get('package.git.disabled', u'False')
if hooks.to_boolean(None, None, disabled):
echo(u'GIT support disabled!')
raise SkipQuestion(u'GIT support is disabled, skip question!.')
echo(u'GIT support disabled!!!')
raise SkipQuestion(u'GIT support is disabled, skip question!')


def echo(msg, msg_type=None):
Expand Down Expand Up @@ -103,6 +103,7 @@ def git_init(configurator):
else:
if result:
echo(result, 'info')
return True


def git_commit(configurator, msg):
Expand Down
1 change: 0 additions & 1 deletion package-tests/test_addon.py
Expand Up @@ -58,4 +58,3 @@ def test_cleanup_package(tmpdir):
)
assert configurator
configurator.render()
# addon._cleanup_package(configurator)

0 comments on commit 0f1323a

Please sign in to comment.