[web2py] Re: Automate JQuery for Button

2014-09-30 Thread Niphlod
nope, just an A. if ou need a something that when you click on it it brings you on another page, A is the thin you're searching for, not a button. On Monday, September 29, 2014 10:59:46 PM UTC+2, Bernhard Radermacher wrote: > > Would that be just enclosing the button with ? > > On Monday, Septem

[web2py] Re: Scheduler always QUEUED and no record in scheduler_worker and scheduler_run data table

2014-09-30 Thread Niphlod
if there are no records in the scheduler_worker, the scheduler is not running. Please check your "permanent daemon" solution to see if it's running and what it logs. On Monday, September 29, 2014 4:37:53 PM UTC+2, Pengfei Yu wrote: > > Hi, > > I have a web application hosted on AWS EC2 with Apac

[web2py] Manual reset password link

2014-09-30 Thread Eric
Hi, Since version 2.9.11 of Web2Py this piece of code can be found in tools.py: if self.settings.prevent_password_reset_attacks: key = request.vars.key if not key and len(request.args)>1: key = request.args[-1] if key: session._r

Re: [web2py] Manual reset password link

2014-09-30 Thread Martin Weissenboeck
I am using 2.9.11 too and I have no problems (tested 2 minutes ago). Regards, Martin 2014-09-30 10:40 GMT+02:00 Eric : > Hi, > > Since version 2.9.11 of Web2Py this piece of code can be found in tools.py: > > if self.settings.prevent_password_reset_attacks: > key = request.vars.key >

[web2py] Re: Manual reset password link

2014-09-30 Thread Leonel Câmara
That's definitely a bug. It's 1 because Auth.__call__ exposes all auth actions in just one controller function if you call it there, so request.args(0) is 'reset_password'. For some reason reset_password thinks this is how it should be, going as far as assuming that you have all auth actions in

[web2py] Path to jquery and other libs is wrong in the admin app (2.9.11)

2014-09-30 Thread Miguel
Hi I just downloaded web2py source code and I am running the local GAE SDK. When I go to the web2py admin interface, none of the styling is applied. Looking at the HTML generated source code, I find the following in the section: etc. Obviously the version number (_2.9.11) should not be

Re: [web2py] Re: Default time for datetime picker widget

2014-09-30 Thread Luca Liberti
What I was looking for was exactly some hint on how to do some "javascript" tuning from within web2py. I am aware this might be a "borderline" question not completely belonging to the forum. Thank you On Wed, Sep 24, 2014 at 9:22 PM, Niphlod wrote: > let's break it down a bit. > It's one th

[web2py] web2py trunk is broken??

2014-09-30 Thread Jim S
I just pulled/updated my code from code.google.com using hg. When I try to run web2py, I'm getting the following: C:\dev\bootstrap3\web2py>python web2py.py Traceback (most recent call last): File "web2py.py", line 18, in import gluon.widget File "C:\dev\bootstrap3\web2py\gluon\__init__.

[web2py] Re: web2py trunk is broken??

2014-09-30 Thread Jim S
Sorry, when I said I updated 'my code' I meant that I pulled the latest web2py code. -Jim On Tuesday, September 30, 2014 9:49:54 AM UTC-5, Jim S wrote: > > I just pulled/updated my code from code.google.com using hg. > > When I try to run web2py, I'm getting the following: > > C:\dev\bootstrap

[web2py] Re: Path to jquery and other libs is wrong in the admin app (2.9.11)

2014-09-30 Thread Niphlod
you need to fix static serving in GAE so it supports versioning of static files. The default config file for GAE already takes care of it. On Tuesday, September 30, 2014 3:22:19 PM UTC+2, Miguel wrote: > > Hi > > I just downloaded web2py source code and I am running the local GAE SDK. > When I go

[web2py] Re: web2py trunk is broken??

2014-09-30 Thread Anthony
I think it's OK on Github, but for some reason, the modular DAL commit on Google Code includes everything except the actual DAL module. Anthony On Tuesday, September 30, 2014 10:49:54 AM UTC-4, Jim S wrote: > > I just pulled/updated my code from code.google.com using hg. > > When I try to run w

[web2py] Re: web2py trunk is broken??

2014-09-30 Thread Niphlod
there's a biiig change going on on dal (modularization). it should not go into exception but we're in the process of fixing those hiccups. On Tuesday, September 30, 2014 4:51:24 PM UTC+2, Jim S wrote: > > Sorry, when I said I updated 'my code' I meant that I pulled the latest > web2py code. > >

Re: [web2py] Re: web2py trunk is broken??

2014-09-30 Thread Jim Steil
Thanks Niphlod, I'll be patient and let you guys do your work. If you could drop a note when it is resolved I'd really appreciate it. On Tue, Sep 30, 2014 at 10:00 AM, Niphlod wrote: > there's a biiig change going on on dal (modularization). it should not go > into exception but we're in the pr

Re: [web2py] Re: web2py trunk is broken??

2014-09-30 Thread Niphlod
if you fetch the main repo instead of the old one it's all ok right now. On Tuesday, September 30, 2014 5:13:15 PM UTC+2, Jim S wrote: > > Thanks Niphlod, I'll be patient and let you guys do your work. If you > could drop a note when it is resolved I'd really appreciate it. > > On Tue, Sep 30, 2

Re: [web2py] Re: web2py trunk is broken??

2014-09-30 Thread Jim Steil
Sorry Niphlod, but I'm not exactly sure what you mean by that. I did this: hg clone http://code.google.com/p/web2py to get a fresh copy, but still have the same error. Also tried via https and am getting this error: abort: error: _ssl.c:504: error:1408E0F4:SSL routines:SSL3_GET_MESSAGE:unexpec

Re: [web2py] Re: web2py trunk is broken??

2014-09-30 Thread Anthony
You'll need to get it from Github -- Google Code is broken at the moment (the commit is missing the entire new dal folder). Anthony On Tuesday, September 30, 2014 11:41:47 AM UTC-4, Jim S wrote: > > Sorry Niphlod, but I'm not exactly sure what you mean by that. > > I did this: > > hg clone http:

[web2py] formstyle not supported

2014-09-30 Thread Cory
Hello, has anyone seen this error before? if so, can you please tell me what it may be related to? I received this error when I cloned my project on a new computer. When I try to start web2py on any of my apps it gives me this error. thanks! formstyle not supported -- Resources: - http://w

[web2py] jquery ajax post vars not accessible

2014-09-30 Thread seank
I'm getting a strange behavior with ajax call. I can print the request.post_vars andd see they are there but when I try to access them, they are None. And it was working fine until I added extra data into FormData. I've removed the new data (back to when it was working) but it doesn't work anym

[web2py] Re: formstyle not supported

2014-09-30 Thread Anthony
Can you show your code? What version of web2py were you running, and what version are you running now? On Tuesday, September 30, 2014 12:55:48 PM UTC-4, Cory wrote: > > Hello, > has anyone seen this error before? if so, can you please tell me what it > may be related to? > I received this error

[web2py] Redirect page after submit load form

2014-09-30 Thread Fabiano Almeida
Hello, I am using the LOAD to load a SQLFORM.factory another function as test. Works correctly, except that does the redirect that has the function call. My code: def index(): user = db(db.auth_user.id == auth.user.id).select().first() if not user.job: form = LOAD('ponto', 'function1.loa

[web2py] Re: Automate JQuery for Button

2014-09-30 Thread Dave S
On Tuesday, September 30, 2014 12:02:32 AM UTC-7, Niphlod wrote: > > nope, just an A. if ou need a something that when you click on it it > brings you on another page, A is the thin you're searching for, not a > button. > Would he perhaps be looking for a link styled as a button? Appadmin doe

[web2py] Re: Automate JQuery for Button

2014-09-30 Thread Dave S
On Tuesday, September 30, 2014 11:11:08 AM UTC-7, Dave S wrote: > > > > On Tuesday, September 30, 2014 12:02:32 AM UTC-7, Niphlod wrote: >> >> nope, just an A. if ou need a something that when you click on it it >> brings you on another page, A is the thin you're searching for, not a >> button.

[web2py] Re: Redirect page after submit load form

2014-09-30 Thread Niphlod
I'm not sure on what you mean by "does the redirect that has the function call". Generally speaking, a redirect within component doesn't trigger the entire page to be redirected, but just the component. This is "by design". The default behaviour can be altereted, and all the possibile "combinat

[web2py] Re: jquery ajax post vars not accessible

2014-09-30 Thread Niphlod
request.post_vars is always key-value mapping, and you're asking one of its values to be a mapping itself (uploading should have a "key" named file). This is only possible under a particular circumstance, i.e. when you're posting a json object, but it seems that you're instead trying to do som

[web2py] Re: formstyle not supported

2014-09-30 Thread Leonel Câmara
The problem is probably that you're using the old 'bootstrap3' formstyle. It was replaced by 'boostrap3_stacked' and 'bootstrap3_inline'. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/

[web2py] Re: formstyle not supported

2014-09-30 Thread Cory
y Anthony, I updated with some code and the versions. current is 9.11 and old was 9.6. On Tuesday, September 30, 2014 10:28:06 AM UTC-7, Anthony wrote: > > Can you show your code? What version of web2py were you running, and what > version are you running now? > > On Tuesday, September 30, 201

[web2py] Re: jquery ajax post vars not accessible

2014-09-30 Thread seank
Well this is embarrassing. Issue wasn't the ajax or web2py, it was a typo in controller. For future reference, The reason why web2py error came up as above (None post vars) was that I was double clicking on the failed network request in the chrome devtool and it was opening controller/upload_fi

[web2py] Re: jquery ajax post vars not accessible

2014-09-30 Thread Anthony
> > request.post_vars is always key-value mapping, and you're asking one of > its values to be a mapping itself (uploading should have a "key" named > file). This is only possible under a particular circumstance, i.e. when > you're posting a json object, but it seems that you're instead trying

[web2py] Re: limit number of boolean choices in form

2014-09-30 Thread Derek
Yes, you need to limit it with javascript, the client only knows checkboxes and options.The only way the client knows how many are selected is via javascript.. though perhaps you could use some weird css rules... http://css-tricks.com/radio-buttons-with-2-way-exclusivity/ On Friday, September

[web2py] Re: limit number of boolean choices in form

2014-09-30 Thread Derek
also this might be useful http://askthecssguy.com/articles/disabled-labels-and-the-trilemma-plugin/ On Tuesday, September 30, 2014 1:40:23 PM UTC-7, Derek wrote: > > Yes, you need to limit it with javascript, the client only knows > checkboxes and options.The only way the client knows how many

[web2py] Re: formstyle not supported

2014-09-30 Thread Cory
Problem fixed. it was a change from within sqlform.py in the gluon folder On Tuesday, September 30, 2014 9:55:48 AM UTC-7, Cory wrote: > > Hello, > has anyone seen this error before? if so, can you please tell me what it > may be related to? > I received this error when I cloned my project on a

[web2py] web2py usage monitor with slow web2py vs fast web2py

2014-09-30 Thread Cory
Hey, does anyone know why my usage is the way it is? for instance, in the picture below (slow version) everything is in increments with a gap in between each spike. This happens while under both heavy load and idle. My web2py is so slow its unusable. When I use web2py with a different project

[web2py] Re: web2py usage monitor with slow web2py vs fast web2py

2014-09-30 Thread PN
Are the SLOW version and FAST version different web2py applications (i.e. the code under web2py/applications/project_name is different)? If so, the difference in speed is likely coming from what processes each app is running on call. Some places to look at -- try to identify which page is the s

[web2py] Re: web2py usage monitor with slow web2py vs fast web2py

2014-09-30 Thread Cory
Thanks for the response! I will be looking at both of those tonight and seeing what comes up. I will update the post accordingly, On Tuesday, September 30, 2014 4:20:32 PM UTC-7, PN wrote: > > Are the SLOW version and FAST version different web2py applications (i.e. > the code under web2py/appl

[web2py] Re: formstyle not supported

2014-09-30 Thread Dave S
On Tuesday, September 30, 2014 2:00:48 PM UTC-7, Cory wrote: > > Problem fixed. it was a change from within sqlform.py in the gluon folder > Are you unfixing a bug fix, perhaps? You should tell us which line change seemed to be the problem; some of the team may recognize why it was changed, a

Re: [web2py] Re: web2py trunk is broken??

2014-09-30 Thread pbreit
Is Github the "preferred" source now? On Tuesday, September 30, 2014 8:45:46 AM UTC-7, Anthony wrote: > > You'll need to get it from Github -- Google Code is broken at the moment > (the commit is missing the entire new dal folder). > > Anthony > > On Tuesday, September 30, 2014 11:41:47 AM UTC-4,

[web2py] Can't retrieve a picture for download function

2014-09-30 Thread Kenneth
Hello, TAG.img(_height=50, _src=URL(r=request, c='default', f='download', args=[value])) gives me: Can't retrieve product.image.4dfd23fe-ba46-43a0-9def-6bdbc929a68c.jpg This has worked before, the problem is that I have no idea when this has stopped working, migth be years. The product.ima

[web2py] git push error

2014-09-30 Thread olivier hubert
If I use the function git push from the admin console I get an error Traceback 1. 2. 3. 4. 5. 6. Traceback (most recent call last): File "/home/olituks/web2py/gluon/restricted.py", line 224, in restricted exec ccode in environment File "/home/olituks/web2py/applications/admin/views/defau

[web2py] Re: sqlite - how to use web2py built in driver or latest sqlite

2014-09-30 Thread Mohd Radzi Ibrahim
On Monday, 29 September 2014 21:26:11 UTC+8, Massimo Di Pierro wrote: > > can you tells us more about the problem. If in path it should just use it. > what error do you get? > > Hi, This is the error message: Failure to connect, tried 5 times: Traceback (most recent call last): File "/home

[web2py] login security and some doubts

2014-09-30 Thread harith54
Hi, I am intending to use web2py to build some services and tools. I really admire how Massimo DiPierro and the contributors has created an amazing web app development platform from what I have seen so far. It takes away so much pain from web dev. Its been a month since I have started using web

Re: [web2py] Re: Web Editor Blank Screen

2014-09-30 Thread Trevor Strauss
All files have the same ownership...other thoughts? On Fri, Sep 26, 2014 at 8:27 AM, Trevor Strauss wrote: > Hi, upgraded through the admin console. will check the user/file > ownership but but think I recall them being the same when I checked file > permissions. Thanks for the help > > On Wed

[web2py] Re: Scheduler always QUEUED and no record in scheduler_worker and scheduler_run data table

2014-09-30 Thread Pengfei Yu
Hi Simone, Thanks for your reply. I used the solution from the web2py document site: http://www.web2py.com/books/default/chapter/29/13/deployment-recipes, in section "Start the scheduler as a Linux service (upstart)". After I started it, the status check (sudo status web2py-scheduler) shows tha

[web2py] Re: Automate JQuery for Button

2014-09-30 Thread Bernhard Radermacher
Dave: This is exactly what I am looking for. Very good solution. Thanks! On Tuesday, September 30, 2014 11:11:08 AM UTC-7, Dave S wrote: > > > > On Tuesday, September 30, 2014 12:02:32 AM UTC-7, Niphlod wrote: >> >> nope, just an A. if ou need a something that when you click on it it >> brings