Skip to content
This repository was archived by the owner on Aug 20, 2021. It is now read-only.

Commit

Permalink
Merge pull request #261 from haliphax/online-to-profile-args-fix
Browse files Browse the repository at this point in the history
allow profile.py to take handle as arg
  • Loading branch information
jquast committed Mar 6, 2015
2 parents d6ea476 + 875b7c4 commit 1211f3c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2.0.9
- bugfix: profile.py now accepts a target handle as an optional
argument to its main() function, so online.py can successfully
launch the profile editor for online users.
2.0.8
- bugfix: Fixed a nasty Return value bug in vote.py that could
cause a database failure.
Expand Down
2 changes: 1 addition & 1 deletion x84/default/online.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def edit(sessions):
from x84.bbs import gosub
(node, tgt_session) = get_node(sessions)
if node is not None:
gosub('profile', tgt_session['handle'])
gosub('profile', handle=tgt_session['handle'])
return True


Expand Down
4 changes: 2 additions & 2 deletions x84/default/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,11 +497,11 @@ def get_next_user(tgt_user):
return get_user(handles[idx - 1])


def main():
def main(handle=None):
""" Main procedure. """
dirty = -1
session, term = getsession(), getterminal()
tgt_user = session.user
tgt_user = get_user(handle) if handle else session.user
legal_input_characters = string.letters + u'<>'

# re-display entire screen on loop,
Expand Down

0 comments on commit 1211f3c

Please sign in to comment.