~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/browser/bugsubscription.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:
18
18
from lazr.restful.interfaces import (
19
19
    IJSONRequestCache,
20
20
    IWebServiceClientRequest,
21
 
)
 
21
    )
22
22
from simplejson import dumps
23
23
from zope import formlib
24
24
from zope.app.form import CustomWidgetFactory
560
560
        return data
561
561
 
562
562
    @property
563
 
    def subscriber_data_js(self):
 
563
    def subscriber_data(self):
564
564
        """Return subscriber_ids in a form suitable for JavaScript use."""
565
565
        bug = IBug(self.context)
566
566
        data = self.direct_subscriber_data(bug)
583
583
                'subscription_level': 'Maybe',
584
584
                }
585
585
            data.append(record)
586
 
        return dumps(data)
 
586
        return data
 
587
 
 
588
    @property
 
589
    def subscriber_data_js(self):
 
590
        return dumps(self.subscriber_data)
587
591
 
588
592
    def render(self):
589
593
        """Override the default render() to return only JSON."""