Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #8055

Closed
Open
Created Jan 25, 2013 by Arturo Filasto@art

Convert config file to be a singleton instance

The config.py currently uses some hacks to make sure that it does not get instanced twice. What we should actually be using is a metaclass constructor that looks like the one evilaliv3 wrote for GlobaLeaks.

This is the class: https://github.com/globaleaks/GLBackend/blob/c900929c8893ed5da47ea057845dfce486f25a26/globaleaks/utils/singleton.py

And this is how it's used:

https://github.com/globaleaks/GLBackend/blob/c900929c8893ed5da47ea057845dfce486f25a26/globaleaks/config.py#L56

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking