Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Trac
Trac
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Create a new issue
  • Issue Boards

GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

  • Legacy
  • TracTrac
  • Issues
  • #8055

Closed
Open
Opened 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
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: legacy/trac#8055