Re: [web2py] Re: how to generate PDF documents in web2py???

2016-03-11 Thread prashant joshi
thank u On Sat, Mar 12, 2016 at 11:52 AM, xmarx wrote: > pyfpdf is installed on web2py. > > docs and tutorials can be found here: > http://pyfpdf.readthedocs.org/en/latest/Web2Py/index.html > > 11 Mart 2016 Cuma 21:36:41 UTC+2 tarihinde prashant joshi yazdı: > >> i want

[web2py] Re: how to generate PDF documents in web2py???

2016-03-11 Thread xmarx
pyfpdf is installed on web2py. docs and tutorials can be found here: http://pyfpdf.readthedocs.org/en/latest/Web2Py/index.html 11 Mart 2016 Cuma 21:36:41 UTC+2 tarihinde prashant joshi yazdı: > > i want crete sql form if i click on print button then form printout in > pdf format > how it

Re: [web2py] Re: How do I take picture using camera and save it in db?

2016-03-11 Thread António Ramos
Try the filepicker cloud service in your views Em 11/03/2016 19:01, "Dave S" escreveu: > On Friday, March 11, 2016 at 9:52:20 AM UTC-8, RAGHIB R wrote: >> >> What syntax do you use for the same? >> >> > For a camera on the server, you use an external program that saves the

[web2py] Re: Using writable=False fields in an onupdate function

2016-03-11 Thread Anthony
On Friday, March 11, 2016 at 2:36:14 PM UTC-5, David Orme wrote: > > That is exactly what I was looking for. I don't know how it compares for > performance with the record id query, but it makes for very clean code, and > the fact that it exposes the reference table fields is very neat. > Your

[web2py] how to generate PDF documents in web2py???

2016-03-11 Thread prashant joshi
i want crete sql form if i click on print button then form printout in pdf format how it wiil done in web2py?? how use ReportLab library?? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: Using writable=False fields in an onupdate function

2016-03-11 Thread David Orme
That is exactly what I was looking for. I don't know how it compares for performance with the record id query, but it makes for very clean code, and the fact that it exposes the reference table fields is very neat. Many thanks! -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: DAL and schema

2016-03-11 Thread Ben Wolski
executing the following query after defining my db in db.py helped me query an Oracle db that requires a schema: db_prod.executesql("ALTER SESSION SET CURRENT_SCHEMA = BDR;") El viernes, 2 de marzo de 2012, 3:58:35 (UTC-8), Wuwei escribió: > > Hello, > I'm trying to use DAL with a MSSQL db. > I

[web2py] Re: Using writable=False fields in an onupdate function

2016-03-11 Thread Anthony
If you are updating a record, you should be able to retrieve the full record via form.record: def update_administer_volunteers(form): # Email the decision to the proposer volunteer = form.record.volunteer_id # alternatives if form.vars.admin_status == 'Approved':

[web2py] Re: How do I take picture using camera and save it in db?

2016-03-11 Thread Dave S
On Friday, March 11, 2016 at 9:52:20 AM UTC-8, RAGHIB R wrote: > > What syntax do you use for the same? > > For a camera on the server, you use an external program that saves the picture to the file, and in a controller or scheduler task simply do a normal DB insert, which might either be just

Re: [web2py] Re: for those of us who do not understand ...

2016-03-11 Thread Dave S
On Friday, March 11, 2016 at 9:31:59 AM UTC-8, Ramos wrote: > > I´d like to know why Massimo took his time to create stupid.css > > I think it is a) preparation for Web3Py (which will be more css-agnostic) b) an alternative to Bootstrap (people are always asking for this, it seems) c) simpler

Re: [web2py] web2py pygal graph

2016-03-11 Thread Dave S
On Friday, March 11, 2016 at 9:21:47 AM UTC-8, Ramos wrote: > > > Forget that view associated with graph function. > > you need a different view and controller. > For example controllerA and viewA > > def controllerA(): > > return dict(your_vars_here...) > Note that this is returning a dict

[web2py] Re: How to know if the scheduler is running?

2016-03-11 Thread Dave S
On Friday, March 11, 2016 at 6:20:09 AM UTC-8, Alfonso Serra wrote: > > Excuse me Niphlod, i can't find any docs about running the scheduler > programatically. > > Do you have any advise on how to do it? > > > He does.

Re: [web2py] Re: Using writable=False fields in an onupdate function

2016-03-11 Thread Richard Vézina
SQLFORM and SQLFORM.gris play well with each other you just have to leve the create/read/update to SQLFORM and use .grid for the display... Did you try session? Richard On Fri, Mar 11, 2016 at 5:30 AM, David Orme wrote: > Hello all, > > Thanks for the information and

[web2py] How do I take picture using camera and save it in db?

2016-03-11 Thread RAGHIB R
What syntax do you use for the same? -- 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

Re: [web2py] Re: for those of us who do not understand ...

2016-03-11 Thread António Ramos
I´d like to know why Massimo took his time to create stupid.css Should we go Stupid and why? 2016-03-11 15:53 GMT+00:00 Ron Chatterjee : > This is by far the best dashboard I ever seen. Massimo, if there is a best > teacher award in US, I will vote for you to get

Re: [web2py] web2py pygal graph

2016-03-11 Thread António Ramos
Forget that view associated with graph function. you need a different view and controller. For example controllerA and viewA def controllerA(): return dict(your_vars_here...) viewA.html here should paste the content of your previous view. This way you will have the graph and MY FIRST

[web2py] Is Opencv threadsafe in web2py?

2016-03-11 Thread RAGHIB R
Are opencv stuffs thread-safe and is it okay to use them in web2py? -- 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

[web2py] Re: for those of us who do not understand ...

2016-03-11 Thread Ron Chatterjee
This is by far the best dashboard I ever seen. Massimo, if there is a best teacher award in US, I will vote for you to get that. Excellent work! On Thursday, March 10, 2016 at 9:45:08 PM UTC-5, Dave S wrote: > > > > On Tuesday, March 8, 2016 at 4:01:00 PM UTC-8, Dave S wrote: >> >> >> >> On

[web2py] Regarding "registration needs verification"

2016-03-11 Thread Ramchandra Sharma
Although the user is registering .While loginging i get the error "registration needs verification"\ My variables are -- auth.settings.registration_requires_verification = False auth.settings.registration_requires_approval=False auth.settings.reset_password_requires_verification = True

Re: [web2py] Re: Optimising caching and enabling gzip for web2py on heroku?

2016-03-11 Thread Vid Ogris
So i gzipped my files. I am running my web2py on windows not on apache or anything. Is is possible to serve them like that or do I have to use Apache server for this to work? 2016-03-11 15:18 GMT+01:00 Kiran Subbaraman : > >

[web2py] Re: How to know if the scheduler is running?

2016-03-11 Thread Alfonso Serra
Excuse me Niphlod, i can't find any docs about running the scheduler programatically. Do you have any advise on how to do it? Thanks. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] Re: Optimising caching and enabling gzip for web2py on heroku?

2016-03-11 Thread Kiran Subbaraman
http://web2py.com/books/default/chapter/29/13/deployment-recipes#Compress-static-files Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Fri, 11-03-2016 7:22 PM, Yebach wrote: I would like to speed up my page a little bit. one of the suggestions

[web2py] About Cubaconf

2016-03-11 Thread Carlos Cesar Caballero
Hi everyone!! in the next April (25-27) will be taking place a Free (Open source) software international conference (http://www.cubaconf.org/) and someone motivated me to present for the unconference a talk about how we use web2py for agile development in an mostly disconnected enviroment as we

[web2py] Re: Optimising caching and enabling gzip for web2py on heroku?

2016-03-11 Thread Yebach
I would like to speed up my page a little bit. one of the suggestions by https://gtmetrix.com is to gzip my files I am looking at your zip_statis_file.py where do I insert this function? On Sunday, March 3, 2013 at 2:55:02 PM UTC+1, Niphlod wrote: > > response.static_version is the answer for

[web2py] [SOLVED] Custom form not accepted (formkey missing)

2016-03-11 Thread Carlos Kitu
Hi guys, I don't show up here too often because all the issues I find use to be solved here. Good job. Today I was going nuts with one issue, and I would like to share my findings for other developer's shake. I was generating a form with SQLFORM.factory: form= SQLFORM.factory(...) In the

[web2py] Re: on button click show progress bar

2016-03-11 Thread Yebach
am not using LOAD helper. Maybe i should. this is my html {{=A(T('Report'), _class='btn btn-primary', _href=URL('script','excelExport', args = request.args[0]))}} And my controller code which at the end data = open(tmpfilename,"rb").read() os.unlink(tmpfilename)

[web2py] Re: Using writable=False fields in an onupdate function

2016-03-11 Thread David Orme
Hello all, Thanks for the information and help. - I can see that using SQLFORM simplifies it, but the SQLFORM.grid API makes it really easy to present a user with a summary table of options that they can then click into to see details. - The other options suggested both carry out the query I

[web2py] Re: storing the values into database from html form

2016-03-11 Thread Leonel Câmara
Set the form action to be some controller that then validates and inserts the data. The data should be in request.vars. Please read chapter 4, 6 and 7 of the book. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] implement authentication in navbar

2016-03-11 Thread Alessio Varalta
Hi, is possible to use create authentication in navbar for example in the menu file? Or I have change copy the html code of navbar and put this in the layout file and after I inser the code of the form? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] scheduler remains queued

2016-03-11 Thread Bogdan Iancic
I have a problem with my scheduler. Every time I launch it, it remains in queued. I've cloned again the application, deleted the tables but nothing works. What might cause the problem? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py