Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam NameParam defaults body Expr Str With AttributeLoad NameLoad attr body Assign NameStore Call NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assert UnaryOpNot Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad With AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Num Assert CompareEq Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Num Assert Call AttributeLoad NameLoad attr decorator_list
N/A N/A transaction websauna.system.user.models User websauna.system.user.models Group websauna.system.user.utils get_site_creator test_virgin_init_admin N/A N/A init dbsession N/A N/A N/A When the user logs in first time see we create admin group and permissions for it. N/A N/A transaction manager N/A N/A u N/A User username example email example@example.com N/A N/A N/A dbsession add u N/A N/A N/A dbsession flush N/A N/A N/A N/A u is_admin N/A site_creator N/A get_site_creator N/A N/A init config registry N/A N/A N/A site_creator init_empty_site dbsession u N/A N/A transaction manager N/A N/A u N/A N/A N/A N/A dbsession query User get 1 N/A N/A N/A N/A N/A N/A dbsession query Group count 1 N/A N/A N/A u is_admin N/A