I'm reading the Flask Web Development book by Miguel Grinberg and I'm confused by how he's setting the Permissions for the various tasks in the app. Is he just setting random bit values for each of the tasks?
class Permission:
FOLLOW = 0x01
COMMENT = 0x02
WRITE_ARTICLES = 0x04
MODERATE_COMMENTS = 0x08
ADMINISTER = 0x80
He goes on to say "each task will be assigned a bit position, and for each role the tasks that are allowed for that role will have their bits set to 1." I'm not really sure what he means.