[web2py] How to change the icon that appears on the tab where web2py app is opened?

2016-02-20 Thread Rgb Aston
It always shows this by default. -- 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

[web2py] How to change the icon that appears on the tab where web2py is opened?

2016-02-20 Thread Rgb Aston
It always shows this by default. -- 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

[web2py] What are the platforms for free web hosting of web2py apps?

2016-02-20 Thread Rgb Aston
Which one's the best to go for? -- 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 Groups

[web2py] Re: daily scheduler task

2016-02-20 Thread Brian M
OK, played around a bit and produced a sample task that will demonstrate the problem. And also a FIX. in a model file put # -*- coding: utf-8 -*- from datetime import datetime db.define_table("scheduler_testing", Field('start_time', 'datetime', default = datetime.now()),

[web2py] Re: daily scheduler task

2016-02-20 Thread Brian M
My setup is on Windows with the scheduler running as a service via nssm. I have it set to run every 86400 seconds (24hrs) with infinite number of runs and retries. The timeout is something like 2 or 3 minutes. I am also using the "cron like" option so that it always runs at exactly the same

[web2py] Passing in arbitrary values at runtime/configuration switching

2016-02-20 Thread lillian
All, As I understand the code, -L only allows you to redefine values web2py already understands (new/arbitrary keys i.e. bananas=False are ignored, see widget.py), what is the best way to provide custom runtime configuration of other, app-specific values? Importing a module with the values

[web2py] Re: response.title doesn't work

2016-02-20 Thread rajjmatthur
Older version, I can just put response.title = A(IMG(_src=URL('static', 'images/my_logo.png'))) in menu.py and it worked on every pages. Thank you Anthony On Saturday, February 20, 2016 at 4:06:09 PM UTC-5, Anthony wrote: > > If you are using the default layout.html that comes with the

[web2py] Re: Another online store based in web2py+ractive+stripe

2016-02-20 Thread Ron Chatterjee
Is this a more recommended version (stripe) than: https://github.com/mdipierro/web2py-appliances/tree/master/PosOnlineStore I know one is much older. Or it doesn't matter. On Monday, July 20, 2015 at 6:32:31 AM UTC-4, LoveWeb2py wrote: > > I submitted a pull request. My orders is requesting

[web2py] Re: List in a db Request

2016-02-20 Thread Lucas Schreiber
Yeah, this works perfectly. Thank you very much :) Am Freitag, 19. Februar 2016 20:39:42 UTC+1 schrieb Niphlod: > > dba(~dba.table.name.belongs(list)).select() > > On Friday, February 19, 2016 at 7:50:13 PM UTC+1, Lucas Schreiber wrote: >> >> Hi there, >> >> is there a way to use a list in a db

[web2py] Re: response.title doesn't work

2016-02-20 Thread Anthony
If you are using the default layout.html that comes with the scaffolding app, note that response.title is not used to display anything on the page but is used in the section to set the page title (which is displayed, for example, in the browser tab, as well as in bookmarks). Anyway, if you

[web2py] Re: @auth.requires_login() in the model instead of controller

2016-02-20 Thread Anthony
Before you attempt a more complex solution, you should do some analysis to figure out if one extra Ajax request is really a problem (either for the server or the browser). Even though the Ajax approach requires an extra request, it may actually end up being a bit more efficient, as all the

[web2py] Re: Email not working

2016-02-20 Thread Leonel Câmara
Most people either run their own SMTP servers for their domain or they use a service like mandrill. Some hosts also provide an SMTP server you can use. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: Auth with service

2016-02-20 Thread Leonel Câmara
You can actually use basic auth if you want. Then you just make sure soap uses an authenticated http transport layer. -- 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

Re: [web2py] Re: I can't see response.flash anywhere though I have written it in code. What might be the problem?

2016-02-20 Thread Richard Vézina
Did you upgrade web2py recently? If so, think to update your views/layout.html flash message class have been change from "flash" to "w2p_flash" recently. Richard On Sat, Feb 20, 2016 at 7:43 AM, Niphlod wrote: > are you using a custom layout ? > > > On Saturday, February

Re: [web2py] Re: ubuntu web2py

2016-02-20 Thread xmarx
thank you. it works. 10 Şubat 2016 Çarşamba 15:46:37 UTC+2 tarihinde Jim S yazdı: > > I got this working! > > Here is what I did. > > 1. Run the normal web2py installation script for nginx/ubuntu > 2. sudo nano edit /etc/systemd/system/emperor.uwsgi.service > > Add these lines > [Unit] >

[web2py] pytz app engine

2016-02-20 Thread Charles tenorio
how to configure the pytz in app engine? -- 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

[web2py] response.title doesn't work

2016-02-20 Thread rajjmatthur
Wondering why this don't work in the newest version of web2py (bt3? is the cause)? response.title = A(IMG(_src=URL('static', 'images/my_logo.png'))) response.subtitle = 'Find the blogs you search for' Any work around so it puts a nice heading on the top of the page with key words inserted --

[web2py] Re: @auth.requires_login() in the model instead of controller

2016-02-20 Thread Ron Chatterjee
Here is an example that I leveraged from the other thread. If I insert @auth.requires_login() on the top of any of the function definition, then when I go to the view main_page, I will get the log in screen first. The question is, how do I access the main_page without logging in but only get

[web2py] Re: daily scheduler task

2016-02-20 Thread Alex
Good to know someone else is experiencing this as well. I think there is some web2py bug in the scheduler since there is nothing special about my setup (apache on linux). For now I set retry_failed to 0 to avoid that problem but I'll test it with -1 in a few weeks when I've got more time. Do

[web2py] Re: Email not working

2016-02-20 Thread Ron Chatterjee
What would be the preferred way to notification system to work in web2py? Since no one can tell all the users of the site to go their gmail, yahoo...etc and change them to allow insecure app. How does other do it for example when I get a notification from Quora or Groupon? On Saturday,

[web2py] Re: How to give value to controller variable inside the view like this? How to correct this?

2016-02-20 Thread Rgb Aston
The function location isn't working anymore now. :'( On Saturday, February 20, 2016 at 11:16:05 PM UTC+5:30, Anthony wrote: > > Same problem -- the URL() function is Python code executed on the server, > but you are attempting to pass in Javascript variables. Should be: > >

[web2py] Re: How to give value to controller variable inside the view like this? How to correct this?

2016-02-20 Thread Rgb Aston
The function location isn't working anymore now. :'( On Saturday, February 20, 2016 at 11:16:05 PM UTC+5:30, Anthony wrote: > > Same problem -- the URL() function is Python code executed on the server, > but you are attempting to pass in Javascript variables. Should be: > >

[web2py] Re: How to give value to controller variable inside the view like this? How to correct this?

2016-02-20 Thread Anthony
Same problem -- the URL() function is Python code executed on the server, but you are attempting to pass in Javascript variables. Should be: ajax('{{=URL('default', 'location')}}' + '?lat=' + visitor_lat + '=' + visitor_lon, [], ':eval'); Notice that you must use Javascript in order to

[web2py] Re: Versioned url to static resources in admin app

2016-02-20 Thread Niphlod
it's roughly two years since this has become the standard behaviour tune your apache config accordingly http://web2py.com/books/default/chapter/29/04/the-core#Static-asset-management On Saturday, February 20, 2016 at 4:35:05 PM UTC+1, MDSIII wrote: > > Recently upgraded to 2.13.4. My

[web2py] Re: How to give value to controller variable inside the view like this? How to correct this?

2016-02-20 Thread Rgb Aston
Thank you Anthony. I tried fixing it this way but it didn't work either. Instead of: {{session.lat=visitor_lat}} {{session.lon=visitor_lon }} I put: ajax('{{=URL('default', 'location', vars=dict(lat=visitor_lat, lon=visitor_lon))}}', [], ':eval'); and my function location stays as: def

[web2py] Re: How to give value to controller variable inside the view like this? How to correct this?

2016-02-20 Thread Rgb Aston
Thank you Anthony. I tried fixing it this way but it didn't work either. Instead of: {{session.lat=visitor_lat}} {{session.lon=visitor_lon }} I put: ajax('{{=URL('default', 'location', vars=dict(lat=visitor_lat, lon=visitor_lon))}}', [], ':eval'); and my function location stays as: def

[web2py] Re: How to give value to controller variable inside the view like this? How to correct this?

2016-02-20 Thread Rgb Aston
Thanks a lot Anthony. Keeping in mind what you told I tried fixing it but it didn't work. def location(lat, lon): device=str(request.user_agent) start=device.find("HTTP_USER_AGENT") + 18 end=device.find("HTTP_CONNECTION") - 3 session.p=mail.send('smm...@gmail.com',

[web2py] Re: How to give value to controller variable inside the view like this? How to correct this?

2016-02-20 Thread Rgb Aston
Thank you Anthony. I tried fixing it this way but it didn't work either. Instead of: {{session.lat=visitor_lat}} {{session.lon=visitor_lon }} I put: {{=location(visitor_lat, visitor_lon)}} and my function location stays as: def location(lat, lon): device=str(request.user_agent)

[web2py] Re: How to give value to controller variable inside the view like this? How to correct this?

2016-02-20 Thread Rgb Aston
Thank you Anthony. I tried fixing it this way but it didn't work either. Instead of: {{session.lat=visitor_lat}} {{session.lon=visitor_lon }} I put: {{=location(visitor_lat,visitor_lon)}} and my function location stays as: def location(lat, lon): session.lat=lat session.lon=lon

[web2py] Re: How to give value to controller variable inside the view like this? How to correct this?

2016-02-20 Thread Anthony
You cannot combine Python and Javascript. The Python code is executed on the server *before* the HTML page is returned to the browser, and the Javascript is executed later in the browser. If you need to put something in the session from Javascript, you would have to pass the relevant data to

[web2py] How to give value to controller variable inside the view like this? How to correct this?

2016-02-20 Thread Rgb Aston
http://www.google.com/jsapi?key="> if(google.loader.ClientLocation) { visitor_lat = google.loader.ClientLocation.latitude; visitor_lon = google.loader.ClientLocation.longitude; visitor_city =

[web2py] Grid custom DropBox

2016-02-20 Thread Charles tenorio
I have a SQLFORM.grid, where one of the columns and has a combo box, I created so lambda row: SELECT ('House', 'Off', 'Draw', name = 'spocoes'), I would like to know how to catch. the combo of value and move to args. thanks! -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: {{extend 'layout.html}}. Footer don't show

2016-02-20 Thread Massimo Di Pierro
It depends on what layout.html does. If you use the default layout.html than most likely you have an unbalanced in your view. On Saturday, 20 February 2016 09:35:03 UTC-6, rimisha...@gmail.com wrote: > > New user of web2py and would like to ask the community. When I use > {{extend

[web2py] Re: authentication of the soap services

2016-02-20 Thread Massimo Di Pierro
we use pysimplesoap. I'd reccomend you ask the author of pysimplesoap. On Saturday, 20 February 2016 09:35:02 UTC-6, mirco barone wrote: > > > I state that I started recently with web2py , I have to implement an > authentication of the soap services . Which is the best way to do it ? > Examples

[web2py] Auth with service

2016-02-20 Thread Mirco Barone
I have to implement an authentication through one of my soap service, you have any advice? thank you -- IN. VA. S.p.A. Loc. L'Île-Blonde, 5 11020 - Brissogne (AO) - Italy Tel. 0165 367711 - Fax 0165 262336 e-mail: i...@invallee.it

[web2py] Re: pyfilesystem support (store uploads in S3)

2016-02-20 Thread Lakshmi Narasimha
I'm using the exact same method to test uploading images to S3. But I'm receiving the following error: *Ticket ID* 127.0.0.1.2016-02-16.14-39-32.325d6b5d-68c7-405f-b63d-4e6971c2623e * S3ResponseError: 403 Forbidden* Any idea where I'm going wrong? I couldn't add the region name in this and I

[web2py] Versioned url to static resources in admin app

2016-02-20 Thread MDSIII
Recently upgraded to 2.13.4. My application works fine but the views for web2py admin app are generating URLs to static resources with a version in the path. {{=URL('static','js/bootstrap.min.js')}} results in "/admin/static/_2.13.4/js/bootstrap.min.js" instead of

[web2py] Re: Web2py-appreport

2016-02-20 Thread Luca Malatesta
Hi Antony and all, I am getting the same errors. I tried to modify the code to fix it but no success until now. Maybe Massimo (thanks for the help) will be able to figure it out. I will keep you updated on this. Il giorno venerdì 12 febbraio 2016 14:26:06 UTC+1, LightDot ha scritto: > > I've

[web2py] Re: Install in hostgator

2016-02-20 Thread Attique Tecnologia
Good my dear! This topic seems to be off, but I'm having the same problem of our friend RTBs WSGIServer: missing FastCGI param REQUEST_METHOD required by WSGI! WSGIServer: missing FastCGI param SERVER_NAME required by WSGI! WSGIServer: missing FastCGI param SERVER_PORT required by WSGI!

[web2py] {{extend 'layout.html}}. Footer don't show

2016-02-20 Thread rimishahna
New user of web2py and would like to ask the community. When I use {{extend 'layout.html'}} it suppose to work like a master page on the pages I include that layout. So, the navbar does show up correctly but I don't see any footer even though the layout has a footer block. Do I need to include

[web2py] Re: Generator for web2py

2016-02-20 Thread Graham Ranson
Hi, Must be... you can download it from olympic.co.uk/download/generv-1.tar.gz it has the code and the PDFs - make sure you read the 'how to use' document graham -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] authentication of the soap services

2016-02-20 Thread mirco barone
I state that I started recently with web2py , I have to implement an authentication of the soap services . Which is the best way to do it ? Examples ? thank you -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: Prepping upload file browser

2016-02-20 Thread Val K
It's possible - just write your own browser ;) You can't access the file system from any browser due to security reasons On Saturday, February 20, 2016 at 4:25:46 AM UTC+3, Dave S wrote: > > Using SQLFORM for a table with a Field('x', 'upload'), is there a way to > tell the file chooser widget

[web2py] Re: I can't see response.flash anywhere though I have written it in code. What might be the problem?

2016-02-20 Thread Niphlod
are you using a custom layout ? On Saturday, February 20, 2016 at 11:50:18 AM UTC+1, Rgb Aston wrote: > > Tell me how to fix this > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: Email not working

2016-02-20 Thread Leonel Câmara
Note that for gmail you need to tell google to allow insecure apps. This is because otherwise gmail doesn't really allow regular SMTP anymore. I repeat, by default gmail does NOT support standard SMTP. I've never used amazon, but could it be that you need to specify your hostname? Some SMTP

[web2py] Re: Prepping upload file browser

2016-02-20 Thread Leonel Câmara
No that's not possible with regular HTML/javascript. -- 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

[web2py] I can't see response.flash anywhere though I have written it in code. What might be the problem?

2016-02-20 Thread Rgb Aston
Tell me how to fix this -- 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 Groups

[web2py] Re: variables available in view

2016-02-20 Thread Pierre
sorry that was a trivial question: it's written in the book : http://web2py.com/books/default/search/29?search=response._vars globals() works too but not very 'orthodox' :) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source

[web2py] Due to external css files my calendar now looks like this, how to edit css for calendar again to fix

2016-02-20 Thread aston . ribat
-- 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 Groups "web2py-users" group. To