Skip to content

Commit

Permalink
check whether dexterity profile exists before adding install dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
rnixx committed Oct 5, 2012
1 parent f4ba3f4 commit 771dde1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/agx/generator/dexterity/dxgenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,9 @@ def dependencysorter(self, source, target):

@handler('dxpackagedependencies', 'uml2fs', 'semanticsgenerator', 'pythonegg')
def dxpackagedependencies(self, source, target):
# check whether dexterity profile exists in model, otherwise skip.
if not source.root.get('dexterity'):
return
setup = target.target['setup.py']
setup.params['setup_dependencies'].append('plone.app.dexterity')

Expand Down

0 comments on commit 771dde1

Please sign in to comment.