File tree Expand file tree Collapse file tree 4 files changed +23
-0
lines changed
Expand file tree Collapse file tree 4 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 1515from tincan .serializable_base import SerializableBase
1616from tincan .agent_account import AgentAccount
1717
18+ """
19+
20+ .. module:: Agent
21+ :synopsis: The Agent object that contains the information about an Agent
22+
23+ """
24+
1825class Agent (SerializableBase ):
1926
2027 _props_req = [
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ def make_timedelta(value):
3939 :type value: str | unicode | float | int | datetime.timedelta | dict
4040 :return: the value after conversion
4141 :rtype: datetime.timedelta
42+
4243 """
4344
4445 if isinstance (value , basestring ):
@@ -88,6 +89,7 @@ def jsonify_timedelta(value):
8889 :type value: datetime.timedelta
8990 :return: the value after conversion
9091 :rtype unicode
92+
9193 """
9294
9395 assert isinstance (value , datetime .timedelta )
@@ -153,6 +155,7 @@ def make_datetime(value):
153155 :return: the value after conversion
154156 :rtype: :class:`datetime.datetime`
155157 :raises ValueError | TypeError
158+
156159 """
157160 result = _make_datetime (value )
158161 if not result .tzinfo :
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ class Document(Base):
2828 :type etag: unicode
2929 :param timestamp: The timestamp of this document
3030 :type timestamp: :class:`datetime.datetime`
31+
3132 """
3233 _props_req = [
3334 'id' ,
@@ -48,6 +49,7 @@ def id(self):
4849 :setter: Tries to convert to unicode
4950 :setter type: str | unicode
5051 :rtype: unicode
52+
5153 """
5254 return self ._id
5355
@@ -64,6 +66,7 @@ def content_type(self):
6466 :setter: Tries to convert to unicode
6567 :setter type: str | unicode
6668 :rtype: unicode
69+
6770 """
6871 return self ._content_type
6972
@@ -80,6 +83,7 @@ def content(self):
8083 :setter: Tries to convert to bytearray.
8184 :setter type: str | unicode | bytearray
8285 :rtype: bytearray
86+
8387 """
8488 return self ._content
8589
@@ -97,6 +101,7 @@ def etag(self):
97101 :setter: Tries to convert to unicode
98102 :setter type: str | unicode
99103 :rtype: unicode
104+
100105 """
101106 return self ._etag
102107
@@ -126,6 +131,7 @@ def timestamp(self):
126131
127132 :setter type: :class:`datetime.datetime` | unicode | str | int | float | dict | tuple | None
128133 :rtype: :class:`datetime.datetime`
134+
129135 """
130136 return self ._timestamp
131137
Original file line number Diff line number Diff line change 2222from tincan .attachment_list import AttachmentList
2323from tincan .conversions .iso8601 import make_datetime
2424
25+ """
26+
27+ .. module:: StatementBase
28+ :synopsis: The base object for both Statement and SubStatement
29+
30+ """
31+
2532class StatementBase (SerializableBase ):
2633
2734 _props_req = [
You can’t perform that action at this time.
0 commit comments