yeti / signals

MIT License
3 stars 4 forks source link

Rewrite the 'get_request_objects' method #58

Open walkingtowork opened 8 years ago

walkingtowork commented 8 years ago

Currently we assume that request objects in the schema will contain the word Request, i.e. exampleRequest.

See:

base_template.py

    @staticmethod
    def get_request_objects(data_objects):
        request_objects = []
        for name, data_object in data_objects.iteritems():
            # TODO: Naming request objects as ...Request
            # is not a standard we always keep true
            if 'Request' in name:
                request_objects.append(data_object)
        return request_objects