Re: Regression in action selection functionality in version 1.068

Bram Moolenaar <[email protected]> Thu, 26 Aug 2004 17:46:51 +0200
Newsgroups gmane.comp.tools.aap.devel
Message-ID <[email protected]>
Lars Ivar Igesund wrote:

>> Hmm, it seems like some problems from earlier has popped up again. 
>> This time it manifested while building a static lib (which worked 
>> properly before I updated from CVS). After compiling my d files, it 
>> tries to link them using the default action in default.aap instead of 
>> heeding the buildaction attribute that was added when compiling.

Your change to default.aap goes in the wrong direction.  Instead, try
this patch to Action.py that fixes the actual problem:

*** Action.py~	Sun Jun 20 21:48:25 2004
--- Action.py	Thu Aug 26 17:09:47 2004
***************
*** 90,97 ****
      def defer_action_name(self, source = ""):
          """Return name of action to defer the work to."""
          for n in self.defer_var_names:
!             if n == "{buildaction}":
!                 aname = RecPython.get_var_attr(source, "buildaction")
              else:
                  aname = get_var_val(0, Global.globals, "_no", n)
              if aname:
--- 90,97 ----
      def defer_action_name(self, source = ""):
          """Return name of action to defer the work to."""
          for n in self.defer_var_names:
!             if len(n) > 2 and n[0] == '{' and n[-1] == '}':
!                 aname = RecPython.get_var_attr(source, n[1:-1])
              else:
                  aname = get_var_val(0, Global.globals, "_no", n)
              if aname:

-- 
Drink wet cement and get really stoned.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
 \\\  Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285