Module ImportFrom alias alias alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call NameLoad Str decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore BinOpAdd AttributeLoad NameLoad attr TupleLoad Call NameLoad Str keyword Str keyword NameLoad keyword Str Call NameLoad Str keyword Str keyword NameLoad keyword Str Call NameLoad Str keyword Str keyword NameLoad keyword Str Call NameLoad Str keyword Str keyword NameLoad keyword Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad vararg kwarg body Assign AttributeStore NameLoad attr NameLoad If NameLoad body Assign NameStore Call NameLoad Str If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr For NameStore BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Return SubscriptLoad NameLoad Index Num orelse If NameLoad body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr orelse If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr If Call AttributeLoad NameLoad attr NameLoad body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad If NameLoad body If NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad orelse If NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list Assign NameStore ListLoad Call NameLoad keyword AttributeLoad NameLoad attr keyword Str keyword Str Call NameLoad keyword AttributeLoad NameLoad attr keyword Str keyword Str Call NameLoad keyword AttributeLoad NameLoad attr keyword Str keyword Str Call NameLoad keyword AttributeLoad NameLoad attr keyword Str keyword Str Call NameLoad keyword AttributeLoad NameLoad attr keyword Str keyword Str Call NameLoad keyword AttributeLoad NameLoad attr keyword Str keyword Str Call NameLoad keyword AttributeLoad NameLoad attr keyword Str keyword Str Call NameLoad keyword AttributeLoad NameLoad attr keyword Str keyword Str Call NameLoad keyword AttributeLoad NameLoad attr keyword Str keyword Str Call NameLoad keyword AttributeLoad NameLoad attr keyword Str keyword Str Call NameLoad keyword AttributeLoad NameLoad attr keyword Str keyword Str Call NameLoad keyword AttributeLoad NameLoad attr keyword Str keyword Str Call NameLoad keyword AttributeLoad NameLoad attr keyword Str keyword Str Call NameLoad keyword AttributeLoad NameLoad attr keyword Str keyword Str Call NameLoad keyword AttributeLoad NameLoad attr keyword Str keyword Str Call NameLoad keyword AttributeLoad NameLoad attr keyword Str keyword Str Call NameLoad keyword AttributeLoad NameLoad attr keyword Str keyword Str Call NameLoad keyword AttributeLoad NameLoad attr keyword Str keyword Str Call NameLoad keyword AttributeLoad NameLoad attr keyword Str keyword Str Call NameLoad keyword AttributeLoad NameLoad attr keyword Str keyword Str Call NameLoad keyword AttributeLoad NameLoad attr keyword Str keyword Str Call NameLoad keyword AttributeLoad NameLoad attr keyword Str keyword Str Call NameLoad keyword AttributeLoad NameLoad attr keyword Str keyword Str Call NameLoad keyword AttributeLoad NameLoad attr keyword Str keyword Str Assign NameStore ListLoad Call NameLoad keyword Str keyword Str keyword Str Call NameLoad keyword Str keyword Str keyword Str Call NameLoad keyword Str keyword Str keyword Str Call NameLoad keyword Str keyword Str keyword Str Call NameLoad keyword Str keyword Str keyword Str Assign NameStore ListLoad Assign NameStore BinOpAdd NameLoad ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpAdd NameLoad ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpAdd NameLoad ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpAdd NameLoad ListLoad Assign NameStore ListLoad NameLoad NameLoad Assign NameStore Dict Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list
N/A __future__ absolute_import print_function unicode_literals N/A sys N/A logging optparse make_option django.core.management call_command django.core.management.base BaseCommand django.core.mail mail_admins corehq privileges django_prbac.models Grant Role N/A logger N/A N/A logging getLogger __name__ N/A BULK_CASE_AND_USER_MANAGEMENT bulk_case_and_user_management N/A CROSS_PROJECT_REPORTS cross_project_reports cchq_prbac_bootstrap N/A N/A apps schema_editor N/A N/A N/A Convenience function for use in data migrations.
    Example operation:
        migrations.RunPython(cchq_prbac_bootstrap)
     N/A N/A call_command cchq_prbac_bootstrap N/A Command N/A BaseCommand N/A N/A help Populate a fresh database with some sample roles and grants N/A option_list N/A N/A BaseCommand option_list N/A N/A make_option --dry-run action store_true default False help Do not actually modify the database, just verbosely log what happen N/A make_option --verbose action store_true default False help Enable debug output N/A make_option --fresh-start action store_true default False help We changed the core v0 plans, wipe all existing plans and start over. USE CAUTION. N/A make_option --testing action store_true default False help Run this command for tests. handle N/A N/A self dry_run verbose fresh_start testing N/A False False False False args options N/A N/A N/A self verbose verbose N/A fresh_start N/A N/A confirm_fresh_start N/A raw_input Are you sure you want to delete all Roles and start over? You can't do this if accounting is already set up. Type 'yes' to continue. N/A N/A confirm_fresh_start yes N/A N/A N/A N/A self flush_roles N/A role N/A N/A self BOOTSTRAP_PRIVILEGES N/A self BOOTSTRAP_PLANS N/A N/A N/A N/A self ensure_role role dry_run dry_run N/A N/A plan_role_slug privs N/A N/A N/A self BOOTSTRAP_GRANTS items N/A N/A priv_role_slug privs N/A N/A N/A N/A self ensure_grant plan_role_slug priv_role_slug dry_run dry_run N/A old_priv N/A self OLD_PRIVILEGES N/A N/A N/A N/A self remove_grant old_priv N/A N/A N/A N/A N/A N/A Role objects filter slug old_priv delete N/A flush_roles N/A N/A self N/A N/A N/A N/A N/A logger info Flushing ALL Roles... N/A N/A N/A N/A N/A N/A Role objects all delete N/A ensure_role N/A N/A self role dry_run N/A False N/A N/A 
        Adds the role if it does not already exist, otherwise skips it.
         N/A existing_roles N/A N/A N/A Role objects filter slug N/A role slug N/A existing_roles N/A N/A N/A N/A logger info Role already exists: %s N/A role name N/A N/A existing_roles N/A 0 N/A N/A dry_run N/A N/A N/A N/A logger info [DRY RUN] Creating role: %s N/A role name N/A N/A N/A self verbose N/A N/A N/A N/A logger info Creating role: %s N/A role name N/A N/A N/A role save N/A ensure_grant N/A N/A self grantee_slug priv_slug dry_run N/A False N/A N/A 
        Adds a parameterless grant between grantee and priv, looked up by slug.
         N/A dry_run N/A N/A grants N/A N/A N/A Grant objects filter from_role__slug grantee_slug to_role__slug priv_slug N/A N/A grants N/A N/A N/A N/A logger info [DRY RUN] Granting privilege: %s => %s grantee_slug priv_slug N/A N/A grantee N/A N/A N/A Role objects get slug grantee_slug N/A priv N/A N/A N/A Role objects get slug priv_slug N/A N/A N/A N/A N/A Role get_cache clear N/A N/A N/A grantee has_privilege priv N/A N/A N/A self verbose N/A N/A N/A N/A logger info Privilege already granted: %s => %s N/A grantee slug N/A priv slug N/A N/A N/A self verbose N/A N/A N/A N/A logger info Granting privilege: %s => %s N/A grantee slug N/A priv slug N/A N/A N/A N/A Grant objects create from_role grantee to_role priv N/A remove_grant N/A N/A self priv_slug dry_run N/A False N/A N/A grants N/A N/A N/A Grant objects filter to_role__slug priv_slug N/A dry_run N/A N/A grants N/A N/A N/A N/A logger info [DRY RUN] Removing privilege %s priv_slug N/A N/A grants N/A N/A N/A N/A grants delete N/A N/A N/A logger info Removing privilege %s priv_slug N/A N/A BOOTSTRAP_PRIVILEGES N/A N/A Role slug N/A privileges API_ACCESS name API Access description N/A Role slug N/A privileges LOOKUP_TABLES name Lookup Tables description N/A Role slug N/A privileges CLOUDCARE name Web-based Applications (CloudCare) description N/A Role slug N/A privileges CUSTOM_BRANDING name Custom Branding description N/A Role slug N/A privileges ACTIVE_DATA_MANAGEMENT name Active Data Management description N/A Role slug N/A privileges CUSTOM_REPORTS name Custom Reports description N/A Role slug N/A privileges ROLE_BASED_ACCESS name Role-based Access description N/A Role slug N/A privileges OUTBOUND_SMS name Outbound SMS description Use of any outbound messaging / SMS services. N/A Role slug N/A privileges REMINDERS_FRAMEWORK name Rules Engine (Use of Reminders Framework) description Use of reminders framework for spawning reminders/alerts based on certain criteria. N/A Role slug N/A privileges CUSTOM_SMS_GATEWAY name Custom Telerivet (Android) SMS Gateway description Ability to set up telerivet gateway on the "SMS Connectivity" page (inbound or outbound). N/A Role slug N/A privileges INBOUND_SMS name Inbound SMS (where available) description N/A Role slug N/A privileges BULK_CASE_MANAGEMENT name Bulk Case Management description N/A Role slug N/A privileges BULK_USER_MANAGEMENT name Bulk User Management description N/A Role slug N/A privileges DEIDENTIFIED_DATA name De-identified Data description N/A Role slug N/A privileges HIPAA_COMPLIANCE_ASSURANCE name HIPAA Compliance Assurance description N/A Role slug N/A privileges ALLOW_EXCESS_USERS name Can Add Users Above Limit description N/A Role slug N/A privileges COMMCARE_LOGO_UPLOADER name Custom CommCare Logo Uploader description N/A Role slug N/A privileges LOCATIONS name Locations description N/A Role slug N/A privileges REPORT_BUILDER name User Configurable Report Builder description N/A Role slug N/A privileges USER_CASE name User Case Management description N/A Role slug N/A privileges DATA_CLEANUP name Data Management description Tools for cleaning up data, including editing submissions and archiving forms. N/A Role slug N/A privileges TEMPLATED_INTENTS name Templated Intents description Provides a dropdown for Android App Callouts N/A Role slug N/A privileges CUSTOM_INTENTS name Custom Intents description Allows for specifying custom intents N/A Role slug N/A privileges ADVANCED_DOMAIN_SECURITY name Advanced Domain Security description Allows domains to set security policies for all web users N/A BOOTSTRAP_PLANS N/A N/A Role slug community_plan_v0 name Community Plan description N/A Role slug standard_plan_v0 name Standard Plan description N/A Role slug pro_plan_v0 name Pro Plan description N/A Role slug advanced_plan_v0 name Advanced Plan description N/A Role slug enterprise_plan_v0 name Enterprise Plan description N/A community_plan_features N/A N/A standard_plan_features N/A community_plan_features N/A N/A privileges API_ACCESS N/A privileges LOOKUP_TABLES N/A privileges OUTBOUND_SMS N/A privileges REMINDERS_FRAMEWORK N/A privileges CUSTOM_SMS_GATEWAY N/A privileges ROLE_BASED_ACCESS N/A privileges BULK_USER_MANAGEMENT N/A privileges BULK_CASE_MANAGEMENT N/A privileges ALLOW_EXCESS_USERS N/A privileges LOCATIONS N/A privileges USER_CASE N/A pro_plan_features N/A standard_plan_features N/A N/A privileges CLOUDCARE N/A privileges CUSTOM_REPORTS N/A privileges INBOUND_SMS N/A privileges HIPAA_COMPLIANCE_ASSURANCE N/A privileges DEIDENTIFIED_DATA N/A privileges REPORT_BUILDER N/A privileges DATA_CLEANUP N/A privileges TEMPLATED_INTENTS N/A advanced_plan_features N/A pro_plan_features N/A N/A privileges CUSTOM_BRANDING N/A privileges ACTIVE_DATA_MANAGEMENT N/A privileges COMMCARE_LOGO_UPLOADER N/A privileges CUSTOM_INTENTS N/A privileges ADVANCED_DOMAIN_SECURITY N/A enterprise_plan_features N/A advanced_plan_features N/A N/A OLD_PRIVILEGES N/A BULK_CASE_AND_USER_MANAGEMENT CROSS_PROJECT_REPORTS N/A BOOTSTRAP_GRANTS N/A community_plan_v0 standard_plan_v0 pro_plan_v0 advanced_plan_v0 enterprise_plan_v0 community_plan_features standard_plan_features pro_plan_features advanced_plan_features enterprise_plan_features N/A