Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
poezio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
178
Issues
178
List
Boards
Labels
Service Desk
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poezio
poezio
Commits
218c71df
Commit
218c71df
authored
Apr 06, 2014
by
mathieui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not instantiate the roster at module level
.
parent
e000466a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
src/poezio.py
src/poezio.py
+3
-0
src/roster.py
src/roster.py
+6
-1
No files found.
src/poezio.py
View file @
218c71df
...
...
@@ -36,6 +36,9 @@ def main():
import
logger
logger
.
create_logger
()
import
roster
roster
.
create_roster
()
import
core
log
=
logging
.
getLogger
(
''
)
...
...
src/roster.py
View file @
218c71df
...
...
@@ -327,5 +327,10 @@ class RosterGroup(object):
"""Return the number of connected contacts"""
return
len
([
1
for
contact
in
self
.
contacts
if
len
(
contact
)])
def
create_roster
():
"Create the global roster object"
global
roster
roster
=
Roster
()
# Shared roster object
roster
=
Roster
()
roster
=
None
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment