[web2py] How to disable debugging

2012-02-07 Thread Praveen Bhat
Hello, I have attached the screenshot of the page rendered, and there is some debugging information. How can I disable it? regards Praveen <>

Re: [web2py] How to disable debugging

2012-02-07 Thread Praveen Bhat
ed to edit the >> views/generic.html and remove the {{=response.toolbar()}} >> >> >> On Tue, Feb 7, 2012 at 1:05 PM, Praveen Bhat wrote: >> >>> Hello, >>> >>> I have attached the screenshot of the page rendered, and there is some >>> d

Re: [web2py] How to disable debugging

2012-02-07 Thread Praveen Bhat
Hello, The "form" and "records" words appear even after taking off {{=response.toolbar()}} line from generic.html.. regards, Pravene

[web2py] how to display data

2012-02-08 Thread Praveen Bhat
Hello, I have 2 controllers Index and articles, how do I display data from defined in articles in Index controller? Regards, Praveen

[web2py] invalid literal for int() with base 10: '%s%id'

2012-02-12 Thread Praveen Bhat
Hello, I am getting the following error: invalid literal for int() with base 10: '%s%id' and the code in my controller is: def show(): redirect(URL(c='articles',f='show?id=%s%id')) which redirects to the following function in articles controller: def show(): id=request.vars.id articles=db(d

[web2py] Re: invalid literal for int() with base 10: '%s%id'

2012-02-12 Thread Praveen Bhat
Hello, Thank you as it worked for me. I did this: def show(): myid =request.vars.id redirect(URL(c='articles',f='show?id=%s' % myid)) Regards Praveen

[web2py] rendering a view

2012-02-16 Thread Praveen Bhat
Hello, I have 2 tables : business and article. And I have 3 controllers : Home, Articles, Businesses. In Home page the following code renders a list of Businesses and Articles: def index(): lists= db().select(db.article.ALL,limitby=(0, 5),orderby=~db.article.id) listings=db()

[web2py] Re: rendering a view

2012-02-17 Thread Praveen Bhat
Hello, Now I am getting the following error: when calling URL, function or function name required regards, Praveen

[web2py] How to redirect after login

2012-03-02 Thread Praveen Bhat
Hello, I want to redirect users after login... I am using the following, but does not work: auth.settings.login_next = URL('index') I have put the above line inside my db.py Regards Praveen

[web2py] Re: How to redirect after login

2012-03-02 Thread Praveen Bhat
Hello Anthony, Well i have done a custom login in the index page, so after the user logs in the login form is still shown so i am trying to redirect the user to a different page after the login controller: # -*- coding: utf-8 -*- ### required - do no delete def user(): return dict(for

[web2py] Alphabetical Pagination

2012-03-03 Thread Praveen Bhat
Hello, I have a Listings page for Businesses and I want a Alphabetical pagination/menu like in the attached screenshot. Any help will be appreciated. Regards Praveen <>

Re: [web2py] Alphabetical Pagination

2012-03-04 Thread Praveen Bhat
Hello Bruce, Yes something like that.. Regards Praveen On Sunday, 4 March 2012 14:08:56 UTC+5:30, Detectedstealth wrote: > > You mean something like this attached screen shot? > > On Sat, Mar 3, 2012 at 11:03 PM, Praveen Bhat wrote: > >> Hello, >> >> I ha

Re: [web2py] How to use XML data

2012-03-09 Thread Praveen Bhat
:30, yamandu wrote: > > As I can see, you got the XML and outputed it to the view. > I dont see what you want more. Tell us. > > 2012/3/6 Praveen Bhat : > > Hello, > > > > I have come to the point where the whole XML document is returned, as u > can >

Re: [web2py] How to use XML data

2012-03-09 Thread Praveen Bhat
} Regards Praveen On Saturday, March 10, 2012 12:28:18 PM UTC+5:30, rochacbruno wrote: > > I guess it will work. > > {{ for parseddata in parseddata: }} > > {{=XML(parseddata.elements("temp_C"))}} > > {{pass}} > > On Sat, Mar 10, 2012 at 3:51 AM, Prave

Re: [web2py] How to use XML data

2012-03-09 Thread Praveen Bhat
t; print > TAG(tempdata.replace(" 32 > >>> > > On Sat, Mar 10, 2012 at 4:04 AM, Praveen Bhat wrote: > >> Hello, >> >> I am getting the following error: >> >> ' 'str' object has no attribute >> 'elements' >> >&

Re: [web2py] How to use XML data

2012-03-09 Thread Praveen Bhat
Hello, I tried this the view file: {{extend 'layout.html'}} {{ for parseddata in parseddatas: }} {{TAG(parseddata.replace(" list index out of range Regards On Saturday, March 10, 2012 1:08:12 PM UTC+5:30, Praveen Bhat wrote: > > Hello Bruno, > > I am sorry to s

Re: [web2py] How to use XML data

2012-03-10 Thread Praveen Bhat
Hello Bruno, Thanks a lot, that worked for me. You have been very helpful. Regards, Praveen On Saturday, March 10, 2012 1:35:51 PM UTC+5:30, rochacbruno wrote: > > > https://gist.github.com/2010791 > > > -- > > Bruno Rocha > [http://rochacbruno.com.br] > >

Re: [web2py] How to use XML data

2012-03-10 Thread Praveen Bhat
Hello, How can i make the data in "temp" be available in every controller so that it can be rendered in every page in the site? Regards Praveen On Saturday, March 10, 2012 1:47:20 PM UTC+5:30, Praveen Bhat wrote: > > Hello Bruno, > > Thanks a lot, that worked for me. You

Re: [web2py] How to use XML data

2012-03-10 Thread Praveen Bhat
Hello, How can i get the CDATA values? I am trying this and its outputting 'None': def get_weather_condition(): weathercondition = None from xml.dom import minidom import urllib2 source = urllib2.urlopen('http://free.worldweatheronline.com/feed/weather.ashx?q=udupi&format=xml&num_of_days=2&key

[web2py] Picture Gallery

2012-03-12 Thread Praveen Bhat
Hello, Can someone give me a simple example for Photo Gallery with Sliding content? Thanks in advance!!! Regards Praveen

[web2py] Re: Picture Gallery

2012-03-12 Thread Praveen Bhat
IPT("jQuery(document).ready(function() {jQuery('#slideshow%s').cycle({fx: '%s'});});" % (id,transition)),DIV(_id='slideshow'+id,*images)) But how do I use it in my pages? Regards, Praveen On Monday, March 12, 2012 3:28:28 PM UTC+5:30, peter wrote: > >