Changeset 4799

Show
Ignore:
Timestamp:
11/14/08 09:09:24 (2 months ago)
Author:
martin_s
Message:
tracgooglemap/macro.py
Added support for multiple driving targets.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • googlemapmacro/dev/0.11/tracgooglemap/macro.py

    r4797 r4799  
    205205 
    206206    def expand_macro(self, formatter, name, content): 
    207         largs, kwargs = parse_args(content, multi=['marker']) 
     207        largs, kwargs = parse_args(content, multi=['marker','to']) 
    208208        if len(largs) > 0: 
    209209            arg = unicode(largs[0]) 
     
    427427 
    428428        if 'from' in kwargs and 'to' in kwargs: 
    429             directions = "from: %s to: %s" % (kwargs['from'],kwargs['to']
     429            directions = "from: %s to: %s" % (kwargs['from'],' to: '.join(list(kwargs['to']))
    430430            mapnmore = tag.table( 
    431431                            tag.tr(