Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
basket
Commits
4c232a086d59
Commit
b1cde94f
authored
Oct 27, 2008
by
Nicolas Chauvat
Browse files
s/TEMPLATES_DIR/CUBES_DIR
parent
9064ddc821b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
__pkginfo__.py
View file @
4c232a08
...
...
@@ -25,21 +25,20 @@ This package provides baskets as a way to select content in cubicweb application
from
os
import
listdir
from
os.path
import
join
TEMPLAT
ES_DIR
=
join
(
'share'
,
'cubicweb'
,
'cubes'
)
CUB
ES_DIR
=
join
(
'share'
,
'cubicweb'
,
'cubes'
)
try
:
data_files
=
[
[
join
(
TEMPLAT
ES_DIR
,
'basket'
),
[
join
(
CUB
ES_DIR
,
'basket'
),
[
fname
for
fname
in
listdir
(
'.'
)
if
fname
.
endswith
(
'.py'
)
and
fname
!=
'setup.py'
]],
[
join
(
TEMPLAT
ES_DIR
,
'basket'
,
'data'
),
[
join
(
CUB
ES_DIR
,
'basket'
,
'data'
),
[
join
(
'data'
,
fname
)
for
fname
in
listdir
(
'data'
)]],
[
join
(
TEMPLAT
ES_DIR
,
'basket'
,
'i18n'
),
[
join
(
CUB
ES_DIR
,
'basket'
,
'i18n'
),
[
join
(
'i18n'
,
fname
)
for
fname
in
listdir
(
'i18n'
)]],
[
join
(
TEMPLAT
ES_DIR
,
'basket'
,
'migration'
),
[
join
(
CUB
ES_DIR
,
'basket'
,
'migration'
),
[
join
(
'migration'
,
fname
)
for
fname
in
listdir
(
'migration'
)]],
]
except
OSError
,
ex
:
print
ex
# we are in an installed directory
pass
...
...
Write
Preview
Supports
Markdown
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