t; On Friday, 11 May 2012 23:44:57 UTC-5, Franklin Freitas wrote:
>>
>> Having the following
>>
>> def by_country():
>> count = db.procesados.idpublicacion.count()
>> rows = db().select(db.procesados.pais, count,
>> groupby=db.procesados.pais)
>&
Having the following
def by_country():
count = db.procesados.idpublicacion.count()
rows = db().select(db.procesados.pais, count,
groupby=db.procesados.pais)
return rows.json()
It generates the JSON:
[{"pais": "", "COUNT(procesados.idpublicacion)": 236}, {"pais": "AE",
"COUNT(proc
Thanks a lot I live in Venezuela and that's the format I need
Thanks for your help
On Nov 8, 10:12 am, Vinicius Assef wrote:
> No. I said probably you're using format() in a version it is not
> supported yet. But I'm not sure about it.
>
> I never lay on server locale dependancy.
>
> I live in
Hi Vinicius,
You mean I can use str.format() to format numbers with thousand
separators instead of my function ?, that would be great Could you
give me an example ??
Thanks
On Nov 7, 6:42 pm, Vinicius Assef wrote:
> Possibly the python version in your production server.
>
> str.format() is avai
In order to format numbers with thousands separator and custom number
of decimals, I created the following function and included it in my
"db.py" model so it could be accessed through the entire application.
def number_format(num, places=0):
return locale.format("%.*f", (places, num), True)
I
it
works fine:
onkeyup="ajax('/palitan/default/my_function', ['lastname'],
'target');"
Thanks for your help, this got me for a few days
On Oct 20, 4:25 pm, Anthony wrote:
> Can you show some code?
>
>
>
>
>
>
>
> On
I am using a form very similar to the Ajax sample on chapter 3 to
search for customers and once you see the results, you click on the
record you want so customer id and name are added to the form fields
on my main processing form. This works fine on my "add new" records
form.
I have another page t
Hi Stef,
This is the way I've done it:
db = DAL('mysql://username:password@dns_or_ip_of_server/
database_name')
Hope it helps
Regards
Franklin
On Feb 23, 3:43 pm, DenesL wrote:
> According to the dal.py source you either supply
>
> mssql://dsn
>
> or
>
> mssql://username:password@host:port
.
>
> Mart :)
>
> On Oct 18, 1:49 am, mart wrote:
>
>
>
>
>
>
>
> > hum.. let me check on my end to make sure I didn't miss mentioning
> > something. It has been a little while...
>
> > On Oct 18, 12:40 am, Franklin Freitas
> >
ll dependencies within my project and reference it there... so, many
> possibilities, depends how you prefer to reference it
>
> Hope it helps,
> Mart :)
>
> On Oct 17, 7:11 pm, Franklin Freitas
> wrote:
>
>
>
> > Has anyone been able to install MySQLdb in Ma
Has anyone been able to install MySQLdb in Mac OSX ???
I want to use it with Web2py but haven't been able to make it work.
I've read a whole bunch of forums saying how hard it is, I've done
everything I've reead about it without any results. I even used
macports as recommended by my Web2py teacher
11 matches
Mail list logo