Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.db.replay
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.db.replay
Commits
7fba0748
Commit
7fba0748
authored
12 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
Reflect changes in Bob db driver simplification
parent
0c71662f
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
xbob/db/replay/driver.py
+4
-4
4 additions, 4 deletions
xbob/db/replay/driver.py
xbob/db/replay/query.py
+1
-1
1 addition, 1 deletion
xbob/db/replay/query.py
xbob/db/replay/test.py
+2
-2
2 additions, 2 deletions
xbob/db/replay/test.py
with
7 additions
and
7 deletions
xbob/db/replay/driver.py
+
4
−
4
View file @
7fba0748
...
...
@@ -83,11 +83,11 @@ class Interface(BaseInterface):
import
pkg_resources
# part of setuptools
return
pkg_resources
.
require
(
'
xbob.db.%s
'
%
self
.
name
())[
0
].
version
def
location
(
self
):
return
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))
def
files
(
self
):
return
(
'
db.sql3
'
,)
from
pkg_resources
import
resource_filename
raw_files
=
(
'
db.sql3
'
,)
return
[
resource_filename
(
__name__
,
k
)
for
k
in
raw_files
]
def
type
(
self
):
return
'
sqlite
'
...
...
This diff is collapsed.
Click to expand it.
xbob/db/replay/query.py
+
1
−
1
View file @
7fba0748
...
...
@@ -15,7 +15,7 @@ from .driver import Interface
INFO
=
Interface
()
SQLITE_FILE
=
os
.
path
.
join
(
INFO
.
location
(),
INFO
.
files
()[
0
]
)
SQLITE_FILE
=
INFO
.
files
()[
0
]
class
Database
(
object
):
"""
The dataset class opens and maintains a connection opened to the Database.
...
...
This diff is collapsed.
Click to expand it.
xbob/db/replay/test.py
+
2
−
2
View file @
7fba0748
...
...
@@ -105,11 +105,11 @@ class ReplayDatabaseTest(unittest.TestCase):
for
k
,
v
in
f
.
items
():
self
.
assertTrue
(
v
.
find
(
'
enroll
'
)
!=
-
1
)
def
test09_manage_
location
(
self
):
def
test09_manage_
files
(
self
):
from
bob.db.script.dbmanage
import
main
self
.
assertEqual
(
main
(
'
replay
location
'
.
split
()),
0
)
self
.
assertEqual
(
main
(
'
replay
files
'
.
split
()),
0
)
def
test10_manage_dumplist_1
(
self
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment