MCPcopy Create free account
hub / github.com/alephdata/aleph / create

Method create

aleph/model/alert.py:55–60  ·  view source on GitHub ↗
(cls, data, role_id)

Source from the content-addressed store, hash-verified

53
54 @classmethod
55 def create(cls, data, role_id):
56 alert = cls()
57 alert.role_id = role_id
58 alert.query = stringify(data.get("query"))
59 alert.update()
60 return alert
61
62 def __repr__(self):
63 return "<Alert(%r, %r)>" % (self.id, self.query)

Callers 15

upgradeFunction · 0.45
createFunction · 0.45
createFunction · 0.45
configure_indexFunction · 0.45
decide_pairwiseFunction · 0.45
create_entitysetFunction · 0.45
create_exportFunction · 0.45
upsert_entityFunction · 0.45
create_collectionFunction · 0.45
setUpMethod · 0.45

Calls 2

getMethod · 0.45
updateMethod · 0.45

Tested by 7

setUpMethod · 0.36
test_passwordMethod · 0.36
setUpMethod · 0.36
create_mappingMethod · 0.36
test_notifyMethod · 0.36