Skip to content

Commit

Permalink
Actually use the options object used to pass options.
Browse files Browse the repository at this point in the history
  • Loading branch information
muellert committed Dec 27, 2012
1 parent 855352a commit 129754b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions on/video/addvideos.py
Expand Up @@ -109,7 +109,7 @@ def addAllVideos(site, folder, fs_path, rights, options):
parts = folder.split('/')
target = site

if publish:
if options.publish:
wft = getToolByName(site, 'portal_workflow')
for part in parts:
if part not in target.keys():
Expand All @@ -128,7 +128,7 @@ def addAllVideos(site, folder, fs_path, rights, options):
if rights:
newvideo.body = RichTextValue('<p class="licenseimage">' + rights + '</p>')
newvideo.setExcludeFromNav(True)
if publish:
if options.publish:
wft.doActionFor(newvideo, 'publish')

### system integration boilerplate:
Expand Down

0 comments on commit 129754b

Please sign in to comment.