-
-
Notifications
You must be signed in to change notification settings - Fork 367
cpg.root can't access cpg properties #116
Copy link
Copy link
Closed
Labels
Description
Originally reported by: Anonymous
cpg.root is instantiated before the web server is started so cpg.foo is not available in the root class.
I noticed this when I subclassed my root class from csauthenticate and made some stuff in my version of csauthenticate try to access cpg.configOption.sessionCookieName in it's init.
It seems that the structure of CP2 should be changed so that the root class is passed to cp when the server is started so it can be instantiated later on after things are set up around it.
Reported by mischko chappie@mischko.com
Reactions are currently unavailable