[web2py] Re: ajax based cascading drop down menus not working in internet explorer

2014-06-18 Thread Sarbjit
Solved !! I have used second select inside and assigned id to it, it seems ajax callback was not able to replace in IE. OLD :- {{for maker in makers:}} {{=maker.Name}} {{pass}} NEW CODE :- {{for maker in makers:}} {{=maker.Name}} {{pass}} -- R

[web2py] Re: Trying to use the LOAD helper, if a button is clicked

2014-06-18 Thread Andrew W
Hi, trying to find out more about $.web2py.component, but it's not in the book. Chapter 11 mentions web2py_ajax_component but it isn't mentioned in Chapter 12 as indicated. An old reference perhaps. Anthony, I don't understand "If you want to dynamically add a component in the browser, you ca

[web2py] case inconsistent in .executesql(sql, as_dict=True); what factor determines DAL casing?

2014-06-18 Thread Tim Richardson
web2py 2.9.5 and trunk on Windows, Python 2.7.6 ActiveState. where db_ps is a DAL connection to an MSSQL server, doing this: db_ps = DAL('mssql://yyy:xxx@mmcserver\hcnsql07/hcn', lazy_tables=True, pool_size=10) ... results = db_ps.executesql(sql,as_dict=True) in Rocket, the fields are returned

[web2py] Re: web2py slices: cascading drop down lists with ajax 2

2014-06-18 Thread Sarbjit
Hi Omi, I do not see this recipe working on IE-9. I have used this code in a newly created app and I observed that the second drop down is not populated on changing value in first drop down. It appears that the data is returned by ajax callback but is not getting replaced somehow. -Sarbjit

[web2py] Re: ajax based cascading drop down menus not working in internet explorer

2014-06-18 Thread Sarbjit
This problem can be reproduced by using this code in a new app created using web2py. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this me

[web2py] Re: Trying to use the LOAD helper, if a button is clicked

2014-06-18 Thread Brian M
Here's how I'm doing it in an app. I'm not using grid or smartgrid but rather a datatables.net table where each row has a linked edit button. There may be other (better?) ways to do it but this works for me. Each record includes: {{=A(edit_icon, _href=URL(r=request,f='edit_item', args=[record_i

[web2py] Ubuntu 14.04 Setup Script with Apache - Issues?

2014-06-18 Thread Brian M
Anybody else tried setting things up on Ubuntu 14.04 using scripts/setup-web2py-ubuntu.sh? I tried it this evening and ran into multiple issues 1) The generated sites-available/default configuration file must be linked to sites-enabled/default.conf or else it doesn't actually get used and all

[web2py] import readline in admin debug: The specified module could not be found (windows/Apache)

2014-06-18 Thread Tim Richardson
Both in trunk and 2.9.5 when running on Apache under mod_wsgi, Windows server 2008, ActiveState python 2.7.6 When I try to start debug via the admin app, I get a ticket which ends: 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. Traceback (most recent call last): File "E:\web2py\web2py_in

[web2py] How To Remotely Log-Out a User on GAE

2014-06-18 Thread PRACHI VAKHARIA
*How To Remotely Log-Out a User on GAE* - *How can the administrator of an application deployed on GAE log-out users? * - *How to modify/edit/set/configure/Delete the Session or Cookies?* In the model file, the following is used for automatic expiration: *auth.settings.expira

[web2py] Re: Trying to use the LOAD helper, if a button is clicked

2014-06-18 Thread Tomeu Roig
I call a function that content a grid or smartgrid and need pass args and (user_signature=True), how i can make it? now I use in controller response.js like: tab_history = """jQuery('#historial a[href="#historico"]').click(function(){ $.web2py.component("%s", target="historic

Re: [web2py] Re: one more web2py e-commerce app :)

2014-06-18 Thread 黄祥
i think you can investigate it yourself, by checking the source code is it built with web2py or wordpress. or if you want simple method, please install 'BuiltWith Technology Profiler' in chrome, it will analyze the web for you. best regards, stifan > > -- Resources: - http://web2py.com - h

[web2py] Re: list all users with membership of a group

2014-06-18 Thread Michael Beller
This will give you a list of user id's: db(db.auth_membership.group_id==3).select(db.auth_membership.user_id) This will give you all the user information for each user: db(db.auth_membership.group_id==3).select(db.auth_user.ALL, left=db.auth_membership.on(db.auth_user.id == db.auth_membershi

[web2py] Re: How to deploy Web2py on the NEW Openshift directory layout for Python web apps?

2014-06-18 Thread Mandar Vaze
On Wednesday, June 18, 2014 5:33:14 PM UTC+5:30, Mandar Vaze wrote: > > Bump !! > > Can someone respond ? > I tried to deploy using Web2py Admin interface. clicked on "Deploy to > Openshift" > > I checked that some additional commits were successfully done - but I > don't know how to access my

Re: [web2py] Re: one more web2py e-commerce app :)

2014-06-18 Thread Adnan Smajlovic
Hi Sarbjit, The owner decided for her maintenance reasons to switch to wordpress and woocommerce... Here is a version of the same website in web2py: http://recruit55.com/nammu. You don't need really woocommerce if you'll build your own e-commerce system. On Sun, Jun 15, 2014 at 10:34 PM, Sarbjit

[web2py] order by string number

2014-06-18 Thread Fernando Vieira
need to do a query on the database using the order by string field that returns me something: 1 2 3 4 5 6 7 8 9 10... not 1 10 2 3 4 5 6 7 8 9 in postgresql, I use: select * from tabela order by campo::int; but I could not do using the Dal, I tried with the following command unsuccessfully db(

[web2py] ajax based cascading drop down menus not working in internet explorer

2014-06-18 Thread Sarbjit
I am using the web2py slice from http://www.web2pyslices.com/slice/show/1526/cascading-drop-down-lists-with-ajax-2. I noticed that the second drop down is getting populated correctly on firefox but on internet explorer, it is not working (Tested on IE9). I verified that on IE, on changing the v

[web2py] Re: Web2py ckEditor

2014-06-18 Thread Tim Richardson
Which plugin from web2pyslices are you using? Also, can you be more clear about the problem. On Wednesday, June 18, 2014 7:56:48 PM UTC+10, Sharjeel Ali Shaukat wrote: > > i m using ckeditor here i want to show runtime preview in div and also > using its options like Bold button dont highlight

[web2py] Web2py ckEditor

2014-06-18 Thread Sharjeel Ali Shaukat
i m using ckeditor here i want to show runtime preview in div and also using its options like Bold button dont highlights the text and are not working perfectly -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https:/

[web2py] how to create an album and view photos belonging to that album

2014-06-18 Thread Rahul
Hi All, I am writing an image gallery in my app. I am stuck up here - I want to display images that belong to a particular album when I select that album in the view. Although I am able to display albums in the view, but cannot proceed further to display images belonging to that particular

[web2py] list all users with membership of a group

2014-06-18 Thread BlueShadow
Hi folks, I want to display all members of auth_group.id 3 but for some reason I got a blokade and can't get it to work. thanks for your help. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web

[web2py] Re: auth.settings.login_next function not executed

2014-06-18 Thread Annet
Hi Anthony, Thanks for your reply and explanation. I solved the issue replacing: auth.settings.login_next = URL('myleonexus', 'default', 'my_login') with: auth.settings.login_onaccept = lambda form: my_login() Best, Annet -- Resources: - http://web2py.com - http://web2py.com/book (Documen