~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Curtis Hovey
  • Date: 2011-05-27 21:53:34 UTC
  • mto: This revision was merged to the branch mainline in revision 13136.
  • Revision ID: curtis.hovey@canonical.com-20110527215334-jqlkmt52nnl4bpeh
Moved launchpad.event into registry interfaces.

Show diffs side-by-side

added added

removed removed

Lines of Context:
169
169
        required=False,
170
170
        vocabulary="SourcePackageName")
171
171
 
172
 
    sourcepackagenameID = Int(
173
 
        title=_("Source Package Name ID"),
174
 
        description=_(
175
 
            "The ID of the source package that uses this template."),
176
 
        required=False,
177
 
        readonly=True)
178
 
 
179
172
    sourcepackage = Reference(
180
173
        ISourcePackage, title=u"Source package this template is for, if any.",
181
174
        required=False, readonly=True)
331
324
        method to do that.
332
325
        """
333
326
 
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
 
 
341
327
    def getHeader():
342
328
        """Return an `ITranslationHeaderData` representing its header."""
343
329
 
698
684
        :return: Number of rows deleted.
699
685
        """
700
686
 
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
 
 
707
687
    def populateSuggestivePOTemplatesCache():
708
688
        """Populate suggestive-templates cache.
709
689
 
805
785
 
806
786
    def select(*args):
807
787
        """Return a ResultSet for this collection with values set to args."""
808
 
 
809
 
    def joinInner(cls, *conditions):
810
 
        """Inner-join `cls` into the query."""
811
 
 
812
 
    def joinOuter(cls, *conditions):
813
 
        """Outer-join `cls` into the query."""