Roundup Tracker - Issues

Message5711

Author rouilj
Recipients marlonvdb, richard, rouilj, schlatterbeck, tobias-herp
Date 2016-07-02.19:33:28
Message-id <1467488008.92.0.870830946824.issue1539081@psf.upfronthosting.co.za>
In-reply-to
In the current 1.5.1 the required parameter looks like it is supported
for all properties and there is a:


      def get_required_props(self, propnames = []):
        """Return a dict of property names mapping to property objects.
        All properties that have the "required" flag set will be
        returned in addition to all properties in the propnames
        parameter.
        """
 
in roundup/hyperdb.py::Class

So that could be of use here as well to get the default list of
properties. I wonder if we also need to extend this to allow an array of
properties that should be removed:

      def get_required_props(self, propnames = [], filter = []):

where the props listed in filter will not be returned.
This could be useful if used for detectors.
History
Date User Action Args
2016-07-02 19:33:28rouiljsetmessageid: <1467488008.92.0.870830946824.issue1539081@psf.upfronthosting.co.za>
2016-07-02 19:33:28rouiljsetrecipients: + rouilj, richard, schlatterbeck, marlonvdb, tobias-herp
2016-07-02 19:33:28rouiljlinkissue1539081 messages
2016-07-02 19:33:28rouiljcreate