Skip to content

cpg.root can't access cpg properties #116

@ghost

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


Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions