Mercurial > libervia-web
comparison libervia/pages/_browser/aio_bridge.py @ 1394:72f9639594b2
browser (lists): code is now async + item removal for non creator:
when user is creator of item, it is removed from list of interests and node is deleted,
otherwise it is only removed from list of interests.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 27 Feb 2021 21:06:45 +0100 |
parents | 48e2a8b07c0b |
children | 106bae41f5c8 |
comparison
equal
deleted
inserted
replaced
1393:d9a328ddef9c | 1394:72f9639594b2 |
---|---|
17 self.message = str(message) | 17 self.message = str(message) |
18 self.condition = str(condition) if condition else "" | 18 self.condition = str(condition) if condition else "" |
19 self.module, __, self.classname = str(self.fullname).rpartition(".") | 19 self.module, __, self.classname = str(self.fullname).rpartition(".") |
20 | 20 |
21 def __str__(self): | 21 def __str__(self): |
22 message = (": %s" % self.message) if self.message else "" | 22 return f"{self.classname}: {self.message or ''}" |
23 return self.classname + message | |
24 | 23 |
25 def __eq__(self, other): | 24 def __eq__(self, other): |
26 return self.classname == other | 25 return self.classname == other |
27 | 26 |
28 | 27 |