Re: [web2py] production site hosting

2013-08-24 Thread Annet
Already in 2012 Webfaction announced that they are offering servers in Asia too, Signapore https://blog.webfaction.com/2012/01/asia-here-we-come/ Annet -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and

[web2py] Re: auth.requires(True,requires_login=False) does not work

2013-08-24 Thread Niphlod
did you try simply putting True=True as the condition ? On Saturday, August 24, 2013 3:37:32 AM UTC+2, Larry Weinberg wrote: It seems that the requires_login option for @auth.requires() does not work. Should it? Is there another way to make this work for restful calls? I want to

[web2py] Re: Scheduler Namespace Gotcha

2013-08-24 Thread Niphlod
Thanks for spotting this. Scheduler global variables are safe in the scheduler module, but inside the function that creates the environment to run the task, they may got overwritten, causing problems. I sent a PR on github to fix the issue. On Saturday, August 10, 2013 12:03:10 AM UTC+2,

[web2py] required class for required fields

2013-08-24 Thread mr.freeze
I want to show users which fields are required *before* they submit a form. Before I reinvent the wheel, is there a mechanism for adding a required class to fields that have IS_NOT_EMPTY or required=True already built into web2py? Thanks, Nathan -- --- You received this message because you

Re: [web2py] session logic

2013-08-24 Thread Ricardo Pedroso
It did broke redis_session, I sent a github pull request to fix it. Niphlod can you review, I guest you were the author of redis_session. Ricardo On Tue, Aug 20, 2013 at 5:44 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: The session logic has been rewritten (for clarity and to fix

Re: [web2py] session logic

2013-08-24 Thread Niphlod
it broke exactly for the reasons it broke on session.renew() first inclusion... DAL really brings too many shortcuts ^_^ On Saturday, August 24, 2013 4:44:10 PM UTC+2, Ricardo Pedroso wrote: It did broke redis_session, I sent a github pull request to fix it. Niphlod can you review, I guest

[web2py] Re: auth.requires(True,requires_login=False) does not work

2013-08-24 Thread Larry Weinberg
I figured it out. I needed to add arguments to GET(). That's where the problem was coming from because I was sending in a value on the curl command. I think it's working now. Sorry for the noise. -- --- You received this message because you are subscribed to the Google Groups web2py-users

[web2py] feed not updating on the page

2013-08-24 Thread Ivo
Hi, I'm trying to display a feed on my page that needs to update about every 10 seconds without refreshing the entire page. I get the feed to display but not as it should. an other thing is the page loads after 10 seconds and I think the sleep(10) is responsible for this. I'm not a programmer

[web2py] Re: feed not updating on the page

2013-08-24 Thread Alan Etkin
I'm trying to display a feed on my page that needs to update about every 10 seconds without refreshing the entire page. I get the feed to display but not as it should. I think you are trying to pause execution in a controller, which is not the way of refreshing the client document. web2py

[web2py] Re: feed not updating on the page

2013-08-24 Thread lesssugar
Can I ask, what would be the best way to cache the feed action? I'm currently working on my own feed as well but I'm not experienced in implementing caching. On Saturday, August 24, 2013 8:18:13 PM UTC+2, Alan Etkin wrote: I'm trying to display a feed on my page that needs to update about

[web2py] Re: feed not updating on the page

2013-08-24 Thread Alan Etkin
Can I ask, what would be the best way to cache the feed action? I'm currently working on my own feed as well but I'm not experienced in implementing caching. I guess this is the better way, because it provides a simple api:

[web2py] Re: required class for required fields

2013-08-24 Thread Massimo Di Pierro
You could use something like: db.table.field.comment = 'required' or for field in db.table: if field.required: field.comment='required' On Saturday, 24 August 2013 09:36:16 UTC-5, mr.freeze wrote: I want to show users which fields are required *before* they submit a form.

[web2py] Re: how to bring out db table

2013-08-24 Thread Alan Etkin
i have created my db in db.py but i can't access it directly in my app eccept if i go to db.py pls can't sombody guide i want to view derectly de db and the record on my site Thanks Could you provide a specific example of what you would need the application to do? Have you checked the

[web2py] Re: required class for required fields

2013-08-24 Thread mr.freeze
I want to take advantage of bootstrap's form validation classes so I need to add a class to the field. Too bad there's not a hook into when a Field's widget is rendered so you can manipulate it. Would you take a patch for that? I can work around it with your method in the meantime: for t in

[web2py] Re: required class for required fields

2013-08-24 Thread Massimo Di Pierro
Nice idea. But why put it in a comment? script = '' for table in db: for field in table: if field.required: script += 'jQuery(#%s_%s).attr(required,)' % ( field._tablename,field.name) You can then cache the script and place in the layout. Massimo On Saturday, 24

[web2py] github - please follow

2013-08-24 Thread Massimo Di Pierro
web2py has many users but few github followers. This is a problem because the number of followers is a metric that can be used to guess popularity. You can help. Get a github account and click on the star. https://github.com/web2py/web2py It costs nothing and has benefits. For example you can

[web2py] Re: required class for required fields

2013-08-24 Thread mr.freeze
Ideally, I wouldn't set the class via a script, that was just a hack. I would like to alter the field after its default widget is rendered. I have a patch that allows you to do this. Thoughts?: def add_required(elm): elm['_required'] += ' required' db.mytable.myfield.onrender = add_required

[web2py] Re: WEB2PY iOS install APP

2013-08-24 Thread vince
i believe what he means is, create an ios app actually running web2py on the device as backend server and with uiwebview accessing it. i've been looking for it too. On Friday, May 17, 2013 10:21:13 PM UTC+8, Christian Foster Howes wrote: i don't understand the question. what are you trying

Re: [web2py] github - please follow

2013-08-24 Thread Ovidio Marinho
+1 Ovidio Marinho Falcao Neto ITJP.NET.BR ovidio...@gmail.com 83 8826 9088 - Oi 83 9336 3782 - Claro Brasil 2013/8/24 Massimo Di Pierro massimo.dipie...@gmail.com web2py has many users but

[web2py] Re: required class for required fields

2013-08-24 Thread mr.freeze
Here's the patch. I adds an onrender property to Field which is called from the widget method of all default widgets. On Saturday, August 24, 2013 6:42:49 PM UTC-5, mr.freeze wrote: Ideally, I wouldn't set the class via a script, that was just a hack. I would like to alter the field after

[web2py] Re: github - please follow

2013-08-24 Thread webpypy
Done. On Sunday, August 25, 2013 2:26:03 AM UTC+3, Massimo Di Pierro wrote: web2py has many users but few github followers. This is a problem because the number of followers is a metric that can be used to guess popularity. You can help. Get a github account and click on the star.