Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 72974f3

Browse files
committed
define RCSProxyClient here instead of in RCSProxy.py
1 parent 802c437 commit 72974f3

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

Demo/pdist/rcsclient.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@
99
PORT = 4127
1010
VERBOSE = 1
1111

12+
13+
import client
14+
15+
16+
class RCSProxyClient(client.SecureClient):
17+
18+
def __init__(self, address, verbose = client.VERBOSE):
19+
client.SecureClient.__init__(self, address, verbose)
20+
21+
1222
def openrcsclient(opts = []):
1323
"open an RCSProxy client based on a list of options returned by getopt"
1424
import RCSProxy
@@ -33,7 +43,8 @@ def openrcsclient(opts = []):
3343
if o == '-q':
3444
verbose = 0
3545
address = (host, port)
36-
x = RCSProxy.RCSProxyClient(address, verbose)
46+
# XXX For local operation, instantiate RCSProxy.RCSProxyLocal() here
47+
x = RCSProxyClient(address, verbose)
3748
if not directory:
3849
try:
3950
directory = open("CVS/Repository").readline()

0 commit comments

Comments
 (0)