As is in Penn (I think), we'll use two underscores to denote a hidden server attribute. Finished up moving the two hidden attributes that I know need to be hidden and read-only over to the double underscore names as per Issue 27.

This commit is contained in:
Greg Taylor 2008-06-14 04:24:53 +00:00
parent 131f6410d4
commit 82f35f3b84
3 changed files with 8 additions and 7 deletions

View file

@ -1,3 +1,6 @@
"""
Comsys functions.
"""
import time, datetime
from django.utils import simplejson
@ -5,9 +8,6 @@ from django.utils import simplejson
from apps.objects.models import CommChannel, CommChannelMessage
import session_mgr
import ansi
"""
Comsys functions.
"""
def plr_get_cdict(session):
"""
@ -147,7 +147,7 @@ def plr_jsondump_channels(session):
session: (SessionProtocol) A reference to the player session.
"""
session.get_pobject().set_attribute("CHANLIST", simplejson.dumps(plr_get_cdict(session)))
session.get_pobject().set_attribute("__CHANLIST", simplejson.dumps(plr_get_cdict(session)))
def plr_del_channel(session, alias):
"""