Packages update
This commit is contained in:
Regular → Executable
+4
-4
@@ -1,5 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright (c) 2008-2010 Erik Svensson <erik.public@gmail.com>
|
||||
# Copyright (c) 2008-2011 Erik Svensson <erik.public@gmail.com>
|
||||
# Licensed under the MIT license.
|
||||
|
||||
class Session(object):
|
||||
@@ -8,17 +8,17 @@ class Session(object):
|
||||
|
||||
Access the session field can be done through attributes.
|
||||
The attributes available are the same as the session arguments in the
|
||||
Transmission RPC specification, but with underscore instead of hypen.
|
||||
Transmission RPC specification, but with underscore instead of hyphen.
|
||||
``download-dir`` -> ``download_dir``.
|
||||
"""
|
||||
|
||||
def __init__(self, fields=None):
|
||||
self.fields = {}
|
||||
if fields != None:
|
||||
if fields is not None:
|
||||
self.update(fields)
|
||||
|
||||
def update(self, other):
|
||||
"""Update the session data from a session arguments dictinary"""
|
||||
"""Update the session data from a session arguments dictionary"""
|
||||
|
||||
fields = None
|
||||
if isinstance(other, dict):
|
||||
|
||||
Reference in New Issue
Block a user