197 m = re.match(r"(\w+(\.\w+)*)\.(\w*)", text) |
197 m = re.match(r"(\w+(\.\w+)*)\.(\w*)", text) |
198 if not m: |
198 if not m: |
199 return [] |
199 return [] |
200 expr, attr = m.group(1, 3) |
200 expr, attr = m.group(1, 3) |
201 try: |
201 try: |
202 thisobject = eval(expr, self.namespace) # secok |
202 thisobject = eval(expr, {}, self.namespace) # secok |
203 except Exception: |
203 except Exception: |
204 return [] |
204 return [] |
205 |
205 |
206 # get the content of the object, except __builtins__ |
206 # get the content of the object, except __builtins__ |
207 words = set(dir(thisobject)) |
207 words = set(dir(thisobject)) |