[web2py] Re: Shell

2016-03-02 Thread Dave S
On Wednesday, March 2, 2016 at 11:23:53 PM UTC-8, ANSHUL BASIA wrote: > > I keep getting none in the shell unlike 1:32:00 in the first video of > lecture. Where is the problem ? > Which video? Can you paste in your reply the commands you've entered in the shell? /dps -- Resources: - http:

[web2py] Re: Web2Py application deployment on rented server

2016-03-02 Thread Niphlod
the "rented" server supports python ? if yes, how (mod_wsgi, cgi, fastcgi, etc etc etc) ? IMHO you should have "rented" pythonanywhere. 0 complications added. On Thursday, March 3, 2016 at 8:23:54 AM UTC+1, Martin Keyser wrote: > > I have created a web2py application and I wish to deploy it on

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

2016-03-02 Thread Massimo Di Pierro
A damn simple and easy css framework ... stupid.css https://t.co/9vB48IjYJK No promise of backward compatibility is made, but comments and suggestions for improvement are welcome. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (

[web2py] connect existing tables with legacy date format

2016-03-02 Thread yellofam
Hi, db = DAL(..., migrate_enable=False) db.define_table('table', Field('fld01'), Field('fld02'),'integer',length=7) db.fld02 actually is a date field with format CYYMMDD. I would like to send this field to view and display as normal date format so that it will work with AJAX calendar. How co

[web2py] Use menu selection to change a variable

2016-03-02 Thread David Orme
Hello, I'd like to use a simple menu to switch between two possible languages for content. I've got the content separated out following the markmin get_content() model so want to use a global variable `lang` to direct the path of the content to be loaded in pages. I've got a couple of URLs de

[web2py] Web2Py application deployment on rented server

2016-03-02 Thread Martin Keyser
I have created a web2py application and I wish to deploy it on the web. I am new to web development so please be patient. I am renting a server for my website. Before I started using web2py, I would upload all my files (HTML, css, js etc) to the server via ftp. Afterwards I would be able to

[web2py] Dal Field Types

2016-03-02 Thread Daniel Lafrance
Hi group I am trying to build a db dynamic app but I am stick on the following problem. I am able to get the filenames of a table by the syntax ; fields = list(db.resultats.keys()) But I am unable to find how to get the field types. Is there a special syntax that i could use ? Something lik

[web2py] request.post_vars - What I'm doing wrong ?

2016-03-02 Thread Rafael Venancio Dias
My friends, I have that code bellow working hell: CONTROLLER: def index3(): num1 = '' if request.post_vars: num1 = str(request.post_vars.num1) return locals() VIEW INDEX3.HTML: {{extend 'layout.html'}} Request Vars O DSLAM pesquisado foi o: {{=num1}} I o

[web2py] date format CYYMMDD

2016-03-02 Thread yellofam
I like to convert date format field in DAL from CYYMMDD to MMDDYY and use SQLFORMgrid to present on the view. How could be done, please help Thank you very much -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - ht

[web2py] Help with displaying content from my database table

2016-03-02 Thread henry
So I have my table (as seen below) and I want to make it display in the view below but I don't want it to show all the records, just the records with the same 'auth_user.teacher_id' as the currently logged in user. How would I do this? My Controller: def default_obs(): obs = db().select(d

[web2py] need help with FORM.confirm

2016-03-02 Thread Viator
Hello! I use a SQLFORM to enter client data which works perfectly. The problem: when adding a new record I want the user to confirm that some of the entered data is also entered into a second database table but I cant' get the confirmation dialog to run. The recommended way form = FORM.conf

[web2py] Shell

2016-03-02 Thread ANSHUL BASIA
I keep getting none in the shell unlike 1:32:00 in the first video of lecture. Where is the problem ? -- 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

[web2py] Widget Graph of Activity

2016-03-02 Thread DMerc
Hi everyone, I am a very new user of Web2py and just getting to grips with how it works. One aspect that I would personally find useful is to understand the scale of the activity graph in the web2py GUI widget that allows you to start / stop the server. I am trying to profile the data through

[web2py] Re: Web2py-appreport

2016-03-02 Thread Dave S
On Wednesday, March 2, 2016 at 6:27:33 PM UTC-8, Dave S wrote: > > On Wednesday, March 2, 2016 at 5:35:13 PM UTC-8, Anthony Smith wrote: >> >> Hi >> >> I am not trying to do anything only following the tutorial, that is the >> way I have been learning web2py. >> >> What other PDF generators does

[web2py] Get size of POST in an SQLFORM controller

2016-03-02 Thread Dave S
I have 2 controllers for doing uploads: one is a REST target and one uses SQLFORM. Is there an easy way to get the actual size of the POST contents in the SQLFORM version? I tried request.body.seek(0,os.SEEK_END) upsize = request.body.tell() but that seems to get an inflated count (hea

[web2py] Re: Web2py-appreport

2016-03-02 Thread Dave S
On Wednesday, March 2, 2016 at 5:35:13 PM UTC-8, Anthony Smith wrote: > > Hi > > I am not trying to do anything only following the tutorial, that is the > way I have been learning web2py. > > What other PDF generators does the group recommend? I do like to follow > tutorials as I find doing thing

Re: [web2py] dynamic multiple form field instances error

2016-03-02 Thread Dave S
On Wednesday, March 2, 2016 at 7:31:19 AM UTC-8, aetag...@gmail.com wrote: > > Yes this is ideal but I didn't think that would be possible to implement, > because with this way the amount of columns would vary with each row and I > am unsure of how possible it is to make it work because of that

[web2py] Re: Web2py-appreport

2016-03-02 Thread Anthony Smith
Hi I am not trying to do anything only following the tutorial, that is the way I have been learning web2py. What other PDF generators does the group recommend? I do like to follow tutorials as I find doing thing that way I find it easy to learn by mistakes and correct problem I create. cheers

[web2py] Pagination with multiple controller using one view - best advice

2016-03-02 Thread Ron Chatterjee
Hello, I have at least 5 controller that I use one view by using response.view = 'default/view.html'. What would be the best advice in using pagination? Because following this: http://web2py.com/books/default/chapter/29/14/other-recipes?search=pagination#Pagination Leads to request.args problem

Re: [web2py] Re: Sending email through gmail account: no SSL support

2016-03-02 Thread Michele Comitini
that problem could be simply related to python process not finding the openssl shared lib at runtime. So the module can be imported, but the socket cannot work with ssl. 2016-03-02 9:24 GMT+01:00 Niphlod : > uhm. this error > > :No SSL support included in this Python > > is an early exit on smpt

[web2py] Re: How to insert different grid elements in tab panels?

2016-03-02 Thread Ron Chatterjee
Thank you Val. Appreciate the help. On Wednesday, March 2, 2016 at 1:51:58 PM UTC-5, Val K wrote: > > As I know it's impossible to have 2 "static" (not ajax) SQLFORM.grids at > the same page, because each of them will treat request.args as its own > > Use {=LOAD(... , ajax=True)} > > And I th

[web2py] Re: how to correctly use the scheduler (if at all)

2016-03-02 Thread Niphlod
let's go in order: 1. the scheduler env is the same as your app's. As long as the mailer is defined and working for the app, you can use it in a queued task 2. as there's no way to let an external process live, and the scheduler being a totally separate process from the web-related one, the sche

[web2py] Re: Create a service running continuously

2016-03-02 Thread Ian Ryder
Sounds like you just need some sort of never ending loop (obviously you can put checks in the loop for stop requests and whatever other complexity you like / need). You can pass arguments on the python command line. So for example you could do something like: python web2py.py -S your_app -M -A

[web2py] Re: How to insert different grid elements in tab panels?

2016-03-02 Thread Val K
As I know it's impossible to have 2 "static" (not ajax) SQLFORM.grids at the same page, because each of them will treat request.args as its own On Wednesday, March 2, 2016 at 8:12:49 PM UTC+3, Ron Chatterjee wrote: > > > If I have two independent grid, when I search in one grid, it gets > re

[web2py] Re: transpose standard view to mobile phone view

2016-03-02 Thread Pierre
what about web2py id and class selectors ? Can these work together with bootstrap ? or is it to replace all built-in selector names with bootstrap names ? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.goog

[web2py] How to insert different grid elements in tab panels?

2016-03-02 Thread Ron Chatterjee
If I have two independent grid, when I search in one grid, it gets redirected to the other tab. And I noticed this with other tab panel as well. My Projects My Payments My Contacts {{=grid1}} {{=grid2}} Lorem ipsum dolor sit amet, consect

[web2py] Re: transpose standard view to mobile phone view

2016-03-02 Thread Leonel Câmara
I've never seen much of a point in using jquery mobile to be honest. -- 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: Join subqueries

2016-03-02 Thread Bill Black
Tried your solution but unfortunately didn't work. But, even if I made it work, isn't it still using executesql in the end? On Monday, February 29, 2016 at 7:17:24 PM UTC-5, Val K wrote: > > Yes, it's impossible by one dal-query, but still you can use web2py power: > > args = Storage( >

Re: [web2py] dynamic multiple form field instances error

2016-03-02 Thread aetagothno
Yes this is ideal but I didn't think that would be possible to implement, because with this way the amount of columns would vary with each row and I am unsure of how possible it is to make it work because of that On Wednesday, March 2, 2016 at 5:12:06 AM UTC-5, Dave S wrote: > > > > On Tuesday,

[web2py] how to correctly use the scheduler (if at all)

2016-03-02 Thread noam cohen
Hi I have the following scenario: A scheduled task runs every T seconds (e.g. 60), and executes a function F() In function F() I scan some db tables and according to the business logic, may need to send several email messages. The book (http://www.web2py.com/books/default/chapter/29/08/emails-an

[web2py] Re: transpose standard view to mobile phone view

2016-03-02 Thread Pierre
So if I use bootstrap it is enough to make my website mobile compatible ? what about Jquery mobile is it useful or can I just discard it and rely on standard Jquery ? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - ht

[web2py] Re: transpose standard view to mobile phone view

2016-03-02 Thread Leonel Câmara
Nowadays you usually just use CSS to make the website responsive, it's really easy to do so with bootstrap for example (the CSS framework the welcome application uses). Otherwise you could change the view in the controller function. Example if request.user_agent()['is_mobile']: response.vie

[web2py] transpose standard view to mobile phone view

2016-03-02 Thread Pierre
Hi everyone, what are the steps/general rules to 'translate' this_view.html in this_view.mobile.html ? -- 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) ---

Re: [web2py] dynamic multiple form field instances error

2016-03-02 Thread Dave S
On Tuesday, March 1, 2016 at 7:33:38 PM UTC-8, aetag...@gmail.com wrote: > > That makes so much sense! Thank you for explaining this to me, I did that > and it finally works! > > I also changed the variable name to be nums to make things clearer as well. > > I am having trouble with inserting th

[web2py] Re: [Scheduler] Scraping javascript pages

2016-03-02 Thread Nico de Groot
I've used PhantomJS in combination with selenium (ghostdriver) and Python requests. Phantom used a headless browser, so you can make your scraping a task for the Web2py scheduler on your server. First analyse the website to get the Ajax urls and the headers, and construct the correct requests i

Re: [web2py] Re: pdf utf-8 problem

2016-03-02 Thread José Luis Redrejo
If you're using fpdf, this will do the trick: reload(sys) sys.setdefaultencoding("latin-1") 2016-03-02 8:47 GMT+01:00 xmarx : > i haven't find solution yet but i found rigth source to explore. > http://pyfpdf.readthedocs.org/en/latest/Web2Py/index.html > > if i find, i will post here. >

[web2py] Re: Sending email through gmail account: no SSL support

2016-03-02 Thread Niphlod
uhm. this error :No SSL support included in this Python is an early exit on smptlib . not at all web2py related: SO is riddled with same error, and all points to not having SSL available... On Wednesday, March 2, 2016 at 1:53:05 AM UTC+1, Leonel Câmara wrote: > > Have you allowed insecure apps

[web2py] Re: run in background python script

2016-03-02 Thread Niphlod
use the scheduler http://web2py.com/books/default/chapter/29/04/the-core#web2py-Scheduler On Wednesday, March 2, 2016 at 8:45:26 AM UTC+1, Bogdan Iancic wrote: > > How can i run in background a python script that takes more than 10 > minutes? I have seen that using fork isin't possible in web2py