Code review comment for lp:~zikzak/oosalespromotions/sale_promotions

Revision history for this message
Sharoon Thomas http://openlabs.co.in (sharoonthomas) wrote :

Can you not use the _(x) method inside the function which returns the list of tuples ?

globals are added to namespace with the classes and methods but the methods will be only be cached at that time. So executing this like:

class XYZ(..):

...
   def method(self, ...):
       return [
          ('a', _('a'))
          ]

should work? or am i missing something?

« Back to merge proposal