[web2py] Re: Lazy_LOAD (with trigger binding)?

2013-05-18 Thread Jurgis Pralgauskis
one more nice thing would be to be able to reload divs with components (as if you were reloadin (i)frame) the url could be stored in data attribute of the div.. and then just "reload(target)" :) 2013 m. balandis 15 d., pirmadienis 11:57:06 UTC+3, Niphlod rašė: > > it's not done yet but its on th

[web2py] Re: GET and POST issue

2013-05-18 Thread Annet
> Using the developer tools, when you click the link, do you observe the > Ajax call being made? If so, does it return the expected response? > Using Firefox's developer tools, when I click the link no Ajax all is being made. Best regards, Annet -- --- You received this message because

[web2py] edit static content from web interface nginx

2013-05-18 Thread Calvin
Check the file permissions for the static folder to see if it's own by uwsgi (if you're using that... or whichever wsgi)? -- --- 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 it, se

[web2py] edit static content from web interface nginx

2013-05-18 Thread Calvin
Check the file permissions for the static folder to see if it's own by uwsgi (if you're using that... or whichever wsgi)? -- --- 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 it, se

[web2py] IDE edit function doesn't work on ipad ?

2013-05-18 Thread Osswalt
I'm starting with web2py. If I use the dev envinromnet from ipad then i got a mobile rendered application. Everything is almost ok. When I want to edit a file after I push the "edit" button then I have a small Ajax waiting circle in the middle of the screen forever and nothing happens. If I refr

[web2py] How to store data records for recurrent jQuery call

2013-05-18 Thread Lio
Hello there, I have two DIV blocks on my page, one is a list of matched data records list (only a few fields each row) using , the other is detail record info when a record in above list is clicked. I want to use jQuery to update the content in the Block 2 whenever a record is clicked, without

[web2py] Re: Renaming an application

2013-05-18 Thread Massimo Di Pierro
pythonanywhere has a shell. You can access the applications and rename or move the app subfolder. On Saturday, 18 May 2013 15:18:46 UTC-5, sasogeek wrote: > > I put an application on pythonanywhere.com, but I can't rename my > application. Usually if I'd rename an application, I'd manually go to

[web2py] Re: How to get real web2py website sample sourcecode ?

2013-05-18 Thread Osswalt
Ok so a few of them then... Meanwhile I found others into github searching for "web2py". There's something interesting, like Scrumforme, Skytoop and some others... Yes here there are not so many sample as in Django. The worst thing in Django is it's not backward compatible. Greg -- --- You r

[web2py] Re: How to get real web2py website sample sourcecode ?

2013-05-18 Thread Anthony
No, most of the poweredby sites are not open source -- only a few are (the ones with "demo" in the title, as well as web2pyslices, and maybe a few others). Anthony On Saturday, May 18, 2013 5:17:14 PM UTC-4, Osswalt wrote: > > Thank you Anthony. > I didn't know most of the "powered by" are open

[web2py] Re: How to get real web2py website sample sourcecode ?

2013-05-18 Thread Osswalt
Thank you Anthony. I didn't know most of the "powered by" are open source. So I can google the name or find into github or other repository. I'm going to try. Greg -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this

[web2py] Re: How to get real web2py website sample sourcecode ?

2013-05-18 Thread Anthony
You're not going to find nearly as many web2py sites (open source or otherwise) as Django sites. Anyway, it looks like most of the sites listed at djangosites.org are not open source -- it's more like http://web2py.com/poweredby. Most of the Django open source stuff is at https://www.djangopack

[web2py] Re: GET and POST issue

2013-05-18 Thread Anthony
> > If you add the following alerts, do either of them pop up? >> >> jQuery(function() { >> alert('registering click handler'); // should pop up on page load >> jQuery('#vCardModalLink').click(function() { >> alert('loading component'); // should pop up when the link is >> clicked >>

[web2py] Renaming an application

2013-05-18 Thread sasogeek
I put an application on pythonanywhere.com, but I can't rename my application. Usually if I'd rename an application, I'd manually go to web2py/applications/ and change the app's name there. but this time it's online... is there a way to rename the app from within web2py? -- --- You received

[web2py] How to get real web2py website sample sourcecode ?

2013-05-18 Thread Osswalt
I'm intrigued by web2py that only recently I've been aware of. Really cool framework indeed. I'm a professional programmer and now I'm looking for some web2py website samble with code... The one provided by web2py.com and particularly the appliances are just very basic scholar demos. Is there a

[web2py] Re: GET and POST issue

2013-05-18 Thread Annet
> > If you add the following alerts, do either of them pop up? > > > jQuery(function() { > alert('registering click handler'); // should pop up on page load > jQuery('#vCardModalLink').click(function() { > alert('loading component'); // should pop up when the link is clicked > web2

[web2py] Re: GET and POST issue

2013-05-18 Thread Anthony
> Not sure why the Javascript isn't working -- perhaps the Bootstrap modal >> code is interfering. Maybe use the browser developer tools to see if the >> click handler is getting registered and called at all. >> > > I used the developer tools, the click handler isn't registered. > If you add t

[web2py] SEO with throw-away slugs

2013-05-18 Thread villas
Dear all, I plan to do this: 1. Use the url format e.g. myfunction/1234/meaningless-slug-version-1 2. Google will index the url 3. I later change the slug to: myfunction/1234/meaningless-slug-version-2 Problem: Google might now flag "duplicate content" and/or confusion To resolve the proble

Re: [web2py] Re: Random, wrong strings in Content-Type Response header for .css

2013-05-18 Thread Massimo Di Pierro
In gluon/http.py there is a function: def to(self, responder, env=None): this is the last thing called by web2py before returning control to the web server. Try print the content of headers to a file and see if the wrong headers comes from web2py or it is replaced by apache. On Saturda

[web2py] Re: GET and POST issue

2013-05-18 Thread Annet
Hi Anthony, Not sure why the Javascript isn't working -- perhaps the Bootstrap modal > code is interfering. Maybe use the browser developer tools to see if the > click handler is getting registered and called at all. > I used the developer tools, the click handler isn't registered. > vcard=r

[web2py] Re: GET and POST issue

2013-05-18 Thread Anthony
Not sure why the Javascript isn't working -- perhaps the Bootstrap modal code is interfering. Maybe use the browser developer tools to see if the click handler is getting registered and called at all. > > vcard=response.render(view='vcard/vcard.vcf',org=org,n=n,fn=fn,jobtitle=jobtitle

[web2py] Re: gluon.dal.Reference.get() behavior.

2013-05-18 Thread Vlasov Vitaly
Yes. __getattr__ is right method. суббота, 18 мая 2013 г., 19:12:11 UTC+4 пользователь Anthony написал: > > It's __getattr__ (not __getitem__) that should take the "default" > argument, right? > > On Saturday, May 18, 2013 10:44:05 AM UTC-4, Vlasov Vitaly wrote: >> >> Hello group. >> >> I think i

[web2py] Re: gluon.dal.Reference.get() behavior.

2013-05-18 Thread Anthony
It's __getattr__ (not __getitem__) that should take the "default" argument, right? On Saturday, May 18, 2013 10:44:05 AM UTC-4, Vlasov Vitaly wrote: > > Hello group. > > I think i found bug in Reference.get(). Please check my message. > > Test db.py: > > db.define_table('person', Field >

[web2py] Re: GET and POST issue

2013-05-18 Thread Annet
Hi Anthony, Thanks for helping me solve this problem. I gave your solution and corrections a try, but the request for the url just isn't made. I think I give up on solving the problem, there are to many issues I run into trying to solve it. The closest to a functioning solution is: {{=LO

[web2py] Re: GET and POST issue

2013-05-18 Thread Anthony
> %URL('vcard','mailVcard.load',args=node.id)}} data-toggle="modal" > data-target="#vCardModal"> src="{{=URL('static','img/icons/vCard.png')}}" alt="" width="48px" > height="48px" /> > In the above, the HTML doesn't include any quotes around the onclick string. > > $("a[data-toggle=modal]

[web2py] Re: GET and POST issue

2013-05-18 Thread Anthony
Maybe something like this: jQuery(function() { web2py_component('{{=URL('vcard', 'mailVcard.load', args=node.id)}}',target ='vCardModal'); }); Anthony On Saturday, May 18, 2013 3:22:35 AM UTC-4, Annet wrote: > > @Derk, > Thanks for the reference, I built the test app to get a better

[web2py] Re: GET and POST issue

2013-05-18 Thread Annet
I tried: $("a[data-toggle=modal]").click(function (e) { target = $(this).attr('data-target') url = $(this).attr('href') $(target).load(url); }) Which requests the url. I also tried: and: $("a[data-toggle=modal]").click(function (e) { web2py_component("{{=URL('vcard','mai

Re: [web2py] Re: Random, wrong strings in Content-Type Response header for .css

2013-05-18 Thread Andriy
Thank you for your answers. I have only code like this in some controllers: *import gluon.contenttype response.headers['Content-Type']=gluon.contenttype.contenttype('.js')* or like this when I need to export some data to file and download it: *from gluon.contenttype import contenttype response.he

Re: [web2py] Re: web2py not working

2013-05-18 Thread Ricardo Pedroso
It's a firefox bug, no worries... There are bug reports in mozilla and ubuntu. So probably next time you update firefox it will be fixed. Ricardo On Sat, May 18, 2013 at 4:53 AM, Monte Milanuk wrote: > I'm getting a very similar error when starting web2py from the CLI in > Xubuntu 13.04: > > m

Re: [web2py] Re: Random, wrong strings in Content-Type Response header for .css

2013-05-18 Thread Ricardo Pedroso
On Sat, May 18, 2013 at 7:30 AM, Andriy wrote: > Ok, this is really strange. I changed line 68 (69 after Ricardo`s code > addition) in *streamer.py* from: > *headers.setdefault('Content-Type', contenttype(static_file))* > to > *headers.setdefault('Content-Type', 'text/css')* > > And problem gone!

[web2py] Re: Testing your app using py.test

2013-05-18 Thread Arnon Marcus
Here is a really great talk about testing in general, ans testing web-apps in particular: http://www.infoq.com/presentations/Selenium -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving email

Re: [web2py] Re: Testing your app using py.test

2013-05-18 Thread Arnon Marcus
> Arnon, how many use cases does your application have? > > Is time to run tests really a bottleneck in your case? > > I'm not sure I know how to answer this question, since we have been working on our code for more than 3 years now, and there is zero testing in it, currently (which makes me

[web2py] Re: Can't get gmaps plugin to work

2013-05-18 Thread Marko Poutiainen
Ah, that was it! Funny it worked with the other browsers and I never got any errors. Thank you! -- --- 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 it, send an email to web2py+un

Re: [web2py] Re: Free opensource Janrain alternative - Python Social auth

2013-05-18 Thread Pystar
How about incorporating this into web2py natively? It looks good -- --- 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 it, send an email to web2py+unsubscr...@googlegroups.com. For m

[web2py] Re: GET and POST issue

2013-05-18 Thread Annet
@Derk, Thanks for the reference, I built the test app to get a better understanding of the way this works, it probably solves the form.custom issue I posted here: https://groups.google.com/forum/?fromgroups#!topic/web2py/3HoDW6ygCDQ @Anthony, Thanks for your reply. > In that case, you might c