Skip to content

Commit

Permalink
Bookmarks
Browse files Browse the repository at this point in the history
- Show bookmarks or not if not exist in db
  • Loading branch information
Kaique Silva committed Oct 1, 2011
1 parent 3b393a6 commit 879543c
Show file tree
Hide file tree
Showing 23 changed files with 101,513 additions and 17 deletions.
Binary file modified __init__.pyc
Binary file not shown.
11 changes: 6 additions & 5 deletions controllers/bookmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def new():
keywords = form.vars.keywords,
status = 'public',
creation = request.now)

response.flash = T('{0} was created !').format(form.vars.name)
elif form.errors:
response.flash = T('Oops, look who\'s wrong !')
Expand All @@ -34,11 +35,11 @@ def new():

@auth.requires_login()
def show():
'''
Mostra os bookmarks
'''
mymarks = db().select(Bookmarks.ALL, orderby=Bookmarks.creation)
return {'marks':mymarks}
'''
Mostra os bookmarks
'''
mymarks = db(Bookmarks.user == auth.user.email).select()
return {'marks':mymarks}

@auth.requires_login()
def remove():
Expand Down
16 changes: 8 additions & 8 deletions databases/c8b669d15150d7109e5f7ab36744a5b7_bookmarks.table
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ p21
ssS'user_ass'
p22
(dp23
S'sortable'
S'type'
p24
I2
sS'type'
p25
S'string'
p25
sS'sortable'
p26
I2
sS'sql'
p27
S'CHAR(512)'
Expand Down Expand Up @@ -113,13 +113,13 @@ p42
ssS'description'
p43
(dp44
S'sortable'
S'type'
p45
I5
sS'type'
p46
S'text'
p46
sS'sortable'
p47
I5
sS'sql'
p48
S'TEXT'
Expand Down
Binary file modified databases/storage.sqlite
Binary file not shown.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading

0 comments on commit 879543c

Please sign in to comment.