mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 10:06:05 -04:00
Convert rest and handlers to use new event structure
This commit is contained in:
parent
5d7c9ab789
commit
c31dba86ec
14 changed files with 188 additions and 199 deletions
|
@ -22,10 +22,13 @@ from synapse.util.stringutils import random_string
|
|||
|
||||
class EventBuilder(EventBase):
|
||||
def __init__(self, key_values={}):
|
||||
super(FrozenEvent, self).__init__(
|
||||
super(EventBuilder, self).__init__(
|
||||
key_values,
|
||||
)
|
||||
|
||||
def update_event_key(self, key, value):
|
||||
self._event_dict[key] = value
|
||||
|
||||
def update_event_keys(self, other_dict):
|
||||
self._event_dict.update(other_dict)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue