Changeset 11435


Ignore:
Timestamp:
Mar 28, 2012, 9:02:13 AM (13 years ago)
Author:
Patrick Schaaf
Message:

remember non-keyword macro args, provide list() method to retrieve them.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tracmacroconfigplugin/tracmacroconfig/tracmacroconfig.py

    r10586 r11435  
    105105                             " use one of %s, or None." % (
    106106                result, ','.join([ "%s" % x for x in good_result ])))
    107         _, options = parse_args(content, strict=False)
     107        self.results_list, options = parse_args(content, strict=False)
    108108        self._log('parse incoming %s' % options)
    109109        self._parse(options)
     
    118118        self._log('parse results %s' % results)
    119119        return results
     120
     121    def list(self):
     122        """
     123        Returns the list of non-keyword arguments to the macro.
     124        """
     125        return self.results_list
    120126
    121127    def extras(self, options=None, remove=False):
     
    353359
    354360    def __set__(self, instance, value):
    355         raise AttributeError, 'can\'t set attribute'
     361        raise AttributeError, 'can\'t set attribute \'%s\'' % value
    356362
    357363    def __repr__(self):
Note: See TracChangeset for help on using the changeset viewer.