Set client password from FAHControl, Fix for Linux dependencies
This commit is contained in:
parent
91e9fe629b
commit
3189958e4e
@ -1,6 +1,12 @@
|
|||||||
Folding@home Advanced Control Changelog
|
Folding@home Advanced Control Changelog
|
||||||
=======================================
|
=======================================
|
||||||
|
|
||||||
|
## v7.6.13
|
||||||
|
- Set client password from FAHControl.
|
||||||
|
|
||||||
|
## v7.6.3
|
||||||
|
- Fix for Linux dependencies.
|
||||||
|
|
||||||
## v7.5.2
|
## v7.5.2
|
||||||
- Removed verbosity option.
|
- Removed verbosity option.
|
||||||
- Fixed link to project page.
|
- Fixed link to project page.
|
||||||
|
@ -13,7 +13,8 @@ See: https://foldingathome.org/
|
|||||||
|
|
||||||
## Debian / Ubuntu
|
## Debian / Ubuntu
|
||||||
|
|
||||||
sudo apt-get install -y python-stdeb python-gtk2 python-all debhelper
|
sudo apt-get install -y python-stdeb python-gtk2 python-all debhelper \
|
||||||
|
dh-python
|
||||||
|
|
||||||
## RedHat / CentOS
|
## RedHat / CentOS
|
||||||
|
|
||||||
|
@ -40,6 +40,8 @@ debug = False
|
|||||||
|
|
||||||
class Client:
|
class Client:
|
||||||
def __init__(self, app, name, address, port, password):
|
def __init__(self, app, name, address, port, password):
|
||||||
|
if debug: print('Client.__init__()')
|
||||||
|
|
||||||
self.name = name
|
self.name = name
|
||||||
self.address = address
|
self.address = address
|
||||||
self.port = port
|
self.port = port
|
||||||
@ -109,7 +111,10 @@ class Client:
|
|||||||
self.conn.address = self.address = address
|
self.conn.address = self.address = address
|
||||||
self.conn.port = self.port = port
|
self.conn.port = self.port = port
|
||||||
|
|
||||||
|
|
||||||
def set_password(self, password):
|
def set_password(self, password):
|
||||||
|
if self.conn.is_connected():
|
||||||
|
self.conn.queue_command('option password "%s"' % password)
|
||||||
self.conn.password = self.password = password
|
self.conn.password = self.password = password
|
||||||
|
|
||||||
|
|
||||||
@ -391,6 +396,8 @@ class Client:
|
|||||||
|
|
||||||
|
|
||||||
def close(self):
|
def close(self):
|
||||||
|
if debug: print('Client closing')
|
||||||
|
|
||||||
# Avoid broken pipe on OSX
|
# Avoid broken pipe on OSX
|
||||||
if sys.platform == 'darwin':
|
if sys.platform == 'darwin':
|
||||||
try:
|
try:
|
||||||
|
@ -99,6 +99,8 @@ class Connection:
|
|||||||
|
|
||||||
|
|
||||||
def open(self):
|
def open(self):
|
||||||
|
if debug: print('Connection.open()')
|
||||||
|
|
||||||
self.reset()
|
self.reset()
|
||||||
self.last_connect = time.time()
|
self.last_connect = time.time()
|
||||||
|
|
||||||
@ -116,6 +118,8 @@ class Connection:
|
|||||||
|
|
||||||
|
|
||||||
def close(self):
|
def close(self):
|
||||||
|
if debug: print('Connection.close()')
|
||||||
|
|
||||||
if self.socket is not None:
|
if self.socket is not None:
|
||||||
try:
|
try:
|
||||||
self.socket.shutdown(socket.SHUT_RDWR)
|
self.socket.shutdown(socket.SHUT_RDWR)
|
||||||
|
@ -208,7 +208,7 @@
|
|||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="label" translatable="yes"><b>Project Leader</b>
|
<property name="label" translatable="yes"><b>Project Leader</b>
|
||||||
Dr. Gregory Bowman
|
Dr. Gregory Bowman
|
||||||
Washington State University in Saint Louis</property>
|
Washington University in Saint Louis</property>
|
||||||
<property name="use_markup">True</property>
|
<property name="use_markup">True</property>
|
||||||
<property name="justify">center</property>
|
<property name="justify">center</property>
|
||||||
</object>
|
</object>
|
||||||
|
@ -1108,7 +1108,7 @@ class FAHControl(SingleAppServer):
|
|||||||
|
|
||||||
if client.get_password() != password:
|
if client.get_password() != password:
|
||||||
client.set_password(password)
|
client.set_password(password)
|
||||||
reload = True
|
reload = not client.conn.is_connected()
|
||||||
|
|
||||||
# Update client row
|
# Update client row
|
||||||
row = client.get_row(self)
|
row = client.get_row(self)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user