[web2py] Re: web2py received 2011 BOSSIE Award by InfoWorld.com

2011-09-10 Thread GoldenTiger
In this community there's a rumor that he is a cyborg. Take a look at posts stats: 17918 mdipierro 2324 Massimo Di Pierro 2116 Yarko 1814 thade...@thadeusb.com 1776 Jonathan Lundell 1461 DenesL 1454 rochacbruno 1401 Anthony 1311 pbreit 1104 nat...@freezable.com On 10

Re: [web2py] Re: uWSGI 0.9.9

2011-09-10 Thread Vasile Ermicioi
the one that works with 0.9.8.5 uwsgi --protocol http --socket 127.0.0.1: --pythonpath /home/myusername/web2py --module wsgihandler -d /home/myusername/tmp/uwsgi.log -t 20 --async 24 --ugreen --limit-as 64 -r --no-orphans -M -p 1 --touch-reload /home/myusername/tmp/uwsgireload.txt --reload-on-

Re: [web2py] Re: uWSGI 0.9.9

2011-09-10 Thread Roberto De Ioris
> hi Roberto, > This version seems to be backward incompatible: > > --protocol http --socket 127.0.0.1: doesn't seems to work for me > > and using uwsgi --http 127.0.0.1: with --touch-reload makes uwsgi > to exit completely (no uwsgi processes after touching the file ) > Hi, can you post

[web2py] Español != Español

2011-09-10 Thread weheh
My controller says this just before returning: response.flash='Español' Chrome flashes Español Firefox flashes Español IE flashes Español All browsers are set to UTF-8 encoding. The same web2py code is running in all cases. I'm on Windows 7. I'm using Eclipse -- all encodings set to UTF-8 fro

[web2py] Re: Computing a field from the value of another field

2011-09-10 Thread pbreit
Good point.

[web2py] Re: Computing a field from the value of another field

2011-09-10 Thread Massimo Di Pierro
I do this. auth.settings.extra_fields['auth_user'] = [Field('city'),Field('country')] def lola(form): if form.vars.institution_country: form.vars.longitude, form.vars.latitude = geocode("%s %s" % (form.vars.city, form.vars.country)) auth.settings.register_onvalidation=lola auth.sett

[web2py] Re: Computing a field from the value of another field

2011-09-10 Thread Anthony
On Saturday, September 10, 2011 9:35:17 PM UTC-4, pbreit wrote: > > Maybe even a computed field? > http://web2py.com/book/default/chapter/06#Computed-Fields > Yes, I suppose that's not a bad idea, though in this case, I guess that would require calling the geocoding function twice -- once for the

[web2py] Re: what other tools do you use with web2py

2011-09-10 Thread pbreit
CoffeeScript supposedly makes JavaScript more pleasant. Same for LESS and SASS for CSS. I haven't used any of them.

[web2py] Re: Computing a field from the value of another field

2011-09-10 Thread pbreit
Maybe even a computed field? http://web2py.com/book/default/chapter/06#Computed-Fields You might want to store the postcode and check it to see if the new one is different before geocoding it.

[web2py] Re: has anyone done web2py + google maps?

2011-09-10 Thread niknok
Thank you all for the responses and links. They are very good models to learn from. Has anyone done something similar to crimereports.com or haybol.ph? On Sep 11, 7:09 am, Christopher Steel wrote: > You might want to check out Public Radio Roadtrip an application done (in > progress?) by John Ty

[web2py] Re: Ajax Call -Determining which button was pressed

2011-09-10 Thread Anthony
It's up to you how you trigger/call the ajax() function -- if you want to call it when a button is clicked, then add the call to the button's onclick attribute. You don't have to specify any field -- just use [] for the second argument. Anthony On Saturday, September 10, 2011 6:45:08 PM UTC-4

Re: [web2py] Re: Computing a field from the value of another field

2011-09-10 Thread Anthony
On Saturday, September 10, 2011 6:51:51 PM UTC-4, leftcase wrote: > > Cool, Thanks Anthony! > > Does the onvalidation option have benefits over and above the way I've done > it. > I guess it's a bit simpler because it still allows form.accepts() to handle the DB insert, so you don't have to do it

[web2py] Re: Ajax Call -Determining which button was pressed

2011-09-10 Thread Massimo Di Pierro
I do not understand. If you want to call an action, get the output and then send it via ajax you can do click me On Sep 10, 5:45 pm, António Ramos wrote: > Hello, > > the ajax function  example in the web2py book > > ajax('{{=URL('new_post')}}',['your_message'], 'target'); > > sends the value

[web2py] Re: has anyone done web2py + google maps?

2011-09-10 Thread Christopher Steel
You might want to check out Public Radio Roadtrip an application done (in progress?) by John Tynan. It was still slightly rough around the edges the last time I tried it out but was looking really interesting and was exploring some really interesting ideas. *Public Radio Roadtrip* GAE test sit

Re: [web2py] Re: Computing a field from the value of another field

2011-09-10 Thread Chris Rowson
Cool, Thanks Anthony! Does the onvalidation option have benefits over and above the way I've done it? Chris > Another option might be using an onvalidation function: > http://web2py.com/book/default/chapter/07#onvalidation > Anthony > > On Saturday, September 10, 2011 4:37:08 PM UTC-4, leftcase

[web2py] Ajax Call -Determining which button was pressed

2011-09-10 Thread António Ramos
Hello, the ajax function example in the web2py book ajax('{{=URL('new_post')}}',['your_message'], 'target'); sends the value of the field *your_message* to the controller function I dont want to send the value of a field but a button onclick action My webpage can have 2,4 10 or 20 buttons. It

[web2py] Re: Computing a field from the value of another field

2011-09-10 Thread Anthony
Another option might be using an onvalidation function: http://web2py.com/book/default/chapter/07#onvalidation Anthony On Saturday, September 10, 2011 4:37:08 PM UTC-4, leftcase wrote: > > Hi there, > > I bought the web2py .pdf, and have been reading it, but I'm struggling > a little bit with: >

[web2py] Re: Making slides with web2py and markmin

2011-09-10 Thread Massimo Di Pierro
No. It makes the view. You just return it. On Sep 10, 3:53 pm, António Ramos wrote: > Humm, dont i need a view? > > Em 10 de setembro de 2011 21:52, António Ramos escreveu: > > > > > > > > > Working now :) > > > Em 10 de setembro de 2011 21:29, António Ramos > > escreveu: > > > Traceback (most r

[web2py] Re: web2py received 2011 BOSSIE Award by InfoWorld.com

2011-09-10 Thread Massimo Di Pierro
LOL > who is Massimo as a man in the society, among friends, does he drive a > Ferrary or a fiat 500? 11 years old Honda Civic but only 60K miles on it. I do not drive much. I like trains and planes. My son his 6 and he also prefers trains and planes. > Does he eat meat or is a vegetarian. Is he

[web2py] Re: Computing a field from the value of another field

2011-09-10 Thread Chris Rowson
> Hi there, > > I bought the web2py .pdf, and have been reading it, but I'm struggling > a little bit with: > > http://www.web2py.com/book/default/chapter/07#SQLFORM > > Specifically the section "SQLFORM without database IO" > > I have 2 fields, lon & lat I'd like to calculated from a postcode and

[web2py] Re: Making slides with web2py and markmin

2011-09-10 Thread Christopher Steel
Very nice. Works great! I think Markmin is a pretty powerful tool because it is so easy for people to use. This could make a really big difference for a lot of people. Thank You.

[web2py] Re: web2py received 2011 BOSSIE Award by InfoWorld.com

2011-09-10 Thread weheh
Bravíssimo, Massimo!

[web2py] Re: web2py received 2011 BOSSIE Award by InfoWorld.com

2011-09-10 Thread Eric
Congratulations for Massimo and all the other contributors! You've achieved a lot in a relatively short amount of time. On Sep 7, 10:59 pm, wwwgong wrote: > Congratulations! > > more details from > here:http://www.infoworld.com/d/open-source-software/bossie-awards-2011-th...

[web2py] Instant Admin third-party security audit?

2011-09-10 Thread Eric
I'm just writing to find out if a third-party has audited the code for the new instant admin plug-in for web2py (https://github.com/sramana/ web2py-instant-admin). It's a beautiful interface for the db, and I mean nothing personal against the developers, who have done a fantastic job building a gr

[web2py] Re: Quick authentication question

2011-09-10 Thread Eric
And if you're using Apache with mod_wsgi and you want to use basic authentication with a web2py service, don't forget to add the line "WSGIPassAuthorization On" to wsgi.conf under /etc/apache2/mods- enabled I spent over an hour trying to figure out why I wasn't able to do basic authentication befo

Re: [web2py] Re: Crud.update Multiple

2011-09-10 Thread Richard Vézina
for fieldvalue in list of values:     db.person.insert(name=fieldvalue) Off coarse you can do it for multiple values : list1=[(valfield1,valfield2,valfield3),(etc.),(etc.)] # Note : first tuples = first rows you want to insert for field1, field2, field3 in list1 db.person.insert(field1=fiel

Re: [web2py] Making slides with web2py and markmin

2011-09-10 Thread António Ramos
Humm, dont i need a view? Em 10 de setembro de 2011 21:52, António Ramos escreveu: > Working now :) > > > Em 10 de setembro de 2011 21:29, António Ramos escreveu: > > Traceback (most recent call last): >> File "gluon/restricted.py", line 191, in restricted >> File "gluon/restricted.py", line 178,

Re: [web2py] Making slides with web2py and markmin

2011-09-10 Thread António Ramos
Working now :) Em 10 de setembro de 2011 21:29, António Ramos escreveu: > Traceback (most recent call last): > File "gluon/restricted.py", line 191, in restricted > File "gluon/restricted.py", line 178, in compile2 > TypeError: compile() expected string without null bytes > > > :( > > > Just a s

Re: [web2py] Re: web2py received 2011 BOSSIE Award by InfoWorld.com

2011-09-10 Thread António Ramos
hey, we are here all fascinated about web2py and i was thinking , who is Massimo as a man in the society, among friends, does he drive a Ferrary or a fiat 500? Does he eat meat or is a vegetarian. Is he good at other stuff or was just born to bring us web2py ? What are his projects in the future

[web2py] Computing a field from the value of another field

2011-09-10 Thread Chris Rowson
Hi there, I bought the web2py .pdf, and have been reading it, but I'm struggling a little bit with: http://www.web2py.com/book/default/chapter/07#SQLFORM Specifically the section "SQLFORM without database IO" I have 2 fields, lon & lat I'd like to calculated from a postcode and enter into the d

Re: [web2py] Making slides with web2py and markmin

2011-09-10 Thread António Ramos
Traceback (most recent call last): File "gluon/restricted.py", line 191, in restricted File "gluon/restricted.py", line 178, in compile2 TypeError: compile() expected string without null bytes :( Just a screenshot please 2011/9/10 Michele Comitini > +1 > > Terrific! > > mic > Il giorno 10/s

[web2py] what other tools do you use with web2py

2011-09-10 Thread Carl
Have a look at pyjs.org It converts Pyrhon into JavaScript.

[web2py] Re: Crud.update Multiple

2011-09-10 Thread Serbitar
To be more specific: Multiple records (found via a query), all with different values of course and one text field for each record. Just one submit button. On Sep 10, 9:55 pm, Serbitar wrote: > is there any way toupdatemultiplerecordswith crud.update, or evenrecordswith > a given query?

[web2py] Crud.update Multiple

2011-09-10 Thread Serbitar
is there any way to update multiple records with crud.update, or even records with a given query?

Re: [web2py] Re: has anyone done web2py + google maps?

2011-09-10 Thread Chris Rowson
I'm a Python Web Dev noob, but I had a similar requirement. I created this function to convert a postcode into lon & lat data suitable for use in Google Maps. It's a work in progress, not very elegant, and it doesn't have any error management but it's a start. Hopefully someone on the list will be

Re: [web2py] Making slides with web2py and markmin

2011-09-10 Thread Michele Comitini
+1 Terrific! mic Il giorno 10/set/2011 21:24, "Massimo Di Pierro" ha scritto: > Based on desk.js now you can do this > > Put the attached slide.py under models (any app). > > Write a controller like > > def test(): > content = """ > # My slides title > ## Slide One > this allows you to create sl

[web2py] Re: uWSGI 0.9.9

2011-09-10 Thread elffikk
hi Roberto, This version seems to be backward incompatible: --protocol http --socket 127.0.0.1: doesn't seems to work for me and using uwsgi --http 127.0.0.1: with --touch-reload makes uwsgi to exit completely (no uwsgi processes after touching the file )

[web2py] Re: How do I install a plugin??

2011-09-10 Thread Luca
Ah, ok, I figured it out. What I expected to be called "install" is called "upload". It's kind of funny to have to "upload" something I have just "downloaded", but whatever :-)

[web2py] Re: How do I install a plugin??

2011-09-10 Thread Anthony
Upload the plugin file -- that will "install" it. On Saturday, September 10, 2011 3:03:51 PM UTC-4, Luca wrote: > > Suppose I downloaded a plugin. Now I > have: web2py.plugin.layout_EfflorescenceBlue.w2p > Great; how do I install it? The book says to use the edit page in admin, > but I see no

Re: [web2py] Re: problems changing database field type

2011-09-10 Thread Richard Vézina
This seems interresting... Thanks Richard On Fri, Sep 9, 2011 at 6:18 PM, Michael Toomim wrote: > I think we need more tools for fixing broken migrations! > > When I have something broken, sometimes I go into the sql console, > edit the database manually, and then use these functions to tell >

[web2py] How do I install a plugin??

2011-09-10 Thread Luca
Suppose I downloaded a plugin. Now I have: web2py.plugin.layout_EfflorescenceBlue.w2p Great; how do I install it? The book says to use the edit page in admin, but I see no such option in the edit page in admin to install a plugin file. There is a link to download plugins (which I have done, n

[web2py] encoding

2011-09-10 Thread Emy
hey all my website is dealing with arabic characters and I have a problem with encoding I can read from DB wothout problem when I try to insert any data using ajax function I got the string written like that in python : "%D8%A8%D8%A8%D9%8A%D9%8A%D9%8A%D8%B3%D8%B3%'" when I try to write : txt=unic

[web2py] Re: what other tools do you use with web2py

2011-09-10 Thread weheh
Indeed, you are right. I found with my first really big web2py project that 80% of my time was in jQuery and getting various jQuery widgets and tools to work properly. Of course, Firebug is essential when debugging this kind of stuff. I also like Eclipse as an IDE. CSS has always seemed like an abo

[web2py] Re: what other tools do you use with web2py

2011-09-10 Thread LightDot
You mean JavaScript and CSS? I guess there is no way past using CSS, but there are a lot of choices when it comes to JavaScript libraries. Although, jQuery is one of the best in my opinion.

[web2py] what other tools do you use with web2py

2011-09-10 Thread apple
The two best things about web2py: Ability to achieve a lot with a very small number of lines of code Being able to use python in the view templates The worst thing: Finding that 2/3 of the time is now spent on jquery and CSS! What tools are there to make this easier? Are jque

Re: [web2py] reading special chars from T dict

2011-09-10 Thread Carlos
It's me again. In fact, they do appear ok in regular html (even if they appear strange in shell), but I'm having problems displaying them in other places. Anyways, I guess this is 'ok', until I figure out the exact way to replicate my problem, considering they do appear correctly in regular htm

Re: [web2py] reading special chars from T dict

2011-09-10 Thread Carlos
Btw the following is what I get from shell: T.force('es') > ['es'] print T('any') > Organizaci├│n str(T('any')) > 'Organizaci\xc3\xb3n' Thanks.

Re: [web2py] reading special chars from T dict

2011-09-10 Thread Carlos
Hi Bruno, I have the following as the first line in my language file: # coding: utf8 Is that the correct format?. Carlos

Re: [web2py] reading special chars from T dict

2011-09-10 Thread Bruno Rocha
Do you have coding: utf-8? I have no problem with portuguese pontuation. Organização http://zerp.ly/rochacbruno Em 10/09/2011 10:30, "Carlos" escreveu: > Hi, > > (I asked this as a reply in another topic (html entities), but I'll move it > here to be on a separate thread) > > Why is it that my

[web2py] reading special chars from T dict

2011-09-10 Thread Carlos
Hi, (I asked this as a reply in another topic (html entities), but I'll move it here to be on a separate thread) Why is it that my translations are not being read correctly from the T dict?. I have the following T value (notice the spanish accent): Organización But when read from web2py, it a

[web2py] Re: has anyone done web2py + google maps?

2011-09-10 Thread Anthony
There's this plugin: https://groups.google.com/d/topic/web2py/4RFAudXbt3s/discussion. Also, plugin_wiki includes a Google Maps widget similar to that plugin (http://web2py.com/book/default/chapter/13#Current-Widgets). There's also https://github.com/relsi/web2pyople (see it running here: http:

Re: [web2py] has anyone done web2py + google maps?

2011-09-10 Thread Bruno Rocha
http://web2py.com/appliances/default/show/71 On Sat, Sep 10, 2011 at 2:47 AM, niknok wrote: > Any links to try out?

[web2py] Re: RFC: New design for {{include file.html}} in views

2011-09-10 Thread Michael Toomim
Yes this is a much better design pattern. I will just make a file of these helpers and include them all at once. Thanks massimo! On Sep 9, 10:32 pm, Massimo Di Pierro wrote: > Why not do: > > in friend_selector.html > > {{def selector(id=None):}} >                 >                         >