mktplace.transactions.market_place_object_update module

class mktplace.transactions.market_place_object_update.MarketPlaceObject(objectid=None, minfo=None)[source]

Bases: object

classmethod get_valid_object(store, objectid, objecttypes=None)[source]
classmethod is_valid_object(store, objectid)[source]
classmethod load_from_store(store, objectid)[source]
dump()[source]
mktplace.transactions.market_place_object_update.global_is_valid_name(store, name, object_type, creator_id)[source]

Ensure that the name property meets syntactic requirements.

mktplace.transactions.market_place_object_update.global_is_permitted(store, txn, creator_id, creator_type)[source]

Global permission check, for now only verifies that the creator id corresponds to the originator of the transaction.

class mktplace.transactions.market_place_object_update.UpdateDescription(update_type, creator_id, description, object_id)[source]

Bases: journal.transaction.Update

References
check_valid(store, txn)[source]
apply(store, txn)[source]
class mktplace.transactions.market_place_object_update.UpdateName(update_type, object_id, creator_id, name)[source]

Bases: journal.transaction.Update

References
is_valid_name(store)[source]

Ensure that the name property meets syntactic requirements. Objects can override this method for object specific syntax. This method simply requires that a name begins with a ‘/’, has a total length less than 64 characters, and is not the same as an already-existing object.

check_valid(store, txn)[source]
is_permitted(store, txn)[source]
apply(store, txn)[source]