[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [bridgedb/develop] Improve WebResourceBridges' docstring
commit 46ff7aaf130353abf4d30a2562bce3692ec93f55
Author: Matthew Finkel <Matthew.Finkel@xxxxxxxxx>
Date: Mon Feb 3 08:23:29 2014 +0000
Improve WebResourceBridges' docstring
---
lib/bridgedb/HTTPServer.py | 20 +++++++++++++++++---
1 file changed, 17 insertions(+), 3 deletions(-)
diff --git a/lib/bridgedb/HTTPServer.py b/lib/bridgedb/HTTPServer.py
index 610249a..633d903 100644
--- a/lib/bridgedb/HTTPServer.py
+++ b/lib/bridgedb/HTTPServer.py
@@ -244,9 +244,23 @@ class WebResourceBridges(twisted.web.resource.Resource):
def __init__(self, distributor, schedule, N=1, useForwardedHeader=False,
includeFingerprints=True, domains=None):
"""Create a new WebResource.
- distributor -- an IPBasedDistributor object
- schedule -- an IntervalSchedule object
- N -- the number of bridges to hand out per query.
+ :type distributor: :class:`IPBasedDistributor`
+ :param distributor: The mechanism to retrieve bridges for
+ this distributor
+ :type schedule: :class:`IntervalSchedule`
+ :param schedule: The time period used to tweak the bridge
+ selection procedure.
+ :param int N: The number of bridges to hand out per query.
+ :param bool useForwardedHeader: Whether or not we should
+ use the the
+ X-Forwarded-For header
+ instead of the source IP
+ address.
+ :param bool includeFingerprints: Do we include the
+ bridge's fingerprint
+ in the response?
+ :param list domains: The list of email provider
+ domain names we support. (unused)
"""
gettext.install("bridgedb", unicode=True)
twisted.web.resource.Resource.__init__(self)
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits