[web2py] Custom login form error

2014-05-16 Thread 'sasogeek' via web2py-users
I have a custom login form that displays the error when the email is invalid (eg. like someone submits an email with a wrong email format, i.e, without @domain.com for example), but when an email that's not in the database is submitted, nothing happens, the page just reloads. Also, if an email

[web2py] Re: Custom login form error

2014-05-17 Thread 'sasogeek' via web2py-users
So do I return response.flash or I return session.flash? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscr

[web2py] Application Licensing

2014-05-19 Thread 'sasogeek' via web2py-users
How do I license a web2py application for commercial use? I'd like to have a license that's renewable every 6 months. From a few similar questions I've read, I've gathered that web2py does allow commercial distribution but must be stated in the documentation that the application uses web2py...

[web2py] Re: Application Licensing

2014-05-19 Thread 'sasogeek' via web2py-users
That actually is my question. I don't know which license I like. I'm new to licenses, but with the little knowledge I have about softwares and applications, I know I need one. Not sure what my options are, and especially with the fact that I want to have a renewable one that's purchasable perio

[web2py] Re: Application Licensing

2014-05-19 Thread 'sasogeek' via web2py-users
I haven't considered OS, not that I'm against it. But hypothetically speaking since I'm still in considerations,what are the benefits of going open source? On Monday, 19 May 2014 19:20:37 UTC, Niphlod wrote: > > consider that also any third party library (either python or js, css, etc) > could

[web2py] Re: Application Licensing

2014-05-19 Thread 'sasogeek' via web2py-users
I found this resource that gives a nice list of benefits of going Open Source which is great! But I'm also a little concerned about monetization. I'm a student and I've spent a lot of time with this project

[web2py] is the web2py.js Ajax functionality broken?

2014-05-20 Thread 'sasogeek' via web2py-users
I'm not sure if it's just me or it's the js file or it's the code I'm writing but something is definitely wrong... here's what's not working. Model (db.py) Answer=db.define_table( 'answers', Field('answer', 'text', requires=IS_NOT_EMPTY(), notnull=True,), Field('image', 'upload', req

[web2py] Re: is the web2py.js Ajax functionality broken?

2014-05-20 Thread 'sasogeek' via web2py-users
I tried that... no luck. I think it's because there's multiple answers and all of them have the form input with name="aid", can't distinguish which request.vars.aid to send... different answers would have different amounts of likes... there's a for-loop statement above the form and each form has

[web2py] Re: is the web2py.js Ajax functionality broken?

2014-05-20 Thread 'sasogeek' via web2py-users
I just did a minimal ajax process and it doesn't work! the onkeyup demo in the book works when i try though, but onclick just messes with me... i've a few places in my application where onchange also triggers an ajax function but idk, onclick just doesn't seem to work anywhere i try it. must it

[web2py] Re: is the web2py.js Ajax functionality broken?

2014-05-20 Thread 'sasogeek' via web2py-users
Found the problem staring at me, had to slap myself after finding it... Field('likes', 'integer', readable=False, writable=False, default=0), deleted the readable and writable parameters since i was blocking read/write access... thanks for the responses though! Much appreciated :) On Wednesday,

[web2py] Web2py Hosting

2014-05-22 Thread 'sasogeek' via web2py-users
I've been looking around for python hosting websites that I can get my web2py deployed on but none of them is easy to work with. I'd rather prefer the ease to work on my application than having the headache of getting online, which really should be easy to do. I tried the solution given me in t

[web2py] Table column/cell width not specified, unable to continue

2014-07-13 Thread 'sasogeek' via web2py-users
I'm trying to render a list of all first names in my auth_user table in a pdf but an error (the one in this question's title) slaps me in the face! Need some help figuring out how to resolve it. Controller def finish(): users = db().select(db.auth_user.ALL) return dict(users=users) View

[web2py] Annotations

2014-07-14 Thread 'sasogeek' via web2py-users
Is there a place in the documentation or somewhere on the web that lists all the annotations/decorators in web2py and explains how to use them? like @auth.requires_login, etc. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source co

[web2py] Alternative IDEs?

2014-07-14 Thread 'sasogeek' via web2py-users
Are there any alternative IDEs for web2py? I'm in search of an IDE for web2py that can help me find methods and variables easily. for example autocomplete options to choose from after using a dot operator? the default browser ide lacks quite a number of things in making programming easy. Web2py

[web2py] Re: Alternative IDEs?

2014-07-14 Thread 'sasogeek' via web2py-users
I just checked out PyCharm and it looks just like IntelliJ for java. Just what I had in mind! :) Thanks Jim. Samuel. On Monday, 14 July 2014 14:05:15 UTC, Jim S wrote: > > PyCharm - paid version has web2py integration. > > -Jim > > On Monday, July 14, 2014 7:35:43 AM UTC-5, sasogeek wrote: >> >>

[web2py] Re: Annotations

2014-07-14 Thread 'sasogeek' via web2py-users
I just think that since there's that concept of decorators and the fact that there's quite a number of them and functions they perform, it'd be good to have them all listed somewhere with (at the very least) their definitions and maybe some examples on how to use them. (instead of being scatter

[web2py] Re: Annotations

2014-07-14 Thread 'sasogeek' via web2py-users
That's understandable, but it's just a thing that occurred to me. Maybe it's not that important, but you can give it some thought (or not). One of my random thoughts that could mean something or nothing :) On Monday, 14 July 2014 15:39:57 UTC, Anthony wrote: > > On Monday, July 14, 2014 11:01:11

[web2py] Re: Alternative IDEs?

2014-07-14 Thread 'sasogeek' via web2py-users
I keep getting this error when I try running the web2py.py script from PyCharm. DLL load failed: %1 is not a valid Win32 application. I need help getting it to run. Here's the full traceback. C:\Python27\python.exe E:/Users/Samuel/Downloads/web2py_src/web2py/web2py.py No handlers could be found f

[web2py] Re: Alternative IDEs?

2014-07-15 Thread 'sasogeek' via web2py-users
I was wondering why I was getting that error too cos I don't use python25. Thanks for letting me know. I'm quite the noob at all this :) On Tuesday, 15 July 2014 10:41:32 UTC, Niphlod wrote: > > your setup is seriously messed up (it happens, more likely on windows than > linux but it happens)...

[web2py] Re: Bootstrap is really killing web2py

2014-07-26 Thread 'sasogeek' via web2py-users
So... I'm not really sure what this whole conversation is about, as to whether it's an issue of web2py coming with bs2 by default or some difficulty in implementing bs3. I use bs3 just fine in my web2py apps and really haven't had any issues.. On Friday, 18 July 2014 19:17:34 UTC, Moustafa Mahm

[web2py] emailing a pdf view as an attachment

2014-08-03 Thread 'sasogeek' via web2py-users
I have a form, and i display the details entered in the form on .pdf views page. Is it possible to use web2py to email that generated pdf page to someone? what I want to achieve is to allow users to fill the form and then click a button to send the pdf containing the entered details without dow

[web2py] Python and Web2py course

2014-08-04 Thread 'sasogeek' via web2py-users
Next semester, I'll be a 3rd year student in my university. My plans for next semester include me organizing some sort of classes (and a web2py club) for students to learn web application development with web2py. Any ideas what I should be teaching or how I should go about it? I haven't done so

[web2py] How to restrict file type to pdf

2014-08-06 Thread 'sasogeek' via web2py-users
How can I restrict the uploaded file type to only pdf? I know that with images i could use the IS_IMAGE() validator, I don't know how to do same for pdf files though. help...? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source co

[web2py] a selective select

2014-08-20 Thread 'sasogeek' via web2py-users
I don't know if the title of the question makes any sense but here's what I want to achieve. In the model db.py, i can have a field that references another table via Field('fieldname', db.other_table), but this gives me a select html element in the views which has all the items in the other_tab

[web2py] Re: a selective select

2014-08-20 Thread 'sasogeek' via web2py-users
Actually I haven't thought about trying that. never occurred to me... but I'll do that now and give you feedback if it does what I want :) It appears that would work though, thank you On Wednesday, 20 August 2014 15:30:26 UTC, Niphlod wrote: > > isn't IS_IN_DB enough when you specify a set ?, e.g

[web2py] Re: a selective select

2014-08-20 Thread 'sasogeek' via web2py-users
That works, thanks. On Wednesday, 20 August 2014 15:30:26 UTC, Niphlod wrote: > > isn't IS_IN_DB enough when you specify a set ?, e.g. > IS_IN_DB(db(db.other_table.field == True), 'other_table.id', '%(name)s') ? > > On Wednesday, August 20, 2014 5:26:29 PM UTC+2, sasogeek wrote: >> >> I don't kno

[web2py] vps.net ubuntu script installation for web2py doesn't appear to work

2014-08-25 Thread 'sasogeek' via web2py-users
I just watched the vimeo video made by Massimo some time back and used it as a guide to get web2py running on a node I just acquired at vps.net. Once everything was done, I tried to go to the ip but all I get is the default apache server page. It works! This is the default web page for this se

[web2py] How does one get their web2py sites on the poweredby page?

2014-08-28 Thread 'sasogeek' via web2py-users
If I made a web app with web2py, how do I get it listed on the poweredby page ? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) -

[web2py] unknown error on production server! I need help fixing it asap ['NoneType' object is not callable]

2015-04-04 Thread 'sasogeek' via web2py-users
I have an app on a live server which part of my school uses. Somehow it spits out this error when I tried to login tonight. Before it happened, I logged in to my vps.net account and went to the console page, I saw a button there "Ctrl+Alt+Del". I don't know what it is but as I do with most thing

[web2py] Re: unknown error on production server! I need help fixing it asap ['NoneType' object is not callable]

2015-04-05 Thread 'sasogeek' via web2py-users
Thanks Leonel Somehow that worked! But I have no idea why it worked... seeing as you suggested it, can you explain to me please? Thanks again though. On Sunday, April 5, 2015 at 9:15:56 AM UTC+1, Leonel Câmara wrote: > > If you clear your browser cookies (you can try using a private browsing > w

[web2py] Developer network

2015-04-05 Thread 'sasogeek' via web2py-users
Hello, I'm wondering if there's a social media platform for app developers? I want to build one as an open source project using web2py... any thoughts, ideas, something to look on to start with? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py

Re: [web2py] Developer network

2015-04-05 Thread 'sasogeek' via web2py-users
Hmmm, I guess I never saw github as that... never really explored it, just have an account there. Will take a look and see what I can learn from it. Thanks On Monday, 6 April 2015 06:07:21 UTC+1, Phyo Arkar wrote: > > Github? > > On Mon, Apr 6, 2015 at 11:10 AM, 'sasogeek&

[web2py] Using ajax to call a function that uses LOAD, not working

2015-04-07 Thread 'sasogeek' via web2py-users
default.py @auth.requires_login() def load_home(): loader = """$('#right-side').html("")""" websocket_send('http://127.0.0.1:', loader, 'mykey', 'home%s' % auth.user.id) remove_class1 = "$('#bk').removeClass('active')" #books remove_class2 = "$('#ls').removeClass('active')"

[web2py] Re: Using ajax to call a function that uses LOAD, not working

2015-04-08 Thread 'sasogeek' via web2py-users
I was doing it the wrong way i think, but i did a workaround. I used the A helper to place a button on the page and when it's clicked it replaces itself with the form at statusform.load with ajax=True, and it works just fine On Tuesday, 7 April 2015 15:11:58 UTC+1, sasogeek wrote: > > default.p

[web2py] Re: Using ajax to call a function that uses LOAD, not working

2015-04-11 Thread 'sasogeek' via web2py-users
Thanks a lot. Will definitely take your advice. I always tell myself I will do all that change when the app is complete and I don't have more code to write then I'll rearrange everything, especially with the 'style' bit cos i'm just in a hurry to code-on-the-fly and see immediate change, but I

[web2py] Multiple file download

2015-04-11 Thread 'sasogeek' via web2py-users
Is there a way I could download all the files in a db or loop through a db selection and download all associated files via maybe just a click on a link? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.goog

[web2py] Re: Multiple file download

2015-04-11 Thread 'sasogeek' via web2py-users
I zipped the files and saved it in a folder...but how do I download it now? using the the download function doesn't work... On Saturday, 11 April 2015 13:21:03 UTC+1, Louis Amon wrote: > > I think you'd have to loop through a selection and use retrieve() ( > http://pydal.readthedocs.org/en/latest

[web2py] Re: Multiple file download

2015-04-11 Thread 'sasogeek' via web2py-users
I managed to get it working. I looked up the download method in the Response class and apparently it's looking for a table name and field in the file name. I added that structure [table.field.] to my zipped file name [table.field.zipfile_name.zip] and passed it to the download as an argument in

[web2py] Cron-like job

2015-04-13 Thread 'sasogeek' via web2py-users
I want to do something but I doubt cron is the right thing to attempt, I'm not even sure what I'm supposed to do except that it's going to be a scheduled task and it may or may not be solved by cron, I need some guidance. I want to simulate a bank. users get to 'save' some (virtual) money in th

[web2py] Re: unknown error on production server! I need help fixing it asap ['NoneType' object is not callable]

2015-04-15 Thread 'sasogeek' via web2py-users
"A lighter alternative could be to add an _after_delete/_after_update callback to auth_table that would search and delete any sessions owned by the user" isn't that what cascade does? On Wednesday, 15 April 2015 16:12:01 UTC+1, Leonel Câmara wrote: > > I think we have to take the performance hit

[web2py] websocket_send() on db insert

2015-05-01 Thread 'sasogeek' via web2py-users
is there a way to execute some script anytime there's a db insert (either from a form or by manual insert query, or any db query for that matter)? and by script, i'd want to use websocket_send to send some messages anytime something goes in or out of the db with regards to some specific tables.