~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/interfaces/bug.py

  • Committer: Stuart Bishop
  • Date: 2011-09-28 12:49:24 UTC
  • mfrom: (9893.10.1 trivial)
  • mto: This revision was merged to the branch mainline in revision 14178.
  • Revision ID: stuart.bishop@canonical.com-20110928124924-m5a22fymqghw6c5i
Merged trivial into distinct-db-users.

Show diffs side-by-side

added added

removed removed

Lines of Context:
850
850
 
851
851
    @mutator_for(security_related)
852
852
    @operation_parameters(security_related=copy_field(security_related))
 
853
    @call_with(who=REQUEST_USER)
853
854
    @export_write_operation()
854
 
    def setSecurityRelated(security_related):
 
855
    def setSecurityRelated(security_related, who):
855
856
        """Set bug security.
856
857
 
857
858
            :security_related: True/False.
 
859
            :who: The IPerson who is making the change.
858
860
 
859
861
        This may also cause the security contact to be subscribed
860
862
        if one is registered and if the bug is not private.
862
864
        Return True if a change is made, False otherwise.
863
865
        """
864
866
 
 
867
    @operation_parameters(
 
868
        private=copy_field(private),
 
869
        security_related=copy_field(security_related),
 
870
        )
 
871
    @call_with(who=REQUEST_USER)
 
872
    @export_write_operation()
 
873
    @operation_for_version("devel")
 
874
    def setPrivacyAndSecurityRelated(private, security_related, who):
 
875
        """Set bug privacy and security .
 
876
 
 
877
            :private: True/False.
 
878
            :security_related: True/False.
 
879
            :who: The IPerson who is making the change.
 
880
 
 
881
        Return (private_changed, security_related_changed) tuple.
 
882
        """
 
883
 
865
884
    def getBugTask(target):
866
885
        """Return the bugtask with the specified target.
867
886
 
967
986
        Returns True or False.
968
987
        """
969
988
 
 
989
    def getActivityForDateRange(start_date, end_date):
 
990
        """Return all the `IBugActivity` for this bug in a date range.
 
991
 
 
992
        :param start_date: The earliest date for which activity can be
 
993
            returned.
 
994
        :param end_date: The latest date for which activity can be
 
995
            returned.
 
996
        """
 
997
 
970
998
 
971
999
# We are forced to define these now to avoid circular import problems.
972
1000
IBugAttachment['bug'].schema = IBug