[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
)),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: If you look in pugin_wiki, you will see slideshow. On Mar 12, 9:36 am, Praveen Bhat praveenbha...@gmail.com wrote: Hello, Can someone give

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 have been very helpful

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 =

Re: [web2py] How to use XML data

2012-03-09 Thread Praveen Bhat
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 praveenbha...@gmail.com: Hello, I have come to the point where the whole XML document is returned, as u can see in the attached file. I have used

Re: [web2py] How to use XML data

2012-03-09 Thread Praveen Bhat
, March 10, 2012 12:28:18 PM UTC+5:30, rochacbruno wrote: I guess it will work. {{ for parseddata in parseddata: }} l{{=XML(parseddata.elements(temp_C))}}/li {{pass}} On Sat, Mar 10, 2012 at 3:51 AM, Praveen Bhat praveenbha...@gmail.comwrote: Hello, I apologize as I could not reply

Re: [web2py] How to use XML data

2012-03-09 Thread Praveen Bhat
(!,[)).elements('data')[0].elements('current_condition')[0].elements('temp_c')[0].flatten() 32 On Sat, Mar 10, 2012 at 4:04 AM, Praveen Bhat praveenbha...@gmail.comwrote: Hello, I am getting the following error: 'type 'exceptions.AttributeError' 'str' object has no attribute 'elements

Re: [web2py] How to use XML data

2012-03-09 Thread Praveen Bhat
of range Regards On Saturday, March 10, 2012 1:08:12 PM UTC+5:30, Praveen Bhat wrote: Hello Bruno, I am sorry to say that I am totally new to programming, so could you please eloborate where I can use the above line of code.\ Or you can point to some example . Regards Praveen On Saturday

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 praveenbha...@gmail.comwrote: Hello, I have a Listings page

[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 attachment: pagination.JPG

[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

[web2py] Re: rendering a view

2012-02-17 Thread Praveen Bhat
Hello, Now I am getting the following error: type 'exceptions.SyntaxError' when calling URL, function or function name required 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)

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

2012-02-12 Thread Praveen Bhat
Hello, I am getting the following error: type 'exceptions.ValueError' 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():

[web2py] Re: type 'exceptions.ValueError' 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] 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] 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 attachment: 1.JPG

Re: [web2py] How to disable debugging

2012-02-07 Thread Praveen Bhat
/generic.html and remove the {{=response.toolbar()}} On Tue, Feb 7, 2012 at 1:05 PM, Praveen Bhat praveenbha...@gmail.comwrote: Hello, I have attached the screenshot of the page rendered, and there is some debugging information. How can I disable it? regards Praveen -- Bruno Rocha

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