[web2py] Re: How do I get reply from default.py after calling request from ajax

2017-06-15 Thread pbreit
First, I'd advise against doing this, at least initially. Take what Web2py gives you for free and concentrate on your app. 2nd, web2py URLs do not end in ".html" 3rd, i think you would use this for login: http://web2py.com/books/default/chapter/29/09/access-control#Manual-Authentication On

[web2py] Re: Archived records not being written to archive file

2017-06-15 Thread 'jim kaubisch' via web2py-users
Sorry, Anthony. Yes, I meant the MySQL archive tables (mediatitles_archive in this case). I'm looking at the table(s) using the command line MySQL console. This is what it says: ...a couple of sample records from the mediatitles table (id 511 is an updated record created after logging in

[web2py] Re: Archived records not being written to archive file

2017-06-15 Thread Anthony
What do you mean by archive "file" -- archived records are written to a database table? How are you checking for the archived records? Anthony On Thursday, June 15, 2017 at 11:06:57 PM UTC-4, jim kaubisch wrote: > > Hi, > > > I’m stuck. Have looked at all documentation/discussion groups I

[web2py] Archived records not being written to archive file

2017-06-15 Thread 'jim kaubisch' via web2py-users
Hi, I’m stuck. Have looked at all documentation/discussion groups I think, but the following just doesn’t write records to an archive file I’ve been struggling with this for a while now, so help would be VERY appreciated. The environment is MacOS 10.12.5,, Python 2.7, Web2py 2.14.6,

[web2py] Re: How can javascript reads a SQLFORM field which writable=False

2017-06-15 Thread Rudy
I ended up updating the database fields in the callback function in web2py controller, then return a True to indicate ajax to do a location.reload() to render the page. it does what I need. Apologize for all these questions and answers myself, but I thought i would share with someone who may

[web2py] Custom js popup confirmation not working

2017-06-15 Thread Jordan Ladora
Hello, I'm trying to get a custom js confirmation popup working. This is pretty much verbatim from the 2nd answer at - https://stackoverflow.com/questions/887029/how-to-implement-confirmation-dialog-in-jquery-ui-dialog When I add this code below to the view, this kills the rest of the js on

[web2py] Re: SSL Error with Sparkpost api with web2py.exe

2017-06-15 Thread icodk
With web2py.exe more complete screenshot C:\Dev\web\web2py_win\web2py_2_14_06>web2py.exe -S welcome web2py Web Framework Created by Massimo Di Pierro, Copyright 2007-2017 Version 2.14.6-stable+timestamp.2016.05.10.00.21.47 Database drivers available: psycopg2, pymysql, imaplib, MySQLdb, sqlite3,

[web2py] Re: SSL Error with Sparkpost api with web2py.exe

2017-06-15 Thread icodk
Sorry for the late response There is definitly a different if I use web2py shell source to send mail or web2py.exe It works fine with source and failes with web2py.exe My python installation is 2.7.13 here is my source execution : C:\Temp\web2py_src\web2py>python web2py.py -S welcome No

[web2py] Re: Is there any workaround to include 'does not contain' option in SQLform grid search?

2017-06-15 Thread Anthony
SQLFORM.grid(~db.sometable.somefield.contains('some string'), ...) The first argument can be a DAL Query object. Use .contains() with the query preceded by ~ for negation. Anthony On Thursday, June 15, 2017 at 10:08:53 AM UTC-4, Pranshul Chitransh wrote: > > I want to filter my results by

[web2py] Is there any workaround to include 'does not contain' option in SQLform grid search?

2017-06-15 Thread Pranshul Chitransh
I want to filter my results by providing a *does not contain *condition. Does anyone knows how can it be made possible? Thanks in advance. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] Re: web2py 2.15.1

2017-06-15 Thread Richard Vézina
On Wed, Jun 14, 2017 at 6:22 PM, Anthony wrote: > On Wednesday, June 14, 2017 at 2:33:58 PM UTC-4, Richard wrote: >> >> Anthony, >> >> What are the issue with Calendar?? I know it outdated, support seems to >> shade away (http://www.dynarch.com/ -> Website down and a link to

{Disarmed} Re: {Disarmed} Re: [web2py] Re: web2py and SEO

2017-06-15 Thread Carlos Cesar Caballero Díaz
Hi, it seems to be working in my apps, can you share how are you using it, and the web2py version? Greetings. El 14/06/17 a las 15:21, rajjmatt...@gmail.com escribió: Did anyone had any success on inserting metadata on layout or SEO ( http://www.web2pyslices.com/slice/show/2048/simple-seo)

[web2py] Pyfpdf - Split multicell from DB template

2017-06-15 Thread Omicron VT
Is it possible to use the split_multicell option to show a text field from a template stored in the DB ? Thanks. -- 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

[web2py] Re: problem with gluon.contrib.simplejson.loads JSONDecodeError

2017-06-15 Thread Dave S
On Tuesday, June 13, 2017 at 8:44:28 AM UTC-7, Alessio Varalta wrote: > > I send my data with this javascript > > $.ajax({ > url: url, > dataType: 'json', > type: 'POST', > contentType: 'application/json', > success: function (data) { >

[web2py] Re: Application developed and hosted in the web2py is very slow, how to increase memory for application?

2017-06-15 Thread Dave S
On Wednesday, June 14, 2017 at 11:31:11 PM UTC-7, skylab.ch...@gmail.com wrote: > > Hi Team, > > Application developed and hosted in the web2py. When I am trying to access > any page even simple page, it is taking minimum 5 to 20 seconds. I am using > m4.10x large EC2 instance. I have lot of

[web2py] How do I get reply from default.py after calling request from ajax

2017-06-15 Thread 'hardclock' via web2py-users
I made a custom signin form using javascript and ajax to check for duplicated user/wrong username-password combination.The ajax request I made is like this $.ajax({ url:'../default/signin.html', type:'POST', data:{ username:username, password:password, email:email },

Re: [web2py] Re: Why do I get a blank screen on view

2017-06-15 Thread Maurice Waka
Thanks. Once logged in I'll fix it. Regards On Jun 15, 2017 09:19, "Anthony" wrote: > On Thursday, June 15, 2017 at 1:48:51 AM UTC-4, Maurice Waka wrote: >> >> Sorry. Am not sure about value of Auth.user_id >> > > It is the id of the current logged in user. You can simply

[web2py] Re: How I can disable user_group, membership, permission, events?

2017-06-15 Thread Вячеслав Анатольевич
Thx, i understand, that its all must be in model - im testing) So, how i must write, that web2py understand "tabnum" like "id"? In book i found: db.mytable.other_id.represent = lambda id, row: row.myfield and primarykey=['accnum','acctype'] im trying, but still error. -- Resources: -

[web2py] Re: Application developed and hosted in the web2py is very slow, how to increase memory for application?

2017-06-15 Thread Anthony
What makes you think it is a memory problem? What does your code look like? What happens if you access the /welcome/default/index, or /admin? Do those pages also take 5-20 seconds? Anthony On Thursday, June 15, 2017 at 2:31:11 AM UTC-4, skylab.chennai2...@gmail.com wrote: > > Hi Team, > >

[web2py] How to get value of selection from a SQLFORM.widgets.autocomplete in Javascript

2017-06-15 Thread Flavio Bovio
I have this custom field Widget Field('cliente', widget=SQLFORM.widgets.autocomplete(request, db.clientes.razon, limitby=(0, 10), min_length=1)) ... And this function in the

[web2py] Is it possible to set target of callback method to a div of view of another function?

2017-06-15 Thread Sibasish_247
I have a button in a function A() and on clicking it I need to send a value to function B() which will process it and send the desired output to view of function C(). Using callback I am able to send the value to function B() but it only gets displayed in view of function B() if I set a target

[web2py] Application developed and hosted in the web2py is very slow, how to increase memory for application?

2017-06-15 Thread skylab . chennai2017
Hi Team, Application developed and hosted in the web2py. When I am trying to access any page even simple page, it is taking minimum 5 to 20 seconds. I am using m4.10x large EC2 instance. I have lot of memory. How to increase memory for application in web2py? I am not finding any document for

[web2py] Re: How I can disable user_group, membership, permission, events?

2017-06-15 Thread Anthony
web2py will still create the auth_group and auth_membership tables (they are not only used for the groups controlled by the auth.settings.create_user_groups setting, which only determines whether each user gets their own personal group). Anyway, I think the problem you are having is due to

Re: [web2py] Re: Why do I get a blank screen on view

2017-06-15 Thread Anthony
On Thursday, June 15, 2017 at 1:48:51 AM UTC-4, Maurice Waka wrote: > > Sorry. Am not sure about value of Auth.user_id > It is the id of the current logged in user. You can simply display it on the page or print it to the console to inspect it. Anthony -- Resources: - http://web2py.com -

Re: [web2py] Re: Why do I get a blank screen on view

2017-06-15 Thread 黄祥
just an idea, why not put the default value for that fields? e.g. default = auth.user_id best regards, stifan -- 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

[web2py] Re: dev_appserver does not allow login to my web2py app from LAN client

2017-06-15 Thread 98ujko9
My mistake! Please forgive me for wasting your time. I can't replicate that situation where I received above mentioned message. Suddenly I can do everything that I want. Working with web2py is fun! On Thursday, June 15, 2017 at 12:21:11 AM UTC-4, Anthony wrote: > > It's still not clear what is