+
+#
+# Each of these module instances creates its own interpreter instance
+# so for shared storage unless cext_compat is true and we're running
+# Python 2.7 or below.
+#
python pmod1 {
- module = 'mod1'
+ module = 'mod_thread_local_storage'
- mod_authorize = ${.module}
- func_authorize = authorize
+ mod_authorize = ${.module}
+ func_authorize = authorize
}
python pmod2 {
- module = 'mod2'
+ module = 'mod_return_ok'
- mod_authorize = ${.module}
- func_authorize = authorize
+ mod_authorize = ${.module}
+ func_authorize = authorize
}
python pmod3_withmod1 {
- module = 'mod1'
+ module = 'mod_thread_local_storage'
- mod_authorize = ${.module}
- func_authorize = authorize
+ mod_authorize = ${.module}
+ func_authorize = authorize
}
python pmod4_cextcompat {
- module = 'mod3'
+ module = 'mod_shared_storage'
- mod_authorize = ${.module}
- func_authorize = authorize
+ mod_authorize = ${.module}
+ func_authorize = authorize
- cext_compat = true
+ cext_compat = true
}
python pmod5_cextcompat {
- module = 'mod3'
+ module = 'mod_shared_storage'
- mod_authorize = ${.module}
- func_authorize = authorize
+ mod_authorize = ${.module}
+ func_authorize = authorize
- cext_compat = true
+ cext_compat = true
}
python pmod4_not_cextcompat {
- module = 'mod3'
+ module = 'mod_shared_storage'
- mod_authorize = ${.module}
- func_authorize = authorize
+ mod_authorize = ${.module}
+ func_authorize = authorize
- cext_compat = false
+ cext_compat = false
}
python pmod5_not_cextcompat {
- module = 'mod3'
+ module = 'mod_shared_storage'
- mod_authorize = ${.module}
- func_authorize = authorize
+ mod_authorize = ${.module}
+ func_authorize = authorize
- cext_compat = false
+ cext_compat = false
}
python pmod6_configured {
- module = 'mod4'
+ module = 'mod_with_config'
+
+ mod_authorize = ${.module}
+ func_authorize = authorize
- mod_authorize = ${.module}
- func_authorize = authorize
+ config {
+ a_param = "a_value"
+ }
+}
- config {
- a_param = "a_value"
- }
-}
\ No newline at end of file
+python pmod_shared_storage {
+ module = 'mod_shared_storage'
+
+ mod_authorize = ${.module}
+ func_authorize = authorize
+}