annotate irc/channel.py @ 693:ad69236e8501

For issue #52, update many 3rd party Javascript libraries. Updated to jquery 1.10.2, jquery ui 1.10.3. This broke a lot of stuff. - Found a newer version of the jquery cycle all plugin (3.0.3). - Updated JPlayer to 2.4.0. - Updated to MarkItUp 1.1.14. This also required me to add multiline attributes set to true on various buttons in the markdown set. - As per a stackoverflow post, added some code to get multiline titles in a jQuery UI dialog. They removed that functionality but allow you to put it back. Tweaked the MarkItUp preview CSS to show blockquotes in italic. Did not update TinyMCE at this time. I'm not using the JQuery version and this version appears to work ok for now. What I should do is make a repo for MarkItUp and do a vendor branch thing so I don't have to futz around diffing directories to figure out if I'll lose changes when I update.
author Brian Neal <bgneal@gmail.com>
date Wed, 04 Sep 2013 19:55:20 -0500
parents 79e785f0bdad
children
rev   line source
bgneal@656 1 """Abstracts the list of users in the IRC channel."""
bgneal@656 2
bgneal@656 3 from redis import RedisError
bgneal@656 4
bgneal@656 5 from core.services import get_redis_connection
bgneal@656 6
bgneal@656 7 def get_users():
bgneal@656 8 """Return a list of users in the IRC channel."""
bgneal@656 9 conn = get_redis_connection()
bgneal@656 10 try:
bgneal@656 11 nicks = conn.get('irc:channel_members')
bgneal@656 12 except RedisError:
bgneal@656 13 nicks = None
bgneal@656 14
bgneal@656 15 return nicks.split() if nicks else []