summaryrefslogtreecommitdiff
path: root/doc/build/lib/docstring.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2007-04-29 16:08:36 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2007-04-29 16:08:36 +0000
commitc0f391af951ab75a1c486d4179216d31997a0f83 (patch)
treedc90d3214bd1c8c42e5f1acd7d8303739eafccde /doc/build/lib/docstring.py
parentbb991b972d3c76f9f2528916a77ff893cd433f99 (diff)
downloadsqlalchemy-c0f391af951ab75a1c486d4179216d31997a0f83.tar.gz
- fixed textual select elements that got broke the other day
- docstring work
Diffstat (limited to 'doc/build/lib/docstring.py')
-rw-r--r--doc/build/lib/docstring.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/build/lib/docstring.py b/doc/build/lib/docstring.py
index e878aa9b2..f0aebe92b 100644
--- a/doc/build/lib/docstring.py
+++ b/doc/build/lib/docstring.py
@@ -55,7 +55,7 @@ class ObjectDoc(AbstractDoc):
and
(getattr(obj, x).__name__ == '__init__' or not getattr(obj,x).__name__[0] == '_')
] +
- [(x, getattr(obj, x)) for x in obj.__dict__.keys() if isinstance(getattr(obj,x), property)
+ [(x, getattr(obj, x)) for x in obj.__dict__.keys() if _is_property(getattr(obj,x))
and
not x[0] == '_'
]
@@ -111,6 +111,9 @@ class ObjectDoc(AbstractDoc):
def accept_visitor(self, visitor):
visitor.visit_object(self)
+def _is_property(elem):
+ return isinstance(elem, property) or (hasattr(elem, '__get__') and hasattr(elem, '__set__'))
+
class FunctionDoc(AbstractDoc):
def __init__(self, func):
super(FunctionDoc, self).__init__(func)