Skip to content

Commit

Permalink
Use more descriptive DelegateMethod where appropriate, although it's …
Browse files Browse the repository at this point in the history
…the same as ReadOnlyProperty.
  • Loading branch information
ajdavis committed Feb 16, 2014
1 parent d07ad95 commit 2e4adbd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions motor/__init__.py
Expand Up @@ -905,8 +905,8 @@ def __eq__(self, other):
return NotImplemented

name = ReadOnlyProperty()
get_document_class = ReadOnlyProperty()
set_document_class = ReadOnlyProperty()
get_document_class = DelegateMethod()
set_document_class = DelegateMethod()
document_class = ReadWriteProperty()
read_preference = ReadWriteProperty()
tag_sets = ReadWriteProperty()
Expand Down Expand Up @@ -1138,7 +1138,7 @@ class MotorReplicaSetClient(MotorClientBase):
secondaries = ReadOnlyProperty()
arbiters = ReadOnlyProperty()
hosts = ReadOnlyProperty()
seeds = ReadOnlyProperty()
seeds = DelegateMethod()
close = DelegateMethod()

_simple_command = AsyncCommand(attr_name='__simple_command')
Expand Down Expand Up @@ -2040,8 +2040,8 @@ def _close(self):
class MotorBulkOperationBuilder(MotorBase):
__delegate_class__ = BulkOperationBuilder

find = ReadOnlyProperty()
insert = ReadOnlyProperty()
find = DelegateMethod()
insert = DelegateMethod()
execute = AsyncCommand()

def __init__(self, collection, ordered):
Expand Down

0 comments on commit 2e4adbd

Please sign in to comment.