repo.or.cz
/
pgweb
/
local.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Update syntax for relative imports
[pgweb/local.git]
/
pgweb
/
downloads
/
struct.py
blob
c9c3f676cb1466189c4b1e131de9c708f1b7b1ea
1
from
.
models
import
Category
2
3
4
def
get_struct
():
5
# Products
6
for
c
in
Category
.
objects
.
all
():
7
yield
(
'download/products/
%s
/'
%
c
.
id
,
8
0.3
)
9
10
# Don't index the ftp browser for now - it doesn't really contain
11
# anything useful to search