Skip to content

Commit

Permalink
added dropzone. Still some stuff to fix with the button
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonhetland committed Nov 23, 2016
1 parent 8e274e2 commit 1f41cf0
Show file tree
Hide file tree
Showing 12 changed files with 3,180 additions and 293 deletions.
383 changes: 186 additions & 197 deletions .idea/workspace.xml

Large diffs are not rendered by default.

11 changes: 10 additions & 1 deletion controllers/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,13 @@ def upload():
if form.process().accepted:
session.flash = T('Image Posted.')
redirect(URL('default','index'))
return dict(form=form)
return dict(form=form)


def upload_image():
p_id = db.image.insert(
image_content = request.vars.image,
caption = request.vars.caption
)
print p_id
return "ok"
38 changes: 19 additions & 19 deletions databases/c8b669d15150d7109e5f7ab36744a5b7_auth_user.table
Original file line number Diff line number Diff line change
Expand Up @@ -71,62 +71,62 @@ sg9
I00
sg10
g11
ssS'pp'
ssS'registration_id'
p22
(dp23
g4
I512
sg5
I00
sg6
I5
I10
sg7
S'CHAR(512)'
p24
sg9
I00
sg10
S'upload'
p25
g11
ssS'image_list'
p26
(dp27
p25
(dp26
S'sortable'
p28
p27
I12
sS'sql'
p29
p28
S'TEXT'
p30
p29
sS'length'
p31
p30
I512
sS'notnull'
p32
p31
I00
sS'unique'
p33
p32
I00
sS'type'
p34
p33
S'list:reference image'
p34
ssS'pp'
p35
ssS'registration_id'
p36
(dp37
(dp36
g4
I512
sg5
I00
sg6
I10
I5
sg7
S'CHAR(512)'
p38
p37
sg9
I00
sg10
g11
S'upload'
p38
ssS'email'
p39
(dp40
Expand Down
142 changes: 71 additions & 71 deletions databases/c8b669d15150d7109e5f7ab36744a5b7_image.table
Original file line number Diff line number Diff line change
@@ -1,150 +1,150 @@
(dp1
S'poster_id'
S'image_content'
p2
(dp3
S'sortable'
S'length'
p4
I3
sS'sql'
I512
sS'unique'
p5
S'INTEGER REFERENCES auth_user (id) ON DELETE CASCADE '
I00
sS'sortable'
p6
sS'length'
I3
sS'sql'
p7
I512
sS'notnull'
S'CHAR(512)'
p8
I00
sS'unique'
sS'notnull'
p9
I00
sS'type'
p10
S'reference auth_user'
S'upload'
p11
ssS'author'
p12
(dp13
S'length'
p14
g4
I512
sS'unique'
p15
sg5
I00
sS'sortable'
p16
sg6
I2
sS'sql'
p17
sg7
S'CHAR(512)'
p18
sS'notnull'
p19
p14
sg9
I00
sS'type'
p20
sg10
S'string'
p21
p15
ssS'like_list'
p22
(dp23
g14
p16
(dp17
g4
I512
sg15
sg5
I00
sg16
sg6
I4
sg17
sg7
S'TEXT'
p24
sg19
p18
sg9
I00
sg20
sg10
S'list:string'
p19
ssS'poster_id'
p20
(dp21
S'sortable'
p22
I3
sS'sql'
p23
S'INTEGER REFERENCES auth_user (id) ON DELETE CASCADE '
p24
sS'length'
p25
ssS'image_content'
p26
(dp27
g14
I512
sg15
sS'notnull'
p26
I00
sg16
I3
sg17
S'CHAR(512)'
p28
sg19
sS'unique'
p27
I00
sg20
S'upload'
sS'type'
p28
S'reference auth_user'
p29
ssS'caption'
p30
(dp31
g14
g4
I32768
sg15
sg5
I00
sg16
sg6
I6
sg17
sg7
S'TEXT'
p32
sg19
sg9
I00
sg20
sg10
S'text'
p33
ssS'comment_list'
p34
(dp35
g14
g4
I512
sg15
sg5
I00
sg16
sg6
I5
sg17
sg7
S'TEXT'
p36
sg19
sg9
I00
sg20
sg10
S'list:integer'
p37
ssS'id'
p38
(dp39
g14
g4
I512
sg15
sg5
I00
sg16
sg6
I1
sg17
sg7
S'INTEGER PRIMARY KEY AUTOINCREMENT'
p40
sg19
sg9
I00
sg20
sg10
S'id'
p41
ssS'posted_on'
p42
(dp43
g14
g4
I512
sg15
sg5
I00
sg16
sg6
I7
sg17
sg7
S'TIMESTAMP'
p44
sg19
sg9
I00
sg20
sg10
S'datetime'
p45
ss.
Loading

0 comments on commit 1f41cf0

Please sign in to comment.