示例#1
0
文件: dj.py 项目: rubencodes/WBOR
  def remove_dj(self, djs):
    if is_key(djs) or isinstance(djs, Dj):
      djs = (djs,)

    self.raw.dj_list = list(set(self.dj_list).
                        difference(as_keys(djs)))
示例#2
0
文件: dj.py 项目: rubencodes/WBOR
  def add_dj(self, djs):
    if is_key(djs) or isinstance(djs, Dj):
      djs = (djs,)

    self.raw.dj_list = list(set(self.dj_list).
                            union(as_keys(djs)))