Skip to content

Commit

Permalink
Updated example to remove database
Browse files Browse the repository at this point in the history
  • Loading branch information
excid3 committed Jul 22, 2010
1 parent 713fca0 commit b6fe1f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
10 changes: 3 additions & 7 deletions src/DefinitionBase.py
Expand Up @@ -56,17 +56,13 @@ class DefinitionBase:


@callback
def __init__(self, database=":memory:"):
def __init__(self):
"""
__init__([database])
- database is a filename for the defintion data to be stored. If
omitted, the database will be stored in memory only and will not
be saved.
__init__()
For example:
client = loader.new_instance("apt", "unwrapt.db")
client = loader.new_instance("apt")
"""

#self.database = database
Expand Down
4 changes: 2 additions & 2 deletions src/example.py
Expand Up @@ -29,8 +29,8 @@
# Load definitions from folder
loader = DefinitionManager(folder)

# Instanciate an apt client with the database in memory
apt = loader.load("apt", ":memory:")
# Instanciate an apt client
apt = loader.load("apt")

# Configure the apt client
apt.set_architecture("amd64")
Expand Down

0 comments on commit b6fe1f0

Please sign in to comment.