[web2py] Re: Big Bug: Cloud SQL completely broken? Steps and solution.

2016-03-20 Thread webmaster
>From the git repo, yes. From the current source files on web2py.com, no. On Sunday, March 20, 2016 at 10:22:20 PM UTC-7, Massimo Di Pierro wrote: > > So can you confirm the latest pydal works for you? > > On Saturday, 19 March 2016 16:57:11 UTC-5, webm...@trytha.com > wrote: >> >> And thus we

[web2py] Re: Big Bug: Cloud SQL completely broken? Steps and solution.

2016-03-20 Thread Massimo Di Pierro
So can you confirm the latest pydal works for you? On Saturday, 19 March 2016 16:57:11 UTC-5, webmas...@trytha.com wrote: > > And thus we discover the true problem. Try using pydal from > http://www.web2py.com/examples/static/web2py_src.zip (the link from > Source Code for Normal Users).

[web2py] Re: Djano channels

2016-03-20 Thread Massimo Di Pierro
Supports multiple chat rooms. It is in the example in the code itself. It is very similar to the Django one. On Sunday, 20 March 2016 09:42:41 UTC-5, Ron Chatterjee wrote: > > I haven't had a chance to go through the code but is it using multiple > chat room or just one single room? > > On

[web2py] Re: custom authentication

2016-03-20 Thread T.R.Rajkumar
Thank you Val K. I'll try to have my own decorator. On Saturday, March 19, 2016 at 5:01:11 PM UTC+5:30, T.R.Rajkumar wrote: > > I have the username, password, role in legacy SQL server database. In my > login from I check the credentials against the above database. Now how to > restrict access

[web2py] Warning that TK libraries aren't installed

2016-03-20 Thread Bill Lugg
I just switched Linux distros to Mint 17.3. I'm using the same web2py installation that I was using under Kubuntu 15.10 where it worked fine. When I run from the command line now with "python web2py.py" I get: "WARNING:web2py:GUI not available because Tk library is not installed"

[web2py] Re: multiple id selection using request.vars.name

2016-03-20 Thread Anthony
On Sunday, March 20, 2016 at 8:19:41 PM UTC-4, Ron Chatterjee wrote: > > Got cha. But if I have a single value in request.vars.name it was showing > a length of 2. > Of course. The len() function returns values based on the type of object passed to it -- if you pass in a string that is two

[web2py] Re: multiple id selection using request.vars.name

2016-03-20 Thread Ron Chatterjee
Got cha. But if I have a single value in request.vars.name it was showing a length of 2. And if I have two values, length was still 2. But with what Val suggested, it works fine. On Sunday, March 20, 2016 at 6:09:02 PM UTC-4, Anthony wrote: > > It's only a list when multiple values with the

[web2py] Re: multiple id selection using request.vars.name

2016-03-20 Thread Anthony
It's only a list when multiple values with the same name are submitted. If you just submit a single value, it is a scalar. Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] web2py slices again

2016-03-20 Thread Ovidio Marinho
DANGER: This is very serious, we need to know what really happened. [image: http://itjp.net.br] http://itjp.net.b r *Ovidio Marinho Falcao Neto* ovidio...@gmail.com

[web2py] Re: How do you use web2py app work with phonegap?

2016-03-20 Thread pbreit
Ionic is free. But it does use Angular. You can't just "use a CSS framework" as mentioned above. You need a framework that can manage data and interactions with server. Maybe look at Onsen or F7? https://www.airpair.com/ionic-framework/posts/hybrid-apps-ionic-famous-f7-onsen On Sunday,

[web2py] Re: multiple id selection using request.vars.name

2016-03-20 Thread Ron Chatterjee
Thank you Val, it works like a champ. I guess my confusion was when I did type(request.vars.name) it showed me . So, I didn't realize I needed to change that to list again. I am guessing the one line ids you did is if (ids == isinsance(ids,basestring)): ids = [ids] else: ids = ids Thank

Re: [web2py] TAG.button style

2016-03-20 Thread Richard Vézina
Here you have default .grid() button class : https://github.com/web2py/web2py/blob/dbbbd44642f0858871cde6a9d72ace36f907bf69/gluon/sqlhtml.py#L2071 And here how buttons get created : https://github.com/web2py/web2py/blob/dbbbd44642f0858871cde6a9d72ace36f907bf69/gluon/sqlhtml.py#L2184 Richard

[web2py] Re: How do you use web2py app work with phonegap?

2016-03-20 Thread eric cuver
Ionic it pays I believe? and I do not like angular Le dimanche 20 mars 2016 05:05:09 UTC+1, pbreit a écrit : > > Ionic is a good choice. > > As mentioned, Web2py will run on your server and mostly deliver and > receive JSON to/from the mobile app. > > > On Saturday, March 19, 2016 at 3:12:42 AM

[web2py] TAG.button style

2016-03-20 Thread Jeff Riley
Hello all, I have defined the following TAG.button in a SQLFORM. These are working great, but they are ugly. Is there an attribute to set within TAG.button that will make the buttons use the same default Web2py style? form=SQLFORM(db.sheet, this_sheet, buttons =

[web2py] Re: Djano channels

2016-03-20 Thread Najtsirk
Thanks! On Sunday, 20 March 2016 07:15:11 UTC+1, pbreit wrote: > > Have you seen: > > https://github.com/web2py/web2py/blob/master/gluon/contrib/websocket_messaging.py > > On Thursday, March 17, 2016 at 2:48:08 PM UTC-7, Najtsirk wrote: >> >> >>

Re: [web2py] Re: Regarding "registration needs verification"

2016-03-20 Thread Ramchandra Sharma
No, I am getting it for every login sometime i get Invalid login :( On Mon, Mar 14, 2016 at 2:28 PM, Najtsirk wrote: > Do you get this error at the firs login (when user registers) or at the > first login? > > Because, if you get it after the first login, this is

[web2py] Re: custom authentication

2016-03-20 Thread Val K
Store user_id (or something else) in session and write your own decorator or just test in your controller "who is logged in" On Saturday, March 19, 2016 at 2:31:11 PM UTC+3, T.R.Rajkumar wrote: > > I have the username, password, role in legacy SQL server database. In my > login from I

[web2py] Re: multiple id selection using request.vars.name

2016-03-20 Thread Val K
ids= isinstance(request.vars.name, basestring) and [ids] or ids # so it will be a list in anyway post_selected= db(Post._id.belongs(ids)).select() On Sunday, March 20, 2016 at 12:41:24 AM UTC+3, Ron Chatterjee wrote: > > > I have checkbox and from there I read my ids, which is

Re: [web2py] Re: Djano channels

2016-03-20 Thread Richard Vézina
It just set websocket on... Then you have to implement your own protocol of communication... On Sun, Mar 20, 2016 at 10:42 AM, Ron Chatterjee wrote: > I haven't had a chance to go through the code but is it using multiple > chat room or just one single room? > > On

[web2py] Re: Djano channels

2016-03-20 Thread Ron Chatterjee
I haven't had a chance to go through the code but is it using multiple chat room or just one single room? On Sunday, March 20, 2016 at 2:15:11 AM UTC-4, pbreit wrote: > > Have you seen: > > https://github.com/web2py/web2py/blob/master/gluon/contrib/websocket_messaging.py > > On Thursday, March

[web2py] issue when import from one web2py module into another

2016-03-20 Thread Richard
Hello, Is there any thing to consider when trying to import from one module to another? I try import a specific fonction like so : from other_module import function cannot import name "function" Thanks Richard -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: How to preserve order for query results

2016-03-20 Thread Leonel Câmara
You already have an answer but if you're interested in making the DB do the sorting (which may be faster if you have a lot of records) you could do something like this: ordered = [5,2,3,4,1] def make_orderby(table, attribute, ordered): orderby = 'case' for idx, value in

[web2py] border in view

2016-03-20 Thread Imre
Hi, please help. I use SQLTABLE in view and I want see border. I try table, th, td {border: 1px solid black} in web2py.css but it is not work. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] How many days does it take you to learn django if you know web2py (and only web2py)?

2016-03-20 Thread Bernard Letourmy
Hello, Took me around 2 months working on a new project from scratch to feel nearly as comfortable with django as I was in web2py (after having enjoyed web2py for 2+ years) Although prepare to feel quite lot of pain along the way such As when you keep repeating yourself with declaring and

[web2py] XML object

2016-03-20 Thread Jerry Liu
Hi, all I want to use XML object to stop html from being escaped. But the object seems not working on iframe tag. I override it like this: XML(text, sanitize=True, permitted_tags=['iframe', ...], allowed_attributes={'iframe':[...]}) -- Resources: - http://web2py.com -

[web2py] Re: URL parsing in controller

2016-03-20 Thread Dave S
On Friday, March 18, 2016 at 2:21:24 PM UTC-7, Jeff Riley wrote: > > Sorry, edit is the function. This URL does not call view. >> I have my routes.py set to the application (a). and the default controller > As far as what is request.args(0), that is what is confusing. >> That URL

[web2py] Re: Djano channels

2016-03-20 Thread pbreit
Have you seen: https://github.com/web2py/web2py/blob/master/gluon/contrib/websocket_messaging.py On Thursday, March 17, 2016 at 2:48:08 PM UTC-7, Najtsirk wrote: > > > https://blog.heroku.com/archives/2016/3/17/in_deep_with_django_channels_the_future_of_real_time_apps_in_django > > Is there

[web2py] Re: How do you use web2py app work with phonegap?

2016-03-20 Thread Leonel Câmara
I'm sorry but you show fundamental misconceptions about what phonegap does, what web2py does, how they run in the devices and server, and about how they can and should interact. Your questions don't even make sense. I can't help you until you know more about web2py, phonegap, what REST

[web2py] Re: creating a user in auth from shell

2016-03-20 Thread Dave S
On Thursday, March 17, 2016 at 9:07:24 AM UTC-7, Niphlod wrote: > > using .insert() over .add() would be a good choice ^_^ > > Doh! /dps > On Thursday, March 17, 2016 at 12:52:53 AM UTC+1, Dave S wrote: >> >> My remote host is not running a GUI, so doing appadmin by browsing is >>