MambuPy.rest1to2.mambubranch

Classes

MambuBranch(*args, **kwargs)

MambuBranches(*args, **kwargs)

class MambuPy.rest1to2.mambubranch.MambuBranch(*args, **kwargs)[source]

Bases: MambuStruct, MambuBranch

__init__(*args, **kwargs)[source]

Tasks done here:

Just initializes the MambuStruct.

__module__ = 'MambuPy.rest1to2.mambubranch'
postprocess()[source]
preprocess()[source]
setUsers(*args, **kwargs)[source]

Adds the active users for this branch to a ‘users’ field.

Returns the number of requests done to Mambu.

Todo

since pagination logic was added, is not always true that just 1 request was done. It may be more! But since request counter singleton holds true information about how many requests were done to Mambu, in fact this return value may be obsolete

class MambuPy.rest1to2.mambubranch.MambuBranches(*args, **kwargs)[source]

Bases: MambuStruct, MambuBranches

__init__(*args, **kwargs)[source]

By default, entid argument is empty. That makes perfect sense: you want several branches, not just one

__iter__()[source]
__module__ = 'MambuPy.rest1to2.mambubranch'
__repr__()[source]

Mambu object repr tells the class name and the usual ‘id’ for it.

If an iterable, it instead gives its length.