Beispiel #1
0
 def possessive(self, target, **kwargs):
     """Given a word like "fish," returns "your fish" or 
     "John Smith's fish," depending on whether the person is the user."""
     if self is this_thread.user:
         return your(target, **kwargs)
     else:
         return possessify(self.name, target)
Beispiel #2
0
 def possessive(self, target, **kwargs):
     """Given a word like "fish," returns "your fish" or 
     "John Smith's fish," depending on whether the person is the user."""
     if self is this_thread.user:
         return your(target, **kwargs)
     else:
         return possessify(self.name, target)
Beispiel #3
0
 def object_possessive(self, target):
     """Returns a possessive phrase based on the instanceName.  E.g., client.object_possessive('fish') returns
     "client's fish." """
     if len(self.instanceName.split(".")) > 1:
         return(possessify_long(self.object_name(), target))
     else:
         return(possessify(the(self.object_name()), target))
Beispiel #4
0
 def object_possessive(self, target):
     if len(self.instanceName.split(".")) > 1:
         return(possessify_long(self.object_name(), target))
     else:
         return(possessify(the(self.object_name()), target))
Beispiel #5
0
 def object_possessive(self, target):
     if len(self.instanceName.split(".")) > 1:
         return (possessify_long(self.object_name(), target))
     else:
         return (possessify(the(self.object_name()), target))
Beispiel #6
0
 def do_verb(self, verb):
     if self is this_thread.user:
         return ""
     else:
         return possessify(self.name, target)
Beispiel #7
0
 def possessive(self, target):
     if self is this_thread.user:
         return your(target)
     else:
         return possessify(self.name, target)
Beispiel #8
0
 def do_verb(self, verb):
     if self is this_thread.user:
         return ""
     else:
         return possessify(self.name, target)
Beispiel #9
0
 def possessive(self, target):
     if self is this_thread.user:
         return your(target)
     else:
         return possessify(self.name, target)