~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/translations/interfaces/potemplate.py

[r=gmb][bug=504062,
        816366] Hide external suggestions to disabled translation templates
        by removing it from the suggestive potemplate cache.

Show diffs side-by-side

added added

removed removed

Lines of Context:
331
331
        method to do that.
332
332
        """
333
333
 
 
334
    def setActive(active):
 
335
        """Toggle the iscurrent flag.
 
336
 
 
337
        Takes care of updating the suggestive potempalte cache when the
 
338
        template is disabled.
 
339
        """
 
340
 
334
341
    def getHeader():
335
342
        """Return an `ITranslationHeaderData` representing its header."""
336
343
 
691
698
        :return: Number of rows deleted.
692
699
        """
693
700
 
 
701
    def removeFromSuggestivePOTemplatesCache(potemplate):
 
702
        """Remove the given potemplate from the suggestive-templates cache.
 
703
 
 
704
        :return: True if the template was in the cache.
 
705
        """
 
706
 
694
707
    def populateSuggestivePOTemplatesCache():
695
708
        """Populate suggestive-templates cache.
696
709