[web2py] Re: Dropdown doesn't show on response.menu

2016-05-16 Thread Dave S
On Monday, May 16, 2016 at 8:49:35 PM UTC-7, anamar...@gmail.com wrote: > > Thank you sir, I started to get familiar with layout.html. Are you saying > we create a layout using random.html instead? But isn't that all the jqury > and link menu will need to be included? Is there a layout availabl

[web2py] Re: Mercurial and Windows 10

2016-05-16 Thread Martin Weissenboeck
I have installed: Mercurial on the Windows server: https://www.mercurial-scm.org/wiki/Download#Windows "Mercurial-3.8.1 (32-bit py2.7) / Mercurial-3.8.1 (64-bit py2.7)

[web2py] Redirect after profile update

2016-05-16 Thread Ron Chatterjee
Anyone aware of anything similar to auth.settings.register_onupdate? I have splitted up the auth_user to buyer and seller. I redirect one group by the following after registration auth.settings.register_onaccept = lambda form: after_registration(form) I would like to do similar after the pr

[web2py] Re: Dropdown doesn't show on response.menu

2016-05-16 Thread anamarie06431
Thank you sir, I started to get familiar with layout.html. Are you saying we create a layout using random.html instead? But isn't that all the jqury and link menu will need to be included? Is there a layout available using stupid css? On Monday, May 16, 2016 at 7:32:26 PM UTC-4, Massimo Di Pie

[web2py] Re: html helper A with delete attribute not working, the div is not removed

2016-05-16 Thread Anthony
On Monday, May 16, 2016 at 4:15:53 PM UTC-4, Vic Ding wrote: > > This is the XHR > invalid function (default/removeProduct) > > > That's not a 200 response, so it will not trigger the DIV removal. > The removeProduct function is located under product.py not default. > Then your URL is incorrec

[web2py] Re: Mercurial and Windows 10

2016-05-16 Thread Dave S
On Monday, May 16, 2016 at 4:31:14 PM UTC-7, Massimo Di Pierro wrote: > > I think there are different incompatible versions of mercurial API's > around. which version of mercurial do you have? > Officially, there is only 1 API .. the command line. Use of internal interfaces is not guaranteed

[web2py] Re: Thread with own db connection

2016-05-16 Thread Alfonso Serra
Well, the sceduler starts with an error because im mapping booleans to tinyint in 01_db.py. But it doesnt fail inserting booleans. db = DAL("mysql://cnnstring", pool_size = 10, check_reserved=None, migrate= True) db._adapter.types['boolean']='TINYINT(1)' db._adapter.TRUE = 1 db._adapter.FALSE =

[web2py] ubuntu:nginx:uwsgi Cannot edit using web2py's browser interface

2016-05-16 Thread Ben Lawrence
Hi, I have basically followed the installation script https://github.com/web2py/web2py/blob/master/scripts/setup-web2py-nginx-uwsgi-ubuntu.sh on Ubuntu 14.04 OS Everything is fine except that I cannot edit files with web2py's inbuilt browser editor. The error on a blank page is "An error occurr

[web2py] Re: Dropdown doesn't show on response.menu

2016-05-16 Thread Massimo Di Pierro
I cannot stop recommending this instead: http://mdipierro.github.io/stupid.css/themes/random.html On Saturday, 14 May 2016 17:04:26 UTC-5, DenesL wrote: > > Bootstrap 3 does not support menu depths beyond level 2. > See > https://groups.google.com/forum/#!searchin/web2py/menu|sort:relevance/web2

[web2py] Re: AWE Elasticbeanstalk and web2py

2016-05-16 Thread Massimo Di Pierro
Pythonanywhere is easier. AWS provide much more stuff and it a de-facto standard. On Monday, 16 May 2016 08:28:01 UTC-5, Ron Chatterjee wrote: > > This may be a novice question, but how is it any different to host the app > in AWS as oppose to lets say python anywhere? Is AWS is more preferred

[web2py] Re: Mercurial and Windows 10

2016-05-16 Thread Massimo Di Pierro
I think there are different incompatible versions of mercurial API's around. which version of mercurial do you have? On Saturday, 14 May 2016 02:36:17 UTC-5, mweissen wrote: > > I have tried to use the Mercurial Version Control System. > > There is the same web2py version (2.14.6) on a Linux Ubun

[web2py] Re: web2py 2.14.6 is OUT

2016-05-16 Thread pbreit
If you delete admin app can you still access appadmin? What would the "running locally and ssh tunneling" look like? On Friday, May 13, 2016 at 12:45:13 PM UTC-7, Anthony wrote: > > On Friday, May 13, 2016 at 3:40:37 PM UTC-4, Alex Glaros wrote: >> >> how to delete? >> >> do I just delete this f

[web2py] Re: Thread with own db connection

2016-05-16 Thread Dave S
On Monday, May 16, 2016 at 1:00:32 PM UTC-7, Alfonso Serra wrote: > > The difference is, from my modest knowledge about the scheduler, the > following. > [...] > > Scheduler problems: > - Enabling the scheduler adds overhead to the database, a lot i might say. > - I have to manually run the

Re: [web2py] Re: how to create pdf report in web2py???

2016-05-16 Thread Dragan Matic
Here's a simple example, creating a PDF invoice in web2py app: This is the controller code: def show_pdf_invoice(invoice_number, invoice): from fpdf import FPDF pdf = FPDF() pdf.add_page() pdf.set_font('Arial', 'B', 10) pdf.cell(25, 5, 'My company name', ) pdf.set_font('A

[web2py] Re: html helper A with delete attribute not working, the div is not removed

2016-05-16 Thread Vic Ding
This is the XHR invalid function (default/removeProduct) The removeProduct function is located under product.py not default. This is the strange part for me, the ajax call to product/removeProduct/pid is successful as the database record is indeed removed. However, there is such an invalid call

[web2py] Re: Thread with own db connection

2016-05-16 Thread Alfonso Serra
The difference is, from my modest knowledge about the scheduler, the following. The scenario is: - Users have to be able to import a csv to one of the tables. csv's may be big 8mb, 40k rows. (worst case) - Users may do this whenever they want, so concurrency would occur. Implementation problems

[web2py] Re: html helper A with delete attribute not working, the div is not removed

2016-05-16 Thread Anthony
Can you show the network requests? If the XHR doesn't return successfully (regardless of whether the record is deleted), the Javascript to remove the DIV will not be triggered. Anthony On Monday, May 16, 2016 at 3:15:54 PM UTC-4, Vic Ding wrote: > > HI Anthony, > > There is one mysterious 404 t

[web2py] Re: html helper A with delete attribute not working, the div is not removed

2016-05-16 Thread Vic Ding
HI Anthony, There is one mysterious 404 to the remove function, to a wrong URL which I never called. However, the record is indeed successfully removed from database. On Monday, May 16, 2016 at 8:35:50 PM UTC+2, Anthony wrote: > > Your original code works for me. Are you sure the Ajax reques

[web2py] Re: html helper A with delete attribute not working, the div is not removed

2016-05-16 Thread Anthony
Your original code works for me. Are you sure the Ajax request is returning successfully (check the browser developer tools and make sure the XHR request returns with a 200 response)? Also, check for any errors in the Javascript console. Anthony On Sunday, May 15, 2016 at 11:49:34 AM UTC-4, Vi

[web2py] Re: Thread with own db connection

2016-05-16 Thread Dave S
On Saturday, May 14, 2016 at 9:27:16 AM UTC-7, Alfonso Serra wrote: > > [...] > > So far it works wonders, i can attach any kind of statistics about the > thread's progress without ever touching the database, the importation > proccess takes 4mins top (40k rows) when the scheduler takes 20/3

[web2py] Re: default_application does not work on 2.14.6 version

2016-05-16 Thread Anthony
Did you restart the web server or otherwise reload the routes after making the change? Also, note that specifying default_application only has an effect when accessing the root URL (i.e., http://yourdomain.com/). If the app, controller, and function are missing, it assumes the default for each.

[web2py] Re: smartgrid internals: where to find parent table id in oncreate?

2016-05-16 Thread Dave S
On Monday, May 16, 2016 at 3:37:33 AM UTC-7, Mirek Zvolský wrote: > > Hi, > smartgrid oncreate receives single parameter: form > > I have in parent table the count of child records, > so when I add new child record in smartgrid, > I need to increase (+1) this count, > so I need obtain the parent

[web2py] Re: default_application does not work on 2.14.6 version

2016-05-16 Thread Bernardo Leon
This is the workaround I have found so far: Since the name of the application is obtained in layout.html and layout.html uses response.title (or request.application but I am sticking to response.title) to change the app name (even if the app folder is called init) we just need to add this line

Re: [web2py] html helper A with delete attribute not working, the div is not removed

2016-05-16 Thread Vic Ding
I got "Failed to load resource: the server responded with a status of 404 (NOT FOUND) https://10.20.0.10/erpdraft1/default/removeProduct"; I could not see any code which is calling for erpdraft1/default/removeProduct, the correct address, where the actual remove code is, is erpdraft1/product/r

[web2py] Re: AWE Elasticbeanstalk and web2py

2016-05-16 Thread Ron Chatterjee
This may be a novice question, but how is it any different to host the app in AWS as oppose to lets say python anywhere? Is AWS is more preferred due to auto scaling that other hosting may not provide? On Sunday, May 15, 2016 at 4:36:49 PM UTC-4, Massimo Di Pierro wrote: > > Below are instructi

[web2py] Re: unknown ticket on server for all sites

2016-05-16 Thread Anthony
On Sunday, May 15, 2016 at 11:58:50 AM UTC-4, Alfonso Serra wrote: > > Bit locker is a windows feature that encrypts your harddrive so no one can > read your files. It might be this, you can read your files but the uploaded > ones are encrypted, readable only by your windows machine. > With Bitl

Re: [web2py] html helper A with delete attribute not working, the div is not removed

2016-05-16 Thread Manuele Pesenti
Do you get any output in the browser console? Maybe some error in the javascript code passed in the header response? Cheers M. Il 16/05/16 12:23, Vic Ding ha scritto: > Hi Manuele, > Tried the later one. Did not work for me. > >

[web2py] smartgrid internals: where to find parent table id in oncreate?

2016-05-16 Thread Mirek Zvolský
Hi, smartgrid oncreate receives single parameter: form I have in parent table the count of child records, so when I add new child record in smartgrid, I need to increase (+1) this count, so I need obtain the parent record. But in oncreate in form.vars is the parent_id not present. I have found i

Re: [web2py] html helper A with delete attribute not working, the div is not removed

2016-05-16 Thread Vic Ding
Hi Manuele, Tried the later one. Did not work for me. The delete button flipped to "working..." for split second then back to delete

Re: [web2py] Re: how to create pdf report in web2py???

2016-05-16 Thread prashant joshi
i also try this but i could not understadplease anybody send a simple example that i will understd On Wed, May 11, 2016 at 1:57 AM, Carlos Cesar Caballero Díaz < desarro...@spicm.cfg.sld.cu> wrote: > Take a look to jsPDF (https://parall.ax/products/jspdf) if you are more > familiar with javas

[web2py] finding the error for unknown ticket

2016-05-16 Thread BlueShadow
Hi, my production site displays for every site an unknown ticket. is there a way to find out why this happens. is there a log or something where there are more informations? I am running ubuntu nginx uswgi and the newest web2py on a freshly installed ubuntu server 14.04. thanks for your help. -

Re: [web2py] html helper A with delete attribute not working, the div is not removed

2016-05-16 Thread Manuele Pesenti
Il 16/05/16 11:52, Manuele Pesenti ha scritto: > response.js = " document.getElementById("product%s" % request.args(0, > cast=int)).remove();" uhm try this one instead: response.js = 'document.getElementById("product%s" % request.args(0, cast=int)).remove();' M. -- Resources: - http://web2p

Re: [web2py] html helper A with delete attribute not working, the div is not removed

2016-05-16 Thread Manuele Pesenti
try to set in the removeProduct controller something like this (not tested): response.js = " document.getElementById("product%s" % request.args(0, cast=int)).remove();" cheers Manuele Il 15/05/16 17:49, Vic Ding ha scritto: > Hi all, > > I am new to web2py. > I have a HTML helper > | > DIV