def get_sub_commands (self):
        commands = []
        for (cmd_name, method) in self.sub_commands:
            if method is None or method(self):
                commands.append(cmd_name)
        return commands


    # -- External world manipulation -----------------------------------
Figures out the correct OGR Type based upon the input.
dataset/ETHPy150Open babble/babble/include/jython/Lib/distutils/cmd.py/Command.get_sub_commands--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/django/contrib/gis/gdal/geomtype.py/OGRGeomType.__init__