Skip to content

Commit

Permalink
only save to SMW if there is a proper moa job
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Fiers committed Jun 17, 2012
1 parent f466bd9 commit b4f8c1b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/python/moa/plugin/job/smw/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ def hook_prepare_3(job):
def hook_finish(job):
"""
"""
if not job.isMoa():
#only save is this directory continas a moa job
return

message = moa.ui._textFormattedMessage(
[sysConf.args.changeMessage,
Expand Down Expand Up @@ -284,8 +287,16 @@ def _saveBlogToSmw(job):
_savePage(page, txt)

def hook_postReadme(job):
if not job.isMoa():
#only save is this directory continas a moa job
return

_saveJobToSmw(job)

def hook_postBlog(job):
if not job.isMoa():
#only save is this directory continas a moa job
return

_saveBlogToSmw(job)

0 comments on commit b4f8c1b

Please sign in to comment.