[Buildbot-commits] [Buildbot] #1011: Add $(property:~replacement) syntax that turns anything false into replacement, too

Buildbot buildbot-devel at lists.sourceforge.net
Tue Oct 26 09:11:26 UTC 2010


#1011: Add $(property:~replacement) syntax that turns anything false into
replacement, too
------------------------+---------------------------------------------------
Reporter:  dustin       |        Owner:  dustin  
    Type:  enhancement  |       Status:  reopened
Priority:  major        |    Milestone:  0.8.2   
 Version:  0.8.1        |   Resolution:          
Keywords:               |  
------------------------+---------------------------------------------------
Changes (by moschny):

  * status:  closed => reopened
  * resolution:  worksforme =>


Comment:

 Replying to [comment:5 Dustin J. Mitchell]:
 > Refs #1011 - that bug states that %(property:-foo)s -> 'None' when
 > property is None, but the tests show that is not the case.

 You misunderstood, maybe I was unclear.

 If `property==None`, then `%(property:-foo)s` is `''`, and not `'foo'`.

 I was looking for a way to actually detect the `None` (and maybe also the
 empty-string) case. With the current syntax one can only detect the
 property-is-not-set-at-all case.

-- 
Ticket URL: <http://buildbot.net/trac/ticket/1011#comment:7>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the Commits mailing list