Some minor tweaks to zotsh.py, document that it needs the twitter_api plugin on the first hop since we no longer provide the twitter api by default
This commit is contained in:
parent
74947d1c1c
commit
20497f1be3
@ -1539,11 +1539,11 @@ function remote_online_status($webbie) {
|
||||
*/
|
||||
|
||||
function identity_selector() {
|
||||
if (local_channel()) {
|
||||
if(local_channel()) {
|
||||
$r = q("select channel.*, xchan.* from channel left join xchan on channel.channel_hash = xchan.xchan_hash where channel.channel_account_id = %d and channel_removed = 0 order by channel_name ",
|
||||
intval(get_account_id())
|
||||
);
|
||||
if (count($r) > 1) {
|
||||
if($r && count($r) > 1) {
|
||||
//$account = App::get_account();
|
||||
$o = replace_macros(get_markup_template('channel_id_select.tpl'), array(
|
||||
'$channels' => $r,
|
||||
|
@ -8,6 +8,8 @@ Install
|
||||
ZotSH requires 'requests'(1).
|
||||
Please refer to requests docs on how to install it (2)
|
||||
|
||||
The initially connected server must have the twitter_api plugin installed
|
||||
|
||||
Extract somewere and launch zotsh.py
|
||||
|
||||
|
||||
@ -106,4 +108,4 @@ Links
|
||||
|
||||
_0 : https://github.com/amnong/easywebdav
|
||||
_1 : http://docs.python-requests.org/en/latest/
|
||||
_2 : http://docs.python-requests.org/en/latest/user/install/
|
||||
_2 : http://docs.python-requests.org/en/latest/user/install/
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -55,7 +55,7 @@ class ZotSH(object):
|
||||
@session.setter
|
||||
def session(self, session):
|
||||
self._session = session
|
||||
self.davclient = easywebdav.connect( self.hostname, protocol='https', session=session, path="dav", verify_ssl=VERIFY_SSL)
|
||||
self.davclient = easywebdav.connect( self.hostname, protocol='https', session=session, path="cloud", verify_ssl=VERIFY_SSL)
|
||||
|
||||
@property
|
||||
def PS1(self):
|
||||
@ -205,7 +205,7 @@ class ZotSH(object):
|
||||
print _fmt('d', 0, "../")
|
||||
|
||||
for f in r:
|
||||
name = f.name.replace("/dav"+self.davclient.cwd,"")
|
||||
name = f.name.replace("/cloud"+self.davclient.cwd,"")
|
||||
type = "-"
|
||||
if name.endswith("/"):
|
||||
type = "d"
|
||||
|
Reference in New Issue
Block a user