Esempio n. 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)
Esempio n. 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)
Esempio n. 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))
Esempio n. 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))
Esempio n. 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))
Esempio n. 6
0
 def do_verb(self, verb):
     if self is this_thread.user:
         return ""
     else:
         return possessify(self.name, target)
Esempio n. 7
0
 def possessive(self, target):
     if self is this_thread.user:
         return your(target)
     else:
         return possessify(self.name, target)
Esempio n. 8
0
 def do_verb(self, verb):
     if self is this_thread.user:
         return ""
     else:
         return possessify(self.name, target)
Esempio n. 9
0
 def possessive(self, target):
     if self is this_thread.user:
         return your(target)
     else:
         return possessify(self.name, target)