Re: [web2py] Re: SQLFORM grid process not working

2015-10-07 Thread Anthony
I suppose that's fine -- it just wasn't clear to where you were redirecting or why. On Wednesday, October 7, 2015 at 11:11:27 PM UTC-4, Yebach wrote: > > thanx for this > > Yes I have a redirect to another page. > > So if user creates a shift that already exists (code is based on times of > dura

[web2py] Cache + Bottlenose API - need help

2015-10-07 Thread Kiran Subbaraman
I was trying to use Bottlenose's API (thin wrapper on the Amazon Products API), alongwith web2py's Cache. bottlenose: https://github.com/lionheart/bottlenose Bottlenose provides callbacks where the caching logic can be introduced. The code is listed below cache_disk = CacheOnDisk(folder='path...

Re: [web2py] Re: SQLFORM grid process not working

2015-10-07 Thread Vid Ogris
thanx for this Yes I have a redirect to another page. So if user creates a shift that already exists (code is based on times of duration), i want to give him a choice to go to that shift and activate it in case its status is archived do you recommend another way. I give now flash message but if

[web2py] Unable to edit any apps even after logging in

2015-10-07 Thread Larry Graves
Hi, I'm working with web2py for a class project, and while I've gotten the server to launch, I can't seem to access any administrative functions. The admin interface prompts me for a password, which I enter, and then it goes back to the overview of all apps. However, instead of showing "Edit

[web2py] Multiple select options not displayed

2015-10-07 Thread DJ
Hi, I'm wondering if there's a problem with my multi-select syntax. I'm not able to see the drop down options when I try this on the latest web2py (2.12.13). See code example below: def multi(): """ multi Module """ weekdays = ["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday

[web2py] Re: Oracle drivers.

2015-10-07 Thread Michael M
Submitted: https://github.com/web2py/web2py/issues/1082 On Wednesday, October 7, 2015 at 5:29:43 PM UTC-7, Massimo Di Pierro wrote: > > This may be a bug. Can you please open a pydal ticket and we will check it > asap? > > On Wednesday, 7 October 2015 14:50:13 UTC-5, Michael M wrote: >> >> Never

Re: [web2py] Is This Even Possible: Serve Form Via Ajax

2015-10-07 Thread Vinicius Assef
Your action (function ajax_form_creator) should return a dict. What it returns if you type the url direct in your browser address field? -- Vinicius Assef On 7 October 2015 at 15:01, Mark Billion wrote: > ** Splits the input "name" attribute up => generates a query => creates > sqlform =

[web2py] Re: Oracle drivers.

2015-10-07 Thread Massimo Di Pierro
This may be a bug. Can you please open a pydal ticket and we will check it asap? On Wednesday, 7 October 2015 14:50:13 UTC-5, Michael M wrote: > > Never checked there. But it is. > > $ python web2py.py > web2py Web Framework > Created by Massimo Di Pierro, Copyright 2007-2015 > Version 2.12.3-st

[web2py] How to disable the calendar widget?

2015-10-07 Thread Edward Shave
I want to use a different datetimepicker widget so I need to disable the old one. So far I've commented out the following two lines in web2py_ajax.html... response.files.insert(1,URL('static','css/calendar.css')) response.files.insert(2,URL('static

[web2py] Re: A helper callback not working as expected

2015-10-07 Thread Tom Campbell
Thank you, Anthony. I was working with a much older version of web2py. I updated to 2.12.3-stable and it appears to be working fine. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issu

[web2py] Re: New US Govt guidelines do not like Bootstrap CSS

2015-10-07 Thread Dave S
On Wednesday, October 7, 2015 at 10:47:22 AM UTC-7, Leonel Câmara wrote: > > I was hoping someone here could estimate how hard it would be for one of >> us to use those examples instead of bootstrap > > > I don't think it's hard at all. It's just a matter of making your own > layout.html and t

[web2py] Re: Oracle drivers.

2015-10-07 Thread Michael M
Never checked there. But it is. $ python web2py.py web2py Web Framework Created by Massimo Di Pierro, Copyright 2007-2015 Version 2.12.3-stable+timestamp.2015.08.19.00.18.03 Database drivers available: cx_Oracle, pymysql, imaplib, sqlite3, pg8000, pyodbc Weird. just rebooted the Virt. and stil

[web2py] Re: Oracle drivers.

2015-10-07 Thread Willoughby
When you start web2py from a command line it should list 'Database drivers available' - is it on that list? On Wednesday, October 7, 2015 at 3:12:01 PM UTC-4, Michael M wrote: > > Just to cover more basis I installed the following: > > sudo rpm -Uvh > > oracle-instantclient11.2-basic-11.2.0.4.0-1

[web2py] Re: Oracle drivers.

2015-10-07 Thread Michael M
Just to cover more basis I installed the following: sudo rpm -Uvh oracle-instantclient11.2-basic-11.2.0.4.0-1.x86_64.rpm oracle-instantclient11.2-devel-11.2.0.4.0-1.x86_64.rpm oracle-instantclient11.2-jdbc-11.2.0.4.0-1.x86_64.rpm oracle-instantclient11.2-odbc-11.2.0.4.0-1.x86_64.rpm oracle-instan

[web2py] Re: login_bare custom validation

2015-10-07 Thread 'DenesL' via web2py-users
Thanks Massimo I never really went away ;-) On Wednesday, October 7, 2015 at 2:06:16 PM UTC-4, Massimo Di Pierro wrote: > > welcome back Denes. :-) > your fix is in trunk. > > > On Monday, 5 October 2015 15:33:48 UTC-5, DenesL wrote: >> >> This seems to work: >> >> def __call__(self, value)

[web2py] Re: auth.requires_login redirect and session expiration

2015-10-07 Thread 'DenesL' via web2py-users
Links on the client trigger XHR calls already. I had those settings in a model so I am pretty sure they were set before any controller code. On Wednesday, October 7, 2015 at 1:41:57 PM UTC-4, Leonel Câmara wrote: > > That's weird it should fix it anyway because all that setting does is make >

[web2py] Re: login_bare custom validation

2015-10-07 Thread Massimo Di Pierro
welcome back Denes. :-) your fix is in trunk. On Monday, 5 October 2015 15:33:48 UTC-5, DenesL wrote: > > This seems to work: > > def __call__(self, value): > v = str(value) > v = v and v[:self.max_length] > if len(v) < self.min_length: > return ('', trans

[web2py] Is This Even Possible: Serve Form Via Ajax

2015-10-07 Thread Mark Billion
** Splits the input "name" attribute up => generates a query => creates sqlform => returns form def ajax_form_creator(): for k,v in request.vars.iteritems(): field_array = k.split('-') this_page_form = db[field_array[3]].id==field_array[1] db[field_array[3]].client

[web2py] Re: New US Govt guidelines do not like Bootstrap CSS

2015-10-07 Thread Leonel Câmara
> > I was hoping someone here could estimate how hard it would be for one of > us to use those examples instead of bootstrap I don't think it's hard at all. It's just a matter of making your own layout.html and then creating a formstyle for it if you will be using SQLFORM, and a ui dictionar

[web2py] Re: auth.requires_login redirect and session expiration

2015-10-07 Thread Leonel Câmara
That's weird it should fix it anyway because all that setting does is make sure the redirect is made using javascript on the client side. Are you sure the setting is being applied before the auth.requires_login() decorator runs? -- Resources: - http://web2py.com - http://web2py.com/book (Docum

[web2py] Re: New US Govt guidelines do not like Bootstrap CSS

2015-10-07 Thread Dave S
On Wednesday, October 7, 2015 at 12:53:28 AM UTC-7, Leonel Câmara wrote: > > There's a reason people like opinionated CSS frameworks. They save a *lot* > of time which means customers save a lot of money, I can bet you my > government which isn't swimming in money right now would not have the s

[web2py] Re: auth.requires_login redirect and session expiration

2015-10-07 Thread 'DenesL' via web2py-users
Thanks for your reply but those setting do not fix the issue, maybe because it is not a web2py component. On Wednesday, October 7, 2015 at 12:42:08 PM UTC-4, Leonel Câmara wrote: > > This should fix it: > auth.settings.client_side=True > > You may want to set login_next too. > -- Resources: -

[web2py] Re: auth.requires_login redirect and session expiration

2015-10-07 Thread Leonel Câmara
This should fix it: auth.settings.client_side=True You may want to set login_next too. -- 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

[web2py] Re: auth.requires_login redirect and session expiration

2015-10-07 Thread 'DenesL' via web2py-users
Original post edited with new info. -- 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 subscribed to the Google Gro

[web2py] Re: SQLFORM.grid and ractive

2015-10-07 Thread Anthony
> > But, grid isn't formatted for bootstrap, which I use and the rest of > web2py supports. This inconsistency causes trouble when I use the > ui="web2py" argument to grid. > The "web2py" ui includes the following CSS classes: ui = dict(widget='', header='',

[web2py] Re: A helper callback not working as expected

2015-10-07 Thread Anthony
Are you saying it makes an Ajax request to that URL, or that the page changes/redirects to that URL when the link is clicked? Do you have the correct version of web2py.js for the version of web2py you are using? What does the "completed" function do? On Tuesday, October 6, 2015 at 7:42:51 PM UT

Re: [web2py] Re: SQLFORM grid process not working

2015-10-07 Thread Anthony
> > so far the link and everything works ok, but the first validators are not > working so i get an error cos the sh_.field which is autogenerate is not > done > > if (grid_shifts.create_form and grid_shifts.create_form.errors) or ( > grid_shifts.update_form and grid_shifts.update_form.errors):

[web2py] Re: upload and sqlform.grid

2015-10-07 Thread Laurent Lc
Found : def showonly(): query=(db.personnel.present=='present') #links=[{'header':T('picture'),'body':lambda row: IMG(_src=row.picture, _width=50, _height=40, _id='picture')}] db.personnel.picture.represent = lambda pic,row : IMG(_src=URL('default', 'download', args=pic)) grid =

[web2py] Re: Simple Wiki Markmin Google docs viewer needs HTTPS

2015-10-07 Thread A3
Yes @auth.requires_login(), after removing it works. But ... How can I protect my pages when I want to use the viewer? Op vrijdag 25 september 2015 05:29:07 UTC+2 schreef Massimo Di Pierro: > > Is there any @auth.require* protection for the url that serves the xls > document? The viewer is a goo

[web2py] Re: New US Govt guidelines do not like Bootstrap CSS

2015-10-07 Thread Leonel Câmara
There's a reason people like opinionated CSS frameworks. They save a *lot* of time which means customers save a lot of money, I can bet you my government which isn't swimming in money right now would not have the same opinion. Completely bespoke design is great but it is also a lot more costly