This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import argparse | |
import yaml | |
class IRosterFactory(object): | |
""" Interface for objects that can generate a Salt roster """ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# This was causing problems when submitting the nested object form | |
# in a/v/product/channels_edit because all the nested channels would | |
# be created at plan Channel objects instead of the PrimaryChannel, EusChannel etc. | |
# | |
# In active record normally :type is ignored, eg: | |
# Channel.create(:type='PrimaryChannel', :etc=>1, ...) | |
# ignores the type attr and uses 'Channel'. | |
# | |
# This hack will make it actually use the :type value. |