Re: [web2py] login form registration problem with encoding

2013-05-11 Thread dhmorgan
This sounds like an interesting problem. One I have no experience with, however; yet it deserves an answer. Searching this group using the query, "postgreSQL 'ascii' codec can't decode" resulted in only one post other than yours. It's nearly three years old, but the poster did get to a workarou

Re: [web2py] Re: Voting system not working

2013-05-11 Thread sasogeek
It works now, thanks :) On Saturday, 11 May 2013 12:48:39 UTC+1, Niphlod wrote: > > at least you must include web2py.js that includes the javascript function > you're using > > On Saturday, May 11, 2013 1:09:13 AM UTC+2, sasogeek wrote: >> >> nothing happens, and i think it's because i didn't

[web2py] apache redirect advice

2013-05-11 Thread lucas
i am having some difficulty setting up my apache httpd.conf file so that it redirects to the proper application within web2py for a dedicated domain. i have attached my default.conf which is located under /etc/httpd/conf.d on my centos 6.3 server. the last two virtual hosts were there all alon

[web2py] Re: Coping with new behavior of _referenced_by

2013-05-11 Thread Massimo Di Pierro
Replace {{for t,f in db.t_sys_config._referenced_by:}} with {{for x in db.t_sys_config._referenced_by:}}{{t,f = x if isinstance(x,tuple) else (x.tablename,x.name)}} It should do the trick. Sorry for the late response. On Wednesday, 1 May 2013 16:37:29 UTC-5, Michael Ellis wrote: > > I've got

[web2py] Re: Bootstrap tooltip

2013-05-11 Thread Annet
> Wouldn't it be easier to just try such things instead of posting a > question and waiting hours or even days for an answer, assuming you get > one...? ;) > Probably ... ... and that's what I do most of the time, however, sometimes, I just don't see why my code does work in my mock applicat

[web2py] Re: Bootstrap tooltip

2013-05-11 Thread Niphlod
summing up, whatever you need to use leveraging some js library, that library needs to be loaded already. Probably it will be better to include the bootstrap to the head, so you're sure it will be loaded no matter what. -- --- You received this message because you are subscribed to the Google

[web2py] Re: How to embed Linux script into a web2py controllers

2013-05-11 Thread Massimo Di Pierro
You can do import os os.system('sudo iwlist wlan0 |"ESSID" > output.txt') output = open('output.txt').read() assuming the user running the web app has sudo access to iwlist. Look into sudoers to add the permission. On Friday, 10 May 2013 16:35:12 UTC-5, si...@ymail.com wrote: > > Hello, > > Pl

[web2py] Re: Bootstrap tooltip

2013-05-11 Thread LightDot
Wouldn't it be easier to just try such things instead of posting a question and waiting hours or even days for an answer, assuming you get one...? ;) It's few simple lines, create the code, test it out, troubleshoot if needed. 5-15 min work max. Regards, Ales On Saturday, May 11, 2013 4:04:27

[web2py] How to embed Linux script into a web2py controllers

2013-05-11 Thread si...@ymail.com
Hello, Please i need some help and guaidiance. I have a web2py application running on a raspebery pi. The raspberry pi runs "Linux 3.6.11+ #371 PREEMPT Thu Feb 7 16:31:35 GMT 2013 armv6l GNU/Linux" I am trying to run this Linux command from a web2py controller. "sudo iwlist wlan0 |"ESSID

[web2py] Re: Not good at making ajax calls from a view

2013-05-11 Thread Jordan Ladora
That did it - thanks! On Friday, May 10, 2013 12:36:54 PM UTC-7, Anthony wrote: > > Maybe try: > > onchange="{{="jQuery(district_select).remove(); ajax('%s', > ['title_select'], 'shadow_clone');" % URL('default', 'maker')}}" > > Anthony > > -- --- You received this message because you are s

[web2py] Re: Publish aid

2013-05-11 Thread Massimo Di Pierro
Just let us know here and we wil publish it. Yet we are looking at a better system for advertising ourself and our work. On Saturday, 11 May 2013 08:01:38 UTC-5, sasogeek wrote: > > When I create an app with web2py, how can I add it to the list of apps > created by web2py on the web2py website?

[web2py] Re: Bootstrap tooltip

2013-05-11 Thread Annet
Hi, Thanks for your reply, moving the call to tooltip into: jQuery(document).ready(function(){ jQuery("[rel=tooltip]").tooltip(); }); ... solved the problem, bur raises another question. The code above is in outer_layout.html, in some views which extend outer_layout.html I h

[web2py] Publish aid

2013-05-11 Thread sasogeek
When I create an app with web2py, how can I add it to the list of apps created by web2py on the web2py website? do I have to submit it for some form of review or if a submission is required, once i do that, it gets added automatically? secondary question: is web2py suitable for applications that

Re: [web2py] SQLFROM.GRID SELECTEBLE

2013-05-11 Thread 黄祥
please take a look at this discussion: https://groups.google.com/forum/?fromgroups=#!topic/web2py/qVPobr1TOz4 best regards > > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from

[web2py] Re: JQUERY as response in Ajax call?

2013-05-11 Thread Anthony
> > I was just thinking, would it not be smarter to have a FORM helper with an > ajax option? > something like this: > > FORM(ajax=True, eval=True, target='targetdiv/object') > It probably makes most sense to do an Ajax form when you've got multiple items on the page and don't want to refresh

[web2py] Re: How to build a db query for a many-to-many table given multiple constraints?

2013-05-11 Thread Niphlod
ok. it adds a layer on top. Basically you want to have all products matching all product_filters that have AT LEAST 2 rows for the same product. here we go. myfilter = ("top", "sweatshirt") top_and_sweatshirts = all_in_one( db.filters.name.belongs(myfilter) ).select(db.products.id, db.pr

Re: [web2py] Re: Voting system not working

2013-05-11 Thread Niphlod
at least you must include web2py.js that includes the javascript function you're using On Saturday, May 11, 2013 1:09:13 AM UTC+2, sasogeek wrote: > > nothing happens, and i think it's because i didn't include layout... > because when i do the exact same thing in the book, it works fine, but

[web2py] Re: IS_IN_DB orderby natural sort?

2013-05-11 Thread Niphlod
IS_IN_DB accepts a "orderby" parameter. On Saturday, May 11, 2013 6:11:41 AM UTC+2, rppowell wrote: > > I have pre-populated a table of types by name: > db.item_type.insert(name='Type1'...) > db.item_type.insert(name='Type2'...) > db.item_type.insert(name='Type3'...) > ... > db.item

[web2py] Re: Bootstrap tooltip

2013-05-11 Thread Niphlod
are you sure that bootstrap.js is loaded when you call that line ? On Saturday, May 11, 2013 8:53:43 AM UTC+2, Annet wrote: > > In an application created in a previous version of web2py, the Boostrap > tooltip works fine. > > When create an application in web2py 2.4.6 the exact same code no longe

[web2py] Re: JQUERY as response in Ajax call?

2013-05-11 Thread Mika Sjöman
I was just thinking, would it not be smarter to have a FORM helper with an ajax option? something like this: FORM(ajax=True, eval=True, target='targetdiv/object') To be honest almost half of my form posts are ajax now, so it feels wiered that I can not just choose if it is ajax when creating t

[web2py] Re: JQUERY as response in Ajax call?

2013-05-11 Thread Mika Sjöman
that one worked like a charm. Final solution became like this, where the submit buttons is kind of there just for looks since it will send onkeyUp. What I really like about it is that It reduces the JQuery to zero for my part to write which means less code to manage. -SOLUTION ---

[web2py] SQLFORM.RID Selectable

2013-05-11 Thread Pawan Jha
Hi I am new developer with Web2py so getting problem to work on so please help I'm using "selectable=True" in the sqlform.grid. This shows a checkbox in first column for all the rows "except the header" and Submit Button i want to get all the Selected check box id on clicking on submit butto

Re: [web2py] SQLFROM.GRID SELECTEBLE

2013-05-11 Thread Pawan Jha
i have already used this but this is not working On Fri, May 10, 2013 at 10:12 PM, Javier Pepe wrote: > Hi > > you have to use > > selectable = lambda ids: function(ids) > > def function(ids): > ... > ... > ... > > > On Fri, May 10, 2013 at 9:14 AM, Pawan Jha wrote: > >> Hi I am new developer w