diff --git a/__init__.pyc b/__init__.pyc index 41e68b7..a1729b8 100644 Binary files a/__init__.pyc and b/__init__.pyc differ diff --git a/controllers/app.py b/controllers/app.py index 98a87dd..bad41e6 100644 --- a/controllers/app.py +++ b/controllers/app.py @@ -28,3 +28,9 @@ def about(): def products(): redirect(URL('product', 'index')) return dict() + + + + +def download(): + return response.download(request, db) diff --git a/controllers/manager.py b/controllers/manager.py index 25a7e91..1c2df09 100644 --- a/controllers/manager.py +++ b/controllers/manager.py @@ -8,22 +8,32 @@ def index(): + + + @auth.requires_login() def home_slide_resources(): Validator.admin() return dict(mRows=db(db.tbHomePageSlideResources.id>0).select()) + + + @auth.requires_login() def add_home_slide_resource(): Validator.admin() - mForm = SQLFORM(db.tbHomePageSlideResources, submit_button=T('Add an image')) + mForm = SQLFORM(db.tbHomePageSlideResources, submit_button=T('Add an image'), upload=URL('download')) Validator.form_process(mForm, URL("manager", "home_slide_resources"), mOnAccepted=add_home_slide_resource_accepted) return dict(mForm=mForm) + + + + @auth.requires_login() def add_home_slide_resource_accepted(mForm): Validator.admin() @@ -31,16 +41,19 @@ def add_home_slide_resource_accepted(mForm): #Adding thumbnail. from lib_image import MyImage mRow = db.tbHomePageSlideResources(mForm.vars.id) - db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mThumbnail=MyImage.tranform(mRow.mTempImage, MyImage.THUMBNAIL_DIMENSION)) - db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mImage=MyImage.tranform(mRow.mTempImage, MyImage.IMAGE_GOOD_DIMENSION)) + db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mThumbnail=MyImage.transform(mRow.mTempImage, MyImage.THUMBNAIL_DIMENSION)) + db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mImage=MyImage.transform(mRow.mTempImage, MyImage.IMAGE_GOOD_DIMENSION)) print 'temp image', mRow.mTempImage MyFile(request.folder + 'uploads/'+str(mRow.mTempImage)).remove() pass -def download(): - return response.download(request, db) + + + + + @auth.requires_login() def remove_image(): diff --git a/controllers/product.py b/controllers/product.py index 2cdbdf3..30b5eb9 100644 --- a/controllers/product.py +++ b/controllers/product.py @@ -13,7 +13,7 @@ def index(): def add(): Validator.admin() - mForm=SQLFORM(db.tbProducts, submit_button=T('Add a product')) + mForm=SQLFORM(db.tbProducts, submit_button=T('Save and add an image')) Validator.form_process(mForm, URL('product', 'index')) @@ -26,6 +26,59 @@ def edit(): Validator.admin() Validator.valide_args(1) - return dict(mForm=SQLFORM(db.tbProducts, - db.tbProducts(request.args[0]), - submit_button=T('Save changes'))) + db.tbProducts.id.readable = False + + mForm=SQLFORM(db.tbProducts, + db.tbProducts(request.args[0]), + submit_button=T('Save changes')) + + Validator.form_process(mForm, URL('product', 'index')) + + mImages = db(db.tbProductsUploads.mProduct==request.args[0]).select() + + return dict(mForm=mForm, mImages=mImages,mFormImage=get_image_add_form(request.args[0])) + + + + +@auth.requires_login() +def get_image_add_form(mProductId): + + Validator.admin() + + mForm = FORM(LABEL(T("File")+"(s):"), INPUT(_name='mFiles', _type='file', _multiple=''), + BR(),INPUT(_type='submit', _value=T("Send images"))) + + if mForm.accepts(request.vars, formname="mForm"): + + if hasattr(request.vars, 'mFiles'): + + #fix this method to accepts one file + #if isinstance(e, list): + print '()())()()()()()()', len(request.vars.mFiles) + if len(request.vars.mFiles) > 0: + mFiles = request.vars['mFiles'] + if not isinstance(mFiles, list): + mFiles = [files] + + for f in mFiles: + mFile = db.tbProductsUploads.mFile.store(f, f.filename) + db.tbProductsUploads.insert(mFile=mFile, mFilename=f.filename, mProduct=mProductId) + db.commit() + + #redirect(URL('product', 'index')) + else: + mForm.errors.mFiles = "No files selected" + + return mForm + + +@auth.requires_login() +def get_cut_image(): + + Validator.admin() + Validator.valide_args(1) + + from lib_image import MyImage + #save file in a temp file and after remove it + return MyImage.cut(URL('app', 'download', args=[db.tbProductsUploads(request.args[0]).mFile])) diff --git a/databases/c8b669d15150d7109e5f7ab36744a5b7_auth_user.table b/databases/c8b669d15150d7109e5f7ab36744a5b7_auth_user.table index e76c885..cb77702 100755 --- a/databases/c8b669d15150d7109e5f7ab36744a5b7_auth_user.table +++ b/databases/c8b669d15150d7109e5f7ab36744a5b7_auth_user.table @@ -87,7 +87,7 @@ sg9 I00 sg10 g11 -ssS'email' +ssS'id' p25 (dp26 g4 @@ -95,17 +95,18 @@ I512 sg5 I00 sg6 -I4 +I1 sg7 -S'CHAR(512)' +S'INTEGER PRIMARY KEY AUTOINCREMENT' p27 sg9 I00 sg10 -g11 -ssS'reset_password_key' +S'id' p28 -(dp29 +ssS'reset_password_key' +p29 +(dp30 g4 I512 sg5 @@ -114,14 +115,14 @@ sg6 I7 sg7 S'CHAR(512)' -p30 +p31 sg9 I00 sg10 g11 ssS'password' -p31 -(dp32 +p32 +(dp33 g4 I512 sg5 @@ -130,15 +131,15 @@ sg6 I5 sg7 S'CHAR(512)' -p33 +p34 sg9 I00 sg10 S'password' -p34 -ssS'registration_key' p35 -(dp36 +ssS'registration_key' +p36 +(dp37 g4 I512 sg5 @@ -147,26 +148,25 @@ sg6 I6 sg7 S'CHAR(512)' -p37 +p38 sg9 I00 sg10 g11 -ssS'id' -p38 -(dp39 +ssS'email' +p39 +(dp40 g4 I512 sg5 I00 sg6 -I1 +I4 sg7 -S'INTEGER PRIMARY KEY AUTOINCREMENT' -p40 +S'CHAR(512)' +p41 sg9 I00 sg10 -S'id' -p41 +g11 ss. \ No newline at end of file diff --git a/databases/c8b669d15150d7109e5f7ab36744a5b7_tbHomePageSlideResources.table b/databases/c8b669d15150d7109e5f7ab36744a5b7_tbHomePageSlideResources.table index 5e456fe..ab2d9da 100644 --- a/databases/c8b669d15150d7109e5f7ab36744a5b7_tbHomePageSlideResources.table +++ b/databases/c8b669d15150d7109e5f7ab36744a5b7_tbHomePageSlideResources.table @@ -89,7 +89,7 @@ I00 sg10 S'boolean' p26 -ssS'mimage' +ssS'created_on' p27 (dp28 g4 @@ -97,17 +97,18 @@ I512 sg5 I00 sg6 -I3 +I7 sg7 -S'CHAR(512)' +S'TIMESTAMP' p29 sg9 I00 sg10 -g11 -ssS'created_by' +S'datetime' p30 -(dp31 +ssS'created_by' +p31 +(dp32 g4 I512 sg5 @@ -116,28 +117,27 @@ sg6 I8 sg7 S'INTEGER REFERENCES auth_user (id) ON DELETE CASCADE ' -p32 +p33 sg9 I00 sg10 g15 -ssS'created_on' -p33 -(dp34 +ssS'mimage' +p34 +(dp35 g4 I512 sg5 I00 sg6 -I7 +I3 sg7 -S'TIMESTAMP' -p35 +S'CHAR(512)' +p36 sg9 I00 sg10 -S'datetime' -p36 +g11 ssS'mfile' p37 (dp38 @@ -176,7 +176,7 @@ p49 sg9 I00 sg10 -g36 +g30 ssS'id' p50 (dp51 diff --git a/databases/c8b669d15150d7109e5f7ab36744a5b7_tbProducts.table b/databases/c8b669d15150d7109e5f7ab36744a5b7_tbProducts.table index 33652d6..1f72d46 100644 --- a/databases/c8b669d15150d7109e5f7ab36744a5b7_tbProducts.table +++ b/databases/c8b669d15150d7109e5f7ab36744a5b7_tbProducts.table @@ -2,20 +2,20 @@ S'mlabel' p2 (dp3 -S'length' +S'sortable' p4 -I512 -sS'unique' -p5 -I00 -sS'sortable' -p6 I2 sS'sql' -p7 +p5 S'CHAR(512)' -p8 +p6 +sS'length' +p7 +I512 sS'notnull' +p8 +I00 +sS'unique' p9 I00 sS'type' @@ -25,151 +25,174 @@ p11 ssS'modified_by' p12 (dp13 -g4 +S'length' +p14 I512 -sg5 +sS'unique' +p15 I00 -sg6 +sS'sortable' +p16 I10 -sg7 +sS'sql' +p17 S'INTEGER REFERENCES auth_user (id) ON DELETE CASCADE ' -p14 -sg9 +p18 +sS'notnull' +p19 I00 -sg10 +sS'type' +p20 S'reference auth_user' -p15 +p21 ssS'mpaymentinstallments' -p16 -(dp17 -g4 +p22 +(dp23 +g14 I512 -sg5 +sg15 I00 -sg6 +sg16 I4 -sg7 +sg17 S'INTEGER' -p18 -sg9 +p24 +sg19 I00 -sg10 +sg20 S'integer' -p19 +p25 +ssS'mname' +p26 +(dp27 +g14 +I512 +sg15 +I00 +sg16 +I2 +sg17 +S'CHAR(512)' +p28 +sg19 +I00 +sg20 +S'string' +p29 ssS'is_active' -p20 -(dp21 -g4 +p30 +(dp31 +g14 I512 -sg5 +sg15 I00 -sg6 +sg16 I6 -sg7 +sg17 S'CHAR(1)' -p22 -sg9 +p32 +sg19 I00 -sg10 +sg20 S'boolean' -p23 +p33 ssS'created_by' -p24 -(dp25 -g4 +p34 +(dp35 +g14 I512 -sg5 +sg15 I00 -sg6 +sg16 I8 -sg7 +sg17 S'INTEGER REFERENCES auth_user (id) ON DELETE CASCADE ' -p26 -sg9 +p36 +sg19 I00 -sg10 -g15 +sg20 +g21 ssS'misvisibletoshelf' -p27 -(dp28 -g4 +p37 +(dp38 +g14 I512 -sg5 +sg15 I00 -sg6 +sg16 I5 -sg7 +sg17 S'CHAR(1)' -p29 -sg9 +p39 +sg19 I00 -sg10 -g23 +sg20 +g33 ssS'created_on' -p30 -(dp31 -g4 +p40 +(dp41 +g14 I512 -sg5 +sg15 I00 -sg6 +sg16 I7 -sg7 +sg17 S'TIMESTAMP' -p32 -sg9 +p42 +sg19 I00 -sg10 +sg20 S'datetime' -p33 +p43 ssS'mprice' -p34 -(dp35 -g4 +p44 +(dp45 +g14 I512 -sg5 +sg15 I00 -sg6 +sg16 I3 -sg7 +sg17 S'DOUBLE' -p36 -sg9 +p46 +sg19 I00 -sg10 +sg20 S'float' -p37 +p47 ssS'modified_on' -p38 -(dp39 -g4 +p48 +(dp49 +g14 I512 -sg5 +sg15 I00 -sg6 +sg16 I9 -sg7 +sg17 S'TIMESTAMP' -p40 -sg9 +p50 +sg19 I00 -sg10 -g33 +sg20 +g43 ssS'id' -p41 -(dp42 -g4 +p51 +(dp52 +g14 I512 -sg5 +sg15 I00 -sg6 +sg16 I1 -sg7 +sg17 S'INTEGER PRIMARY KEY AUTOINCREMENT' -p43 -sg9 +p53 +sg19 I00 -sg10 +sg20 S'id' -p44 +p54 ss. \ No newline at end of file diff --git a/databases/c8b669d15150d7109e5f7ab36744a5b7_tbProductsUploads.table b/databases/c8b669d15150d7109e5f7ab36744a5b7_tbProductsUploads.table new file mode 100644 index 0000000..c9f0ec0 --- /dev/null +++ b/databases/c8b669d15150d7109e5f7ab36744a5b7_tbProductsUploads.table @@ -0,0 +1,182 @@ +(dp1 +S'modified_by' +p2 +(dp3 +S'length' +p4 +I512 +sS'unique' +p5 +I00 +sS'sortable' +p6 +I9 +sS'sql' +p7 +S'INTEGER REFERENCES auth_user (id) ON DELETE CASCADE ' +p8 +sS'notnull' +p9 +I00 +sS'type' +p10 +S'reference auth_user' +p11 +ssS'mproduct' +p12 +(dp13 +g4 +I512 +sg5 +I00 +sg6 +I2 +sg7 +S'INTEGER REFERENCES tbProducts (id) ON DELETE CASCADE ' +p14 +sg9 +I00 +sg10 +S'reference tbProducts' +p15 +ssS'is_active' +p16 +(dp17 +g4 +I512 +sg5 +I00 +sg6 +I5 +sg7 +S'CHAR(1)' +p18 +sg9 +I00 +sg10 +S'boolean' +p19 +ssS'created_by' +p20 +(dp21 +g4 +I512 +sg5 +I00 +sg6 +I7 +sg7 +S'INTEGER REFERENCES auth_user (id) ON DELETE CASCADE ' +p22 +sg9 +I00 +sg10 +g11 +ssS'filename' +p23 +(dp24 +S'sortable' +p25 +I3 +sS'sql' +p26 +S'CHAR(512)' +p27 +sS'length' +p28 +I512 +sS'notnull' +p29 +I00 +sS'unique' +p30 +I00 +sS'type' +p31 +S'string' +p32 +ssS'created_on' +p33 +(dp34 +g4 +I512 +sg5 +I00 +sg6 +I6 +sg7 +S'TIMESTAMP' +p35 +sg9 +I00 +sg10 +S'datetime' +p36 +ssS'mfile' +p37 +(dp38 +g4 +I512 +sg5 +I00 +sg6 +I4 +sg7 +S'CHAR(512)' +p39 +sg9 +I00 +sg10 +S'upload' +p40 +ssS'modified_on' +p41 +(dp42 +g4 +I512 +sg5 +I00 +sg6 +I8 +sg7 +S'TIMESTAMP' +p43 +sg9 +I00 +sg10 +g36 +ssS'mfilename' +p44 +(dp45 +g4 +I512 +sg5 +I00 +sg6 +I3 +sg7 +S'CHAR(512)' +p46 +sg9 +I00 +sg10 +S'string' +p47 +ssS'id' +p48 +(dp49 +g4 +I512 +sg5 +I00 +sg6 +I1 +sg7 +S'INTEGER PRIMARY KEY AUTOINCREMENT' +p50 +sg9 +I00 +sg10 +S'id' +p51 +ss. \ No newline at end of file diff --git a/databases/c8b669d15150d7109e5f7ab36744a5b7_uploads.table b/databases/c8b669d15150d7109e5f7ab36744a5b7_uploads.table new file mode 100644 index 0000000..19e7e32 --- /dev/null +++ b/databases/c8b669d15150d7109e5f7ab36744a5b7_uploads.table @@ -0,0 +1,132 @@ +(dp1 +S'username' +p2 +(dp3 +S'length' +p4 +I512 +sS'unique' +p5 +I00 +sS'sortable' +p6 +I2 +sS'sql' +p7 +S'CHAR(512)' +p8 +sS'notnull' +p9 +I00 +sS'type' +p10 +S'string' +p11 +ssS'up_date' +p12 +(dp13 +g4 +I512 +sg5 +I00 +sg6 +I5 +sg7 +S'TIMESTAMP' +p14 +sg9 +I00 +sg10 +S'datetime' +p15 +ssS'up_file' +p16 +(dp17 +g4 +I512 +sg5 +I00 +sg6 +I4 +sg7 +S'CHAR(512)' +p18 +sg9 +I00 +sg10 +S'upload' +p19 +ssS'id' +p20 +(dp21 +g4 +I512 +sg5 +I00 +sg6 +I1 +sg7 +S'INTEGER PRIMARY KEY AUTOINCREMENT' +p22 +sg9 +I00 +sg10 +S'id' +p23 +ssS'notes' +p24 +(dp25 +g4 +I32768 +sg5 +I00 +sg6 +I6 +sg7 +S'TEXT' +p26 +sg9 +I00 +sg10 +S'text' +p27 +ssS'up_size' +p28 +(dp29 +S'sortable' +p30 +I6 +sS'sql' +p31 +S'INTEGER' +p32 +sS'length' +p33 +I512 +sS'notnull' +p34 +I00 +sS'unique' +p35 +I00 +sS'type' +p36 +S'integer' +p37 +ssS'filename' +p38 +(dp39 +g4 +I512 +sg5 +I00 +sg6 +I3 +sg7 +S'CHAR(512)' +p40 +sg9 +I00 +sg10 +g11 +ss. \ No newline at end of file diff --git a/databases/sql.log b/databases/sql.log index c3410c1..2701672 100755 --- a/databases/sql.log +++ b/databases/sql.log @@ -3469,3 +3469,1303 @@ success! success! success! success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +timestamp: 2016-03-14T15:40:00.033992 +CREATE TABLE uploads( + id INTEGER PRIMARY KEY AUTOINCREMENT, + username CHAR(512), + filename CHAR(512), + up_file CHAR(512), + up_date TIMESTAMP, + up_size INTEGER, + notes TEXT +); +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +timestamp: 2016-03-14T16:14:38.222070 +CREATE TABLE tbProductsUploads( + id INTEGER PRIMARY KEY AUTOINCREMENT, + mProduct INTEGER REFERENCES tbProducts (id) ON DELETE CASCADE , + filename CHAR(512), + mFile CHAR(512), + is_active CHAR(1), + created_on TIMESTAMP, + created_by INTEGER REFERENCES auth_user (id) ON DELETE CASCADE , + modified_on TIMESTAMP, + modified_by INTEGER REFERENCES auth_user (id) ON DELETE CASCADE +); +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +timestamp: 2016-03-14T16:36:49.422705 +ALTER TABLE tbProductsUploads ADD mfilename CHAR(512); +success! +success! +success! +timestamp: 2016-03-14T16:37:21.614062 +ALTER TABLE tbProducts ADD mname CHAR(512); +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! +success! diff --git a/databases/storage.sqlite b/databases/storage.sqlite index 0984da3..6a05b46 100755 Binary files a/databases/storage.sqlite and b/databases/storage.sqlite differ diff --git a/errors/127.0.0.1.2016-03-14.14-55-30.3b5cc0d5-3bfe-40a3-8077-55a342e3235c b/errors/127.0.0.1.2016-03-14.14-55-30.3b5cc0d5-3bfe-40a3-8077-55a342e3235c new file mode 100644 index 0000000..6c05b2f --- /dev/null +++ b/errors/127.0.0.1.2016-03-14.14-55-30.3b5cc0d5-3bfe-40a3-8077-55a342e3235c @@ -0,0 +1,21 @@ +(dp1 +S'output' +p2 +S" class Validator has no attribute 'isAdmin'" +p3 +sS'layer' +p4 +S'/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/views/product/index.html' +p5 +sS'code' +p6 +S'response.write(\'\\n\\n\\n\\n\\n \\n \\n \\n \\n \\n\\n \', escape=False)\nresponse.write(response.title or request.application)\nresponse.write(\'\\n \\n \\n \\n \\n\\n \\n \\n\\n \\n \\n\\n \\n \\n \\n\\n \\n \\n \\n \', escape=False)\nresponse.write(\'\\n", escape=False)\nresponse.files.insert(0,URL(\'static\',\'js/jquery.js\'))\nresponse.files.insert(1,URL(\'static\',\'css/calendar.css\'))\nresponse.files.insert(2,URL(\'static\',\'js/calendar.js\'))\nresponse.files.insert(3,URL(\'static\',\'js/web2py.js\'))\nresponse.include_meta()\nresponse.include_files()\nresponse.write(\'\\n\', escape=False)\nresponse.write(\' \\n \', escape=False)\nresponse.write(\'\\n \', escape=False)\n# using sidebars need to know what sidebar you want to use\nmc0 = \'col-md-12\'\nmc1 = \'col-md-9\'\nmc2 = \'col-md-6\'\nleft_sidebar_enabled = globals().get(\'left_sidebar_enabled\', False)\nright_sidebar_enabled = globals().get(\'right_sidebar_enabled\', False)\nmiddle_column = {0: mc0, 1: mc1, 2: mc2}[\n(left_sidebar_enabled and 1 or 0)+(right_sidebar_enabled and 1 or 0)]\nresponse.write(\'\\n\\n\\n\\n\\n\\n
\', escape=False)\nresponse.write(response.title_label or response.title or request.application)\nresponse.write(\'
\\n
\', escape=False)\nresponse.write(response.subtitle or \'\')\nresponse.write(\'
\\n\\n \\n \\n\\n\\n \\n
\\n \', escape=False)\nif left_sidebar_enabled:\n response.write(\'\\n \\n \', escape=False)\n pass\nresponse.write(\'\\n\\n
\\n \', escape=False)\nresponse.write(\'\\n
\\n \', escape=False)\nresponse.write(\'\\n\\n\\n
\\n
\\n
\\n
\\n

\\n \', escape=False)\nresponse.write(T(\'Products\'))\nresponse.write(\'\\n

\\n
\\n\\n \', escape=False)\nif Validator.isAdmin():\n response.write(\'\\n \\n \\n \', escape=False)\n response.write(T(\'Add a product\'))\n response.write(\'\\n \\n \', escape=False)\n pass\nresponse.write(\'\\n\\n
\\n
\\n\\n
\\n \', escape=False)\nif len(mRows)>0:\n response.write(\'\\n \', escape=False)\n response.write(mRows)\n response.write(\'\\n \', escape=False)\nelse:\n response.write(\'\\n

\', escape=False)\n response.write(T(\'No records\'))\n response.write(\'!

\\n \', escape=False)\n pass\nresponse.write(\'\\n
\\n
\\n\', escape=False)\nresponse.write(\'\\n
\\n \', escape=False)\nresponse.write(\'\\n
\\n\\n \', escape=False)\nif right_sidebar_enabled:\n response.write(\'\\n
\\n \', escape=False)\n response.write(\'\\n

Right Sidebar

\\n

\\n \', escape=False)\n response.write(\'\\n
\\n \', escape=False)\n pass\nresponse.write(\'\\n\\n
\\n\\n\\n\\n \\n\\n \\n \\n\\n \\n \\n\\n \\n \\n\\n\\n\\n\\n\\n\\n\', escape=False)' +p7 +sS'snapshot' +p8 +(dp9 +sS'traceback' +p10 +S'Traceback (most recent call last):\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/restricted.py", line 227, in restricted\n exec ccode in environment\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/views/product/index.html", line 111, in \nAttributeError: class Validator has no attribute \'isAdmin\'\n' +p11 +s. \ No newline at end of file diff --git a/errors/127.0.0.1.2016-03-14.15-42-21.f36e406d-a9b0-4074-b46f-5004f3300bc7 b/errors/127.0.0.1.2016-03-14.15-42-21.f36e406d-a9b0-4074-b46f-5004f3300bc7 new file mode 100644 index 0000000..2c8797f --- /dev/null +++ b/errors/127.0.0.1.2016-03-14.15-42-21.f36e406d-a9b0-4074-b46f-5004f3300bc7 @@ -0,0 +1,470 @@ +(dp1 +S'output' +p2 +S" global name 'quikr_utils' is not defined" +p3 +sS'layer' +p4 +S'/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/views/appadmin.html' +p5 +sS'code' +p6 +S'response.write(\'\\n \\n \\n \\n \\n \\n \\n \\n \\n \', escape=False)\nresponse.write(response.title or request.application)\nresponse.write(\'\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \', escape=False)\nresponse.write(\'\\n", escape=False)\nresponse.files.insert(0,URL(\'static\',\'js/jquery.js\'))\nresponse.files.insert(1,URL(\'static\',\'css/calendar.css\'))\nresponse.files.insert(2,URL(\'static\',\'js/calendar.js\'))\nresponse.files.insert(3,URL(\'static\',\'js/web2py.js\'))\nresponse.include_meta()\nresponse.include_files()\nresponse.write(\'\\n\', escape=False)\nresponse.write(\' \\n \', escape=False)\nresponse.write(\'\\n \', escape=False)\n# using sidebars need to know what sidebar you want to use\nmc0 = \'col-md-12\'\nmc1 = \'col-md-9\'\nmc2 = \'col-md-6\'\nleft_sidebar_enabled = globals().get(\'left_sidebar_enabled\', False)\nright_sidebar_enabled = globals().get(\'right_sidebar_enabled\', False)\nmiddle_column = {0: mc0, 1: mc1, 2: mc2}[\n(left_sidebar_enabled and 1 or 0)+(right_sidebar_enabled and 1 or 0)]\nresponse.write(\'\\n \\n \\n \\n
\', escape=False)\nresponse.write(response.flash or \'\')\nresponse.write(\'
\\n \\n \\n \\n \', escape=False)\nresponse.write(\'\\n \', escape=False)\nresponse.write(\'\\n \\n \\n
\\n \', escape=False)\nif left_sidebar_enabled:\n response.write(\'\\n \\n \', escape=False)\n pass\nresponse.write(\'\\n\\n
\\n \', escape=False)\nresponse.write(\'\\n \', escape=False)\nresponse.write(\'\\n\\n\\n\', escape=False)\nif request.function==\'index\':\n response.write(\'\\n

\', escape=False)\n response.write(T("Available Databases and Tables"))\n response.write(\'

\\n \', escape=False)\n if not databases:\n response.write(T("No databases in this application"))\n pass\n response.write(\'\\n \\n
\\n
\\n \\n \', escape=False)\n for db in sorted(databases):\n response.write(\'\\n \', escape=False)\n for table in databases[db].tables:\n response.write(\'\\n \', escape=False)\n qry=\'%s.%s.id>0\'%(db,table)\n response.write(\'\\n \', escape=False)\n tbl=databases[db][table]\n response.write(\'\\n \', escape=False)\n if hasattr(tbl,\'_primarykey\'):\n response.write(\'\\n \', escape=False)\n if tbl._primarykey:\n response.write(\'\\n \', escape=False)\n firstkey=tbl[tbl._primarykey[0]]\n response.write(\'\\n \', escape=False)\n if firstkey.type in [\'string\',\'text\']:\n response.write(\'\\n \', escape=False)\n qry=\'%s.%s.%s!=""\'%(db,table,firstkey.name)\n response.write(\'\\n \', escape=False)\n else:\n response.write(\'\\n \', escape=False)\n qry=\'%s.%s.%s>0\'%(db,table,firstkey.name)\n response.write(\'\\n \', escape=False)\n pass\n response.write(\'\\n \', escape=False)\n else:\n response.write(\'\\n \', escape=False)\n qry=\'\'\n response.write(\'\\n \', escape=False)\n pass\n response.write(\'\\n \', escape=False)\n pass\n response.write(\'\\n \\n \\n \\n \\n \', escape=False)\n pass\n response.write(\'\\n \', escape=False)\n pass\n response.write(\'\\n
\\n \', escape=False)\n response.write(A("%s.%s" % (db,table),_href=URL(\'select\',args=[db],vars=dict(query=qry))))\n response.write(\'\\n \\n \', escape=False)\n response.write(A(str(T(\'New Record\')),_href=URL(\'insert\',args=[db,table]),_class="btn btn-default"))\n response.write(\'\\n
\\n
\\n
\\n \', escape=False)\n response.write(LOAD(\'appadmin\', \'hooks\', ajax=True))\n response.write(\'\\n
\\n
\\n\', escape=False)\nelif request.function==\'select\':\n response.write(\'\\n

\', escape=False)\n response.write(XML(str(T("Database %s select"))%A(request.args[0],_href=URL(\'index\'))))\n response.write(\'\\n

\\n \', escape=False)\n if tb:\n response.write(\'\\n

\', escape=False)\n response.write(T(\'Traceback\'))\n response.write(\'

\\n
\\n    \', escape=False)\n        response.write(tb)\n        response.write(\'\\n  
\\n \', escape=False)\n pass\n response.write(\'\\n \', escape=False)\n if table:\n response.write(\'\\n \', escape=False)\n response.write(A(str(T(\'New Record\')),_href=URL(\'insert\',args=[request.args[0],table]),_class="btn btn-default"))\n response.write(\'

\\n

\', escape=False)\n response.write(T("Rows in Table"))\n response.write(\'


\\n \', escape=False)\n else:\n response.write(\'\\n

\', escape=False)\n response.write(T("Rows selected"))\n response.write(\'


\\n \', escape=False)\n pass\n response.write(\'\\n \', escape=False)\n response.write(form)\n response.write(\'\\n

\', escape=False)\n response.write(T(\'The "query" is a condition like "db.table1.field1==\\\'value\\\'". Something like "db.table1.field1==db.table2.field2" results in a SQL JOIN.\'))\n response.write(\'
\\n \', escape=False)\n response.write(T(\'Use (...)&(...) for AND, (...)|(...) for OR, and ~(...) for NOT to build more complex queries.\'))\n response.write(\'
\\n \', escape=False)\n response.write(T(\'"update" is an optional expression like "field1=\\\'newvalue\\\'". You cannot update or delete the results of a JOIN\'))\n response.write(\'

\\n

\\n

\', escape=False)\n response.write(T("%s selected", nrows))\n response.write(\'

\\n \', escape=False)\n if start>0:\n response.write(A(T(\'previous %s rows\') % step,_href=URL(\'select\',args=request.args[0],vars=dict(start=start-step)),_class="btn btn-default"))\n pass\n response.write(\'\\n \', escape=False)\n if stop\\n \', escape=False)\n linkto = lambda f, t, r: URL(\'update\', args=[request.args[0], r, f]) if f else "#"\n response.write(\'\\n \', escape=False)\n upload=URL(\'download\',args=request.args[0])\n response.write(\'\\n \', escape=False)\n response.write(SQLTABLE(rows,linkto,upload,orderby=True,_class=\'sortable\'))\n response.write(\'\\n
\\n \', escape=False)\n pass\n response.write(\'\\n

\', escape=False)\n response.write(T("Import/Export"))\n response.write(\'


\\n \', escape=False)\n response.write(T("export as csv file"))\n response.write(\'\\n \', escape=False)\n response.write(formcsv or \'\')\n response.write(\'\\n\\n\', escape=False)\nelif request.function==\'insert\':\n response.write(\'\\n

\', escape=False)\n response.write(T("Database"))\n response.write(\' \', escape=False)\n response.write(A(request.args[0],_href=URL(\'index\')))\n response.write(\'\\n \', escape=False)\n if hasattr(table,\'_primarykey\'):\n response.write(\'\\n \', escape=False)\n fieldname=table._primarykey[0]\n response.write(\'\\n \', escape=False)\n dbname=request.args[0]\n response.write(\'\\n \', escape=False)\n tablename=request.args[1]\n response.write(\'\\n \', escape=False)\n cond = table[fieldname].type in [\'string\',\'text\'] and \'!=""\' or \'>0\'\n response.write(\'\\n \', escape=False)\n response.write(T("Table"))\n response.write(\' \', escape=False)\n response.write(A(tablename,_href=URL(\'select\',args=dbname,vars=dict(query=\'%s.%s.%s%s\'%(dbname,tablename,fieldname,cond)))))\n response.write(\'\\n \', escape=False)\n else:\n response.write(\'\\n \', escape=False)\n response.write(T("Table"))\n response.write(\' \', escape=False)\n response.write(A(request.args[1],_href=URL(\'select\',args=request.args[0],vars=dict(query=\'%s.%s.id>0\'%tuple(request.args[:2])))))\n response.write(\'\\n \', escape=False)\n pass\n response.write(\'\\n

\\n

\', escape=False)\n response.write(T("New Record"))\n response.write(\'


\\n \', escape=False)\n response.write(form)\n response.write(\'\\n\', escape=False)\nelif request.function==\'update\':\n response.write(\'\\n

\', escape=False)\n response.write(T("Database"))\n response.write(\' \', escape=False)\n response.write(A(request.args[0],_href=URL(\'index\')))\n response.write(\'\\n \', escape=False)\n if hasattr(table,\'_primarykey\'):\n response.write(\'\\n \', escape=False)\n fieldname=request.vars.keys()[0]\n response.write(\'\\n \', escape=False)\n dbname=request.args[0]\n response.write(\'\\n \', escape=False)\n tablename=request.args[1]\n response.write(\'\\n \', escape=False)\n cond = table[fieldname].type in [\'string\',\'text\'] and \'!=""\' or \'>0\'\n response.write(\'\\n \', escape=False)\n response.write(T("Table"))\n response.write(\' \', escape=False)\n response.write(A(tablename,_href=URL(\'select\',args=dbname,vars=dict(query=\'%s.%s.%s%s\'%(dbname,tablename,fieldname,cond)))))\n response.write(\'\\n \', escape=False)\n response.write(T("Record"))\n response.write(\' \', escape=False)\n response.write(A(\'%s=%s\'%request.vars.items()[0],_href=URL(\'update\',args=request.args[:2],vars=request.vars)))\n response.write(\'\\n \', escape=False)\n else:\n response.write(\'\\n \', escape=False)\n response.write(T("Table"))\n response.write(\' \', escape=False)\n response.write(A(request.args[1],_href=URL(\'select\',args=request.args[0],vars=dict(query=\'%s.%s.id>0\'%tuple(request.args[:2])))))\n response.write(\'\\n \', escape=False)\n response.write(T("Record id"))\n response.write(\' \', escape=False)\n response.write(A(request.args[2],_href=URL(\'update\',args=request.args[:3])))\n response.write(\'\\n \', escape=False)\n pass\n response.write(\'\\n

\\n

\', escape=False)\n response.write(T("Edit current record"))\n response.write(\'



\', escape=False)\n response.write(form)\n response.write(\'\\n\\n\', escape=False)\nelif request.function==\'state\':\n response.write(\'\\n

\', escape=False)\n response.write(T("Internal State"))\n response.write(\'

\\n

\', escape=False)\n response.write(T("Current request"))\n response.write(\'

\\n \', escape=False)\n response.write(BEAUTIFY(request))\n response.write(\'\\n

\', escape=False)\n response.write(T("Current response"))\n response.write(\'

\\n \', escape=False)\n response.write(BEAUTIFY(response))\n response.write(\'\\n

\', escape=False)\n response.write(T("Current session"))\n response.write(\'

\\n \', escape=False)\n response.write(BEAUTIFY(session))\n response.write(\'\\n\\n\\n\', escape=False)\nelif request.function == \'ccache\':\n response.write(\'\\n

\', escape=False)\n T("Cache")\n response.write(\'

\\n
\\n\\n
\\n

\', escape=False)\n T("Statistics")\n response.write(\'

\\n
\\n\\n
\\n

\', escape=False)\n response.write(T("Overview"))\n response.write(\'

\\n

\', escape=False)\n response.write(T.M("Number of entries: **%s**", total[\'entries\']))\n response.write(\'

\\n \', escape=False)\n if total[\'entries\'] > 0:\n response.write(\'\\n

\', escape=False)\n response.write(T.M("Hit Ratio: **%(ratio)s%%** (**%(hits)s** %%{hit(hits)} and **%(misses)s** %%{miss(misses)})",\n dict( ratio=total[\'ratio\'], hits=total[\'hits\'], misses=total[\'misses\'])))\n response.write(\'\\n

\\n

\\n \', escape=False)\n response.write(T("Size of cache:"))\n response.write(\'\\n \', escape=False)\n if object_stats:\n response.write(\'\\n \', escape=False)\n response.write(T.M("**%(items)s** %%{item(items)}, **%(bytes)s** %%{byte(bytes)}", dict(items=total[\'objects\'], bytes=total[\'bytes\'])))\n response.write(\'\\n \', escape=False)\n if total[\'bytes\'] > 524287:\n response.write(\'\\n \', escape=False)\n response.write(T.M("(**%.0d MB**)", total[\'bytes\'] / 1048576))\n response.write(\'\\n \', escape=False)\n pass\n response.write(\'\\n \', escape=False)\n else:\n response.write(\'\\n \', escape=False)\n response.write(T.M("**not available** (requires the Python [[guppy http://pypi.python.org/pypi/guppy/ popup]] library)"))\n response.write(\'\\n \', escape=False)\n pass\n response.write(\'\\n

\\n

\\n \', escape=False)\n response.write(T.M("Cache contains items up to **%(hours)02d** %%{hour(hours)} **%(min)02d** %%{minute(min)} **%(sec)02d** %%{second(sec)} old.",\n dict(hours=total[\'oldest\'][0], min=total[\'oldest\'][1], sec=total[\'oldest\'][2])))\n response.write(\'\\n

\\n \', escape=False)\n response.write(BUTTON(T(\'Cache Keys\'), _onclick=\'jQuery("#all_keys").toggle().toggleClass( "w2p_hidden" );\'))\n response.write(\'\\n
\\n \', escape=False)\n response.write(total[\'keys\'])\n response.write(\'\\n
\\n
\\n \', escape=False)\n pass\n response.write(\'\\n\\n

\', escape=False)\n response.write(T("RAM"))\n response.write(\'

\\n

\', escape=False)\n response.write(T.M("Number of entries: **%s**", ram[\'entries\']))\n response.write(\'

\\n \', escape=False)\n if ram[\'entries\'] > 0:\n response.write(\'\\n

\', escape=False)\n response.write(T.M("Hit Ratio: **%(ratio)s%%** (**%(hits)s** %%{hit(hits)} and **%(misses)s** %%{miss(misses)})",\n dict( ratio=ram[\'ratio\'], hits=ram[\'hits\'], misses=ram[\'misses\'])))\n response.write(\'\\n

\\n

\\n \', escape=False)\n response.write(T("Size of cache:"))\n response.write(\'\\n \', escape=False)\n if object_stats:\n response.write(\'\\n \', escape=False)\n response.write(T.M("**%(items)s** items, **%(bytes)s** %%{byte(bytes)}", dict(items=ram[\'objects\'], bytes=ram[\'bytes\'])))\n response.write(\'\\n \', escape=False)\n if ram[\'bytes\'] > 524287:\n response.write(\'\\n \', escape=False)\n response.write(T.M("(**%.0d MB**)", ram[\'bytes\'] / 10485576))\n response.write(\'\\n \', escape=False)\n pass\n response.write(\'\\n \', escape=False)\n else:\n response.write(\'\\n \', escape=False)\n response.write(T.M("``**not available**``:red (requires the Python [[guppy http://pypi.python.org/pypi/guppy/ popup]] library)"))\n response.write(\'\\n \', escape=False)\n pass\n response.write(\'\\n

\\n

\\n \', escape=False)\n response.write(T.M("RAM contains items up to **%(hours)02d** %%{hour(hours)} **%(min)02d** %%{minute(min)} **%(sec)02d** %%{second(sec)} old.",\n dict(hours=ram[\'oldest\'][0], min=ram[\'oldest\'][1], sec=ram[\'oldest\'][2])))\n response.write(\'\\n

\\n \', escape=False)\n response.write(BUTTON(T(\'RAM Cache Keys\'), _onclick=\'jQuery("#ram_keys").toggle().toggleClass( "w2p_hidden" );\'))\n response.write(\'\\n
\\n \', escape=False)\n response.write(ram[\'keys\'])\n response.write(\'\\n
\\n
\\n \', escape=False)\n pass\n response.write(\'\\n\\n

\', escape=False)\n response.write(T("DISK"))\n response.write(\'

\\n

\', escape=False)\n response.write(T.M("Number of entries: **%s**", disk[\'entries\']))\n response.write(\'

\\n \', escape=False)\n if disk[\'entries\'] > 0:\n response.write(\'\\n

\\n \', escape=False)\n response.write(T.M("Hit Ratio: **%(ratio)s%%** (**%(hits)s** %%{hit(hits)} and **%(misses)s** %%{miss(misses)})",\n dict(ratio=disk[\'ratio\'], hits=disk[\'hits\'], misses=disk[\'misses\'])))\n response.write(\'\\n

\\n

\\n \', escape=False)\n response.write(T("Size of cache:"))\n response.write(\'\\n \', escape=False)\n if object_stats:\n response.write(\'\\n \', escape=False)\n response.write(T.M("**%(items)s** %%{item(items)}, **%(bytes)s** %%{byte(bytes)}", dict( items=disk[\'objects\'], bytes=disk[\'bytes\'])))\n response.write(\'\\n \', escape=False)\n if disk[\'bytes\'] > 524287:\n response.write(\'\\n \', escape=False)\n response.write(T.M("(**%.0d MB**)", disk[\'bytes\'] / 1048576))\n response.write(\'\\n \', escape=False)\n pass\n response.write(\'\\n \', escape=False)\n else:\n response.write(\'\\n \', escape=False)\n response.write(T.M("``**not available**``:red (requires the Python [[guppy http://pypi.python.org/pypi/guppy/ popup]] library)"))\n response.write(\'\\n \', escape=False)\n pass\n response.write(\'\\n

\\n

\\n \', escape=False)\n response.write(T.M("DISK contains items up to **%(hours)02d** %%{hour(hours)} **%(min)02d** %%{minute(min)} **%(sec)02d** %%{second(sec)} old.",\n dict(hours=disk[\'oldest\'][0], min=disk[\'oldest\'][1], sec=disk[\'oldest\'][2])))\n response.write(\'\\n

\\n \', escape=False)\n response.write(BUTTON(T(\'Disk Cache Keys\'), _onclick=\'jQuery("#disk_keys").toggle().toggleClass( "w2p_hidden" );\'))\n response.write(\'\\n
\\n \', escape=False)\n response.write(disk[\'keys\'])\n response.write(\'\\n
\\n
\\n \', escape=False)\n pass\n response.write(\'\\n
\\n\\n
\\n

\', escape=False)\n response.write(T("Manage Cache"))\n response.write(\'

\\n
\\n\\n
\\n

\\n \', escape=False)\n response.write(form)\n response.write(\'\\n

\\n
\\n
\\n
\\n\', escape=False)\n pass\nresponse.write(\'\\n\\n\', escape=False)\nif request.function==\'graph_model\':\n response.write(\'\\n

\', escape=False)\n response.write(T("Graph Model"))\n response.write(\'

\\n \', escape=False)\n if not pgv:\n response.write(\'\\n \', escape=False)\n response.write(T(\'pygraphviz library not found\'))\n response.write(\'\\n \', escape=False)\n elif not databases:\n response.write(\'\\n \', escape=False)\n response.write(T("No databases in this application"))\n response.write(\'\\n \', escape=False)\n else:\n response.write(\'\\t \\n \\n
\\n \', escape=False)\n response.write(IMG(_src=URL(\'appadmin\', \'bg_graph_model\')))\n response.write(\'\\n \', escape=False)\n pass\n response.write(\'\\n\', escape=False)\n pass\nresponse.write(\'\\n\\n\', escape=False)\nif request.function == \'manage\':\n response.write(\'\\n

\', escape=False)\n response.write(heading)\n response.write(\'

\\n\\n\\n
\\n \', escape=False)\n for k, tablename in enumerate(tablenames):\n response.write(\'\\n
\\n \', escape=False)\n response.write(LOAD(f=\'manage.load\', args=[request.args(0), k], ajax=True))\n response.write(\'\\n
\\n \', escape=False)\n pass\n response.write(\'\\n
\\n\', escape=False)\n pass\nresponse.write(\'\\n\', escape=False)\nresponse.write(\'\\n \', escape=False)\nresponse.write(\'\\n
\\n\\n \', escape=False)\nif right_sidebar_enabled:\n response.write(\'\\n
\\n \', escape=False)\n response.write(\'\\n

Right Sidebar

\\n

\\n \', escape=False)\n response.write(\'\\n
\\n \', escape=False)\n pass\nresponse.write(\'\\n\\n \\n\\n \', escape=False)\nresponse.write(\' \\n
\\n
\\n \\n
\\n \', escape=False)\nresponse.write(T(\'Powered by\'))\nresponse.write(\'\\n web2py\\n
\\n
\\n
\\n \', escape=False)\nresponse.write(\'\\n \\n \\n \\n \', escape=False)\nresponse.write(\'\\n \', escape=False)\nif response.google_analytics_id:\n response.write(\'\\n \\n \\n \\n ", escape=False)\n pass\nresponse.write(\'\\n \\n \\n \\n\\n\', escape=False)' +p7 +sS'snapshot' +p8 +(dp9 +S'exception' +p10 +(dp11 +S'__hash__' +p12 +S"" +p13 +sS'__setattr__' +p14 +S"" +p15 +sS'__reduce_ex__' +p16 +S'' +p17 +sS'__getslice__' +p18 +S"" +p19 +sS'__getitem__' +p20 +S"" +p21 +sS'__setstate__' +p22 +S'' +p23 +sS'args' +p24 +S'("global name \'quikr_utils\' is not defined",)' +p25 +sS'__reduce__' +p26 +S'' +p27 +sS'__str__' +p28 +S"" +p29 +sS'__format__' +p30 +S'' +p31 +sS'__getattribute__' +p32 +S"" +p33 +sS'__class__' +p34 +S"" +p35 +sS'__unicode__' +p36 +S'' +p37 +sS'__delattr__' +p38 +S"" +p39 +sS'__subclasshook__' +p40 +S'' +p41 +sS'__repr__' +p42 +S"" +p43 +sS'__dict__' +p44 +S'{}' +p45 +sS'__sizeof__' +p46 +S'' +p47 +sS'__doc__' +p48 +S"'Name not found globally.'" +p49 +sS'__init__' +p50 +S"" +p51 +sS'__new__' +p52 +S'' +p53 +ssS'evalue' +p54 +S"global name 'quikr_utils' is not defined" +p55 +sS'request' +p56 +cgluon.html +XML_unpickle +p57 +(S's\x90Z\x00\x00
ajax:
False
application:
perimoveis
args:
db
cid:
None
client:
127.0.0.1
controller:
appadmin
cookies:
session_id_admin:
127.0.0.1-09a993f5-cd18-4800-a1c0-fef93f6fa0ad
comment:
domain:
expires:
httponly:
max-age:
path:
secure:
version:
session_id_perimoveis:
127.0.0.1-7ad8c0e0-97c3-4b49-925f-a0e143d4853a
comment:
domain:
expires:
httponly:
max-age:
path:
secure:
version:
env:
HTTP_ACCEPT:
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_ACCEPT_ENCODING:
gzip, deflate, sdch
HTTP_ACCEPT_LANGUAGE:
pt,en-US;q=0.8,en;q=0.6
HTTP_CONNECTION:
keep-alive
HTTP_COOKIE:
session_id_admin=127.0.0.1-09a993f5-cd18-4800-a1c0-fef93f6fa0ad; session_id_perimoveis=127.0.0.1-7ad8c0e0-97c3-4b49-925f-a0e143d4853a
HTTP_HOST:
localhost:8080
HTTP_REFERER:
http://localhost:8080/perimoveis/appadmin/index
HTTP_UPGRADE_INSECURE_REQUESTS:
1
HTTP_USER_AGENT:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36
PATH_INFO:
/perimoveis/appadmin/select/db
QUERY_STRING:
query=db.uploads.id%3E0
REMOTE_ADDR:
127.0.0.1
REMOTE_PORT:
52629
REQUEST_METHOD:
GET
SCRIPT_NAME:
SERVER_NAME:
Fabios-Mac-mini.local
SERVER_PORT:
8080
SERVER_PROTOCOL:
HTTP/1.1
SERVER_SOFTWARE:
Rocket 1.2.6
app_folders:
set(['/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/', '/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/admin/'])
applications_parent:
/Users/fabiofilho/Documents/Deployment/Web2Py/web2py
cmd_args:
cmd_options:
<Values at 0x10673c1b8: {'verbose': False, 'ip': '0.0.0.0', 'debuglevel': 30, 'with_scheduler': False, 'ips': ['192.168.0.232', '2804:14d:5cb8:8d9f:aa8e:24ff:fea3:b6f7', 'fe80::aa8e:24ff:fea3:b6f7%en1'], 'shutdown_timeout': 5, 'taskbar': False, 'with_coverage': False, 'scheduler_groups': None, 'port': 8080, 'maxthreads': None, 'softcron': False, 'server_name': 'Fabios-Mac-mini.local', 'bpython': False, 'nogui': False, 'pid_filename': 'httpserver.pid', 'print_errors': False, 'extcron': False, 'runcron': False, 'run_system_tests': False, 'test': None, 'folder': '/Users/fabiofilho/Documents/Deployment/Web2Py/web2py', 'config': '', 'minthreads': None, 'shell': None, 'run': '', 'log_filename': 'httpserver.log', 'profiler_dir': None, 'args': [''], 'socket_timeout': 5, 'ssl_ca_certificate': None, 'scheduler': None, 'interfaces': None, 'ssl_private_key': '', 'gae': None, 'password': 'a', 'request_queue_size': 5, 'ssl_certificate': '', 'cronjob': False, 'numthreads': None, 'quiet': False, 'import_models': False, 'timeout': 10, 'plain': False, 'nobanner': False}>
db_sessions:
set([])
debugging:
False
gluon_parent:
/Users/fabiofilho/Documents/Deployment/Web2Py/web2py
http_accept:
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
http_accept_encoding:
gzip, deflate, sdch
http_accept_language:
pt,en-US;q=0.8,en;q=0.6
http_connection:
keep-alive
http_cookie:
session_id_admin=127.0.0.1-09a993f5-cd18-4800-a1c0-fef93f6fa0ad; session_id_perimoveis=127.0.0.1-7ad8c0e0-97c3-4b49-925f-a0e143d4853a
http_host:
localhost:8080
http_referer:
http://localhost:8080/perimoveis/appadmin/index
http_upgrade_insecure_requests:
1
http_user_agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36
is_jython:
False
is_pypy:
False
is_source:
True
local_hosts:
Fabios-Mac-mini.local
fabios-mac-mini.local
::ffff:127.0.0.1
::1
fe80::aa8e:24ff:fea3:b6f7%en1
192.168.0.232
2804:14d:5cb8:8d9f:aa8e:24ff:fea3:b6f7
127.0.0.1
path_info:
/perimoveis/appadmin/select/db
query_string:
query=db.uploads.id%3E0
remote_addr:
127.0.0.1
remote_port:
52629
request_method:
GET
request_uri:
/perimoveis/appadmin/select/db?query=db.uploads.id%3E0
script_name:
server_name:
Fabios-Mac-mini.local
server_port:
8080
server_protocol:
HTTP/1.1
server_software:
Rocket 1.2.6
web2py_path:
/Users/fabiofilho/Documents/Deployment/Web2Py/web2py
web2py_version:
2.13.4-stable+timestamp.2015.12.26.04.59.39
wsgi.errors:
<open file '<stderr>', mode 'w' at 0x10519e1e0>
wsgi.file_wrapper:
<class wsgiref.util.FileWrapper at 0x1066e72c0>
wsgi.input:
<socket._fileobject object at 0x107a63650>
wsgi.multiprocess:
False
wsgi.multithread:
True
wsgi.run_once:
False
wsgi.url_scheme:
http
wsgi.version:
1
0
wsgi_errors:
<open file '<stderr>', mode 'w' at 0x10519e1e0>
wsgi_file_wrapper:
<class wsgiref.util.FileWrapper at 0x1066e72c0>
wsgi_input:
<socket._fileobject object at 0x107a63650>
wsgi_multiprocess:
False
wsgi_multithread:
True
wsgi_run_once:
False
wsgi_url_scheme:
http
wsgi_version:
1
0
extension:
html
folder:
/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/
function:
select
global_settings:
app_folders:
set(['/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/', '/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/admin/'])
applications_parent:
/Users/fabiofilho/Documents/Deployment/Web2Py/web2py
cmd_args:
cmd_options:
<Values at 0x10673c1b8: {'verbose': False, 'ip': '0.0.0.0', 'debuglevel': 30, 'with_scheduler': False, 'ips': ['192.168.0.232', '2804:14d:5cb8:8d9f:aa8e:24ff:fea3:b6f7', 'fe80::aa8e:24ff:fea3:b6f7%en1'], 'shutdown_timeout': 5, 'taskbar': False, 'with_coverage': False, 'scheduler_groups': None, 'port': 8080, 'maxthreads': None, 'softcron': False, 'server_name': 'Fabios-Mac-mini.local', 'bpython': False, 'nogui': False, 'pid_filename': 'httpserver.pid', 'print_errors': False, 'extcron': False, 'runcron': False, 'run_system_tests': False, 'test': None, 'folder': '/Users/fabiofilho/Documents/Deployment/Web2Py/web2py', 'config': '', 'minthreads': None, 'shell': None, 'run': '', 'log_filename': 'httpserver.log', 'profiler_dir': None, 'args': [''], 'socket_timeout': 5, 'ssl_ca_certificate': None, 'scheduler': None, 'interfaces': None, 'ssl_private_key': '', 'gae': None, 'password': 'a', 'request_queue_size': 5, 'ssl_certificate': '', 'cronjob': False, 'numthreads': None, 'quiet': False, 'import_models': False, 'timeout': 10, 'plain': False, 'nobanner': False}>
db_sessions:
set([])
debugging:
False
gluon_parent:
/Users/fabiofilho/Documents/Deployment/Web2Py/web2py
is_jython:
False
is_pypy:
False
is_source:
True
local_hosts:
Fabios-Mac-mini.local
fabios-mac-mini.local
::ffff:127.0.0.1
::1
fe80::aa8e:24ff:fea3:b6f7%en1
192.168.0.232
2804:14d:5cb8:8d9f:aa8e:24ff:fea3:b6f7
127.0.0.1
web2py_version:
2.13.4-stable+timestamp.2015.12.26.04.59.39
is_https:
False
is_local:
True
is_restful:
False
is_scheduler:
False
is_shell:
False
now:
datetime.datetime(2016, 3, 14, 15, 42, 21, 128634)
raw_args:
db
raw_extension:
None
url:
/perimoveis/appadmin/select/db
utcnow:
datetime.datetime(2016, 3, 14, 18, 42, 21, 128645)
wsgi:
<gluon.main.LazyWSGI object at 0x107723c50>
' +tRp58 +sS'frames' +p59 +(lp60 +(dp61 +S'file' +p62 +S'/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/restricted.py' +p63 +sS'dump' +p64 +(dp65 +S'environment' +p66 +S"{'A': , 'ANY_OF': , 'ASSIGNJS': , 'AppConfig': , 'Auth': , 'B': , 'BEAUTIFY': , 'BODY': , 'BR': , 'BUTTON': , ...}" +p67 +sS'ccode' +p68 +S' at 0x1075ec030, file "/Use...ications/perimoveis/views/appadmin.html", line 1>' +p69 +ssS'lnum' +p70 +I227 +sS'lines' +p71 +(dp72 +I224 +S' ccode = code' +p73 +sI225 +S' else:' +p74 +sI226 +S' ccode = compile2(code, layer)' +p75 +sI227 +S' exec ccode in environment' +p76 +sI228 +S' except HTTP:' +p77 +sI229 +S' raise' +p78 +sI230 +S' except RestrictedError:' +p79 +sI231 +S' # do not encapsulate (obfuscate) the original RestrictedError' +p80 +sI222 +S' try:' +p81 +sI223 +S' if isinstance(code, types.CodeType):' +p82 +ssS'call' +p83 +S'(code=\'response.write(\\\'\\\\n\\n \\n \\n \\n\\n \\n \\n\\n \\n \\n\\n \\n \\n \\n\\n \\n \\n \\n \', escape=False)\nresponse.write(\'\\n", escape=False)\nresponse.files.insert(0,URL(\'static\',\'js/jquery.js\'))\nresponse.files.insert(1,URL(\'static\',\'css/calendar.css\'))\nresponse.files.insert(2,URL(\'static\',\'js/calendar.js\'))\nresponse.files.insert(3,URL(\'static\',\'js/web2py.js\'))\nresponse.include_meta()\nresponse.include_files()\nresponse.write(\'\\n\', escape=False)\nresponse.write(\' \\n \', escape=False)\nresponse.write(\'\\n \', escape=False)\n# using sidebars need to know what sidebar you want to use\nmc0 = \'col-md-12\'\nmc1 = \'col-md-9\'\nmc2 = \'col-md-6\'\nleft_sidebar_enabled = globals().get(\'left_sidebar_enabled\', False)\nright_sidebar_enabled = globals().get(\'right_sidebar_enabled\', False)\nmiddle_column = {0: mc0, 1: mc1, 2: mc2}[\n(left_sidebar_enabled and 1 or 0)+(right_sidebar_enabled and 1 or 0)]\nresponse.write(\'\\n\\n\\n\\n\\n\\n
\', escape=False)\nresponse.write(response.title_label or response.title or request.application)\nresponse.write(\'
\\n
\', escape=False)\nresponse.write(response.subtitle or \'\')\nresponse.write(\'
\\n\\n \\n \\n\\n\\n \\n
\\n \', escape=False)\nif left_sidebar_enabled:\n response.write(\'\\n \\n \', escape=False)\n pass\nresponse.write(\'\\n\\n
\\n \', escape=False)\nresponse.write(\'\\n
\\n \', escape=False)\nresponse.write(\'\\n\\n\\n
\\n
\\n
\\n
\\n

\\n \', escape=False)\nresponse.write(T(\'Products\'))\nresponse.write(\'\\n

\\n
\\n\\n \', escape=False)\nif Utilities.is_admin():\n response.write(\'\\n \\n \', escape=False)\n pass\nresponse.write(\'\\n\\n
\\n
\\n\\n
\\n \', escape=False)\nif len(mRows)>0:\n response.write(\'\\n \\n \\n \\n \\n \\n \\n \', escape=False)\n for mRow in mRows:\n response.write(\'\\n \\n \\n \\n\\n \\n\\n \\n \\n \', escape=False)\n pass\n response.write(\'\\n
\\n \', escape=False)\n response.write(T(\'Name\'))\n response.write(\'\\n \\n \', escape=False)\n response.write(T(\'Price\'))\n response.write(\'\\n \\n \', escape=False)\n response.write(T(\'Payment Installments\'))\n response.write(\'\\n
\\n \\n \\n \', escape=False)\n response.write(mRow.mName)\n response.write(\'\\n \\n \', escape=False)\n response.write(mRow.mPrice)\n response.write(\'\\n \\n \', escape=False)\n response.write(mRow.mPaymentInstallments)\n response.write(\'\\n
\\n \', escape=False)\nelse:\n response.write(\'\\n

\', escape=False)\n response.write(T(\'No records\'))\n response.write(\'!

\\n \', escape=False)\n pass\nresponse.write(\'\\n
\\n
\\n\', escape=False)\nresponse.write(\'\\n
\\n \', escape=False)\nresponse.write(\'\\n
\\n\\n \', escape=False)\nif right_sidebar_enabled:\n response.write(\'\\n
\\n \', escape=False)\n response.write(\'\\n

Right Sidebar

\\n

\\n \', escape=False)\n response.write(\'\\n
\\n \', escape=False)\n pass\nresponse.write(\'\\n\\n
\\n\\n\\n\\n
\\n
\\n
\\n
\\n

\', escape=False)\nresponse.write(T(\'Copyright\'))\nresponse.write(\' © \', escape=False)\nresponse.write(request.now.year)\nresponse.write(\' - \', escape=False)\nresponse.write(T(\'Powered by\'))\nresponse.write(\' AD-MEDIA

\\n
\\n
\\n
\\n
\\n\\n \\n \\n\\n \\n \\n\\n \\n \\n\\n\\n\\n\\n\\n\\n\', escape=False)' +p7 +sS'snapshot' +p8 +(dp9 +sS'traceback' +p10 +S'Traceback (most recent call last):\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/restricted.py", line 227, in restricted\n exec ccode in environment\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/views/product/index.html", line 135, in \n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/packages/dal/pydal/objects.py", line 90, in __getattr__\n raise AttributeError\nAttributeError\n' +p11 +s. \ No newline at end of file diff --git a/errors/127.0.0.1.2016-03-14.16-36-49.9f4e692c-36f3-473c-aa47-9e041bf2478c b/errors/127.0.0.1.2016-03-14.16-36-49.9f4e692c-36f3-473c-aa47-9e041bf2478c new file mode 100644 index 0000000..ae8825d --- /dev/null +++ b/errors/127.0.0.1.2016-03-14.16-36-49.9f4e692c-36f3-473c-aa47-9e041bf2478c @@ -0,0 +1,21 @@ +(dp1 +S'output' +p2 +S" " +p3 +sS'layer' +p4 +S'/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/views/product/index.html' +p5 +sS'code' +p6 +S'response.write(\'\\n\\n\\n\\n\\n \\n \\n \\n \\n \\n\\n \', escape=False)\nresponse.write(response.title or request.application)\nresponse.write(\'\\n \\n \\n \\n \\n\\n \\n \\n\\n \\n \\n\\n \\n \\n \\n\\n \\n \\n \\n \', escape=False)\nresponse.write(\'\\n", escape=False)\nresponse.files.insert(0,URL(\'static\',\'js/jquery.js\'))\nresponse.files.insert(1,URL(\'static\',\'css/calendar.css\'))\nresponse.files.insert(2,URL(\'static\',\'js/calendar.js\'))\nresponse.files.insert(3,URL(\'static\',\'js/web2py.js\'))\nresponse.include_meta()\nresponse.include_files()\nresponse.write(\'\\n\', escape=False)\nresponse.write(\' \\n \', escape=False)\nresponse.write(\'\\n \', escape=False)\n# using sidebars need to know what sidebar you want to use\nmc0 = \'col-md-12\'\nmc1 = \'col-md-9\'\nmc2 = \'col-md-6\'\nleft_sidebar_enabled = globals().get(\'left_sidebar_enabled\', False)\nright_sidebar_enabled = globals().get(\'right_sidebar_enabled\', False)\nmiddle_column = {0: mc0, 1: mc1, 2: mc2}[\n(left_sidebar_enabled and 1 or 0)+(right_sidebar_enabled and 1 or 0)]\nresponse.write(\'\\n\\n\\n\\n\\n\\n
\', escape=False)\nresponse.write(response.title_label or response.title or request.application)\nresponse.write(\'
\\n
\', escape=False)\nresponse.write(response.subtitle or \'\')\nresponse.write(\'
\\n\\n \\n \\n\\n\\n \\n
\\n \', escape=False)\nif left_sidebar_enabled:\n response.write(\'\\n \\n \', escape=False)\n pass\nresponse.write(\'\\n\\n
\\n \', escape=False)\nresponse.write(\'\\n
\\n \', escape=False)\nresponse.write(\'\\n\\n\\n
\\n
\\n
\\n
\\n

\\n \', escape=False)\nresponse.write(T(\'Products\'))\nresponse.write(\'\\n

\\n
\\n\\n \', escape=False)\nif Utilities.is_admin():\n response.write(\'\\n \\n \', escape=False)\n pass\nresponse.write(\'\\n\\n
\\n
\\n\\n
\\n \', escape=False)\nif len(mRows)>0:\n response.write(\'\\n \\n \\n \\n \\n \\n \\n \', escape=False)\n for mRow in mRows:\n response.write(\'\\n \\n \\n \\n\\n \\n\\n \\n \\n \', escape=False)\n pass\n response.write(\'\\n
\\n \', escape=False)\n response.write(T(\'Name\'))\n response.write(\'\\n \\n \', escape=False)\n response.write(T(\'Price\'))\n response.write(\'\\n \\n \', escape=False)\n response.write(T(\'Payment Installments\'))\n response.write(\'\\n
\\n \\n \\n \', escape=False)\n response.write(mRow.mName)\n response.write(\'\\n \\n \', escape=False)\n response.write(mRow.mPrice)\n response.write(\'\\n \\n \', escape=False)\n response.write(mRow.mPaymentInstallments)\n response.write(\'\\n
\\n \', escape=False)\nelse:\n response.write(\'\\n

\', escape=False)\n response.write(T(\'No records\'))\n response.write(\'!

\\n \', escape=False)\n pass\nresponse.write(\'\\n
\\n
\\n\', escape=False)\nresponse.write(\'\\n
\\n \', escape=False)\nresponse.write(\'\\n
\\n\\n \', escape=False)\nif right_sidebar_enabled:\n response.write(\'\\n
\\n \', escape=False)\n response.write(\'\\n

Right Sidebar

\\n

\\n \', escape=False)\n response.write(\'\\n
\\n \', escape=False)\n pass\nresponse.write(\'\\n\\n
\\n\\n\\n\\n
\\n
\\n
\\n
\\n

\', escape=False)\nresponse.write(T(\'Copyright\'))\nresponse.write(\' © \', escape=False)\nresponse.write(request.now.year)\nresponse.write(\' - \', escape=False)\nresponse.write(T(\'Powered by\'))\nresponse.write(\' AD-MEDIA

\\n
\\n
\\n
\\n
\\n\\n \\n \\n\\n \\n \\n\\n \\n \\n\\n\\n\\n\\n\\n\\n\', escape=False)' +p7 +sS'snapshot' +p8 +(dp9 +sS'traceback' +p10 +S'Traceback (most recent call last):\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/restricted.py", line 227, in restricted\n exec ccode in environment\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/views/product/index.html", line 135, in \n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/packages/dal/pydal/objects.py", line 90, in __getattr__\n raise AttributeError\nAttributeError\n' +p11 +s. \ No newline at end of file diff --git a/errors/127.0.0.1.2016-03-14.16-41-15.ab046b3d-50f3-45e3-adbc-0177f7c3c2aa b/errors/127.0.0.1.2016-03-14.16-41-15.ab046b3d-50f3-45e3-adbc-0177f7c3c2aa new file mode 100644 index 0000000..615fc1d --- /dev/null +++ b/errors/127.0.0.1.2016-03-14.16-41-15.ab046b3d-50f3-45e3-adbc-0177f7c3c2aa @@ -0,0 +1,21 @@ +(dp1 +S'output' +p2 +S" global name 'mForm' is not defined" +p3 +sS'layer' +p4 +S'/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/product.py' +p5 +sS'code' +p6 +S'# -*- coding: utf-8 -*-\n\n\n\n\ndef index():\n\n return dict(mRows=db(db.tbProducts.id>0).select())\n\n\n\n@auth.requires_login()\ndef add():\n Validator.admin()\n\n mForm=SQLFORM(db.tbProducts, submit_button=T(\'Add a product\'))\n\n Validator.form_process(mForm, URL(\'product\', \'index\'))\n\n return dict(mForm=mForm)\n\n\n\n@auth.requires_login()\ndef edit():\n Validator.admin()\n Validator.valide_args(1)\n\n Validator.form_process(mForm, URL(\'product\', \'index\'), submit_button=T(\'Save changes\'))\n\n return dict(mForm=mForm)\n\n\n\n\n@auth.requires_login()\ndef add_image():\n\n mForm = FORM(LABEL(T("File")+"(s):"), INPUT(_name=\'mFiles\', _type=\'file\', _multiple=\'\'),\n BR(),INPUT(_type=\'submit\'))\n\n if mForm.accepts(request.vars, formname="mForm"):\n\n if hasattr(request.vars, \'mFiles\'):\n if len(request.vars.mFiles) > 0:\n\n mFiles = request.vars[\'mFiles\']\n if not isinstance(mFiles, list):\n mFiles = [files]\n\n print \'#=================\', request.now\n for f in mFiles:\n print f.mFilename\n mFile = db.tbProductsUploads.mFile.store(f, f.mFilename)\n db.tbProductsUploads.insert(mFile=mFile, mFilename=f.mFilename)\n db.commit()\n\n redirect(URL(\'product\', \'index\'))\n else:\n mForm.errors.mFiles = "No files selected"\n\n return dict(mForm=mForm)\n\nresponse._vars=response._caller(edit)\n' +p7 +sS'snapshot' +p8 +(dp9 +sS'traceback' +p10 +S'Traceback (most recent call last):\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/restricted.py", line 227, in restricted\n exec ccode in environment\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/product.py", line 64, in \n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/globals.py", line 412, in \n self._caller = lambda f: f()\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/product.py", line 29, in edit\n Validator.form_process(mForm, URL(\'product\', \'index\'), submit_button=T(\'Save changes\'))\nNameError: global name \'mForm\' is not defined\n' +p11 +s. \ No newline at end of file diff --git a/errors/127.0.0.1.2016-03-14.17-09-40.6f78c008-3976-4f15-84ba-c141d3735aff b/errors/127.0.0.1.2016-03-14.17-09-40.6f78c008-3976-4f15-84ba-c141d3735aff new file mode 100644 index 0000000..b3b5cee --- /dev/null +++ b/errors/127.0.0.1.2016-03-14.17-09-40.6f78c008-3976-4f15-84ba-c141d3735aff @@ -0,0 +1,21 @@ +(dp1 +S'output' +p2 +S" mFilename" +p3 +sS'layer' +p4 +S'/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/product.py' +p5 +sS'code' +p6 +S'# -*- coding: utf-8 -*-\n\n\n\n\ndef index():\n\n return dict(mRows=db(db.tbProducts.id>0).select())\n\n\n\n@auth.requires_login()\ndef add():\n Validator.admin()\n\n mForm=SQLFORM(db.tbProducts, submit_button=T(\'Save and add an image\'))\n\n Validator.form_process(mForm, URL(\'product\', \'index\'))\n\n return dict(mForm=mForm)\n\n\n\n@auth.requires_login()\ndef edit():\n Validator.admin()\n Validator.valide_args(1)\n\n db.tbProducts.id.readable = False\n\n mForm=SQLFORM(db.tbProducts,\n db.tbProducts(request.args[0]),\n submit_button=T(\'Save changes\'))\n\n Validator.form_process(mForm, URL(\'product\', \'index\'))\n\n return dict(mForm=mForm, mFormImage=get_image_add_form(request.args[0]))\n\n\n\n\n@auth.requires_login()\ndef get_image_add_form(mProductId):\n Validator.admin()\n\n mForm = FORM(LABEL(T("File")+"(s):"), INPUT(_name=\'mFiles\', _type=\'file\', _multiple=\'\'),\n BR(),INPUT(_type=\'submit\', _value=T("Send images")))\n\n if mForm.accepts(request.vars, formname="mForm"):\n print \'here1\'\n if hasattr(request.vars, \'mFiles\'):\n print \'here2\'\n if len(request.vars.mFiles) > 0:\n print \'here2\'\n\n mFiles = request.vars[\'mFiles\']\n if not isinstance(mFiles, list):\n mFiles = [files]\n\n print \'#=================\', request.now\n for f in mFiles:\n print f.mFilename\n mFile = db.tbProductsUploads.mFile.store(f, f.mFilename)\n db.tbProductsUploads.insert(mFile=mFile, mFilename=f.mFilename, mProduct=mProductId)\n db.commit()\n\n #redirect(URL(\'product\', \'index\'))\n else:\n print \'here error\' \n mForm.errors.mFiles = "No files selected"\n\n return mForm\n\nresponse._vars=response._caller(edit)\n' +p7 +sS'snapshot' +p8 +(dp9 +sS'traceback' +p10 +S'Traceback (most recent call last):\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/restricted.py", line 227, in restricted\n exec ccode in environment\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/product.py", line 74, in \n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/globals.py", line 412, in \n self._caller = lambda f: f()\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/product.py", line 37, in edit\n return dict(mForm=mForm, mFormImage=get_image_add_form(request.args[0]))\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/product.py", line 62, in get_image_add_form\n print f.mFilename\n File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/cgi.py", line 521, in __getattr__\n raise AttributeError, name\nAttributeError: mFilename\n' +p11 +s. \ No newline at end of file diff --git a/errors/127.0.0.1.2016-03-14.17-24-14.926af431-6535-45ce-bde3-d0a7934aa398 b/errors/127.0.0.1.2016-03-14.17-24-14.926af431-6535-45ce-bde3-d0a7934aa398 new file mode 100644 index 0000000..bddf3fc --- /dev/null +++ b/errors/127.0.0.1.2016-03-14.17-24-14.926af431-6535-45ce-bde3-d0a7934aa398 @@ -0,0 +1,21 @@ +(dp1 +S'output' +p2 +S" Cannot import module 'applications.perimoveis.modules.Image'" +p3 +sS'layer' +p4 +S'/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py' +p5 +sS'code' +p6 +S'# -*- coding: utf-8 -*-\n\n\n@auth.requires_login()\ndef index():\n Validator.admin()\n return dict()\n\n\n\n\n\n\n@auth.requires_login()\ndef home_slide_resources():\n Validator.admin()\n return dict(mRows=db(db.tbHomePageSlideResources.id>0).select())\n\n\n\n\n\n@auth.requires_login()\ndef add_home_slide_resource():\n Validator.admin()\n\n mForm = SQLFORM(db.tbHomePageSlideResources, submit_button=T(\'Add an image\'), upload=URL(\'download\'))\n\n Validator.form_process(mForm, URL("manager", "home_slide_resources"), mOnAccepted=add_home_slide_resource_accepted)\n\n return dict(mForm=mForm)\n\n\n\n\n\n@auth.requires_login()\ndef add_home_slide_resource_accepted(mForm):\n Validator.admin()\n\n #Adding thumbnail.\n from lib_image import MyImage\n mRow = db.tbHomePageSlideResources(mForm.vars.id)\n db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mThumbnail=MyImage.tranform(mRow.mTempImage, MyImage.THUMBNAIL_DIMENSION))\n db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mImage=MyImage.tranform(mRow.mTempImage, MyImage.IMAGE_GOOD_DIMENSION))\n\n print \'temp image\', mRow.mTempImage\n MyFile(request.folder + \'uploads/\'+str(mRow.mTempImage)).remove()\n pass\n\n\n\n\n\n\n\n\n@auth.requires_login()\ndef remove_image():\n\n Validator.admin()\n Validator.valide_args(1)\n\n mFile = db.tbHomePageSlideResources(request.args[0])\n\n MyFile(request.folder + \'uploads/\'+mFile.mThumbnail).remove()\n MyFile(request.folder + \'uploads/\'+mFile.mImage).remove()\n\n db(db.tbHomePageSlideResources.id==mFile.id).delete()\n\n MessageBox(T(\'File\') + \' \'+mFile.mLabel+\' \' + T(\'removed!\')).showSuccess()\n redirect(URL(\'manager\', \'home_slide_resources\'))\n pass\n\nresponse._vars=response._caller(add_home_slide_resource)\n' +p7 +sS'snapshot' +p8 +(dp9 +sS'traceback' +p10 +S'Traceback (most recent call last):\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/restricted.py", line 227, in restricted\n exec ccode in environment\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py", line 75, in \n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/globals.py", line 412, in \n self._caller = lambda f: f()\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py", line 29, in add_home_slide_resource\n Validator.form_process(mForm, URL("manager", "home_slide_resources"), mOnAccepted=add_home_slide_resource_accepted)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/models/lib.py", line 327, in form_process\n mOnAccepted(mForm)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py", line 42, in add_home_slide_resource_accepted\n from lib_image import MyImage\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/custom_import.py", line 95, in custom_importer\n return base_importer(pname, globals, locals, fromlist, level)\n File "applications/perimoveis/modules/lib_image.py", line 6, in \n import Image\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/custom_import.py", line 89, in custom_importer\n raise ImportError, \'Cannot import module %s\' % str(e)\nImportError: Cannot import module \'applications.perimoveis.modules.Image\'\n' +p11 +s. \ No newline at end of file diff --git a/errors/127.0.0.1.2016-03-14.17-26-19.e63b6373-1154-4e18-afa0-d39d4d97e5ac b/errors/127.0.0.1.2016-03-14.17-26-19.e63b6373-1154-4e18-afa0-d39d4d97e5ac new file mode 100644 index 0000000..9d34c12 --- /dev/null +++ b/errors/127.0.0.1.2016-03-14.17-26-19.e63b6373-1154-4e18-afa0-d39d4d97e5ac @@ -0,0 +1,21 @@ +(dp1 +S'output' +p2 +S" global name 'tranform_engine' is not defined" +p3 +sS'layer' +p4 +S'/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py' +p5 +sS'code' +p6 +S'# -*- coding: utf-8 -*-\n\n\n@auth.requires_login()\ndef index():\n Validator.admin()\n return dict()\n\n\n\n\n\n\n@auth.requires_login()\ndef home_slide_resources():\n Validator.admin()\n return dict(mRows=db(db.tbHomePageSlideResources.id>0).select())\n\n\n\n\n\n@auth.requires_login()\ndef add_home_slide_resource():\n Validator.admin()\n\n mForm = SQLFORM(db.tbHomePageSlideResources, submit_button=T(\'Add an image\'), upload=URL(\'download\'))\n\n Validator.form_process(mForm, URL("manager", "home_slide_resources"), mOnAccepted=add_home_slide_resource_accepted)\n\n return dict(mForm=mForm)\n\n\n\n\n\n@auth.requires_login()\ndef add_home_slide_resource_accepted(mForm):\n Validator.admin()\n\n #Adding thumbnail.\n from lib_image import MyImage\n mRow = db.tbHomePageSlideResources(mForm.vars.id)\n db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mThumbnail=MyImage.tranform(mRow.mTempImage, MyImage.THUMBNAIL_DIMENSION))\n db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mImage=MyImage.tranform(mRow.mTempImage, MyImage.IMAGE_GOOD_DIMENSION))\n\n print \'temp image\', mRow.mTempImage\n MyFile(request.folder + \'uploads/\'+str(mRow.mTempImage)).remove()\n pass\n\n\n\n\n\n\n\n\n@auth.requires_login()\ndef remove_image():\n\n Validator.admin()\n Validator.valide_args(1)\n\n mFile = db.tbHomePageSlideResources(request.args[0])\n\n MyFile(request.folder + \'uploads/\'+mFile.mThumbnail).remove()\n MyFile(request.folder + \'uploads/\'+mFile.mImage).remove()\n\n db(db.tbHomePageSlideResources.id==mFile.id).delete()\n\n MessageBox(T(\'File\') + \' \'+mFile.mLabel+\' \' + T(\'removed!\')).showSuccess()\n redirect(URL(\'manager\', \'home_slide_resources\'))\n pass\n\nresponse._vars=response._caller(add_home_slide_resource)\n' +p7 +sS'snapshot' +p8 +(dp9 +sS'traceback' +p10 +S'Traceback (most recent call last):\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/restricted.py", line 227, in restricted\n exec ccode in environment\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py", line 75, in \n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/globals.py", line 412, in \n self._caller = lambda f: f()\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py", line 29, in add_home_slide_resource\n Validator.form_process(mForm, URL("manager", "home_slide_resources"), mOnAccepted=add_home_slide_resource_accepted)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/models/lib.py", line 327, in form_process\n mOnAccepted(mForm)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py", line 44, in add_home_slide_resource_accepted\n db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mThumbnail=MyImage.tranform(mRow.mTempImage, MyImage.THUMBNAIL_DIMENSION))\n File "applications/perimoveis/modules/lib_image.py", line 23, in tranform\n img = tranform_engine(image, box, fit, name)\nNameError: global name \'tranform_engine\' is not defined\n' +p11 +s. \ No newline at end of file diff --git a/errors/127.0.0.1.2016-03-14.17-28-17.bf9dc767-ebbc-498c-9892-d1d21faf6b17 b/errors/127.0.0.1.2016-03-14.17-28-17.bf9dc767-ebbc-498c-9892-d1d21faf6b17 new file mode 100644 index 0000000..c99fca0 --- /dev/null +++ b/errors/127.0.0.1.2016-03-14.17-28-17.bf9dc767-ebbc-498c-9892-d1d21faf6b17 @@ -0,0 +1,21 @@ +(dp1 +S'output' +p2 +S" global name 'tranform_engine' is not defined" +p3 +sS'layer' +p4 +S'/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py' +p5 +sS'code' +p6 +S'# -*- coding: utf-8 -*-\n\n\n@auth.requires_login()\ndef index():\n Validator.admin()\n return dict()\n\n\n\n\n\n\n@auth.requires_login()\ndef home_slide_resources():\n Validator.admin()\n return dict(mRows=db(db.tbHomePageSlideResources.id>0).select())\n\n\n\n\n\n@auth.requires_login()\ndef add_home_slide_resource():\n Validator.admin()\n\n mForm = SQLFORM(db.tbHomePageSlideResources, submit_button=T(\'Add an image\'), upload=URL(\'download\'))\n\n Validator.form_process(mForm, URL("manager", "home_slide_resources"), mOnAccepted=add_home_slide_resource_accepted)\n\n return dict(mForm=mForm)\n\n\n\n\n\n@auth.requires_login()\ndef add_home_slide_resource_accepted(mForm):\n Validator.admin()\n\n #Adding thumbnail.\n from lib_image import MyImage\n mRow = db.tbHomePageSlideResources(mForm.vars.id)\n db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mThumbnail=MyImage.tranform(mRow.mTempImage, MyImage.THUMBNAIL_DIMENSION))\n db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mImage=MyImage.tranform(mRow.mTempImage, MyImage.IMAGE_GOOD_DIMENSION))\n\n print \'temp image\', mRow.mTempImage\n MyFile(request.folder + \'uploads/\'+str(mRow.mTempImage)).remove()\n pass\n\n\n\n\n\n\n\n\n@auth.requires_login()\ndef remove_image():\n\n Validator.admin()\n Validator.valide_args(1)\n\n mFile = db.tbHomePageSlideResources(request.args[0])\n\n MyFile(request.folder + \'uploads/\'+mFile.mThumbnail).remove()\n MyFile(request.folder + \'uploads/\'+mFile.mImage).remove()\n\n db(db.tbHomePageSlideResources.id==mFile.id).delete()\n\n MessageBox(T(\'File\') + \' \'+mFile.mLabel+\' \' + T(\'removed!\')).showSuccess()\n redirect(URL(\'manager\', \'home_slide_resources\'))\n pass\n\nresponse._vars=response._caller(add_home_slide_resource)\n' +p7 +sS'snapshot' +p8 +(dp9 +sS'traceback' +p10 +S'Traceback (most recent call last):\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/restricted.py", line 227, in restricted\n exec ccode in environment\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py", line 75, in \n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/globals.py", line 412, in \n self._caller = lambda f: f()\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py", line 29, in add_home_slide_resource\n Validator.form_process(mForm, URL("manager", "home_slide_resources"), mOnAccepted=add_home_slide_resource_accepted)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/models/lib.py", line 327, in form_process\n mOnAccepted(mForm)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py", line 44, in add_home_slide_resource_accepted\n db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mThumbnail=MyImage.tranform(mRow.mTempImage, MyImage.THUMBNAIL_DIMENSION))\n File "applications/perimoveis/modules/lib_image.py", line 23, in tranform\n @staticmethod\nNameError: global name \'tranform_engine\' is not defined\n' +p11 +s. \ No newline at end of file diff --git a/errors/127.0.0.1.2016-03-14.17-28-48.95cee9b2-01db-4422-af3d-b2229a01188a b/errors/127.0.0.1.2016-03-14.17-28-48.95cee9b2-01db-4422-af3d-b2229a01188a new file mode 100644 index 0000000..c99fca0 --- /dev/null +++ b/errors/127.0.0.1.2016-03-14.17-28-48.95cee9b2-01db-4422-af3d-b2229a01188a @@ -0,0 +1,21 @@ +(dp1 +S'output' +p2 +S" global name 'tranform_engine' is not defined" +p3 +sS'layer' +p4 +S'/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py' +p5 +sS'code' +p6 +S'# -*- coding: utf-8 -*-\n\n\n@auth.requires_login()\ndef index():\n Validator.admin()\n return dict()\n\n\n\n\n\n\n@auth.requires_login()\ndef home_slide_resources():\n Validator.admin()\n return dict(mRows=db(db.tbHomePageSlideResources.id>0).select())\n\n\n\n\n\n@auth.requires_login()\ndef add_home_slide_resource():\n Validator.admin()\n\n mForm = SQLFORM(db.tbHomePageSlideResources, submit_button=T(\'Add an image\'), upload=URL(\'download\'))\n\n Validator.form_process(mForm, URL("manager", "home_slide_resources"), mOnAccepted=add_home_slide_resource_accepted)\n\n return dict(mForm=mForm)\n\n\n\n\n\n@auth.requires_login()\ndef add_home_slide_resource_accepted(mForm):\n Validator.admin()\n\n #Adding thumbnail.\n from lib_image import MyImage\n mRow = db.tbHomePageSlideResources(mForm.vars.id)\n db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mThumbnail=MyImage.tranform(mRow.mTempImage, MyImage.THUMBNAIL_DIMENSION))\n db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mImage=MyImage.tranform(mRow.mTempImage, MyImage.IMAGE_GOOD_DIMENSION))\n\n print \'temp image\', mRow.mTempImage\n MyFile(request.folder + \'uploads/\'+str(mRow.mTempImage)).remove()\n pass\n\n\n\n\n\n\n\n\n@auth.requires_login()\ndef remove_image():\n\n Validator.admin()\n Validator.valide_args(1)\n\n mFile = db.tbHomePageSlideResources(request.args[0])\n\n MyFile(request.folder + \'uploads/\'+mFile.mThumbnail).remove()\n MyFile(request.folder + \'uploads/\'+mFile.mImage).remove()\n\n db(db.tbHomePageSlideResources.id==mFile.id).delete()\n\n MessageBox(T(\'File\') + \' \'+mFile.mLabel+\' \' + T(\'removed!\')).showSuccess()\n redirect(URL(\'manager\', \'home_slide_resources\'))\n pass\n\nresponse._vars=response._caller(add_home_slide_resource)\n' +p7 +sS'snapshot' +p8 +(dp9 +sS'traceback' +p10 +S'Traceback (most recent call last):\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/restricted.py", line 227, in restricted\n exec ccode in environment\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py", line 75, in \n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/globals.py", line 412, in \n self._caller = lambda f: f()\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py", line 29, in add_home_slide_resource\n Validator.form_process(mForm, URL("manager", "home_slide_resources"), mOnAccepted=add_home_slide_resource_accepted)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/models/lib.py", line 327, in form_process\n mOnAccepted(mForm)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py", line 44, in add_home_slide_resource_accepted\n db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mThumbnail=MyImage.tranform(mRow.mTempImage, MyImage.THUMBNAIL_DIMENSION))\n File "applications/perimoveis/modules/lib_image.py", line 23, in tranform\n @staticmethod\nNameError: global name \'tranform_engine\' is not defined\n' +p11 +s. \ No newline at end of file diff --git a/errors/127.0.0.1.2016-03-14.17-29-09.290bbc6a-28ca-420e-8adb-937d1f5c7d8b b/errors/127.0.0.1.2016-03-14.17-29-09.290bbc6a-28ca-420e-8adb-937d1f5c7d8b new file mode 100644 index 0000000..9ec58f8 --- /dev/null +++ b/errors/127.0.0.1.2016-03-14.17-29-09.290bbc6a-28ca-420e-8adb-937d1f5c7d8b @@ -0,0 +1,21 @@ +(dp1 +S'output' +p2 +S" class MyImage has no attribute 'tranform'" +p3 +sS'layer' +p4 +S'/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py' +p5 +sS'code' +p6 +S'# -*- coding: utf-8 -*-\n\n\n@auth.requires_login()\ndef index():\n Validator.admin()\n return dict()\n\n\n\n\n\n\n@auth.requires_login()\ndef home_slide_resources():\n Validator.admin()\n return dict(mRows=db(db.tbHomePageSlideResources.id>0).select())\n\n\n\n\n\n@auth.requires_login()\ndef add_home_slide_resource():\n Validator.admin()\n\n mForm = SQLFORM(db.tbHomePageSlideResources, submit_button=T(\'Add an image\'), upload=URL(\'download\'))\n\n Validator.form_process(mForm, URL("manager", "home_slide_resources"), mOnAccepted=add_home_slide_resource_accepted)\n\n return dict(mForm=mForm)\n\n\n\n\n\n@auth.requires_login()\ndef add_home_slide_resource_accepted(mForm):\n Validator.admin()\n\n #Adding thumbnail.\n from lib_image import MyImage\n mRow = db.tbHomePageSlideResources(mForm.vars.id)\n db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mThumbnail=MyImage.tranform(mRow.mTempImage, MyImage.THUMBNAIL_DIMENSION))\n db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mImage=MyImage.tranform(mRow.mTempImage, MyImage.IMAGE_GOOD_DIMENSION))\n\n print \'temp image\', mRow.mTempImage\n MyFile(request.folder + \'uploads/\'+str(mRow.mTempImage)).remove()\n pass\n\n\n\n\n\n\n\n\n@auth.requires_login()\ndef remove_image():\n\n Validator.admin()\n Validator.valide_args(1)\n\n mFile = db.tbHomePageSlideResources(request.args[0])\n\n MyFile(request.folder + \'uploads/\'+mFile.mThumbnail).remove()\n MyFile(request.folder + \'uploads/\'+mFile.mImage).remove()\n\n db(db.tbHomePageSlideResources.id==mFile.id).delete()\n\n MessageBox(T(\'File\') + \' \'+mFile.mLabel+\' \' + T(\'removed!\')).showSuccess()\n redirect(URL(\'manager\', \'home_slide_resources\'))\n pass\n\nresponse._vars=response._caller(add_home_slide_resource)\n' +p7 +sS'snapshot' +p8 +(dp9 +sS'traceback' +p10 +S'Traceback (most recent call last):\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/restricted.py", line 227, in restricted\n exec ccode in environment\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py", line 75, in \n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/globals.py", line 412, in \n self._caller = lambda f: f()\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py", line 29, in add_home_slide_resource\n Validator.form_process(mForm, URL("manager", "home_slide_resources"), mOnAccepted=add_home_slide_resource_accepted)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/models/lib.py", line 327, in form_process\n mOnAccepted(mForm)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py", line 44, in add_home_slide_resource_accepted\n db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mThumbnail=MyImage.tranform(mRow.mTempImage, MyImage.THUMBNAIL_DIMENSION))\nAttributeError: class MyImage has no attribute \'tranform\'\n' +p11 +s. \ No newline at end of file diff --git a/errors/127.0.0.1.2016-03-14.17-29-56.425276aa-afe5-43f5-b5cb-c018d87ef220 b/errors/127.0.0.1.2016-03-14.17-29-56.425276aa-afe5-43f5-b5cb-c018d87ef220 new file mode 100644 index 0000000..805cc58 --- /dev/null +++ b/errors/127.0.0.1.2016-03-14.17-29-56.425276aa-afe5-43f5-b5cb-c018d87ef220 @@ -0,0 +1,21 @@ +(dp1 +S'output' +p2 +S" global name 'tranform_engine' is not defined" +p3 +sS'layer' +p4 +S'/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py' +p5 +sS'code' +p6 +S'# -*- coding: utf-8 -*-\n\n\n@auth.requires_login()\ndef index():\n Validator.admin()\n return dict()\n\n\n\n\n\n\n@auth.requires_login()\ndef home_slide_resources():\n Validator.admin()\n return dict(mRows=db(db.tbHomePageSlideResources.id>0).select())\n\n\n\n\n\n@auth.requires_login()\ndef add_home_slide_resource():\n Validator.admin()\n\n mForm = SQLFORM(db.tbHomePageSlideResources, submit_button=T(\'Add an image\'), upload=URL(\'download\'))\n\n Validator.form_process(mForm, URL("manager", "home_slide_resources"), mOnAccepted=add_home_slide_resource_accepted)\n\n return dict(mForm=mForm)\n\n\n\n\n\n@auth.requires_login()\ndef add_home_slide_resource_accepted(mForm):\n Validator.admin()\n\n #Adding thumbnail.\n from lib_image import MyImage\n mRow = db.tbHomePageSlideResources(mForm.vars.id)\n db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mThumbnail=MyImage.transform(mRow.mTempImage, MyImage.THUMBNAIL_DIMENSION))\n db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mImage=MyImage.transform(mRow.mTempImage, MyImage.IMAGE_GOOD_DIMENSION))\n\n print \'temp image\', mRow.mTempImage\n MyFile(request.folder + \'uploads/\'+str(mRow.mTempImage)).remove()\n pass\n\n\n\n\n\n\n\n\n@auth.requires_login()\ndef remove_image():\n\n Validator.admin()\n Validator.valide_args(1)\n\n mFile = db.tbHomePageSlideResources(request.args[0])\n\n MyFile(request.folder + \'uploads/\'+mFile.mThumbnail).remove()\n MyFile(request.folder + \'uploads/\'+mFile.mImage).remove()\n\n db(db.tbHomePageSlideResources.id==mFile.id).delete()\n\n MessageBox(T(\'File\') + \' \'+mFile.mLabel+\' \' + T(\'removed!\')).showSuccess()\n redirect(URL(\'manager\', \'home_slide_resources\'))\n pass\n\nresponse._vars=response._caller(add_home_slide_resource)\n' +p7 +sS'snapshot' +p8 +(dp9 +sS'traceback' +p10 +S'Traceback (most recent call last):\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/restricted.py", line 227, in restricted\n exec ccode in environment\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py", line 75, in \n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/globals.py", line 412, in \n self._caller = lambda f: f()\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py", line 29, in add_home_slide_resource\n Validator.form_process(mForm, URL("manager", "home_slide_resources"), mOnAccepted=add_home_slide_resource_accepted)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/models/lib.py", line 327, in form_process\n mOnAccepted(mForm)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py", line 44, in add_home_slide_resource_accepted\n db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mThumbnail=MyImage.transform(mRow.mTempImage, MyImage.THUMBNAIL_DIMENSION))\n File "applications/perimoveis/modules/lib_image.py", line 62, in transform\n img = tranform_engine(image, box, fit, name)\nNameError: global name \'tranform_engine\' is not defined\n' +p11 +s. \ No newline at end of file diff --git a/errors/127.0.0.1.2016-03-14.17-30-43.d9d75908-f508-467a-a38f-b4a36e3d19a7 b/errors/127.0.0.1.2016-03-14.17-30-43.d9d75908-f508-467a-a38f-b4a36e3d19a7 new file mode 100644 index 0000000..f29d938 --- /dev/null +++ b/errors/127.0.0.1.2016-03-14.17-30-43.d9d75908-f508-467a-a38f-b4a36e3d19a7 @@ -0,0 +1,21 @@ +(dp1 +S'output' +p2 +S" global name 'tranform_engine' is not defined" +p3 +sS'layer' +p4 +S'/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py' +p5 +sS'code' +p6 +S'# -*- coding: utf-8 -*-\n\n\n@auth.requires_login()\ndef index():\n Validator.admin()\n return dict()\n\n\n\n\n\n\n@auth.requires_login()\ndef home_slide_resources():\n Validator.admin()\n return dict(mRows=db(db.tbHomePageSlideResources.id>0).select())\n\n\n\n\n\n@auth.requires_login()\ndef add_home_slide_resource():\n Validator.admin()\n\n mForm = SQLFORM(db.tbHomePageSlideResources, submit_button=T(\'Add an image\'), upload=URL(\'download\'))\n\n Validator.form_process(mForm, URL("manager", "home_slide_resources"), mOnAccepted=add_home_slide_resource_accepted)\n\n return dict(mForm=mForm)\n\n\n\n\n\n@auth.requires_login()\ndef add_home_slide_resource_accepted(mForm):\n Validator.admin()\n\n #Adding thumbnail.\n from lib_image import MyImage\n mRow = db.tbHomePageSlideResources(mForm.vars.id)\n db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mThumbnail=MyImage.transform(mRow.mTempImage, MyImage.THUMBNAIL_DIMENSION))\n db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mImage=MyImage.transform(mRow.mTempImage, MyImage.IMAGE_GOOD_DIMENSION))\n\n print \'temp image\', mRow.mTempImage\n MyFile(request.folder + \'uploads/\'+str(mRow.mTempImage)).remove()\n pass\n\n\n\n\n\n\n\n\n@auth.requires_login()\ndef remove_image():\n\n Validator.admin()\n Validator.valide_args(1)\n\n mFile = db.tbHomePageSlideResources(request.args[0])\n\n MyFile(request.folder + \'uploads/\'+mFile.mThumbnail).remove()\n MyFile(request.folder + \'uploads/\'+mFile.mImage).remove()\n\n db(db.tbHomePageSlideResources.id==mFile.id).delete()\n\n MessageBox(T(\'File\') + \' \'+mFile.mLabel+\' \' + T(\'removed!\')).showSuccess()\n redirect(URL(\'manager\', \'home_slide_resources\'))\n pass\n\nresponse._vars=response._caller(add_home_slide_resource)\n' +p7 +sS'snapshot' +p8 +(dp9 +sS'traceback' +p10 +S'Traceback (most recent call last):\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/restricted.py", line 227, in restricted\n exec ccode in environment\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py", line 75, in \n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/globals.py", line 412, in \n self._caller = lambda f: f()\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py", line 29, in add_home_slide_resource\n Validator.form_process(mForm, URL("manager", "home_slide_resources"), mOnAccepted=add_home_slide_resource_accepted)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/models/lib.py", line 327, in form_process\n mOnAccepted(mForm)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py", line 44, in add_home_slide_resource_accepted\n db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mThumbnail=MyImage.transform(mRow.mTempImage, MyImage.THUMBNAIL_DIMENSION))\n File "applications/perimoveis/modules/lib_image.py", line 62, in transform\n img = transform_engine(image, box, fit, name)\nNameError: global name \'tranform_engine\' is not defined\n' +p11 +s. \ No newline at end of file diff --git a/errors/127.0.0.1.2016-03-14.17-31-46.beaeb0d3-e0aa-44e4-bdc4-11b409686761 b/errors/127.0.0.1.2016-03-14.17-31-46.beaeb0d3-e0aa-44e4-bdc4-11b409686761 new file mode 100644 index 0000000..06eeef5 --- /dev/null +++ b/errors/127.0.0.1.2016-03-14.17-31-46.beaeb0d3-e0aa-44e4-bdc4-11b409686761 @@ -0,0 +1,21 @@ +(dp1 +S'output' +p2 +S" global name 'transform_engine' is not defined" +p3 +sS'layer' +p4 +S'/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py' +p5 +sS'code' +p6 +S'# -*- coding: utf-8 -*-\n\n\n@auth.requires_login()\ndef index():\n Validator.admin()\n return dict()\n\n\n\n\n\n\n@auth.requires_login()\ndef home_slide_resources():\n Validator.admin()\n return dict(mRows=db(db.tbHomePageSlideResources.id>0).select())\n\n\n\n\n\n@auth.requires_login()\ndef add_home_slide_resource():\n Validator.admin()\n\n mForm = SQLFORM(db.tbHomePageSlideResources, submit_button=T(\'Add an image\'), upload=URL(\'download\'))\n\n Validator.form_process(mForm, URL("manager", "home_slide_resources"), mOnAccepted=add_home_slide_resource_accepted)\n\n return dict(mForm=mForm)\n\n\n\n\n\n@auth.requires_login()\ndef add_home_slide_resource_accepted(mForm):\n Validator.admin()\n\n #Adding thumbnail.\n from lib_image import MyImage\n mRow = db.tbHomePageSlideResources(mForm.vars.id)\n db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mThumbnail=MyImage.transform(mRow.mTempImage, MyImage.THUMBNAIL_DIMENSION))\n db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mImage=MyImage.transform(mRow.mTempImage, MyImage.IMAGE_GOOD_DIMENSION))\n\n print \'temp image\', mRow.mTempImage\n MyFile(request.folder + \'uploads/\'+str(mRow.mTempImage)).remove()\n pass\n\n\n\n\n\n\n\n\n@auth.requires_login()\ndef remove_image():\n\n Validator.admin()\n Validator.valide_args(1)\n\n mFile = db.tbHomePageSlideResources(request.args[0])\n\n MyFile(request.folder + \'uploads/\'+mFile.mThumbnail).remove()\n MyFile(request.folder + \'uploads/\'+mFile.mImage).remove()\n\n db(db.tbHomePageSlideResources.id==mFile.id).delete()\n\n MessageBox(T(\'File\') + \' \'+mFile.mLabel+\' \' + T(\'removed!\')).showSuccess()\n redirect(URL(\'manager\', \'home_slide_resources\'))\n pass\n\nresponse._vars=response._caller(add_home_slide_resource)\n' +p7 +sS'snapshot' +p8 +(dp9 +sS'traceback' +p10 +S'Traceback (most recent call last):\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/restricted.py", line 227, in restricted\n exec ccode in environment\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py", line 75, in \n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/globals.py", line 412, in \n self._caller = lambda f: f()\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py", line 29, in add_home_slide_resource\n Validator.form_process(mForm, URL("manager", "home_slide_resources"), mOnAccepted=add_home_slide_resource_accepted)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/models/lib.py", line 327, in form_process\n mOnAccepted(mForm)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py", line 44, in add_home_slide_resource_accepted\n db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mThumbnail=MyImage.transform(mRow.mTempImage, MyImage.THUMBNAIL_DIMENSION))\n File "applications/perimoveis/modules/lib_image.py", line 62, in transform\n img = transform_engine(image, box, fit, name)\nNameError: global name \'transform_engine\' is not defined\n' +p11 +s. \ No newline at end of file diff --git a/errors/127.0.0.1.2016-03-14.17-32-34.06e43290-6415-4161-a5a5-6625b9742b21 b/errors/127.0.0.1.2016-03-14.17-32-34.06e43290-6415-4161-a5a5-6625b9742b21 new file mode 100644 index 0000000..a9a8492 --- /dev/null +++ b/errors/127.0.0.1.2016-03-14.17-32-34.06e43290-6415-4161-a5a5-6625b9742b21 @@ -0,0 +1,21 @@ +(dp1 +S'output' +p2 +S" global name 'transform_engine' is not defined" +p3 +sS'layer' +p4 +S'/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py' +p5 +sS'code' +p6 +S'# -*- coding: utf-8 -*-\n\n\n@auth.requires_login()\ndef index():\n Validator.admin()\n return dict()\n\n\n\n\n\n\n@auth.requires_login()\ndef home_slide_resources():\n Validator.admin()\n return dict(mRows=db(db.tbHomePageSlideResources.id>0).select())\n\n\n\n\n\n@auth.requires_login()\ndef add_home_slide_resource():\n Validator.admin()\n\n mForm = SQLFORM(db.tbHomePageSlideResources, submit_button=T(\'Add an image\'), upload=URL(\'download\'))\n\n Validator.form_process(mForm, URL("manager", "home_slide_resources"), mOnAccepted=add_home_slide_resource_accepted)\n\n return dict(mForm=mForm)\n\n\n\n\n\n@auth.requires_login()\ndef add_home_slide_resource_accepted(mForm):\n Validator.admin()\n\n #Adding thumbnail.\n from lib_image import MyImage\n mRow = db.tbHomePageSlideResources(mForm.vars.id)\n db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mThumbnail=MyImage.transform(mRow.mTempImage, MyImage.THUMBNAIL_DIMENSION))\n db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mImage=MyImage.transform(mRow.mTempImage, MyImage.IMAGE_GOOD_DIMENSION))\n\n print \'temp image\', mRow.mTempImage\n MyFile(request.folder + \'uploads/\'+str(mRow.mTempImage)).remove()\n pass\n\n\n\n\n\n\n\n\n@auth.requires_login()\ndef remove_image():\n\n Validator.admin()\n Validator.valide_args(1)\n\n mFile = db.tbHomePageSlideResources(request.args[0])\n\n MyFile(request.folder + \'uploads/\'+mFile.mThumbnail).remove()\n MyFile(request.folder + \'uploads/\'+mFile.mImage).remove()\n\n db(db.tbHomePageSlideResources.id==mFile.id).delete()\n\n MessageBox(T(\'File\') + \' \'+mFile.mLabel+\' \' + T(\'removed!\')).showSuccess()\n redirect(URL(\'manager\', \'home_slide_resources\'))\n pass\n\nresponse._vars=response._caller(add_home_slide_resource)\n' +p7 +sS'snapshot' +p8 +(dp9 +sS'traceback' +p10 +S'Traceback (most recent call last):\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/restricted.py", line 227, in restricted\n exec ccode in environment\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py", line 75, in \n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/globals.py", line 412, in \n self._caller = lambda f: f()\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py", line 29, in add_home_slide_resource\n Validator.form_process(mForm, URL("manager", "home_slide_resources"), mOnAccepted=add_home_slide_resource_accepted)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/models/lib.py", line 327, in form_process\n mOnAccepted(mForm)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py", line 44, in add_home_slide_resource_accepted\n db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mThumbnail=MyImage.transform(mRow.mTempImage, MyImage.THUMBNAIL_DIMENSION))\n File "applications/perimoveis/modules/lib_image.py", line 62, in transform\n img = MyImage.transform_engine(image, box, fit, name)\nNameError: global name \'transform_engine\' is not defined\n' +p11 +s. \ No newline at end of file diff --git a/errors/127.0.0.1.2016-03-14.17-33-39.1f013d62-dccf-4fca-a991-41fe5fb530e3 b/errors/127.0.0.1.2016-03-14.17-33-39.1f013d62-dccf-4fca-a991-41fe5fb530e3 new file mode 100644 index 0000000..d536cc5 --- /dev/null +++ b/errors/127.0.0.1.2016-03-14.17-33-39.1f013d62-dccf-4fca-a991-41fe5fb530e3 @@ -0,0 +1,21 @@ +(dp1 +S'output' +p2 +S" global name 'name' is not defined" +p3 +sS'layer' +p4 +S'/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py' +p5 +sS'code' +p6 +S'# -*- coding: utf-8 -*-\n\n\n@auth.requires_login()\ndef index():\n Validator.admin()\n return dict()\n\n\n\n\n\n\n@auth.requires_login()\ndef home_slide_resources():\n Validator.admin()\n return dict(mRows=db(db.tbHomePageSlideResources.id>0).select())\n\n\n\n\n\n@auth.requires_login()\ndef add_home_slide_resource():\n Validator.admin()\n\n mForm = SQLFORM(db.tbHomePageSlideResources, submit_button=T(\'Add an image\'), upload=URL(\'download\'))\n\n Validator.form_process(mForm, URL("manager", "home_slide_resources"), mOnAccepted=add_home_slide_resource_accepted)\n\n return dict(mForm=mForm)\n\n\n\n\n\n@auth.requires_login()\ndef add_home_slide_resource_accepted(mForm):\n Validator.admin()\n\n #Adding thumbnail.\n from lib_image import MyImage\n mRow = db.tbHomePageSlideResources(mForm.vars.id)\n db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mThumbnail=MyImage.transform(mRow.mTempImage, MyImage.THUMBNAIL_DIMENSION))\n db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mImage=MyImage.transform(mRow.mTempImage, MyImage.IMAGE_GOOD_DIMENSION))\n\n print \'temp image\', mRow.mTempImage\n MyFile(request.folder + \'uploads/\'+str(mRow.mTempImage)).remove()\n pass\n\n\n\n\n\n\n\n\n@auth.requires_login()\ndef remove_image():\n\n Validator.admin()\n Validator.valide_args(1)\n\n mFile = db.tbHomePageSlideResources(request.args[0])\n\n MyFile(request.folder + \'uploads/\'+mFile.mThumbnail).remove()\n MyFile(request.folder + \'uploads/\'+mFile.mImage).remove()\n\n db(db.tbHomePageSlideResources.id==mFile.id).delete()\n\n MessageBox(T(\'File\') + \' \'+mFile.mLabel+\' \' + T(\'removed!\')).showSuccess()\n redirect(URL(\'manager\', \'home_slide_resources\'))\n pass\n\nresponse._vars=response._caller(add_home_slide_resource)\n' +p7 +sS'snapshot' +p8 +(dp9 +sS'traceback' +p10 +S'Traceback (most recent call last):\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/restricted.py", line 227, in restricted\n exec ccode in environment\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py", line 75, in \n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/globals.py", line 412, in \n self._caller = lambda f: f()\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py", line 29, in add_home_slide_resource\n Validator.form_process(mForm, URL("manager", "home_slide_resources"), mOnAccepted=add_home_slide_resource_accepted)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/models/lib.py", line 327, in form_process\n mOnAccepted(mForm)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py", line 44, in add_home_slide_resource_accepted\n db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mThumbnail=MyImage.transform(mRow.mTempImage, MyImage.THUMBNAIL_DIMENSION))\n File "applications/perimoveis/modules/lib_image.py", line 62, in transform\n img = MyImage.transform_engine(image, box, fit, name)\nNameError: global name \'name\' is not defined\n' +p11 +s. \ No newline at end of file diff --git a/errors/127.0.0.1.2016-03-14.17-34-09.353d8608-6314-4c13-8c83-b73f3c121215 b/errors/127.0.0.1.2016-03-14.17-34-09.353d8608-6314-4c13-8c83-b73f3c121215 new file mode 100644 index 0000000..54b8b17 --- /dev/null +++ b/errors/127.0.0.1.2016-03-14.17-34-09.353d8608-6314-4c13-8c83-b73f3c121215 @@ -0,0 +1,21 @@ +(dp1 +S'output' +p2 +S" global name 'name' is not defined" +p3 +sS'layer' +p4 +S'/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py' +p5 +sS'code' +p6 +S'# -*- coding: utf-8 -*-\n\n\n@auth.requires_login()\ndef index():\n Validator.admin()\n return dict()\n\n\n\n\n\n\n@auth.requires_login()\ndef home_slide_resources():\n Validator.admin()\n return dict(mRows=db(db.tbHomePageSlideResources.id>0).select())\n\n\n\n\n\n@auth.requires_login()\ndef add_home_slide_resource():\n Validator.admin()\n\n mForm = SQLFORM(db.tbHomePageSlideResources, submit_button=T(\'Add an image\'), upload=URL(\'download\'))\n\n Validator.form_process(mForm, URL("manager", "home_slide_resources"), mOnAccepted=add_home_slide_resource_accepted)\n\n return dict(mForm=mForm)\n\n\n\n\n\n@auth.requires_login()\ndef add_home_slide_resource_accepted(mForm):\n Validator.admin()\n\n #Adding thumbnail.\n from lib_image import MyImage\n mRow = db.tbHomePageSlideResources(mForm.vars.id)\n db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mThumbnail=MyImage.transform(mRow.mTempImage, MyImage.THUMBNAIL_DIMENSION))\n db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mImage=MyImage.transform(mRow.mTempImage, MyImage.IMAGE_GOOD_DIMENSION))\n\n print \'temp image\', mRow.mTempImage\n MyFile(request.folder + \'uploads/\'+str(mRow.mTempImage)).remove()\n pass\n\n\n\n\n\n\n\n\n@auth.requires_login()\ndef remove_image():\n\n Validator.admin()\n Validator.valide_args(1)\n\n mFile = db.tbHomePageSlideResources(request.args[0])\n\n MyFile(request.folder + \'uploads/\'+mFile.mThumbnail).remove()\n MyFile(request.folder + \'uploads/\'+mFile.mImage).remove()\n\n db(db.tbHomePageSlideResources.id==mFile.id).delete()\n\n MessageBox(T(\'File\') + \' \'+mFile.mLabel+\' \' + T(\'removed!\')).showSuccess()\n redirect(URL(\'manager\', \'home_slide_resources\'))\n pass\n\nresponse._vars=response._caller(add_home_slide_resource)\n' +p7 +sS'snapshot' +p8 +(dp9 +sS'traceback' +p10 +S'Traceback (most recent call last):\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/restricted.py", line 227, in restricted\n exec ccode in environment\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py", line 75, in \n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/globals.py", line 412, in \n self._caller = lambda f: f()\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py", line 29, in add_home_slide_resource\n Validator.form_process(mForm, URL("manager", "home_slide_resources"), mOnAccepted=add_home_slide_resource_accepted)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/models/lib.py", line 327, in form_process\n mOnAccepted(mForm)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py", line 44, in add_home_slide_resource_accepted\n db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mThumbnail=MyImage.transform(mRow.mTempImage, MyImage.THUMBNAIL_DIMENSION))\n File "applications/perimoveis/modules/lib_image.py", line 64, in transform\n thumb = \'%s_%s__%sx%s_%s\' % (root, name, box[0], box[1], ext)\nNameError: global name \'name\' is not defined\n' +p11 +s. \ No newline at end of file diff --git a/errors/127.0.0.1.2016-03-14.17-35-07.f1d68a42-84c9-4a80-928c-b9098cb62c5b b/errors/127.0.0.1.2016-03-14.17-35-07.f1d68a42-84c9-4a80-928c-b9098cb62c5b new file mode 100644 index 0000000..54b8b17 --- /dev/null +++ b/errors/127.0.0.1.2016-03-14.17-35-07.f1d68a42-84c9-4a80-928c-b9098cb62c5b @@ -0,0 +1,21 @@ +(dp1 +S'output' +p2 +S" global name 'name' is not defined" +p3 +sS'layer' +p4 +S'/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py' +p5 +sS'code' +p6 +S'# -*- coding: utf-8 -*-\n\n\n@auth.requires_login()\ndef index():\n Validator.admin()\n return dict()\n\n\n\n\n\n\n@auth.requires_login()\ndef home_slide_resources():\n Validator.admin()\n return dict(mRows=db(db.tbHomePageSlideResources.id>0).select())\n\n\n\n\n\n@auth.requires_login()\ndef add_home_slide_resource():\n Validator.admin()\n\n mForm = SQLFORM(db.tbHomePageSlideResources, submit_button=T(\'Add an image\'), upload=URL(\'download\'))\n\n Validator.form_process(mForm, URL("manager", "home_slide_resources"), mOnAccepted=add_home_slide_resource_accepted)\n\n return dict(mForm=mForm)\n\n\n\n\n\n@auth.requires_login()\ndef add_home_slide_resource_accepted(mForm):\n Validator.admin()\n\n #Adding thumbnail.\n from lib_image import MyImage\n mRow = db.tbHomePageSlideResources(mForm.vars.id)\n db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mThumbnail=MyImage.transform(mRow.mTempImage, MyImage.THUMBNAIL_DIMENSION))\n db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mImage=MyImage.transform(mRow.mTempImage, MyImage.IMAGE_GOOD_DIMENSION))\n\n print \'temp image\', mRow.mTempImage\n MyFile(request.folder + \'uploads/\'+str(mRow.mTempImage)).remove()\n pass\n\n\n\n\n\n\n\n\n@auth.requires_login()\ndef remove_image():\n\n Validator.admin()\n Validator.valide_args(1)\n\n mFile = db.tbHomePageSlideResources(request.args[0])\n\n MyFile(request.folder + \'uploads/\'+mFile.mThumbnail).remove()\n MyFile(request.folder + \'uploads/\'+mFile.mImage).remove()\n\n db(db.tbHomePageSlideResources.id==mFile.id).delete()\n\n MessageBox(T(\'File\') + \' \'+mFile.mLabel+\' \' + T(\'removed!\')).showSuccess()\n redirect(URL(\'manager\', \'home_slide_resources\'))\n pass\n\nresponse._vars=response._caller(add_home_slide_resource)\n' +p7 +sS'snapshot' +p8 +(dp9 +sS'traceback' +p10 +S'Traceback (most recent call last):\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/restricted.py", line 227, in restricted\n exec ccode in environment\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py", line 75, in \n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/globals.py", line 412, in \n self._caller = lambda f: f()\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py", line 29, in add_home_slide_resource\n Validator.form_process(mForm, URL("manager", "home_slide_resources"), mOnAccepted=add_home_slide_resource_accepted)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/models/lib.py", line 327, in form_process\n mOnAccepted(mForm)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py", line 44, in add_home_slide_resource_accepted\n db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mThumbnail=MyImage.transform(mRow.mTempImage, MyImage.THUMBNAIL_DIMENSION))\n File "applications/perimoveis/modules/lib_image.py", line 64, in transform\n thumb = \'%s_%s__%sx%s_%s\' % (root, name, box[0], box[1], ext)\nNameError: global name \'name\' is not defined\n' +p11 +s. \ No newline at end of file diff --git a/errors/127.0.0.1.2016-03-14.17-35-16.9b61dbd1-ca8f-4f99-a533-26f4f59a255a b/errors/127.0.0.1.2016-03-14.17-35-16.9b61dbd1-ca8f-4f99-a533-26f4f59a255a new file mode 100644 index 0000000..bbfec40 --- /dev/null +++ b/errors/127.0.0.1.2016-03-14.17-35-16.9b61dbd1-ca8f-4f99-a533-26f4f59a255a @@ -0,0 +1,21 @@ +(dp1 +S'output' +p2 +S" 'NoneType' object has no attribute 'save'" +p3 +sS'layer' +p4 +S'/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py' +p5 +sS'code' +p6 +S'# -*- coding: utf-8 -*-\n\n\n@auth.requires_login()\ndef index():\n Validator.admin()\n return dict()\n\n\n\n\n\n\n@auth.requires_login()\ndef home_slide_resources():\n Validator.admin()\n return dict(mRows=db(db.tbHomePageSlideResources.id>0).select())\n\n\n\n\n\n@auth.requires_login()\ndef add_home_slide_resource():\n Validator.admin()\n\n mForm = SQLFORM(db.tbHomePageSlideResources, submit_button=T(\'Add an image\'), upload=URL(\'download\'))\n\n Validator.form_process(mForm, URL("manager", "home_slide_resources"), mOnAccepted=add_home_slide_resource_accepted)\n\n return dict(mForm=mForm)\n\n\n\n\n\n@auth.requires_login()\ndef add_home_slide_resource_accepted(mForm):\n Validator.admin()\n\n #Adding thumbnail.\n from lib_image import MyImage\n mRow = db.tbHomePageSlideResources(mForm.vars.id)\n db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mThumbnail=MyImage.transform(mRow.mTempImage, MyImage.THUMBNAIL_DIMENSION))\n db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mImage=MyImage.transform(mRow.mTempImage, MyImage.IMAGE_GOOD_DIMENSION))\n\n print \'temp image\', mRow.mTempImage\n MyFile(request.folder + \'uploads/\'+str(mRow.mTempImage)).remove()\n pass\n\n\n\n\n\n\n\n\n@auth.requires_login()\ndef remove_image():\n\n Validator.admin()\n Validator.valide_args(1)\n\n mFile = db.tbHomePageSlideResources(request.args[0])\n\n MyFile(request.folder + \'uploads/\'+mFile.mThumbnail).remove()\n MyFile(request.folder + \'uploads/\'+mFile.mImage).remove()\n\n db(db.tbHomePageSlideResources.id==mFile.id).delete()\n\n MessageBox(T(\'File\') + \' \'+mFile.mLabel+\' \' + T(\'removed!\')).showSuccess()\n redirect(URL(\'manager\', \'home_slide_resources\'))\n pass\n\nresponse._vars=response._caller(add_home_slide_resource)\n' +p7 +sS'snapshot' +p8 +(dp9 +sS'traceback' +p10 +S'Traceback (most recent call last):\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/restricted.py", line 227, in restricted\n exec ccode in environment\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py", line 75, in \n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/globals.py", line 412, in \n self._caller = lambda f: f()\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py", line 29, in add_home_slide_resource\n Validator.form_process(mForm, URL("manager", "home_slide_resources"), mOnAccepted=add_home_slide_resource_accepted)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/models/lib.py", line 327, in form_process\n mOnAccepted(mForm)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py", line 44, in add_home_slide_resource_accepted\n db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mThumbnail=MyImage.transform(mRow.mTempImage, MyImage.THUMBNAIL_DIMENSION))\n File "applications/perimoveis/modules/lib_image.py", line 65, in transform\n img.save(request.folder + \'uploads/\' + thumb)\nAttributeError: \'NoneType\' object has no attribute \'save\'\n' +p11 +s. \ No newline at end of file diff --git a/errors/127.0.0.1.2016-03-14.17-35-56.3ee305b4-3faf-4a0f-b6bb-b40c6e2abb82 b/errors/127.0.0.1.2016-03-14.17-35-56.3ee305b4-3faf-4a0f-b6bb-b40c6e2abb82 new file mode 100644 index 0000000..b814c00 --- /dev/null +++ b/errors/127.0.0.1.2016-03-14.17-35-56.3ee305b4-3faf-4a0f-b6bb-b40c6e2abb82 @@ -0,0 +1,21 @@ +(dp1 +S'output' +p2 +S" global name 'request' is not defined" +p3 +sS'layer' +p4 +S'/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py' +p5 +sS'code' +p6 +S'# -*- coding: utf-8 -*-\n\n\n@auth.requires_login()\ndef index():\n Validator.admin()\n return dict()\n\n\n\n\n\n\n@auth.requires_login()\ndef home_slide_resources():\n Validator.admin()\n return dict(mRows=db(db.tbHomePageSlideResources.id>0).select())\n\n\n\n\n\n@auth.requires_login()\ndef add_home_slide_resource():\n Validator.admin()\n\n mForm = SQLFORM(db.tbHomePageSlideResources, submit_button=T(\'Add an image\'), upload=URL(\'download\'))\n\n Validator.form_process(mForm, URL("manager", "home_slide_resources"), mOnAccepted=add_home_slide_resource_accepted)\n\n return dict(mForm=mForm)\n\n\n\n\n\n@auth.requires_login()\ndef add_home_slide_resource_accepted(mForm):\n Validator.admin()\n\n #Adding thumbnail.\n from lib_image import MyImage\n mRow = db.tbHomePageSlideResources(mForm.vars.id)\n db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mThumbnail=MyImage.transform(mRow.mTempImage, MyImage.THUMBNAIL_DIMENSION))\n db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mImage=MyImage.transform(mRow.mTempImage, MyImage.IMAGE_GOOD_DIMENSION))\n\n print \'temp image\', mRow.mTempImage\n MyFile(request.folder + \'uploads/\'+str(mRow.mTempImage)).remove()\n pass\n\n\n\n\n\n\n\n\n@auth.requires_login()\ndef remove_image():\n\n Validator.admin()\n Validator.valide_args(1)\n\n mFile = db.tbHomePageSlideResources(request.args[0])\n\n MyFile(request.folder + \'uploads/\'+mFile.mThumbnail).remove()\n MyFile(request.folder + \'uploads/\'+mFile.mImage).remove()\n\n db(db.tbHomePageSlideResources.id==mFile.id).delete()\n\n MessageBox(T(\'File\') + \' \'+mFile.mLabel+\' \' + T(\'removed!\')).showSuccess()\n redirect(URL(\'manager\', \'home_slide_resources\'))\n pass\n\nresponse._vars=response._caller(add_home_slide_resource)\n' +p7 +sS'snapshot' +p8 +(dp9 +sS'traceback' +p10 +S'Traceback (most recent call last):\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/restricted.py", line 227, in restricted\n exec ccode in environment\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py", line 75, in \n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/globals.py", line 412, in \n self._caller = lambda f: f()\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py", line 29, in add_home_slide_resource\n Validator.form_process(mForm, URL("manager", "home_slide_resources"), mOnAccepted=add_home_slide_resource_accepted)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/models/lib.py", line 327, in form_process\n mOnAccepted(mForm)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/manager.py", line 44, in add_home_slide_resource_accepted\n db(db.tbHomePageSlideResources.id==mForm.vars.id).update(mThumbnail=MyImage.transform(mRow.mTempImage, MyImage.THUMBNAIL_DIMENSION))\n File "applications/perimoveis/modules/lib_image.py", line 67, in transform\n img.save(request.folder + \'uploads/\' + thumb)\nNameError: global name \'request\' is not defined\n' +p11 +s. \ No newline at end of file diff --git a/errors/127.0.0.1.2016-03-14.17-48-47.dc9ec6ce-77f9-405a-95b8-f899f8ac62c7 b/errors/127.0.0.1.2016-03-14.17-48-47.dc9ec6ce-77f9-405a-95b8-f899f8ac62c7 new file mode 100644 index 0000000..7781e17 --- /dev/null +++ b/errors/127.0.0.1.2016-03-14.17-48-47.dc9ec6ce-77f9-405a-95b8-f899f8ac62c7 @@ -0,0 +1,21 @@ +(dp1 +S'output' +p2 +S" not indexable" +p3 +sS'layer' +p4 +S'/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/product.py' +p5 +sS'code' +p6 +S'# -*- coding: utf-8 -*-\n\n\n\n\ndef index():\n\n return dict(mRows=db(db.tbProducts.id>0).select())\n\n\n\n@auth.requires_login()\ndef add():\n Validator.admin()\n\n mForm=SQLFORM(db.tbProducts, submit_button=T(\'Save and add an image\'))\n\n Validator.form_process(mForm, URL(\'product\', \'index\'))\n\n return dict(mForm=mForm)\n\n\n\n@auth.requires_login()\ndef edit():\n Validator.admin()\n Validator.valide_args(1)\n\n db.tbProducts.id.readable = False\n\n mForm=SQLFORM(db.tbProducts,\n db.tbProducts(request.args[0]),\n submit_button=T(\'Save changes\'))\n\n Validator.form_process(mForm, URL(\'product\', \'index\'))\n\n mImages = db(db.tbProductsUploads.mProduct==request.args[0]).select()\n \n return dict(mForm=mForm, mImages=mImages,mFormImage=get_image_add_form(request.args[0]))\n\n\n\n\n@auth.requires_login()\ndef get_image_add_form(mProductId):\n\n Validator.admin()\n\n mForm = FORM(LABEL(T("File")+"(s):"), INPUT(_name=\'mFiles\', _type=\'file\', _multiple=\'\'),\n BR(),INPUT(_type=\'submit\', _value=T("Send images")))\n\n if mForm.accepts(request.vars, formname="mForm"):\n\n if hasattr(request.vars, \'mFiles\'):\n\n if len(request.vars.mFiles) > 0:\n mFiles = request.vars[\'mFiles\']\n if not isinstance(mFiles, list):\n mFiles = [files]\n\n for f in mFiles:\n print f.filename\n mFile = db.tbProductsUploads.mFile.store(f, f.filename)\n db.tbProductsUploads.insert(mFile=mFile, mFilename=f.filename, mProduct=mProductId)\n db.commit()\n\n #redirect(URL(\'product\', \'index\'))\n else:\n mForm.errors.mFiles = "No files selected"\n\n return mForm\n\nresponse._vars=response._caller(edit)\n' +p7 +sS'snapshot' +p8 +(dp9 +sS'traceback' +p10 +S'Traceback (most recent call last):\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/restricted.py", line 227, in restricted\n exec ccode in environment\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/product.py", line 73, in \n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/globals.py", line 412, in \n self._caller = lambda f: f()\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/product.py", line 39, in edit\n return dict(mForm=mForm, mImages=mImages,mFormImage=get_image_add_form(request.args[0]))\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/product.py", line 56, in get_image_add_form\n if len(request.vars.mFiles) > 0:\n File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/cgi.py", line 599, in __len__\n return len(self.keys())\n File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/cgi.py", line 582, in keys\n raise TypeError, "not indexable"\nTypeError: not indexable\n' +p11 +s. \ No newline at end of file diff --git a/errors/127.0.0.1.2016-03-14.17-50-14.74733204-db6c-4f70-be20-cd582d5fb7cf b/errors/127.0.0.1.2016-03-14.17-50-14.74733204-db6c-4f70-be20-cd582d5fb7cf new file mode 100644 index 0000000..2ab3a7e --- /dev/null +++ b/errors/127.0.0.1.2016-03-14.17-50-14.74733204-db6c-4f70-be20-cd582d5fb7cf @@ -0,0 +1,21 @@ +(dp1 +S'output' +p2 +S" not indexable" +p3 +sS'layer' +p4 +S'/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/product.py' +p5 +sS'code' +p6 +S'# -*- coding: utf-8 -*-\n\n\n\n\ndef index():\n\n return dict(mRows=db(db.tbProducts.id>0).select())\n\n\n\n@auth.requires_login()\ndef add():\n Validator.admin()\n\n mForm=SQLFORM(db.tbProducts, submit_button=T(\'Save and add an image\'))\n\n Validator.form_process(mForm, URL(\'product\', \'index\'))\n\n return dict(mForm=mForm)\n\n\n\n@auth.requires_login()\ndef edit():\n Validator.admin()\n Validator.valide_args(1)\n\n db.tbProducts.id.readable = False\n\n mForm=SQLFORM(db.tbProducts,\n db.tbProducts(request.args[0]),\n submit_button=T(\'Save changes\'))\n\n Validator.form_process(mForm, URL(\'product\', \'index\'))\n\n mImages = db(db.tbProductsUploads.mProduct==request.args[0]).select()\n\n return dict(mForm=mForm, mImages=mImages,mFormImage=get_image_add_form(request.args[0]))\n\n\n\n\n@auth.requires_login()\ndef get_image_add_form(mProductId):\n\n Validator.admin()\n\n mForm = FORM(LABEL(T("File")+"(s):"), INPUT(_name=\'mFiles\', _type=\'file\', _multiple=\'\'),\n BR(),INPUT(_type=\'submit\', _value=T("Send images")))\n\n if mForm.accepts(request.vars, formname="mForm"):\n\n if hasattr(request.vars, \'mFiles\'):\n\n print \'()())()()()()()()\', len(request.vars.mFiles)\n if len(request.vars.mFiles) > 0:\n mFiles = request.vars[\'mFiles\']\n if not isinstance(mFiles, list):\n mFiles = [files]\n\n for f in mFiles:\n print f.filename\n mFile = db.tbProductsUploads.mFile.store(f, f.filename)\n db.tbProductsUploads.insert(mFile=mFile, mFilename=f.filename, mProduct=mProductId)\n db.commit()\n\n #redirect(URL(\'product\', \'index\'))\n else:\n mForm.errors.mFiles = "No files selected"\n\n return mForm\n\nresponse._vars=response._caller(edit)\n' +p7 +sS'snapshot' +p8 +(dp9 +sS'traceback' +p10 +S'Traceback (most recent call last):\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/restricted.py", line 227, in restricted\n exec ccode in environment\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/product.py", line 74, in \n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/globals.py", line 412, in \n self._caller = lambda f: f()\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/product.py", line 39, in edit\n return dict(mForm=mForm, mImages=mImages,mFormImage=get_image_add_form(request.args[0]))\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/product.py", line 56, in get_image_add_form\n print \'()())()()()()()()\', len(request.vars.mFiles)\n File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/cgi.py", line 599, in __len__\n return len(self.keys())\n File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/cgi.py", line 582, in keys\n raise TypeError, "not indexable"\nTypeError: not indexable\n' +p11 +s. \ No newline at end of file diff --git a/errors/127.0.0.1.2016-03-14.17-50-39.10c128ec-563f-43c5-aa8c-0de1378542fb b/errors/127.0.0.1.2016-03-14.17-50-39.10c128ec-563f-43c5-aa8c-0de1378542fb new file mode 100644 index 0000000..e200b25 --- /dev/null +++ b/errors/127.0.0.1.2016-03-14.17-50-39.10c128ec-563f-43c5-aa8c-0de1378542fb @@ -0,0 +1,21 @@ +(dp1 +S'output' +p2 +S" not indexable" +p3 +sS'layer' +p4 +S'/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/product.py' +p5 +sS'code' +p6 +S'# -*- coding: utf-8 -*-\n\n\n\n\ndef index():\n\n return dict(mRows=db(db.tbProducts.id>0).select())\n\n\n\n@auth.requires_login()\ndef add():\n Validator.admin()\n\n mForm=SQLFORM(db.tbProducts, submit_button=T(\'Save and add an image\'))\n\n Validator.form_process(mForm, URL(\'product\', \'index\'))\n\n return dict(mForm=mForm)\n\n\n\n@auth.requires_login()\ndef edit():\n Validator.admin()\n Validator.valide_args(1)\n\n db.tbProducts.id.readable = False\n\n mForm=SQLFORM(db.tbProducts,\n db.tbProducts(request.args[0]),\n submit_button=T(\'Save changes\'))\n\n Validator.form_process(mForm, URL(\'product\', \'index\'))\n\n mImages = db(db.tbProductsUploads.mProduct==request.args[0]).select()\n\n return dict(mForm=mForm, mImages=mImages,mFormImage=get_image_add_form(request.args[0]))\n\n\n\n\n@auth.requires_login()\ndef get_image_add_form(mProductId):\n\n Validator.admin()\n\n mForm = FORM(LABEL(T("File")+"(s):"), INPUT(_name=\'mFiles\', _type=\'file\', _multiple=\'\'),\n BR(),INPUT(_type=\'submit\', _value=T("Send images")))\n\n if mForm.accepts(request.vars, formname="mForm"):\n\n if hasattr(request.vars, \'mFiles\'):\n\n print \'()())()()()()()()\', len(request.vars.mFiles)\n if len(request.vars.mFiles) > 0:\n mFiles = request.vars[\'mFiles\']\n if not isinstance(mFiles, list):\n mFiles = [files]\n\n for f in mFiles:\n mFile = db.tbProductsUploads.mFile.store(f, f.filename)\n db.tbProductsUploads.insert(mFile=mFile, mFilename=f.filename, mProduct=mProductId)\n db.commit()\n\n #redirect(URL(\'product\', \'index\'))\n else:\n mForm.errors.mFiles = "No files selected"\n\n return mForm\n\nresponse._vars=response._caller(edit)\n' +p7 +sS'snapshot' +p8 +(dp9 +sS'traceback' +p10 +S'Traceback (most recent call last):\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/restricted.py", line 227, in restricted\n exec ccode in environment\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/product.py", line 73, in \n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/globals.py", line 412, in \n self._caller = lambda f: f()\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/product.py", line 39, in edit\n return dict(mForm=mForm, mImages=mImages,mFormImage=get_image_add_form(request.args[0]))\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/product.py", line 56, in get_image_add_form\n print \'()())()()()()()()\', len(request.vars.mFiles)\n File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/cgi.py", line 599, in __len__\n return len(self.keys())\n File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/cgi.py", line 582, in keys\n raise TypeError, "not indexable"\nTypeError: not indexable\n' +p11 +s. \ No newline at end of file diff --git a/errors/127.0.0.1.2016-03-14.17-51-15.a8a67d74-63d7-4ab9-afe6-2012a92c6ec5 b/errors/127.0.0.1.2016-03-14.17-51-15.a8a67d74-63d7-4ab9-afe6-2012a92c6ec5 new file mode 100644 index 0000000..33df524 --- /dev/null +++ b/errors/127.0.0.1.2016-03-14.17-51-15.a8a67d74-63d7-4ab9-afe6-2012a92c6ec5 @@ -0,0 +1,21 @@ +(dp1 +S'output' +p2 +S" not indexable" +p3 +sS'layer' +p4 +S'/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/product.py' +p5 +sS'code' +p6 +S'# -*- coding: utf-8 -*-\n\n\n\n\ndef index():\n\n return dict(mRows=db(db.tbProducts.id>0).select())\n\n\n\n@auth.requires_login()\ndef add():\n Validator.admin()\n\n mForm=SQLFORM(db.tbProducts, submit_button=T(\'Save and add an image\'))\n\n Validator.form_process(mForm, URL(\'product\', \'index\'))\n\n return dict(mForm=mForm)\n\n\n\n@auth.requires_login()\ndef edit():\n Validator.admin()\n Validator.valide_args(1)\n\n db.tbProducts.id.readable = False\n\n mForm=SQLFORM(db.tbProducts,\n db.tbProducts(request.args[0]),\n submit_button=T(\'Save changes\'))\n\n Validator.form_process(mForm, URL(\'product\', \'index\'))\n\n mImages = db(db.tbProductsUploads.mProduct==request.args[0]).select()\n\n return dict(mForm=mForm, mImages=mImages,mFormImage=get_image_add_form(request.args[0]))\n\n\n\n\n@auth.requires_login()\ndef get_image_add_form(mProductId):\n\n Validator.admin()\n\n mForm = FORM(LABEL(T("File")+"(s):"), INPUT(_name=\'mFiles\', _type=\'file\', _multiple=\'\'),\n BR(),INPUT(_type=\'submit\', _value=T("Send images")))\n\n if mForm.accepts(request.vars, formname="mForm"):\n\n if hasattr(request.vars, \'mFiles\'):\n\n print request.vars.mFiles\n print \'()())()()()()()()\', len(request.vars.mFiles)\n if len(request.vars.mFiles) > 0:\n mFiles = request.vars[\'mFiles\']\n if not isinstance(mFiles, list):\n mFiles = [files]\n\n for f in mFiles:\n mFile = db.tbProductsUploads.mFile.store(f, f.filename)\n db.tbProductsUploads.insert(mFile=mFile, mFilename=f.filename, mProduct=mProductId)\n db.commit()\n\n #redirect(URL(\'product\', \'index\'))\n else:\n mForm.errors.mFiles = "No files selected"\n\n return mForm\n\nresponse._vars=response._caller(edit)\n' +p7 +sS'snapshot' +p8 +(dp9 +sS'traceback' +p10 +S'Traceback (most recent call last):\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/restricted.py", line 227, in restricted\n exec ccode in environment\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/product.py", line 74, in \n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/globals.py", line 412, in \n self._caller = lambda f: f()\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/product.py", line 39, in edit\n return dict(mForm=mForm, mImages=mImages,mFormImage=get_image_add_form(request.args[0]))\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/product.py", line 57, in get_image_add_form\n print \'()())()()()()()()\', len(request.vars.mFiles)\n File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/cgi.py", line 599, in __len__\n return len(self.keys())\n File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/cgi.py", line 582, in keys\n raise TypeError, "not indexable"\nTypeError: not indexable\n' +p11 +s. \ No newline at end of file diff --git a/errors/127.0.0.1.2016-03-14.18-00-16.0f9d57de-dfbc-4a0a-b182-9ff39ff129a4 b/errors/127.0.0.1.2016-03-14.18-00-16.0f9d57de-dfbc-4a0a-b182-9ff39ff129a4 new file mode 100644 index 0000000..1560fb1 --- /dev/null +++ b/errors/127.0.0.1.2016-03-14.18-00-16.0f9d57de-dfbc-4a0a-b182-9ff39ff129a4 @@ -0,0 +1,21 @@ +(dp1 +S'output' +p2 +S" global name 'args' is not defined" +p3 +sS'layer' +p4 +S'/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/product.py' +p5 +sS'code' +p6 +S'# -*- coding: utf-8 -*-\n\n\n\n\ndef index():\n\n return dict(mRows=db(db.tbProducts.id>0).select())\n\n\n\n@auth.requires_login()\ndef add():\n Validator.admin()\n\n mForm=SQLFORM(db.tbProducts, submit_button=T(\'Save and add an image\'))\n\n Validator.form_process(mForm, URL(\'product\', \'index\'))\n\n return dict(mForm=mForm)\n\n\n\n@auth.requires_login()\ndef edit():\n Validator.admin()\n Validator.valide_args(1)\n\n db.tbProducts.id.readable = False\n\n mForm=SQLFORM(db.tbProducts,\n db.tbProducts(request.args[0]),\n submit_button=T(\'Save changes\'))\n\n Validator.form_process(mForm, URL(\'product\', \'index\'))\n\n mImages = db(db.tbProductsUploads.mProduct==request.args[0]).select()\n\n return dict(mForm=mForm, mImages=mImages,mFormImage=get_image_add_form(request.args[0]))\n\n\n\n\n@auth.requires_login()\ndef get_image_add_form(mProductId):\n\n Validator.admin()\n\n mForm = FORM(LABEL(T("File")+"(s):"), INPUT(_name=\'mFiles\', _type=\'file\', _multiple=\'\'),\n BR(),INPUT(_type=\'submit\', _value=T("Send images")))\n\n if mForm.accepts(request.vars, formname="mForm"):\n\n if hasattr(request.vars, \'mFiles\'):\n\n #fix this method to accepts one file\n #if isinstance(e, list):\n print \'()())()()()()()()\', len(request.vars.mFiles)\n if len(request.vars.mFiles) > 0:\n mFiles = request.vars[\'mFiles\']\n if not isinstance(mFiles, list):\n mFiles = [files]\n\n for f in mFiles:\n mFile = db.tbProductsUploads.mFile.store(f, f.filename)\n db.tbProductsUploads.insert(mFile=mFile, mFilename=f.filename, mProduct=mProductId)\n db.commit()\n\n #redirect(URL(\'product\', \'index\'))\n else:\n mForm.errors.mFiles = "No files selected"\n\n return mForm\n\n\n@auth.requires_login()\ndef get_cut_image():\n\n Validator.admin()\n Validator.valide_args(1)\n\n from lib_image import MyImage\n\n return MyImage.cut(URL(\'app\', \'download\', args[db.tbProducts(request.args[0]).mFile]))\n\nresponse._vars=response._caller(get_cut_image)\n' +p7 +sS'snapshot' +p8 +(dp9 +sS'traceback' +p10 +S'Traceback (most recent call last):\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/restricted.py", line 227, in restricted\n exec ccode in environment\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/product.py", line 86, in \n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/globals.py", line 412, in \n self._caller = lambda f: f()\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/product.py", line 84, in get_cut_image\n return MyImage.cut(URL(\'app\', \'download\', args[db.tbProducts(request.args[0]).mFile]))\nNameError: global name \'args\' is not defined\n' +p11 +s. \ No newline at end of file diff --git a/errors/127.0.0.1.2016-03-14.18-00-29.00b07bf7-edeb-4b0a-9e38-1d025ea18f71 b/errors/127.0.0.1.2016-03-14.18-00-29.00b07bf7-edeb-4b0a-9e38-1d025ea18f71 new file mode 100644 index 0000000..5b40744 --- /dev/null +++ b/errors/127.0.0.1.2016-03-14.18-00-29.00b07bf7-edeb-4b0a-9e38-1d025ea18f71 @@ -0,0 +1,21 @@ +(dp1 +S'output' +p2 +S" 'NoneType' object has no attribute 'mFile'" +p3 +sS'layer' +p4 +S'/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/product.py' +p5 +sS'code' +p6 +S'# -*- coding: utf-8 -*-\n\n\n\n\ndef index():\n\n return dict(mRows=db(db.tbProducts.id>0).select())\n\n\n\n@auth.requires_login()\ndef add():\n Validator.admin()\n\n mForm=SQLFORM(db.tbProducts, submit_button=T(\'Save and add an image\'))\n\n Validator.form_process(mForm, URL(\'product\', \'index\'))\n\n return dict(mForm=mForm)\n\n\n\n@auth.requires_login()\ndef edit():\n Validator.admin()\n Validator.valide_args(1)\n\n db.tbProducts.id.readable = False\n\n mForm=SQLFORM(db.tbProducts,\n db.tbProducts(request.args[0]),\n submit_button=T(\'Save changes\'))\n\n Validator.form_process(mForm, URL(\'product\', \'index\'))\n\n mImages = db(db.tbProductsUploads.mProduct==request.args[0]).select()\n\n return dict(mForm=mForm, mImages=mImages,mFormImage=get_image_add_form(request.args[0]))\n\n\n\n\n@auth.requires_login()\ndef get_image_add_form(mProductId):\n\n Validator.admin()\n\n mForm = FORM(LABEL(T("File")+"(s):"), INPUT(_name=\'mFiles\', _type=\'file\', _multiple=\'\'),\n BR(),INPUT(_type=\'submit\', _value=T("Send images")))\n\n if mForm.accepts(request.vars, formname="mForm"):\n\n if hasattr(request.vars, \'mFiles\'):\n\n #fix this method to accepts one file\n #if isinstance(e, list):\n print \'()())()()()()()()\', len(request.vars.mFiles)\n if len(request.vars.mFiles) > 0:\n mFiles = request.vars[\'mFiles\']\n if not isinstance(mFiles, list):\n mFiles = [files]\n\n for f in mFiles:\n mFile = db.tbProductsUploads.mFile.store(f, f.filename)\n db.tbProductsUploads.insert(mFile=mFile, mFilename=f.filename, mProduct=mProductId)\n db.commit()\n\n #redirect(URL(\'product\', \'index\'))\n else:\n mForm.errors.mFiles = "No files selected"\n\n return mForm\n\n\n@auth.requires_login()\ndef get_cut_image():\n\n Validator.admin()\n Validator.valide_args(1)\n\n from lib_image import MyImage\n\n return MyImage.cut(URL(\'app\', \'download\', args=[db.tbProducts(request.args[0]).mFile]))\n\nresponse._vars=response._caller(get_cut_image)\n' +p7 +sS'snapshot' +p8 +(dp9 +sS'traceback' +p10 +S'Traceback (most recent call last):\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/restricted.py", line 227, in restricted\n exec ccode in environment\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/product.py", line 86, in \n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/globals.py", line 412, in \n self._caller = lambda f: f()\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/product.py", line 84, in get_cut_image\n return MyImage.cut(URL(\'app\', \'download\', args=[db.tbProducts(request.args[0]).mFile]))\nAttributeError: \'NoneType\' object has no attribute \'mFile\'\n' +p11 +s. \ No newline at end of file diff --git a/errors/127.0.0.1.2016-03-14.18-00-54.2e78520d-aca6-4b53-bd63-13b9806a7da2 b/errors/127.0.0.1.2016-03-14.18-00-54.2e78520d-aca6-4b53-bd63-13b9806a7da2 new file mode 100644 index 0000000..085b957 --- /dev/null +++ b/errors/127.0.0.1.2016-03-14.18-00-54.2e78520d-aca6-4b53-bd63-13b9806a7da2 @@ -0,0 +1,21 @@ +(dp1 +S'output' +p2 +S" global name 'transform_engine' is not defined" +p3 +sS'layer' +p4 +S'/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/product.py' +p5 +sS'code' +p6 +S'# -*- coding: utf-8 -*-\n\n\n\n\ndef index():\n\n return dict(mRows=db(db.tbProducts.id>0).select())\n\n\n\n@auth.requires_login()\ndef add():\n Validator.admin()\n\n mForm=SQLFORM(db.tbProducts, submit_button=T(\'Save and add an image\'))\n\n Validator.form_process(mForm, URL(\'product\', \'index\'))\n\n return dict(mForm=mForm)\n\n\n\n@auth.requires_login()\ndef edit():\n Validator.admin()\n Validator.valide_args(1)\n\n db.tbProducts.id.readable = False\n\n mForm=SQLFORM(db.tbProducts,\n db.tbProducts(request.args[0]),\n submit_button=T(\'Save changes\'))\n\n Validator.form_process(mForm, URL(\'product\', \'index\'))\n\n mImages = db(db.tbProductsUploads.mProduct==request.args[0]).select()\n\n return dict(mForm=mForm, mImages=mImages,mFormImage=get_image_add_form(request.args[0]))\n\n\n\n\n@auth.requires_login()\ndef get_image_add_form(mProductId):\n\n Validator.admin()\n\n mForm = FORM(LABEL(T("File")+"(s):"), INPUT(_name=\'mFiles\', _type=\'file\', _multiple=\'\'),\n BR(),INPUT(_type=\'submit\', _value=T("Send images")))\n\n if mForm.accepts(request.vars, formname="mForm"):\n\n if hasattr(request.vars, \'mFiles\'):\n\n #fix this method to accepts one file\n #if isinstance(e, list):\n print \'()())()()()()()()\', len(request.vars.mFiles)\n if len(request.vars.mFiles) > 0:\n mFiles = request.vars[\'mFiles\']\n if not isinstance(mFiles, list):\n mFiles = [files]\n\n for f in mFiles:\n mFile = db.tbProductsUploads.mFile.store(f, f.filename)\n db.tbProductsUploads.insert(mFile=mFile, mFilename=f.filename, mProduct=mProductId)\n db.commit()\n\n #redirect(URL(\'product\', \'index\'))\n else:\n mForm.errors.mFiles = "No files selected"\n\n return mForm\n\n\n@auth.requires_login()\ndef get_cut_image():\n\n Validator.admin()\n Validator.valide_args(1)\n\n from lib_image import MyImage\n\n return MyImage.cut(URL(\'app\', \'download\', args=[db.tbProductsUploads(request.args[0]).mFile]))\n\nresponse._vars=response._caller(get_cut_image)\n' +p7 +sS'snapshot' +p8 +(dp9 +sS'traceback' +p10 +S'Traceback (most recent call last):\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/restricted.py", line 227, in restricted\n exec ccode in environment\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/product.py", line 86, in \n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/globals.py", line 412, in \n self._caller = lambda f: f()\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/product.py", line 84, in get_cut_image\n return MyImage.cut(URL(\'app\', \'download\', args=[db.tbProductsUploads(request.args[0]).mFile]))\n File "applications/perimoveis/modules/lib_image.py", line 20, in cut\n return transform_engine(mImage, mResolution, mFit)\nNameError: global name \'transform_engine\' is not defined\n' +p11 +s. \ No newline at end of file diff --git a/errors/127.0.0.1.2016-03-14.18-01-22.5416557b-92ec-4c5b-b9a6-2ee8888de96b b/errors/127.0.0.1.2016-03-14.18-01-22.5416557b-92ec-4c5b-b9a6-2ee8888de96b new file mode 100644 index 0000000..1819729 --- /dev/null +++ b/errors/127.0.0.1.2016-03-14.18-01-22.5416557b-92ec-4c5b-b9a6-2ee8888de96b @@ -0,0 +1,21 @@ +(dp1 +S'output' +p2 +S" global name 'transform_engine' is not defined" +p3 +sS'layer' +p4 +S'/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/product.py' +p5 +sS'code' +p6 +S'# -*- coding: utf-8 -*-\n\n\n\n\ndef index():\n\n return dict(mRows=db(db.tbProducts.id>0).select())\n\n\n\n@auth.requires_login()\ndef add():\n Validator.admin()\n\n mForm=SQLFORM(db.tbProducts, submit_button=T(\'Save and add an image\'))\n\n Validator.form_process(mForm, URL(\'product\', \'index\'))\n\n return dict(mForm=mForm)\n\n\n\n@auth.requires_login()\ndef edit():\n Validator.admin()\n Validator.valide_args(1)\n\n db.tbProducts.id.readable = False\n\n mForm=SQLFORM(db.tbProducts,\n db.tbProducts(request.args[0]),\n submit_button=T(\'Save changes\'))\n\n Validator.form_process(mForm, URL(\'product\', \'index\'))\n\n mImages = db(db.tbProductsUploads.mProduct==request.args[0]).select()\n\n return dict(mForm=mForm, mImages=mImages,mFormImage=get_image_add_form(request.args[0]))\n\n\n\n\n@auth.requires_login()\ndef get_image_add_form(mProductId):\n\n Validator.admin()\n\n mForm = FORM(LABEL(T("File")+"(s):"), INPUT(_name=\'mFiles\', _type=\'file\', _multiple=\'\'),\n BR(),INPUT(_type=\'submit\', _value=T("Send images")))\n\n if mForm.accepts(request.vars, formname="mForm"):\n\n if hasattr(request.vars, \'mFiles\'):\n\n #fix this method to accepts one file\n #if isinstance(e, list):\n print \'()())()()()()()()\', len(request.vars.mFiles)\n if len(request.vars.mFiles) > 0:\n mFiles = request.vars[\'mFiles\']\n if not isinstance(mFiles, list):\n mFiles = [files]\n\n for f in mFiles:\n mFile = db.tbProductsUploads.mFile.store(f, f.filename)\n db.tbProductsUploads.insert(mFile=mFile, mFilename=f.filename, mProduct=mProductId)\n db.commit()\n\n #redirect(URL(\'product\', \'index\'))\n else:\n mForm.errors.mFiles = "No files selected"\n\n return mForm\n\n\n@auth.requires_login()\ndef get_cut_image():\n\n Validator.admin()\n Validator.valide_args(1)\n\n from lib_image import MyImage\n\n return MyImage.cut(URL(\'app\', \'download\', args=[db.tbProductsUploads(request.args[0]).mFile]))\n\nresponse._vars=response._caller(get_cut_image)\n' +p7 +sS'snapshot' +p8 +(dp9 +sS'traceback' +p10 +S'Traceback (most recent call last):\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/restricted.py", line 227, in restricted\n exec ccode in environment\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/product.py", line 86, in \n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/globals.py", line 412, in \n self._caller = lambda f: f()\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/product.py", line 84, in get_cut_image\n return MyImage.cut(URL(\'app\', \'download\', args=[db.tbProductsUploads(request.args[0]).mFile]))\n File "applications/perimoveis/modules/lib_image.py", line 20, in cut\n return MyImage.transform_engine(mImage, mResolution, mFit)\nNameError: global name \'transform_engine\' is not defined\n' +p11 +s. \ No newline at end of file diff --git a/errors/127.0.0.1.2016-03-14.18-01-32.8fadd119-69e9-4888-87d8-49d6b6574e64 b/errors/127.0.0.1.2016-03-14.18-01-32.8fadd119-69e9-4888-87d8-49d6b6574e64 new file mode 100644 index 0000000..cb57449 --- /dev/null +++ b/errors/127.0.0.1.2016-03-14.18-01-32.8fadd119-69e9-4888-87d8-49d6b6574e64 @@ -0,0 +1,21 @@ +(dp1 +S'output' +p2 +S" [Errno 2] No such file or directory: '/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/uploads//perimoveis/app/download/tbProductsUploads.mFile.ae0a23a929420990.61646d656469612e706e67.png'" +p3 +sS'layer' +p4 +S'/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/product.py' +p5 +sS'code' +p6 +S'# -*- coding: utf-8 -*-\n\n\n\n\ndef index():\n\n return dict(mRows=db(db.tbProducts.id>0).select())\n\n\n\n@auth.requires_login()\ndef add():\n Validator.admin()\n\n mForm=SQLFORM(db.tbProducts, submit_button=T(\'Save and add an image\'))\n\n Validator.form_process(mForm, URL(\'product\', \'index\'))\n\n return dict(mForm=mForm)\n\n\n\n@auth.requires_login()\ndef edit():\n Validator.admin()\n Validator.valide_args(1)\n\n db.tbProducts.id.readable = False\n\n mForm=SQLFORM(db.tbProducts,\n db.tbProducts(request.args[0]),\n submit_button=T(\'Save changes\'))\n\n Validator.form_process(mForm, URL(\'product\', \'index\'))\n\n mImages = db(db.tbProductsUploads.mProduct==request.args[0]).select()\n\n return dict(mForm=mForm, mImages=mImages,mFormImage=get_image_add_form(request.args[0]))\n\n\n\n\n@auth.requires_login()\ndef get_image_add_form(mProductId):\n\n Validator.admin()\n\n mForm = FORM(LABEL(T("File")+"(s):"), INPUT(_name=\'mFiles\', _type=\'file\', _multiple=\'\'),\n BR(),INPUT(_type=\'submit\', _value=T("Send images")))\n\n if mForm.accepts(request.vars, formname="mForm"):\n\n if hasattr(request.vars, \'mFiles\'):\n\n #fix this method to accepts one file\n #if isinstance(e, list):\n print \'()())()()()()()()\', len(request.vars.mFiles)\n if len(request.vars.mFiles) > 0:\n mFiles = request.vars[\'mFiles\']\n if not isinstance(mFiles, list):\n mFiles = [files]\n\n for f in mFiles:\n mFile = db.tbProductsUploads.mFile.store(f, f.filename)\n db.tbProductsUploads.insert(mFile=mFile, mFilename=f.filename, mProduct=mProductId)\n db.commit()\n\n #redirect(URL(\'product\', \'index\'))\n else:\n mForm.errors.mFiles = "No files selected"\n\n return mForm\n\n\n@auth.requires_login()\ndef get_cut_image():\n\n Validator.admin()\n Validator.valide_args(1)\n\n from lib_image import MyImage\n\n return MyImage.cut(URL(\'app\', \'download\', args=[db.tbProductsUploads(request.args[0]).mFile]))\n\nresponse._vars=response._caller(get_cut_image)\n' +p7 +sS'snapshot' +p8 +(dp9 +sS'traceback' +p10 +S'Traceback (most recent call last):\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/restricted.py", line 227, in restricted\n exec ccode in environment\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/product.py", line 86, in \n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/globals.py", line 412, in \n self._caller = lambda f: f()\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/gluon/tools.py", line 4236, in f\n return action(*a, **b)\n File "/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/controllers/product.py", line 84, in get_cut_image\n return MyImage.cut(URL(\'app\', \'download\', args=[db.tbProductsUploads(request.args[0]).mFile]))\n File "applications/perimoveis/modules/lib_image.py", line 20, in cut\n return MyImage.transform_engine(mImage, mResolution, mFit)\n File "applications/perimoveis/modules/lib_image.py", line 33, in transform_engine\n img = Image.open(request.folder + \'uploads/\' + image)\n File "/usr/local/lib/python2.7/site-packages/PIL/Image.py", line 2258, in open\n fp = builtins.open(filename, "rb")\nIOError: [Errno 2] No such file or directory: \'/Users/fabiofilho/Documents/Deployment/Web2Py/web2py/applications/perimoveis/uploads//perimoveis/app/download/tbProductsUploads.mFile.ae0a23a929420990.61646d656469612e706e67.png\'\n' +p11 +s. \ No newline at end of file diff --git a/languages/pt.py b/languages/pt.py index 76f5b05..fbb87ee 100755 --- a/languages/pt.py +++ b/languages/pt.py @@ -71,8 +71,10 @@ 'data uploaded': 'informação enviada', 'Database': 'base de dados', 'Database %s select': 'selecção de base de dados %s', +'Database Administration (appadmin)': 'Database Administration (appadmin)', 'db': 'bd', 'DB Model': 'Modelo de BD', +'Delete': 'Delete', 'Delete:': 'Eliminar:', 'Demo': 'Demo', 'Deployment Recipes': 'Deployment Recipes', @@ -94,6 +96,7 @@ 'edit post': 'edit post', 'Edit profile': 'Edit profile', 'edit profile': 'Editar perfil', +'Edit the product': 'Edit the product', 'Edit This App': 'Edite esta aplicação', 'Email': 'Email', 'Email and SMS': 'Email and SMS', @@ -119,6 +122,7 @@ 'Home Page Management': 'Home Page Management', 'How did you get here?': 'How did you get here?', 'Image': 'Image', +'Images': 'Images', 'import': 'import', 'Import/Export': 'Importar/Exportar', 'Index': 'Índice', @@ -209,6 +213,8 @@ 'Reset Password key': 'Reset Password key', 'Rows in Table': 'Linhas numa tabela', 'Rows selected': 'Linhas seleccionadas', +'Save and add an image': 'Save and add an image', +'Save changes': 'Save changes', 'search category': 'search category', 'search comment': 'search comment', 'search post': 'search post', @@ -217,6 +223,7 @@ 'select comment': 'select comment', 'select post': 'select post', 'Semantic': 'Semantic', +'Send images': 'Send images', 'Send us an email to more informatiom.': 'Send us an email to more informatiom.', 'Send us an email to more information.': 'Send us an email to more information.', 'Services': 'Services', @@ -253,6 +260,7 @@ 'Value not allowed': 'Value not allowed', 'Videos': 'Videos', 'View': 'Vista', +'View Details': 'View Details', 'Welcome': 'Welcome', 'Welcome %s': 'Bem-vindo(a) %s', 'Welcome to Gluonization': 'Bem vindo ao Web2py', @@ -261,6 +269,7 @@ 'When': 'When', 'Which called the function %s located in the file %s': 'Which called the function %s located in the file %s', 'Whish list': 'Whish list', +'Wish list': 'Wish list', 'Working...': 'Working...', 'You are successfully running web2py': 'You are successfully running web2py', 'You can modify this application and adapt it to your needs': 'You can modify this application and adapt it to your needs', diff --git a/models/dbApp.py b/models/dbApp.py index 0c7bf48..eb3f161 100644 --- a/models/dbApp.py +++ b/models/dbApp.py @@ -13,7 +13,7 @@ db.define_table('tbProducts', - Field('mLabel', 'string', label=T('Label'), requires=IS_NOT_EMPTY()), + Field('mName', 'string', label=T('Label'), requires=IS_NOT_EMPTY()), Field('mPrice', 'float', label=T('Price'), requires= IS_MONEY()), Field('mPaymentInstallments', 'integer', requires=IS_IN_SET([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]), @@ -22,3 +22,10 @@ Field('mIsVisibleToShelf', 'boolean', default=False, writable=False, readable=False), auth.signature ) + + +db.define_table('tbProductsUploads', + Field('mProduct', 'reference tbProducts'), + Field('mFilename', represent = lambda x, row: "None" if x == None else x[:45]), + Field('mFile', 'upload', uploadseparate=True, requires=IS_NOT_EMPTY()), + auth.signature) diff --git a/models/menu.py b/models/menu.py index 321fcc8..0b17ac6 100755 --- a/models/menu.py +++ b/models/menu.py @@ -36,5 +36,3 @@ ######################################################################### ## provide shortcuts for development. remove in production ######################################################################### - -if "auth" in locals(): auth.wikimenu() diff --git a/modules/__init__.pyc b/modules/__init__.pyc index 613a07f..6a49fa2 100644 Binary files a/modules/__init__.pyc and b/modules/__init__.pyc differ diff --git a/modules/lib_image.py b/modules/lib_image.py index 53b54d7..dc818b1 100644 --- a/modules/lib_image.py +++ b/modules/lib_image.py @@ -1,3 +1,5 @@ +#TO INSTALL pip install Pillow + from gluon import current import os try: @@ -14,7 +16,12 @@ class MyImage: IMAGE_GOOD_DIMENSION = [960, 540] @staticmethod - def tranform(image, box=THUMBNAIL_DIMENSION, fit=True, name="thumb"): + def cut(mImage, mResolution=THUMBNAIL_DIMENSION, mFit=True): + return MyImage.transform_engine(mImage, mResolution, mFit) + + + @staticmethod + def transform_engine(image, box=THUMBNAIL_DIMENSION, fit=True): '''Downsample the image. @param img: Image - an Image-object @param box: tuple(x, y) - the bounding box of the result image @@ -48,7 +55,15 @@ def tranform(image, box=THUMBNAIL_DIMENSION, fit=True, name="thumb"): #Resize the image with best quality algorithm ANTI-ALIAS img.thumbnail(box, Image.ANTIALIAS) - root, ext = os.path.splitext(image) - thumb = '%s_%s__%sx%s_%s' % (root, name, box[0], box[1], ext) - img.save(request.folder + 'uploads/' + thumb) - return thumb + return img + + + @staticmethod + def transform(image, box=THUMBNAIL_DIMENSION, fit=True, name="thumb"): + + request = current.request + img = MyImage.transform_engine(image, box, fit) + root, ext = os.path.splitext(image) + thumb = '%s_%s__%sx%s_%s' % (root, name, box[0], box[1], ext) + img.save(request.folder + 'uploads/' + thumb) + return thumb diff --git a/modules/lib_image.pyc b/modules/lib_image.pyc index ab6954c..2b163c3 100644 Binary files a/modules/lib_image.pyc and b/modules/lib_image.pyc differ diff --git a/modules/lib_validator.pyc b/modules/lib_validator.pyc index f2ec0b4..6922d22 100644 Binary files a/modules/lib_validator.pyc and b/modules/lib_validator.pyc differ diff --git a/sessions/00e/022/127.0.0.1-490cd2fe-dbb1-46b7-b5d6-6b76a1d3b8f4 b/sessions/00e/022/127.0.0.1-490cd2fe-dbb1-46b7-b5d6-6b76a1d3b8f4 deleted file mode 100644 index c1159bf..0000000 Binary files a/sessions/00e/022/127.0.0.1-490cd2fe-dbb1-46b7-b5d6-6b76a1d3b8f4 and /dev/null differ diff --git a/sessions/15f/1e8/127.0.0.1-a76e6430-6b36-40d7-8c72-4fcd2336f6b9 b/sessions/15f/1e8/127.0.0.1-a76e6430-6b36-40d7-8c72-4fcd2336f6b9 new file mode 100644 index 0000000..9f5a93c Binary files /dev/null and b/sessions/15f/1e8/127.0.0.1-a76e6430-6b36-40d7-8c72-4fcd2336f6b9 differ diff --git a/sessions/174/155/127.0.0.1-7ad8c0e0-97c3-4b49-925f-a0e143d4853a b/sessions/174/155/127.0.0.1-7ad8c0e0-97c3-4b49-925f-a0e143d4853a new file mode 100644 index 0000000..d37d879 Binary files /dev/null and b/sessions/174/155/127.0.0.1-7ad8c0e0-97c3-4b49-925f-a0e143d4853a differ diff --git a/sessions/1e1/194/127.0.0.1-5f8e2d10-5987-47ca-bbb8-5a0783a15a69 b/sessions/1e1/194/127.0.0.1-5f8e2d10-5987-47ca-bbb8-5a0783a15a69 new file mode 100644 index 0000000..c4c124c Binary files /dev/null and b/sessions/1e1/194/127.0.0.1-5f8e2d10-5987-47ca-bbb8-5a0783a15a69 differ diff --git a/uploads/tbHomePageSlideResources.mTempImage.825f0f5eeddc6945.61646d656469612e706e67.png b/uploads/tbHomePageSlideResources.mTempImage.825f0f5eeddc6945.61646d656469612e706e67.png new file mode 100644 index 0000000..520a62e Binary files /dev/null and b/uploads/tbHomePageSlideResources.mTempImage.825f0f5eeddc6945.61646d656469612e706e67.png differ diff --git a/uploads/tbHomePageSlideResources.mTempImage.82d93e83a43a06af.61646d656469612e706e67.png b/uploads/tbHomePageSlideResources.mTempImage.82d93e83a43a06af.61646d656469612e706e67.png new file mode 100644 index 0000000..520a62e Binary files /dev/null and b/uploads/tbHomePageSlideResources.mTempImage.82d93e83a43a06af.61646d656469612e706e67.png differ diff --git a/uploads/tbHomePageSlideResources.mTempImage.84ddaebc0f389c65.61646d656469612e706e67.png b/uploads/tbHomePageSlideResources.mTempImage.84ddaebc0f389c65.61646d656469612e706e67.png new file mode 100644 index 0000000..520a62e Binary files /dev/null and b/uploads/tbHomePageSlideResources.mTempImage.84ddaebc0f389c65.61646d656469612e706e67.png differ diff --git a/uploads/tbHomePageSlideResources.mTempImage.857214a7ad6372f4.61646d656469612e706e67.png b/uploads/tbHomePageSlideResources.mTempImage.857214a7ad6372f4.61646d656469612e706e67.png new file mode 100644 index 0000000..520a62e Binary files /dev/null and b/uploads/tbHomePageSlideResources.mTempImage.857214a7ad6372f4.61646d656469612e706e67.png differ diff --git a/uploads/tbHomePageSlideResources.mTempImage.8eb519403973a480.61646d656469612e706e67.png b/uploads/tbHomePageSlideResources.mTempImage.8eb519403973a480.61646d656469612e706e67.png new file mode 100644 index 0000000..520a62e Binary files /dev/null and b/uploads/tbHomePageSlideResources.mTempImage.8eb519403973a480.61646d656469612e706e67.png differ diff --git a/uploads/tbHomePageSlideResources.mTempImage.93463d9ef587981f.61646d656469612e706e67.png b/uploads/tbHomePageSlideResources.mTempImage.93463d9ef587981f.61646d656469612e706e67.png new file mode 100644 index 0000000..520a62e Binary files /dev/null and b/uploads/tbHomePageSlideResources.mTempImage.93463d9ef587981f.61646d656469612e706e67.png differ diff --git a/uploads/tbHomePageSlideResources.mTempImage.9491a93e86b0bf03.61646d656469612e706e67.png b/uploads/tbHomePageSlideResources.mTempImage.9491a93e86b0bf03.61646d656469612e706e67.png new file mode 100644 index 0000000..520a62e Binary files /dev/null and b/uploads/tbHomePageSlideResources.mTempImage.9491a93e86b0bf03.61646d656469612e706e67.png differ diff --git a/uploads/tbHomePageSlideResources.mTempImage.976494e904e0bee3.61646d656469612e706e67.png b/uploads/tbHomePageSlideResources.mTempImage.976494e904e0bee3.61646d656469612e706e67.png new file mode 100644 index 0000000..520a62e Binary files /dev/null and b/uploads/tbHomePageSlideResources.mTempImage.976494e904e0bee3.61646d656469612e706e67.png differ diff --git a/uploads/tbHomePageSlideResources.mTempImage.97993cfce8755037.61646d656469612e706e67.png b/uploads/tbHomePageSlideResources.mTempImage.97993cfce8755037.61646d656469612e706e67.png new file mode 100644 index 0000000..520a62e Binary files /dev/null and b/uploads/tbHomePageSlideResources.mTempImage.97993cfce8755037.61646d656469612e706e67.png differ diff --git a/uploads/tbHomePageSlideResources.mTempImage.9e36b76c7d76c012.61646d656469612e706e67.png b/uploads/tbHomePageSlideResources.mTempImage.9e36b76c7d76c012.61646d656469612e706e67.png new file mode 100644 index 0000000..520a62e Binary files /dev/null and b/uploads/tbHomePageSlideResources.mTempImage.9e36b76c7d76c012.61646d656469612e706e67.png differ diff --git a/uploads/tbHomePageSlideResources.mTempImage.a047745f8411b38c.61646d656469612e706e67.png b/uploads/tbHomePageSlideResources.mTempImage.a047745f8411b38c.61646d656469612e706e67.png new file mode 100644 index 0000000..520a62e Binary files /dev/null and b/uploads/tbHomePageSlideResources.mTempImage.a047745f8411b38c.61646d656469612e706e67.png differ diff --git a/uploads/tbHomePageSlideResources.mTempImage.af3edfa5ae82fa01.61646d656469612e706e67.png b/uploads/tbHomePageSlideResources.mTempImage.af3edfa5ae82fa01.61646d656469612e706e67.png new file mode 100644 index 0000000..520a62e Binary files /dev/null and b/uploads/tbHomePageSlideResources.mTempImage.af3edfa5ae82fa01.61646d656469612e706e67.png differ diff --git a/uploads/tbHomePageSlideResources.mTempImage.b0da1d10a6b2aba7.61646d656469612e706e67.png b/uploads/tbHomePageSlideResources.mTempImage.b0da1d10a6b2aba7.61646d656469612e706e67.png new file mode 100644 index 0000000..520a62e Binary files /dev/null and b/uploads/tbHomePageSlideResources.mTempImage.b0da1d10a6b2aba7.61646d656469612e706e67.png differ diff --git a/uploads/tbHomePageSlideResources.mTempImage.baed4ba0b399aca9.61646d656469612e706e67.png b/uploads/tbHomePageSlideResources.mTempImage.baed4ba0b399aca9.61646d656469612e706e67.png new file mode 100644 index 0000000..520a62e Binary files /dev/null and b/uploads/tbHomePageSlideResources.mTempImage.baed4ba0b399aca9.61646d656469612e706e67.png differ diff --git a/uploads/tbProductsUploads.mFile/84/tbProductsUploads.mFile.8443310390e73f47.61646d656469612e706e67.png b/uploads/tbProductsUploads.mFile/84/tbProductsUploads.mFile.8443310390e73f47.61646d656469612e706e67.png new file mode 100644 index 0000000..520a62e Binary files /dev/null and b/uploads/tbProductsUploads.mFile/84/tbProductsUploads.mFile.8443310390e73f47.61646d656469612e706e67.png differ diff --git a/uploads/tbProductsUploads.mFile/85/tbProductsUploads.mFile.85cf77c653943e9e.6465636c61726174696f6e2e706e67.png b/uploads/tbProductsUploads.mFile/85/tbProductsUploads.mFile.85cf77c653943e9e.6465636c61726174696f6e2e706e67.png new file mode 100644 index 0000000..c5647ac Binary files /dev/null and b/uploads/tbProductsUploads.mFile/85/tbProductsUploads.mFile.85cf77c653943e9e.6465636c61726174696f6e2e706e67.png differ diff --git a/uploads/tbProductsUploads.mFile/88/tbProductsUploads.mFile.8810a6a31702f5d9.6465636c61726174696f6e2e706e67.png b/uploads/tbProductsUploads.mFile/88/tbProductsUploads.mFile.8810a6a31702f5d9.6465636c61726174696f6e2e706e67.png new file mode 100644 index 0000000..c5647ac Binary files /dev/null and b/uploads/tbProductsUploads.mFile/88/tbProductsUploads.mFile.8810a6a31702f5d9.6465636c61726174696f6e2e706e67.png differ diff --git a/uploads/tbProductsUploads.mFile/8a/tbProductsUploads.mFile.8a261c635fb31817.61646d656469612e706e67.png b/uploads/tbProductsUploads.mFile/8a/tbProductsUploads.mFile.8a261c635fb31817.61646d656469612e706e67.png new file mode 100644 index 0000000..520a62e Binary files /dev/null and b/uploads/tbProductsUploads.mFile/8a/tbProductsUploads.mFile.8a261c635fb31817.61646d656469612e706e67.png differ diff --git a/uploads/tbProductsUploads.mFile/8a/tbProductsUploads.mFile.8a54003e966f2ee3.61646d656469612e706e67.png b/uploads/tbProductsUploads.mFile/8a/tbProductsUploads.mFile.8a54003e966f2ee3.61646d656469612e706e67.png new file mode 100644 index 0000000..520a62e Binary files /dev/null and b/uploads/tbProductsUploads.mFile/8a/tbProductsUploads.mFile.8a54003e966f2ee3.61646d656469612e706e67.png differ diff --git a/uploads/tbProductsUploads.mFile/8b/tbProductsUploads.mFile.8bd7df196b4421d6.737570706f72745f69636f6e2e706e67.png b/uploads/tbProductsUploads.mFile/8b/tbProductsUploads.mFile.8bd7df196b4421d6.737570706f72745f69636f6e2e706e67.png new file mode 100644 index 0000000..a7433de Binary files /dev/null and b/uploads/tbProductsUploads.mFile/8b/tbProductsUploads.mFile.8bd7df196b4421d6.737570706f72745f69636f6e2e706e67.png differ diff --git a/uploads/tbProductsUploads.mFile/92/tbProductsUploads.mFile.9246f7b1f1b0bb8d.61646d656469612e706e67.png b/uploads/tbProductsUploads.mFile/92/tbProductsUploads.mFile.9246f7b1f1b0bb8d.61646d656469612e706e67.png new file mode 100644 index 0000000..520a62e Binary files /dev/null and b/uploads/tbProductsUploads.mFile/92/tbProductsUploads.mFile.9246f7b1f1b0bb8d.61646d656469612e706e67.png differ diff --git a/uploads/tbProductsUploads.mFile/93/tbProductsUploads.mFile.9377b925e93220d5.737570706f72745f69636f6e2e706e67.png b/uploads/tbProductsUploads.mFile/93/tbProductsUploads.mFile.9377b925e93220d5.737570706f72745f69636f6e2e706e67.png new file mode 100644 index 0000000..a7433de Binary files /dev/null and b/uploads/tbProductsUploads.mFile/93/tbProductsUploads.mFile.9377b925e93220d5.737570706f72745f69636f6e2e706e67.png differ diff --git a/uploads/tbProductsUploads.mFile/99/tbProductsUploads.mFile.99bce40dcbaa81bb.6465636c61726174696f6e2e706e67.png b/uploads/tbProductsUploads.mFile/99/tbProductsUploads.mFile.99bce40dcbaa81bb.6465636c61726174696f6e2e706e67.png new file mode 100644 index 0000000..c5647ac Binary files /dev/null and b/uploads/tbProductsUploads.mFile/99/tbProductsUploads.mFile.99bce40dcbaa81bb.6465636c61726174696f6e2e706e67.png differ diff --git a/uploads/tbProductsUploads.mFile/a1/tbProductsUploads.mFile.a198afc5b8a9a111.6465636c61726174696f6e2e706e67.png b/uploads/tbProductsUploads.mFile/a1/tbProductsUploads.mFile.a198afc5b8a9a111.6465636c61726174696f6e2e706e67.png new file mode 100644 index 0000000..c5647ac Binary files /dev/null and b/uploads/tbProductsUploads.mFile/a1/tbProductsUploads.mFile.a198afc5b8a9a111.6465636c61726174696f6e2e706e67.png differ diff --git a/uploads/tbProductsUploads.mFile/a9/tbProductsUploads.mFile.a95db580b49fb61c.6465636c61726174696f6e2e706e67.png b/uploads/tbProductsUploads.mFile/a9/tbProductsUploads.mFile.a95db580b49fb61c.6465636c61726174696f6e2e706e67.png new file mode 100644 index 0000000..c5647ac Binary files /dev/null and b/uploads/tbProductsUploads.mFile/a9/tbProductsUploads.mFile.a95db580b49fb61c.6465636c61726174696f6e2e706e67.png differ diff --git a/uploads/tbProductsUploads.mFile/ac/tbProductsUploads.mFile.ac67f8fdb9625c9c.61646d656469612e706e67.png b/uploads/tbProductsUploads.mFile/ac/tbProductsUploads.mFile.ac67f8fdb9625c9c.61646d656469612e706e67.png new file mode 100644 index 0000000..520a62e Binary files /dev/null and b/uploads/tbProductsUploads.mFile/ac/tbProductsUploads.mFile.ac67f8fdb9625c9c.61646d656469612e706e67.png differ diff --git a/uploads/tbProductsUploads.mFile/ae/tbProductsUploads.mFile.ae0a23a929420990.61646d656469612e706e67.png b/uploads/tbProductsUploads.mFile/ae/tbProductsUploads.mFile.ae0a23a929420990.61646d656469612e706e67.png new file mode 100644 index 0000000..520a62e Binary files /dev/null and b/uploads/tbProductsUploads.mFile/ae/tbProductsUploads.mFile.ae0a23a929420990.61646d656469612e706e67.png differ diff --git a/uploads/tbProductsUploads.mFile/b0/tbProductsUploads.mFile.b0e99f63633b0f94.737570706f72745f69636f6e2e706e67.png b/uploads/tbProductsUploads.mFile/b0/tbProductsUploads.mFile.b0e99f63633b0f94.737570706f72745f69636f6e2e706e67.png new file mode 100644 index 0000000..a7433de Binary files /dev/null and b/uploads/tbProductsUploads.mFile/b0/tbProductsUploads.mFile.b0e99f63633b0f94.737570706f72745f69636f6e2e706e67.png differ diff --git a/uploads/tbProductsUploads.mFile/bb/tbProductsUploads.mFile.bb49822fee3d65ea.6465636c61726174696f6e2e706e67.png b/uploads/tbProductsUploads.mFile/bb/tbProductsUploads.mFile.bb49822fee3d65ea.6465636c61726174696f6e2e706e67.png new file mode 100644 index 0000000..c5647ac Binary files /dev/null and b/uploads/tbProductsUploads.mFile/bb/tbProductsUploads.mFile.bb49822fee3d65ea.6465636c61726174696f6e2e706e67.png differ diff --git a/uploads/tbProductsUploads.mFile/bd/tbProductsUploads.mFile.bd7740f89e56f910.737570706f72745f69636f6e2e706e67.png b/uploads/tbProductsUploads.mFile/bd/tbProductsUploads.mFile.bd7740f89e56f910.737570706f72745f69636f6e2e706e67.png new file mode 100644 index 0000000..a7433de Binary files /dev/null and b/uploads/tbProductsUploads.mFile/bd/tbProductsUploads.mFile.bd7740f89e56f910.737570706f72745f69636f6e2e706e67.png differ diff --git a/uploads/tbProductsUploads.mFile/bd/tbProductsUploads.mFile.bde84ff80f3edb42.6465636c61726174696f6e2e706e67.png b/uploads/tbProductsUploads.mFile/bd/tbProductsUploads.mFile.bde84ff80f3edb42.6465636c61726174696f6e2e706e67.png new file mode 100644 index 0000000..c5647ac Binary files /dev/null and b/uploads/tbProductsUploads.mFile/bd/tbProductsUploads.mFile.bde84ff80f3edb42.6465636c61726174696f6e2e706e67.png differ diff --git a/uploads/tbProductsUploads.mFile/be/tbProductsUploads.mFile.bedea53a0ec6810f.61646d656469612e706e67.png b/uploads/tbProductsUploads.mFile/be/tbProductsUploads.mFile.bedea53a0ec6810f.61646d656469612e706e67.png new file mode 100644 index 0000000..520a62e Binary files /dev/null and b/uploads/tbProductsUploads.mFile/be/tbProductsUploads.mFile.bedea53a0ec6810f.61646d656469612e706e67.png differ diff --git a/uploads/uploads.up_file/8b/uploads.up_file.8b0ae129f01b3cb0.53637265656e2053686f7420323031362d30332d313420617420312e30332e313720504d2e706e67.png b/uploads/uploads.up_file/8b/uploads.up_file.8b0ae129f01b3cb0.53637265656e2053686f7420323031362d30332d313420617420312e30332e313720504d2e706e67.png new file mode 100644 index 0000000..e857bb1 Binary files /dev/null and b/uploads/uploads.up_file/8b/uploads.up_file.8b0ae129f01b3cb0.53637265656e2053686f7420323031362d30332d313420617420312e30332e313720504d2e706e67.png differ diff --git a/uploads/uploads.up_file/8c/uploads.up_file.8c13fb43f7557a90.53637265656e2053686f7420323031362d30332d313420617420312e30332e313720504d2e706e67.png b/uploads/uploads.up_file/8c/uploads.up_file.8c13fb43f7557a90.53637265656e2053686f7420323031362d30332d313420617420312e30332e313720504d2e706e67.png new file mode 100644 index 0000000..e857bb1 Binary files /dev/null and b/uploads/uploads.up_file/8c/uploads.up_file.8c13fb43f7557a90.53637265656e2053686f7420323031362d30332d313420617420312e30332e313720504d2e706e67.png differ diff --git a/uploads/uploads.up_file/8f/uploads.up_file.8f16a0c357b4e483.6f2d636861746f2e6a7067.jpg b/uploads/uploads.up_file/8f/uploads.up_file.8f16a0c357b4e483.6f2d636861746f2e6a7067.jpg new file mode 100644 index 0000000..be8ede2 Binary files /dev/null and b/uploads/uploads.up_file/8f/uploads.up_file.8f16a0c357b4e483.6f2d636861746f2e6a7067.jpg differ diff --git a/uploads/uploads.up_file/90/uploads.up_file.905d7dcb5158008d.53637265656e2053686f7420323031362d30332d313420617420332e32302e303020504d2e706e67.png b/uploads/uploads.up_file/90/uploads.up_file.905d7dcb5158008d.53637265656e2053686f7420323031362d30332d313420617420332e32302e303020504d2e706e67.png new file mode 100644 index 0000000..70d1764 Binary files /dev/null and b/uploads/uploads.up_file/90/uploads.up_file.905d7dcb5158008d.53637265656e2053686f7420323031362d30332d313420617420332e32302e303020504d2e706e67.png differ diff --git a/uploads/uploads.up_file/94/uploads.up_file.9439a8bbd0859e0f.53637265656e2053686f7420323031362d30332d313420617420332e32302e303020504d2e706e67.png b/uploads/uploads.up_file/94/uploads.up_file.9439a8bbd0859e0f.53637265656e2053686f7420323031362d30332d313420617420332e32302e303020504d2e706e67.png new file mode 100644 index 0000000..70d1764 Binary files /dev/null and b/uploads/uploads.up_file/94/uploads.up_file.9439a8bbd0859e0f.53637265656e2053686f7420323031362d30332d313420617420332e32302e303020504d2e706e67.png differ diff --git a/uploads/uploads.up_file/95/uploads.up_file.95785565da95b5a2.6f2d636861746f2e6a7067.jpg b/uploads/uploads.up_file/95/uploads.up_file.95785565da95b5a2.6f2d636861746f2e6a7067.jpg new file mode 100644 index 0000000..be8ede2 Binary files /dev/null and b/uploads/uploads.up_file/95/uploads.up_file.95785565da95b5a2.6f2d636861746f2e6a7067.jpg differ diff --git a/uploads/uploads.up_file/96/uploads.up_file.96e7115d657d233c.6f2d636861746f2e6a7067.jpg b/uploads/uploads.up_file/96/uploads.up_file.96e7115d657d233c.6f2d636861746f2e6a7067.jpg new file mode 100644 index 0000000..be8ede2 Binary files /dev/null and b/uploads/uploads.up_file/96/uploads.up_file.96e7115d657d233c.6f2d636861746f2e6a7067.jpg differ diff --git a/uploads/uploads.up_file/9b/uploads.up_file.9b6f2e08a6987c1e.53637265656e2053686f7420323031362d30332d313420617420332e32302e303020504d2e706e67.png b/uploads/uploads.up_file/9b/uploads.up_file.9b6f2e08a6987c1e.53637265656e2053686f7420323031362d30332d313420617420332e32302e303020504d2e706e67.png new file mode 100644 index 0000000..70d1764 Binary files /dev/null and b/uploads/uploads.up_file/9b/uploads.up_file.9b6f2e08a6987c1e.53637265656e2053686f7420323031362d30332d313420617420332e32302e303020504d2e706e67.png differ diff --git a/uploads/uploads.up_file/9c/uploads.up_file.9ca23e2d8bb59046.53637265656e2053686f7420323031362d30332d313420617420312e30332e313720504d2e706e67.png b/uploads/uploads.up_file/9c/uploads.up_file.9ca23e2d8bb59046.53637265656e2053686f7420323031362d30332d313420617420312e30332e313720504d2e706e67.png new file mode 100644 index 0000000..e857bb1 Binary files /dev/null and b/uploads/uploads.up_file/9c/uploads.up_file.9ca23e2d8bb59046.53637265656e2053686f7420323031362d30332d313420617420312e30332e313720504d2e706e67.png differ diff --git a/uploads/uploads.up_file/a3/uploads.up_file.a30603c57ef35740.53637265656e2053686f7420323031362d30332d313420617420332e32302e303020504d2e706e67.png b/uploads/uploads.up_file/a3/uploads.up_file.a30603c57ef35740.53637265656e2053686f7420323031362d30332d313420617420332e32302e303020504d2e706e67.png new file mode 100644 index 0000000..70d1764 Binary files /dev/null and b/uploads/uploads.up_file/a3/uploads.up_file.a30603c57ef35740.53637265656e2053686f7420323031362d30332d313420617420332e32302e303020504d2e706e67.png differ diff --git a/uploads/uploads.up_file/a9/uploads.up_file.a922a03c7c243cc6.53637265656e2053686f7420323031362d30332d313420617420332e32302e303020504d2e706e67.png b/uploads/uploads.up_file/a9/uploads.up_file.a922a03c7c243cc6.53637265656e2053686f7420323031362d30332d313420617420332e32302e303020504d2e706e67.png new file mode 100644 index 0000000..70d1764 Binary files /dev/null and b/uploads/uploads.up_file/a9/uploads.up_file.a922a03c7c243cc6.53637265656e2053686f7420323031362d30332d313420617420332e32302e303020504d2e706e67.png differ diff --git a/uploads/uploads.up_file/aa/uploads.up_file.aa0632fbc39a477d.53637265656e2053686f7420323031362d30332d313420617420312e30332e313720504d2e706e67.png b/uploads/uploads.up_file/aa/uploads.up_file.aa0632fbc39a477d.53637265656e2053686f7420323031362d30332d313420617420312e30332e313720504d2e706e67.png new file mode 100644 index 0000000..e857bb1 Binary files /dev/null and b/uploads/uploads.up_file/aa/uploads.up_file.aa0632fbc39a477d.53637265656e2053686f7420323031362d30332d313420617420312e30332e313720504d2e706e67.png differ diff --git a/uploads/uploads.up_file/ad/uploads.up_file.ad39045166af6287.6f2d636861746f2e6a7067.jpg b/uploads/uploads.up_file/ad/uploads.up_file.ad39045166af6287.6f2d636861746f2e6a7067.jpg new file mode 100644 index 0000000..be8ede2 Binary files /dev/null and b/uploads/uploads.up_file/ad/uploads.up_file.ad39045166af6287.6f2d636861746f2e6a7067.jpg differ diff --git a/uploads/uploads.up_file/bd/uploads.up_file.bd44e8fbddcd20d1.53637265656e2053686f7420323031362d30332d313420617420312e30332e313720504d2e706e67.png b/uploads/uploads.up_file/bd/uploads.up_file.bd44e8fbddcd20d1.53637265656e2053686f7420323031362d30332d313420617420312e30332e313720504d2e706e67.png new file mode 100644 index 0000000..e857bb1 Binary files /dev/null and b/uploads/uploads.up_file/bd/uploads.up_file.bd44e8fbddcd20d1.53637265656e2053686f7420323031362d30332d313420617420312e30332e313720504d2e706e67.png differ diff --git a/uploads/uploads.up_file/be/uploads.up_file.be90b171177f49a4.6f2d636861746f2e6a7067.jpg b/uploads/uploads.up_file/be/uploads.up_file.be90b171177f49a4.6f2d636861746f2e6a7067.jpg new file mode 100644 index 0000000..be8ede2 Binary files /dev/null and b/uploads/uploads.up_file/be/uploads.up_file.be90b171177f49a4.6f2d636861746f2e6a7067.jpg differ diff --git a/views/app/contact.html b/views/app/contact.html index 20d3378..697a6fd 100644 --- a/views/app/contact.html +++ b/views/app/contact.html @@ -11,7 +11,7 @@


- + @@ -51,10 +51,6 @@

Contact -
- - -
diff --git a/views/app/index.html b/views/app/index.html index 119c42f..4bc3588 100644 --- a/views/app/index.html +++ b/views/app/index.html @@ -24,7 +24,7 @@ {{else:}}
{{pass}} - +
{{pass}}
diff --git a/views/layout_app.html b/views/layout_app.html index 4296186..56029f3 100644 --- a/views/layout_app.html +++ b/views/layout_app.html @@ -87,26 +87,46 @@ mAuth = db.auth_user(auth.user_id) }}