~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/services/features/__init__.py

  • Committer: Michael-Doyle Hudson
  • Date: 2011-09-21 21:12:02 UTC
  • mto: This revision was merged to the branch mainline in revision 14068.
  • Revision ID: michael.hudson@linaro.org-20110921211202-xk3mjmjqrufx10f5
revert the reversion of the xmlrpc feature flag endpoint

Show diffs side-by-side

added added

removed removed

Lines of Context:
125
125
     if value:
126
126
        print value
127
127
 
 
128
Checking flags without access to the database
 
129
=============================================
 
130
 
 
131
Feature flags can also be checked without access to the database by making use
 
132
of the 'getFeatureFlag' XML-RPC method.
 
133
 
 
134
    server_proxy = xmlrpclib.ServerProxy(
 
135
        config.launchpad.feature_flags_endpoint, allow_none=True)
 
136
    if server_proxy.getFeatureFlag(
 
137
        'codehosting.use_forking_server', ['user:' + user_name]):
 
138
        pass
 
139
 
128
140
Debugging feature usage
129
141
=======================
130
142