#2165: Support ternary substitution in WithProperties
------------------------+--------------------
Reporter:  jaredgrubb   |       Owner:
    Type:  enhancement  |      Status:  new
Priority:  minor        |   Milestone:  0.8.+
 Version:  0.8.5        |  Resolution:
Keywords:               |
------------------------+--------------------

Comment (by jaredgrubb):

 The regex comment was that this could easily be implemented in regex like
 the others since Python supports back-references.

 As for the existence vs trueness distinction, one idea I had was to borrow
 "#" from printf's "alternate format" modifier. So:
 * ":?" means if prop exists
 * ":#?" means if prop is true
 And then another idea is that you could add ":#+" as an alias for ":~"; I
 personally have trouble telling ~ and - apart in font.

 The other alternative is to just add another character: ":?" vs ":!".

 Any preferences?

 I could do this; it's a pretty easy patch.

-- 
Ticket URL: <http://trac.buildbot.net/ticket/2165#comment:2>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation
------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
Buildbot-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/buildbot-commits

Reply via email to