Re: [web2py] Re: Language File is Reseted when Server is Reseted

2010-10-06 Thread Carlos Costa
Things make more sense now.
I always got the message Cron disable because no file locking.
I had to pass -N argument for it to stop anoying me.
Is that documented?

Thanks again.

2010/10/6 mdipierro :
> If you run web2py from source under windows you need it. If you use
> the web2py binary then it comes with it.
>
> without it you have no file locking and it is possible thet two web2py
> threads conflict (one writes a file, another tries to open, fails,
> overwrites it).
>
> Massimo
>
> On Oct 6, 2:07 pm, yamandu  wrote:
>> Well, I think I never heard of it?
>> I looked into python help and couldn´t find it.
>>
>> Should I have it?
>>
>> On Oct 6, 3:21 pm, mdipierro  wrote:
>>
>> > I think I see what the problem is... do you have Mark hammond win32
>> > extensions installed?
>>
>> > Massimo
>>
>> > On Oct 6, 1:13 pm, yamandu  wrote:
>>
>> > > I am using web2py server in Windows 7.
>>
>> > > The actual file is changed and I have to translate again (pt-br.py).
>>
>> > > I tried to replicate the situation now but I coud not.
>> > > Restart the server, restart the editor (thought it could be problem
>> > > with SVN plugin).
>> > > But the problem not ocurred.
>> > > Maybe if restart the computer!
>> > > Because it seems to happen once a day and no more, if remember right.
>>
>> > > On Oct 6, 2:46 pm, mdipierro  wrote:
>>
>> > > > what os are you using? hat web server?
>>
>> > > > you see the translation in english or you find the contect of a
>> > > > languages/xx.py file actually changing?
>>
>> > > > can you send me an example of the languages/xx.py file before and
>> > > > after it gets overwritten?
>>
>> > > > Massimo
>>
>> > > > On Oct 6, 11:38 am, yamandu  wrote:
>>
>> > > > > Everytime I restart the we2py server my language file become in
>> > > > > english again.
>> > > > > What may cause this behavior?
>>
>>



-- 
www.yamachine.com
A máquina não para!


EL MELECH NEEMAN!


Re: [web2py] Re: Language File is Reseted when Server is Reseted

2010-11-05 Thread Carlos Costa
Looks like it fixed.
So simple!
Thanks!

2010/11/5 mdipierro :
> delete it
>
> C:\...\applications\welcome/cache/cache.shelve
>
> do you still have the problem?
>
> On Nov 5, 1:53 pm, yamandu  wrote:
>> I´ve installed win32 extensions.
>>
>> Now I get:
>> ERROR:web2py.cache:corrupted file: C:\...\applications\welcome/cache/
>> cache.shelve
>> everytime!
>>
>> On Oct 6, 6:54 pm, mdipierro  wrote:
>>
>> > Yes it is somewhere in the manual.
>>
>> > On Oct 6, 3:41 pm, Carlos Costa  wrote:
>>
>> > > Things make more sense now.
>> > > I always got the message Cron disable because no file locking.
>> > > I had to pass -N argument for it to stop anoying me.
>> > > Is that documented?
>>
>> > > Thanks again.
>>
>> > > 2010/10/6 mdipierro :
>>
>> > > > If you run web2py from source under windows you need it. If you use
>> > > > the web2py binary then it comes with it.
>>
>> > > > without it you have no file locking and it is possible thet two web2py
>> > > > threads conflict (one writes a file, another tries to open, fails,
>> > > > overwrites it).
>>
>> > > > Massimo
>>
>> > > > On Oct 6, 2:07 pm, yamandu  wrote:
>> > > >> Well, I think I never heard of it?
>> > > >> I looked into python help and couldn´t find it.
>>
>> > > >> Should I have it?
>>
>> > > >> On Oct 6, 3:21 pm, mdipierro  wrote:
>>
>> > > >> > I think I see what the problem is... do you have Mark hammondwin32
>> > > >> > extensions installed?
>>
>> > > >> > Massimo
>>
>> > > >> > On Oct 6, 1:13 pm, yamandu  wrote:
>>
>> > > >> > > I am using web2py server in Windows 7.
>>
>> > > >> > > The actual file is changed and I have to translate again 
>> > > >> > > (pt-br.py).
>>
>> > > >> > > I tried to replicate the situation now but I coud not.
>> > > >> > > Restart the server, restart the editor (thought it could be 
>> > > >> > > problem
>> > > >> > > with SVN plugin).
>> > > >> > > But the problem not ocurred.
>> > > >> > > Maybe if restart the computer!
>> > > >> > > Because it seems to happen once a day and no more, if remember 
>> > > >> > > right.
>>
>> > > >> > > On Oct 6, 2:46 pm, mdipierro  wrote:
>>
>> > > >> > > > what os are you using? hat web server?
>>
>> > > >> > > > you see the translation in english or you find the contect of a
>> > > >> > > > languages/xx.py file actually changing?
>>
>> > > >> > > > can you send me an example of the languages/xx.py file before 
>> > > >> > > > and
>> > > >> > > > after it gets overwritten?
>>
>> > > >> > > > Massimo
>>
>> > > >> > > > On Oct 6, 11:38 am, yamandu  wrote:
>>
>> > > >> > > > > Everytime I restart the we2py server mylanguagefile become in
>> > > >> > > > > english again.
>> > > >> > > > > What may cause this behavior?
>>
>> > > --www.yamachine.com
>> > > A máquina não para!
>>
>> > > EL MELECH NEEMAN!
>>
>>



-- 
www.yamachine.com
A máquina não para!


EL MELECH NEEMAN!


Re: [web2py] Re: Language File is Reseted when Server is Reseted

2010-11-05 Thread Carlos Costa
Well, I don´t know exactly. What´s this file exactly for?

2010/11/5 mdipierro :
> perhaps when this occurs should delete the file automatically? Pros?
> Cons?
>
> On Nov 5, 4:35 pm, Carlos Costa  wrote:
>> Looks like it fixed.
>> So simple!
>> Thanks!
>>
>> 2010/11/5 mdipierro :
>>
>>
>>
>> > delete it
>>
>> > C:\...\applications\welcome/cache/cache.shelve
>>
>> > do you still have the problem?
>>
>> > On Nov 5, 1:53 pm, yamandu  wrote:
>> >> I´ve installed win32 extensions.
>>
>> >> Now I get:
>> >> ERROR:web2py.cache:corrupted file: C:\...\applications\welcome/cache/
>> >> cache.shelve
>> >> everytime!
>>
>> >> On Oct 6, 6:54 pm, mdipierro  wrote:
>>
>> >> > Yes it is somewhere in the manual.
>>
>> >> > On Oct 6, 3:41 pm, Carlos Costa  wrote:
>>
>> >> > > Things make more sense now.
>> >> > > I always got the message Cron disable because no file locking.
>> >> > > I had to pass -N argument for it to stop anoying me.
>> >> > > Is that documented?
>>
>> >> > > Thanks again.
>>
>> >> > > 2010/10/6 mdipierro :
>>
>> >> > > > If you run web2py from source under windows you need it. If you use
>> >> > > > the web2py binary then it comes with it.
>>
>> >> > > > without it you have no file locking and it is possible thet two 
>> >> > > > web2py
>> >> > > > threads conflict (one writes a file, another tries to open, fails,
>> >> > > > overwrites it).
>>
>> >> > > > Massimo
>>
>> >> > > > On Oct 6, 2:07 pm, yamandu  wrote:
>> >> > > >> Well, I think I never heard of it?
>> >> > > >> I looked into python help and couldn´t find it.
>>
>> >> > > >> Should I have it?
>>
>> >> > > >> On Oct 6, 3:21 pm, mdipierro  wrote:
>>
>> >> > > >> > I think I see what the problem is... do you have Mark 
>> >> > > >> > hammondwin32
>> >> > > >> > extensions installed?
>>
>> >> > > >> > Massimo
>>
>> >> > > >> > On Oct 6, 1:13 pm, yamandu  wrote:
>>
>> >> > > >> > > I am using web2py server in Windows 7.
>>
>> >> > > >> > > The actual file is changed and I have to translate again 
>> >> > > >> > > (pt-br.py).
>>
>> >> > > >> > > I tried to replicate the situation now but I coud not.
>> >> > > >> > > Restart the server, restart the editor (thought it could be 
>> >> > > >> > > problem
>> >> > > >> > > with SVN plugin).
>> >> > > >> > > But the problem not ocurred.
>> >> > > >> > > Maybe if restart the computer!
>> >> > > >> > > Because it seems to happen once a day and no more, if remember 
>> >> > > >> > > right.
>>
>> >> > > >> > > On Oct 6, 2:46 pm, mdipierro  wrote:
>>
>> >> > > >> > > > what os are you using? hat web server?
>>
>> >> > > >> > > > you see the translation in english or you find the contect 
>> >> > > >> > > > of a
>> >> > > >> > > > languages/xx.py file actually changing?
>>
>> >> > > >> > > > can you send me an example of the languages/xx.py file 
>> >> > > >> > > > before and
>> >> > > >> > > > after it gets overwritten?
>>
>> >> > > >> > > > Massimo
>>
>> >> > > >> > > > On Oct 6, 11:38 am, yamandu  wrote:
>>
>> >> > > >> > > > > Everytime I restart the we2py server mylanguagefile become 
>> >> > > >> > > > > in
>> >> > > >> > > > > english again.
>> >> > > >> > > > > What may cause this behavior?
>>
>> >> > > --www.yamachine.com
>> >> > > A máquina não para!
>>
>> >> > > EL MELECH NEEMAN!
>>
>> --www.yamachine.com
>> A máquina não para!
>>
>> EL MELECH NEEMAN!



-- 
www.yamachine.com
A máquina não para!


EL MELECH NEEMAN!


Re: [web2py] Re: Language File is Reseted when Server is Reseted

2010-11-05 Thread Carlos Costa
The ticket is good idea but it will pop to the user?

2010/11/6 mdipierro :
> Perhaps we can generate a ticket and then delete the file, so the
> ticket happens once.
>
> On Nov 5, 9:55 pm, mdipierro  wrote:
>> It stores the cache.disk (in principle it can be deleted without data
>> loss). The problem is that if the failure is caused by some other
>> serious problem, deleting automatically, will hide a problem with
>> cache.disk.
>>
>> On Nov 5, 9:52 pm, Carlos Costa  wrote:
>>
>> > Well, I don´t know exactly. What´s this file exactly for?
>>
>> > 2010/11/5 mdipierro :
>>
>> > > perhaps when this occurs should delete the file automatically? Pros?
>> > > Cons?
>>
>> > > On Nov 5, 4:35 pm, Carlos Costa  wrote:
>> > >> Looks like it fixed.
>> > >> So simple!
>> > >> Thanks!
>>
>> > >> 2010/11/5 mdipierro :
>>
>> > >> > delete it
>>
>> > >> > C:\...\applications\welcome/cache/cache.shelve
>>
>> > >> > do you still have the problem?
>>
>> > >> > On Nov 5, 1:53 pm, yamandu  wrote:
>> > >> >> I´ve installed win32 extensions.
>>
>> > >> >> Now I get:
>> > >> >> ERROR:web2py.cache:corrupted file: C:\...\applications\welcome/cache/
>> > >> >> cache.shelve
>> > >> >> everytime!
>>
>> > >> >> On Oct 6, 6:54 pm, mdipierro  wrote:
>>
>> > >> >> > Yes it is somewhere in the manual.
>>
>> > >> >> > On Oct 6, 3:41 pm, Carlos Costa  wrote:
>>
>> > >> >> > > Things make more sense now.
>> > >> >> > > I always got the message Cron disable because no file locking.
>> > >> >> > > I had to pass -N argument for it to stop anoying me.
>> > >> >> > > Is that documented?
>>
>> > >> >> > > Thanks again.
>>
>> > >> >> > > 2010/10/6 mdipierro :
>>
>> > >> >> > > > If you run web2py from source under windows you need it. If 
>> > >> >> > > > you use
>> > >> >> > > > the web2py binary then it comes with it.
>>
>> > >> >> > > > without it you have no file locking and it is possible thet 
>> > >> >> > > > two web2py
>> > >> >> > > > threads conflict (one writes a file, another tries to open, 
>> > >> >> > > > fails,
>> > >> >> > > > overwrites it).
>>
>> > >> >> > > > Massimo
>>
>> > >> >> > > > On Oct 6, 2:07 pm, yamandu  wrote:
>> > >> >> > > >> Well, I think I never heard of it?
>> > >> >> > > >> I looked into python help and couldn´t find it.
>>
>> > >> >> > > >> Should I have it?
>>
>> > >> >> > > >> On Oct 6, 3:21 pm, mdipierro  wrote:
>>
>> > >> >> > > >> > I think I see what the problem is... do you have Mark 
>> > >> >> > > >> > hammondwin32
>> > >> >> > > >> > extensions installed?
>>
>> > >> >> > > >> > Massimo
>>
>> > >> >> > > >> > On Oct 6, 1:13 pm, yamandu  wrote:
>>
>> > >> >> > > >> > > I am using web2py server in Windows 7.
>>
>> > >> >> > > >> > > The actual file is changed and I have to translate again 
>> > >> >> > > >> > > (pt-br.py).
>>
>> > >> >> > > >> > > I tried to replicate the situation now but I coud not.
>> > >> >> > > >> > > Restart the server, restart the editor (thought it could 
>> > >> >> > > >> > > be problem
>> > >> >> > > >> > > with SVN plugin).
>> > >> >> > > >> > > But the problem not ocurred.
>> > >> >> > > >> > > Maybe if restart the computer!
>> > >> >> > > >> > > Because it seems to happen once a day and no more, if 
>> > >> >> > > >> > > remember right.
>>
>> > >> >> > > >> > > On Oct 6, 2:46 pm, mdipierro  
>> > >> >> > > >> > > wrote:
>>
>> > >> >> > > >> > > > what os are you using? hat web server?
>>
>> > >> >> > > >> > > > you see the translation in english or you find the 
>> > >> >> > > >> > > > contect of a
>> > >> >> > > >> > > > languages/xx.py file actually changing?
>>
>> > >> >> > > >> > > > can you send me an example of the languages/xx.py file 
>> > >> >> > > >> > > > before and
>> > >> >> > > >> > > > after it gets overwritten?
>>
>> > >> >> > > >> > > > Massimo
>>
>> > >> >> > > >> > > > On Oct 6, 11:38 am, yamandu  
>> > >> >> > > >> > > > wrote:
>>
>> > >> >> > > >> > > > > Everytime I restart the we2py server mylanguagefile 
>> > >> >> > > >> > > > > become in
>> > >> >> > > >> > > > > english again.
>> > >> >> > > >> > > > > What may cause this behavior?
>>
>> > >> >> > > --www.yamachine.com
>> > >> >> > > A máquina não para!
>>
>> > >> >> > > EL MELECH NEEMAN!
>>
>> > >> --www.yamachine.com
>> > >> A máquina não para!
>>
>> > >> EL MELECH NEEMAN!
>>
>> > --www.yamachine.com
>> > A máquina não para!
>>
>> > EL MELECH NEEMAN!
>>
>>



-- 
www.yamachine.com
A máquina não para!


EL MELECH NEEMAN!


Re: [web2py] Re: Language File is Reseted when Server is Reseted

2010-11-06 Thread Carlos Costa
I think It´s fine for now. At least it will be more clear to the
developer until discover the cause.

2010/11/6 mdipierro :
> yes but once and only once, when an upgrade corrupts a cache file.
>
> On Nov 5, 10:01 pm, Carlos Costa  wrote:
>> The ticket is good idea but it will pop to the user?
>>
>> 2010/11/6 mdipierro :
>>
>>
>>
>> > Perhaps we can generate a ticket and then delete the file, so the
>> > ticket happens once.
>>
>> > On Nov 5, 9:55 pm, mdipierro  wrote:
>> >> It stores the cache.disk (in principle it can be deleted without data
>> >> loss). The problem is that if the failure is caused by some other
>> >> serious problem, deleting automatically, will hide a problem with
>> >> cache.disk.
>>
>> >> On Nov 5, 9:52 pm, Carlos Costa  wrote:
>>
>> >> > Well, I don´t know exactly. What´s this file exactly for?
>>
>> >> > 2010/11/5 mdipierro :
>>
>> >> > > perhaps when this occurs should delete the file automatically? Pros?
>> >> > > Cons?
>>
>> >> > > On Nov 5, 4:35 pm, Carlos Costa  wrote:
>> >> > >> Looks like it fixed.
>> >> > >> So simple!
>> >> > >> Thanks!
>>
>> >> > >> 2010/11/5 mdipierro :
>>
>> >> > >> > delete it
>>
>> >> > >> > C:\...\applications\welcome/cache/cache.shelve
>>
>> >> > >> > do you still have the problem?
>>
>> >> > >> > On Nov 5, 1:53 pm, yamandu  wrote:
>> >> > >> >> I´ve installed win32 extensions.
>>
>> >> > >> >> Now I get:
>> >> > >> >> ERROR:web2py.cache:corrupted file: 
>> >> > >> >> C:\...\applications\welcome/cache/
>> >> > >> >> cache.shelve
>> >> > >> >> everytime!
>>
>> >> > >> >> On Oct 6, 6:54 pm, mdipierro  wrote:
>>
>> >> > >> >> > Yes it is somewhere in the manual.
>>
>> >> > >> >> > On Oct 6, 3:41 pm, Carlos Costa  wrote:
>>
>> >> > >> >> > > Things make more sense now.
>> >> > >> >> > > I always got the message Cron disable because no file locking.
>> >> > >> >> > > I had to pass -N argument for it to stop anoying me.
>> >> > >> >> > > Is that documented?
>>
>> >> > >> >> > > Thanks again.
>>
>> >> > >> >> > > 2010/10/6 mdipierro :
>>
>> >> > >> >> > > > If you run web2py from source under windows you need it. If 
>> >> > >> >> > > > you use
>> >> > >> >> > > > the web2py binary then it comes with it.
>>
>> >> > >> >> > > > without it you have no file locking and it is possible thet 
>> >> > >> >> > > > two web2py
>> >> > >> >> > > > threads conflict (one writes a file, another tries to open, 
>> >> > >> >> > > > fails,
>> >> > >> >> > > > overwrites it).
>>
>> >> > >> >> > > > Massimo
>>
>> >> > >> >> > > > On Oct 6, 2:07 pm, yamandu  wrote:
>> >> > >> >> > > >> Well, I think I never heard of it?
>> >> > >> >> > > >> I looked into python help and couldn´t find it.
>>
>> >> > >> >> > > >> Should I have it?
>>
>> >> > >> >> > > >> On Oct 6, 3:21 pm, mdipierro  
>> >> > >> >> > > >> wrote:
>>
>> >> > >> >> > > >> > I think I see what the problem is... do you have Mark 
>> >> > >> >> > > >> > hammondwin32
>> >> > >> >> > > >> > extensions installed?
>>
>> >> > >> >> > > >> > Massimo
>>
>> >> > >> >> > > >> > On Oct 6, 1:13 pm, yamandu  
>> >> > >> >> > > >> > wrote:
>>
>> >> > >> >> > > >> > > I am using web2py server in Windows

Re: [web2py] Re: Language File is Reseted when Server is Reseted

2010-11-08 Thread Carlos Costa
Yes.

2010/11/8 mdipierro :
> Do you have the Mark Hammond wein32 extensions?
>
> On Nov 8, 12:00 pm, yamandu  wrote:
>> Both!
>>
>> On Nov 8, 2:53 pm, mdipierro  wrote:
>>
>> > Which problem returned? The cache problem or the language problem?
>>
>> > 1.86.2  or 1.88.3?
>>
>> > On Nov 8, 10:47 am,yamandu wrote:
>>
>> > > OMG! The problem returned.
>> > > And said this too:
>> > > ERROR:root:Syntax error in C:\..\applications\anima/languages/pt-br.py
>>
>> > > On Nov 6, 10:07 am, Carlos Costa  wrote:
>>
>> > > > I think It´s fine for now. At least it will be more clear to the
>> > > > developer until discover the cause.
>>
>> > > > 2010/11/6 mdipierro :
>>
>> > > > > yes but once and only once, when an upgrade corrupts a cache file.
>>
>> > > > > On Nov 5, 10:01 pm, Carlos Costa  wrote:
>> > > > >> The ticket is good idea but it will pop to the user?
>>
>> > > > >> 2010/11/6 mdipierro :
>>
>> > > > >> > Perhaps we can generate a ticket and then delete the file, so the
>> > > > >> > ticket happens once.
>>
>> > > > >> > On Nov 5, 9:55 pm, mdipierro  wrote:
>> > > > >> >> It stores the cache.disk (in principle it can be deleted without 
>> > > > >> >> data
>> > > > >> >> loss). The problem is that if the failure is caused by some other
>> > > > >> >> serious problem, deleting automatically, will hide a problem with
>> > > > >> >> cache.disk.
>>
>> > > > >> >> On Nov 5, 9:52 pm, Carlos Costa  wrote:
>>
>> > > > >> >> > Well, I don´t know exactly. What´s this file exactly for?
>>
>> > > > >> >> > 2010/11/5 mdipierro :
>>
>> > > > >> >> > > perhaps when this occurs should delete the file 
>> > > > >> >> > > automatically? Pros?
>> > > > >> >> > > Cons?
>>
>> > > > >> >> > > On Nov 5, 4:35 pm, Carlos Costa  
>> > > > >> >> > > wrote:
>> > > > >> >> > >> Looks like it fixed.
>> > > > >> >> > >> So simple!
>> > > > >> >> > >> Thanks!
>>
>> > > > >> >> > >> 2010/11/5 mdipierro :
>>
>> > > > >> >> > >> > delete it
>>
>> > > > >> >> > >> > C:\...\applications\welcome/cache/cache.shelve
>>
>> > > > >> >> > >> > do you still have the problem?
>>
>> > > > >> >> > >> > On Nov 5, 1:53 pm,yamandu wrote:
>> > > > >> >> > >> >> I´ve installedwin32extensions.
>>
>> > > > >> >> > >> >> Now I get:
>> > > > >> >> > >> >> ERROR:web2py.cache:corrupted file: 
>> > > > >> >> > >> >> C:\...\applications\welcome/cache/
>> > > > >> >> > >> >> cache.shelve
>> > > > >> >> > >> >> everytime!
>>
>> > > > >> >> > >> >> On Oct 6, 6:54 pm, mdipierro  
>> > > > >> >> > >> >> wrote:
>>
>> > > > >> >> > >> >> > Yes it is somewhere in the manual.
>>
>> > > > >> >> > >> >> > On Oct 6, 3:41 pm, Carlos Costa 
>> > > > >> >> > >> >> >  wrote:
>>
>> > > > >> >> > >> >> > > Things make more sense now.
>> > > > >> >> > >> >> > > I always got the message Cron disable because no 
>> > > > >> >> > >> >> > > file locking.
>> > > > >> >> > >> >> > > I had to pass -N argument for it to stop anoying me.
>> > > > >> >> > >> >> > > Is that documented?
>>
>> > > > >> >> > >> >> > > Thanks again.
>>
>> > > > >> >> > >> &g

Re: [web2py] Re: Language File is Reseted when Server is Reseted

2010-11-08 Thread Carlos Costa
No. Once I tried to fix this very error copying the content from one
language file to other.
But the error already existed and keeps happening.

2010/11/8 mdipierro :
> Did you ever edit the language files without using the web based
> interface?
>
> Somehow these files are getting corrupted and web2py is re-writing
> them.
>
> Massimo
>
> On Nov 8, 12:18 pm, Carlos Costa  wrote:
>> Yes.
>>
>> 2010/11/8 mdipierro :
>>
>>
>>
>> > Do you have the Mark Hammond wein32 extensions?
>>
>> > On Nov 8, 12:00 pm, yamandu  wrote:
>> >> Both!
>>
>> >> On Nov 8, 2:53 pm, mdipierro  wrote:
>>
>> >> > Which problem returned? The cache problem or the language problem?
>>
>> >> > 1.86.2  or 1.88.3?
>>
>> >> > On Nov 8, 10:47 am,yamandu wrote:
>>
>> >> > > OMG! The problem returned.
>> >> > > And said this too:
>> >> > > ERROR:root:Syntax error in C:\..\applications\anima/languages/pt-br.py
>>
>> >> > > On Nov 6, 10:07 am, Carlos Costa  wrote:
>>
>> >> > > > I think It´s fine for now. At least it will be more clear to the
>> >> > > > developer until discover the cause.
>>
>> >> > > > 2010/11/6 mdipierro :
>>
>> >> > > > > yes but once and only once, when an upgrade corrupts a cache file.
>>
>> >> > > > > On Nov 5, 10:01 pm, Carlos Costa  wrote:
>> >> > > > >> The ticket is good idea but it will pop to the user?
>>
>> >> > > > >> 2010/11/6 mdipierro :
>>
>> >> > > > >> > Perhaps we can generate a ticket and then delete the file, so 
>> >> > > > >> > the
>> >> > > > >> > ticket happens once.
>>
>> >> > > > >> > On Nov 5, 9:55 pm, mdipierro  wrote:
>> >> > > > >> >> It stores the cache.disk (in principle it can be deleted 
>> >> > > > >> >> without data
>> >> > > > >> >> loss). The problem is that if the failure is caused by some 
>> >> > > > >> >> other
>> >> > > > >> >> serious problem, deleting automatically, will hide a problem 
>> >> > > > >> >> with
>> >> > > > >> >> cache.disk.
>>
>> >> > > > >> >> On Nov 5, 9:52 pm, Carlos Costa  
>> >> > > > >> >> wrote:
>>
>> >> > > > >> >> > Well, I don´t know exactly. What´s this file exactly for?
>>
>> >> > > > >> >> > 2010/11/5 mdipierro :
>>
>> >> > > > >> >> > > perhaps when this occurs should delete the file 
>> >> > > > >> >> > > automatically? Pros?
>> >> > > > >> >> > > Cons?
>>
>> >> > > > >> >> > > On Nov 5, 4:35 pm, Carlos Costa  
>> >> > > > >> >> > > wrote:
>> >> > > > >> >> > >> Looks like it fixed.
>> >> > > > >> >> > >> So simple!
>> >> > > > >> >> > >> Thanks!
>>
>> >> > > > >> >> > >> 2010/11/5 mdipierro :
>>
>> >> > > > >> >> > >> > delete it
>>
>> >> > > > >> >> > >> > C:\...\applications\welcome/cache/cache.shelve
>>
>> >> > > > >> >> > >> > do you still have the problem?
>>
>> >> > > > >> >> > >> > On Nov 5, 1:53 pm,yamandu 
>> >> > > > >> >> > >> > wrote:
>> >> > > > >> >> > >> >> I´ve installedwin32extensions.
>>
>> >> > > > >> >> > >> >> Now I get:
>> >> > > > >> >> > >> >> ERROR:web2py.cache:corrupted file: 
>> >> > > > >> >> > >> >> C:\...\applications\welcome/cache/
>> >> > > > >> >> > >> >> cache.shelve
>> >> > > > >> >> > >> >> everytime!
>>
>> >> > &

Re: [web2py] Re: Webgrid so strange!

2010-02-02 Thread Carlos Costa
Well, now it´s working again.
The tip you gave was very valuable!

I went to confirm what encoding I have been working with because
recently I have changed from editor and was not sure.
It´s utf8 rightnow but I changed from ascii yesterday.

As it works now, I think that was actually the problem, my editor was
in ascii mode and now is in utf8 (right) mode.
Hope it´s only this.

Thanks, Mr Freeze!


2010/2/2 mr.freeze :
> Hmmm...The error you got was related to encoding:
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position
> 57: ordinal not in range(128)'
> What language are you using?
>
> Can you post some code?
>
> On Feb 1, 1:25 pm, yamandu  wrote:
>> First: I tried to write comment on web2pyslices but it gives me an
>> error.
>>
>> Well, I got webgrid working.
>> Then stopped.
>> I restarted web2py and it worked again.
>> And now it stopped again no matter what I do.
>>
>> The error is the following:
>> NameError: global name 'T' is not defined
>> on line 32:
>> self.messages.confirm_delete = 'Tem certeza?
>>
>> The most strange to me is that I got the same error in the same line
>> even if this line is commented.
>> Is there come bug or it´s a dependency I passed over?
>
> --
> You received this message because you are subscribed to the Google Groups 
> "web2py-users" group.
> To post to this group, send email to web...@googlegroups.com.
> To unsubscribe from this group, send email to 
> web2py+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/web2py?hl=en.
>
>



-- 
yamachine.blogspot.com
A máquina não para!


Ani ben Elshadai!

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.



Re: [web2py] how to change a field type from string to decimal?

2012-04-12 Thread Carlos Costa
The database wont be recreated.
And you could change the field name temporally.

2012/4/12 Carlos :
> Hi,
>
> Is it possible (and how) to change a field type from string to decimal
> without recreating the table?.
>
> There are no records in the table yet, but I would like to know if there's a
> way to accomplish this from web2py (without recreating the database).
>
> The error I get:
>
>  column "xfield__tmp" is of type numeric
> but expression is of type character varying LINE 1: UPDATE xtable SET
> xfield__tmp=xfield; ^ HINT: You will need to rewrite or cast the
> expression.
>
> I'm using latest web2py trunk with postgresql.
>
> Thanks,
>
>    Carlos
>



-- 
Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן


Re: [web2py] Re: Workflow engine for web2py

2012-04-16 Thread Carlos Costa
I think it is.
What are the advantages with this aproach?

Em 16 de abril de 2012 07:44, António Ramos  escreveu:
> I suggest a workflow as a service.
> I have a database where i define all workflows for all databases.
>
> I have something like this way in a Lotus Notes environment.
> I get away with it very nicely. :)
> If i keep control fields in my record
> like,
> readers
> authors
> step
> next step formula
> code to execute in this step
> etc
>
> then i just call the webservice and send my document as a paramenter and get
> a recalculated document.
>
> Is this feasible in web2py?
>
> thank you
>
> António
>
>
>
> 2012/3/1 yamandu 
>>
>> Just one resource I found interesting: http://workflowpatterns.com/
>>
>> Em terça-feira, 7 de fevereiro de 2012 23h58min19s UTC-2, mart escreveu:
>>>
>>> Something to think about if effort is put on this (just a suggestion).
>>> You may want to consider the importance of 'roles' in an implemented
>>> wf engine, since user to role interaction should probably be key in a
>>> wf model (or at least as important as having the ability to move work
>>> items around).
>>>
>>> Just my 2 cents,
>>> Mart
>>>
>>> On Feb 7, 5:35 pm, Richard Vézina  wrote:
>>> > From what I understand you can do just that, but without reinventing
>>> > the
>>> > wheel by designing and implementing your own solution.
>>> >
>>> > Richard
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> > On Tue, Feb 7, 2012 at 5:27 PM, Ross Peoples 
>>> > wrote:
>>> > > I don't know workflow engines in the general sense that well. I once
>>> > > created a full documentation management system where each document
>>> > > couple
>>> > > have a workflow assigned to it. The workflow (predefined, or created
>>> > > on-the-fly) would push the document around from person to person,
>>> > > ensuring
>>> > > that each person completed their step in the time allotted, otherwise
>>> > > an
>>> > > email would get sent to their manager.
>>> >
>>> > > Would a workflow engine allow me to do the same thing, or is this a
>>> > > different type of workflow engine?
>
>



-- 
Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן


Re: [web2py] Re: Free e-book abhout Rest API

2012-04-25 Thread Carlos Costa
So helpful. Thanks.

2012/4/25 Ross Peoples :
> Thanks for the link! I've been looking for good API design resources.



-- 
Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן


Re: [web2py] Looking for a good beginner's guide

2012-04-26 Thread Carlos Costa
I think web2py.com/book can be a good start.

2012/4/26 newbiedev :
> I am a new to programming in general and am looking for an excellent
> beginner's guide to web2py. This is not just for learning the framework, but
> also learning web programming priciples, in general.  In other words, I'm
> not just looking for the "how", but also the "why".
>
> I have experience with HTML/CSS and some novice experience with Python.
>
> I've seen some examples from the "Head First" series for other languages and
> those are pretty close to what I'm looking for.  Does anyone have
> any recommendations?



-- 
Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן


Re: [web2py] Re: CMS question

2012-05-04 Thread Carlos Costa
Sorry, I had not read all the messages neither tested it but I am
interested as I was think on a similar project.
Maybe I am going off topic but my idea was to use the hackasaurus.org
as an user interface editor. It looks fine.
But I am not aware of license issues or integrability.
Has anyone any idea on use it?

2012/5/4 Albert Abril :
> Same for me, but i didn't check the code yet (i'm at work).
>
>
> 2012/5/4 Aurelijus Useckas 
>>
>> I'm sorry if my question is lame, but I seem to get this error on
>> execution: define_tables() got an unexpected keyword argument 'signature'
>>
>> Maybe you could suugest what I'm doing wrong? Many thanx
>>
>>
>> On Friday, May 4, 2012 7:11:20 AM UTC+3, Massimo Di Pierro wrote:
>>>
>>> This is what I have so far.
>>>
>>> https://github.com/mdipierro/w2cms
>>>
>>> requires beautifulsoup
>>>
>>> still requires some work, specifically testing and usability. In order to
>>> edit-in-place you must click on the text then edit it. If you cut and part a
>>> link to you a youtube page, it will embed the video. If you cut and paste a
>>> link to an image, it will embed the image. Same for audio, video, flickr
>>> pages, etc.
>>>
>>> The download of remote pages mostly works but if they use an old version
>>> of jQuery, it may break the page and the ability to edit it.
>>>
>>> If you edit raw html for a page and add a class "editable" to one or more
>>> elements, only those elements will be editable, not the entire page.
>>>
>>> It lack a way to create groups and join groups. It only creates a group
>>> per person (same name as username) and "virtual" group "everybody".
>>>
>>> There are lots of small details which I have not explained because I am
>>> not sure myself this works as I want or that I know how I want it to work.
>>>
>



-- 
Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן


Re: [web2py] An insult to web2py ?

2012-05-05 Thread Carlos Costa
I read it like a manifest of preferences, not like argumentations.
Nothing to worry about.

Em 3 de maio de 2012 08:40, António Ramos  escreveu:
> a person just wrote this about web2py in a portuguese forum
> Anyone care to coment?
>
>
> Viva,
>
> Eu conheci primeiro o web2py e só uns meses depois o Django.
> Ao início achei bastante interessante (a ferramenta de admin, tutorial fácil
> de seguir, etc.). O que me fez saltar do web2py para o django e nunca voltar
> para trás foi, entre outros, o seguinte:
>
> - web2py não tem um ORM, tem uma api OO mas que segue o mesmo paradigma de
> SQL, No fundo, ao fazer .select() / .union() estamos a escrever SQL
> disfarçado. Um bom ORM permite não ter de escrever SQL em 90% dos casos,
> poupando trabalho.
>
> - Os objectos retornados pela camada de persistência do web2py não têm
> classes que façam sentido no domínio (Books, Persons, whatever seja o
> domínio), aquilo retorna umas instâncias de Record (ou lá o que é) que não
> são mais do que dicts. O mapeamento disso para instâncias de classes do
> domínio tem de ser feito à mão.
>
> - A ideia de poder meter python arbitrário no template parece gira mas
> facilmente descamba para ficheiros com python+html+javascript tudo
> entrelaçado e impossível de manter.
>
> - A magia da framework. Se bem me lembro os dados do request actual são
> postos em variáveis globais sem qualquer necessidade (podiam ser passados
> para a view, como no django).
>
> - Os models são executados ( exec() ) a cada pedido. Não há necessidade para
> este overhead.
>
> - Com tantos editores excelentes (emacs,vim,eclipse,vstudio,..),porquê usar
> um editor inferior no browser? Se gastarem tempo a trazer esse editor ao
> nível dos outros, perderam tempo que podia ter sido usado para melhorar
> outras partes da framework.
>
> - A qualidade do código é incomparável. Pequeno exemplo: Lembro-me que o
> núcleo da persistência do web2py na altura era um sql.py com algumas 3000
> linhas, todo martelado com ifs para emitir SQL cozido ou assado consoante a
> BD e, de ver o Massimo* argumentar na mailing list que não era crítico
> melhorar aquela parte.
>
> Para mim, o web2py é bom como uma ferramenta de aprendizagem, nada mais.
>
> Cumprimentos.



-- 
Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן


Re: [web2py] Re: An insult to web2py ?

2012-05-05 Thread Carlos Costa
I take this as opportunity to compliment the DAL.
I have never seen clever way to manipulate data in a relational database.
I am actually addicted to the way it works. I wish could work with
web2py as my primary job.

2012/5/5 Massimo Di Pierro :
> On Saturday, 5 May 2012 10:23:34 UTC-5, Tiago Almeida wrote:
>>
>> Hi,
>> The issue about dal/orm, like Anthony said, there are tradeoffs to
>> consider. In my opinion you loose too much not having an orm to gain very
>> little with the dal. Let me continue my example.
>> In the Deparment/Teacher hypothetical model, you also have assignment of
>> Teachers to Departments. This assignment is very simple (for the sake of
>> brevity) and has the start/end dates of the assignment and the function
>> (just a string) of the Teacher in that Department.
>> You now want, Given the ID of a department list all the assignments of all
>> teachers along with their functions in a cool graphical timeline fashion.
>> It's not about how you get the data. It's about the effort you have
>> implementing this req. and how you organize your code. Do you?
>> a) write your .selects() in the view function
>> b) write a historical_assignments(dep_id) function somewhere that hides
>> the DAL and call it from the view
>> c) write a computed field on the department model
>> d) write a method  historical_assignments() on the class Department
>>
>> To me, the d) option is by far the most elegant. I would have had the
>> Department class created anyway, so it's a matter of sticking a method in
>> there. If I am working with an ORM, by defining the classes, I automagically
>> get the tables defined. Without it, I have to repeat myself, redefining the
>> fields and the fields in the tables and their types, etc. etc. in the
>> persistance layer.
>> What if I didn't define those classes? Then I couldn't contain these kinds
>> of business related operations into a single application layer and they
>> would leak everywhere, for instance in to the views, being much harder to
>> maintain.
>
>
> this is somewhat a religious matter. We do not like to pollute the namespace
> with one class per table. We do not even usually do Department =
> db.define_table(...). We just expose db and access department via
> db.department. Given this preference:
>
> db.departement.historical_assignments = Field.Lazy(lambda departement, date:
> db(db.teacher.departement)(db.teacher.asdate
> seems simpler and clear than to define a class and a method. It does not
> pollute the namespace. In fact web2py does allow to create a VirtualField
> class and map that into table, so that records have fields corresponding to
> methods. We consider it a legacy feature because users prefer the new
> syntax.
> Yet this is kind of a religious issue.
>
>> Regarding the higher  vs different abstraction. A "perfect" persistence
>> layer (if there is such a thing) allows one to actually forget that you have
>> a DB system. I honestly don't care, from the biz point of view, if things
>> are stored in tables in a DB, xml files or sent via the wire to China. I
>> only care that I create my Departments, .save() them and get them later as
>> they were saved .get(id=dep_id).
>
>
> We do not want to "forget" that we have a DB system. One can only forget
> when one builds simple queries. Ifone can only do simple queries than one
> starts to think a relational database is not good enough. We want to make
> sure .select() maps in an SQL SELECT, .insert() into SQL INSERT, etc. We do
> not want to hide database access which can cause performance issues. This is
> a significative difference. We do no need .save() and .get() because they
> are kind of like .insert() and .select() but the mapping is not always as
> clear. Moreover is not very Object Oriented either.
>
>>
>> Do you lose anything with this abstraction? Yes, of course. If you hide
>> that it's a DB you lose, for instance, DB triggers. It's the normal tradeoff
>> in any abstraction. If you use TCP, you get delivery guarantees and peace of
>> mind regarding all the dropped/corrupted packets nonsense while loosing,
>> say, realtime guarantees. Should we stop using TCP because we loose this
>> 'realtimeness'? Of course not.
>> Are there things that you can do with an orm that you can not with adal?
>> No, it's quite the opposite. The dal exposes more details therefore allows
>> you to do more. However, by exposing all these details, you get a tool that
>> is harder to use (in the sense that you have to repeat yourself) for all the
>> other scenarios where you don't need such details. Python is used because no
>> one wants to deal with the nonsense of lower level languanges that arise
>> from exposing too many details (manual memory management, target machine
>> dependency, etc).
>> Lastly, If I am working with an orm and need to implement a really complex
>> query, nothing stops me from going deeper and use the dal or even writing
>> SQL.
>
>
> This is what we do not like. The goal of the DAL is

Re: [web2py] Re: 75€ BOUNTY - Massively Complicated Query Required

2012-05-17 Thread Carlos Costa
I found a way quite simple but It does not include the Relevance columns.

2012/5/17 Andrew 

> If another user has a tag that UserA is looking for, then relevance is +2
> to UserA
> If another user is looking for something UserA has, then relevance is +1
> to UserA
> If another user lives in the same city as UserA and has something they are
> looking for or something to offer then relevance is +1
>
> So, is the third similar to the first, but with a city clause.   Sounds
> like it's a +2 if you have something UserA is looking for, but it's only +1
> if you live in the same city ?
>
> Andrew W
>
>
>
> On Friday, May 18, 2012 4:28:02 AM UTC+12, encompass wrote:
>
>>  I have the event management tool I have been working on for 2 years now
>> and I have made some changes to the code that require my most complicated
>> query to be rebuilt.
>> After thinking about it for several hours I figure I should throw it at
>> you guys to see what you can come up with.
>> The winner of this query will get 75� with paypal or other means after
>> I have it implemented it in the code.
>>
>> I have the following model:
>> model_diagram.png
>> event_attender.py
>> tag.py
>> tag_link.py
>> Description:
>> I am building a list of connections based on relevance by tag.
>> Tags have two states, looking for and attribute.
>> Users attach themselves to these tags with the two attributes.
>> "I am looking for someone with this tag."
>> and/or
>> "This tag is something about me that I want to offer."
>>
>> Now when they do this a list of users will show on the screen.
>>   ID Nickname Tags your looking for that they have Your Relevance
>>  Tags they are looking for that you have Their Relevance Total Relevance
>> Image city  101 encompass Tag1, Tag2, Tag4 3 Tag4, Tag5, Tag 6 3 10
>>  http:// Oulu  102 encompass Tag1, Tag2, Tag4 3 Tag4, Tag 6 3 8
>>  http:// Oulu  150 encompass Tag1, Tag2, Tag4 3 Tag 6 3 7
>>  http:// Helsinki
>> This is build with the following:
>> UserA is the user logged in using the system
>> If another user has a tag that UserA is looking for, then relevance is +2
>> to UserA
>> If another user is looking for something UserA has, then relevance is +1
>> to UserA
>> If another user lives in the same city as UserA and has something they
>> are looking for or something to offer then relevance is +1
>> Does this make sense? I just need to query that will happen.� I can
>> handle the view just fine. Feel free to comment or ask questions.
>> If you can think of a good way to connect people better with the data in
>> the model diagram attached do tell.� I will give you another 25� for
>> that implementation as well. :)
>> ---
>> BR,
>> Jason Brower
>>
>


-- 
Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן


Re: [web2py] Re: 75€ BOUNTY - Massively Complicated Query Required

2012-05-18 Thread Carlos Costa
The answer?

2012/5/18 Jason Brower 

>  This bounty has, thankfully, been solved.  Thank you to all those that
> have participated!  It has saved me so much time!
> BR,
> Jason Brower
>
>
> On 05/17/2012 07:28 PM, Jason Brower wrote:
>
> I have the event management tool I have been working on for 2 years now
> and I have made some changes to the code that require my most complicated
> query to be rebuilt.
> After thinking about it for several hours I figure I should throw it at
> you guys to see what you can come up with.
> The winner of this query will get 75€ with paypal or other means after I
> have it implemented it in the code.
> I have the following model:
> model_diagram.png
> event_attender.py
> tag.py
> tag_link.py
> Description:
> I am building a list of connections based on relevance by tag.
> Tags have two states, looking for and attribute.
> Users attach themselves to these tags with the two attributes.
> "I am looking for someone with this tag."
> and/or
> "This tag is something about me that I want to offer."
>
> Now when they do this a list of users will show on the screen.
>   ID Nickname Tags your looking for that they have Your Relevance
>  Tags they are looking for that you have Their Relevance Total Relevance
> Image city  101 encompass Tag1, Tag2, Tag4 3 Tag4, Tag5, Tag 6 3 10
>  http:// Oulu  102 encompass Tag1, Tag2, Tag4 3 Tag4, Tag 6 3 8
>  http:// Oulu  150 encompass Tag1, Tag2, Tag4 3 Tag 6 3 7
>  http:// Helsinki
> This is build with the following:
> UserA is the user logged in using the system
> If another user has a tag that UserA is looking for, then relevance is +2
> to UserA
> If another user is looking for something UserA has, then relevance is +1
> to UserA
> If another user lives in the same city as UserA and has something they are
> looking for or something to offer then relevance is +1
> Does this make sense? I just need to query that will happen.  I can handle
> the view just fine. Feel free to comment or ask questions.
> If you can think of a good way to connect people better with the data in
> the model diagram attached do tell.  I will give you another 25€ for that
> implementation as well. :)
> ---
> BR,
> Jason Brower
>
>
>


-- 
Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן


Re: [web2py] A web2py BBS in c-hina has been launched, since in c-hina, this web2py group is forbidden.

2012-05-23 Thread Carlos Costa
好的。
Good.

2012/5/23 web2py_lover :
> A web2py BBS in c-hina has been launched, since in c-hina, this web2py group
> is forbidden.
>
> http://web2py.sinaapp.com/
>
>



-- 
Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן


Re: [web2py] Re: creating groups

2013-03-02 Thread Carlos Costa
You can create records and the the auth_group to create a group give a look
at it in the database admin, it is simple.

For example:
form = crud.create(db.auth_group)

with this line you can create a form where the user will insert a record,
so creating a new group.

To put someone in a group simply add a record in auth_membership.
Something like this:
form = crud.crate(db.auth_membership)

User must fill group and the user to add.

For setting preferences you can create another table that references a
group.
Put fields in this table for the preferences.
Something like this.

db.define_table('group_preferences'),
   Field('group',db.auth_group),
   Field('chat'),boolean), .. # other fields as
need
)

To verify if a user can chat with another you can do something like this:

can_chat = db(db.auth_group.user==userid_to_chat &&
db.group_preferences.group==db.auth_group.id &&
db.group_preferences.chat).select()
if len(can_chat) > 0:
  # if you got some record in the query the you can chat
























2013/3/2 sasogeek 

> Help...
>
>  --
>
> ---
> 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 more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Att.

Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן

-- 

--- 
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 more options, visit https://groups.google.com/groups/opt_out.




Re: [web2py] Doubt in the example provided on web2py manual page 98

2013-03-14 Thread Carlos Costa
Probably you are confused because of this code present in index.html:

{{elif 'content' in globals():}}
{{=content}}
{{else:}}
{{=BEAUTIFY(response._vars)}}
{{pass}}

If theres no content it renders the BEAUTIFY(response._vars) just like the
generic view, so its not the generic view being rendered but a similar view.



2013/3/14 Sarbjit singh 

> In the 5th edition of web2py manual, for the example of images app, I have
> one doubt :-
>
> As per that app code, we create db in models (db.py) and then we write
> some code in controller (default.py) as :-
>
> def index():
>images = db().select(db.image.ALL, orderby=db.image.title)
>return dict(images=images)
>
> In the documentation it is written :-
>
> If you do not write a view, the dictionary is rendered by
> "views/generic.html" and a call to the index action would look like this:
>
> It seems to work like this only but my question is when we create a new
> app as specified in the manual. default/index.html is already present
> (index name is same as my function name in default.py), then why
> generics.html is being used and not index.html which is already present. In
> first example, index.html is seemed to be used.
>
> Thanks
> Sarbjit
>
> --
>
> ---
> 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 more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Att.

Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן

-- 

--- 
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 more options, visit https://groups.google.com/groups/opt_out.




Re: [web2py] REF: SQLFORM.grid: Determine when a new record is added

2013-03-14 Thread Carlos Costa
Check oncreate argument.


2013/3/14 Teddy Nyambe 

> I want to add logic when a user clicks on submit to add a new record using
> the SQLFORM.grid, I would like to do something. I have checked the vars and
> args there is nothing to indicate this only when a form is requested for
> add, edit, view...
>
> --
>
> ...
> Teddy Lubasi Nyambe
> Opensource Zambia
> Lusaka, ZAMBIA
>
> Cell: +260 97 7760473
> website: http://www.opensource.org.zm
>
> ~/
> Human Knowledge belongs to the world! - AntiTrust
>
> Man is a tool-using animal. Without tools he is nothing, with tools he is
> all - Thomas Carlyle 1795-1881
>
> /~
>
> --
>
> ---
> 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 more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Att.

Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן

-- 

--- 
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 more options, visit https://groups.google.com/groups/opt_out.




Re: [web2py] refresh div in a html page (web2py)

2012-12-18 Thread Carlos Costa
What you get when you access the test2.html url in the browser?
Maybe the url is wrong.
Try to inspect using firebug in error console.


2012/12/18 yn yn 

> Hi I am starting using web2py. I have a page web Test.html in view with a
> div: . On the other hand, I have a page web in the same folder: Test2.html
> with some code in python:
>
> {{items = ['a', 'b', 'c']}}{{i=1}}{{for item in items:}}
> 
> SOME CONTENT
> {{i=i+1}}{{pass}}
>
> How can I do to put the Test2.html content in the div IDtest? any example?
> Thanks. The goal is to learn how to insert a dynamic table in IDtest. I
> mean, I would refresh the IDtest content afther pushing a button for
> example
>
> LAST TEST: I have tested
>
>  type="text/javascript"> ... and then 

Re: [web2py] formatting time string during field update

2012-12-18 Thread Carlos Costa
In web2py_ajax.html there is the format that is used for jquery, try that.


2012/12/18 marino segnan 

> Hello,
>
> I am a beginner with web2py and I have this apparently simple problem.
> I have a db table:
>
>   db.define_table('tappe',
>Field('ora','time',requires=IS_TIME('%H:%M'))
> )
>
> I would like to display the time in  all the forms
> always in the same format as the validator, foe example '12:13'
> but:
>
> 1)  I tried represent(..) and works only in crud.read(..);
>crud.update(..) ignores it
>
> 2) I tried using SQLFORM(..) and changed the variable value, eg.
>
>  form.vars.ora = row.ora.strftime('%H:%M')
>
>  and the string is temporarily formatted as requested,
>  but when I edit it, it changes again to ' %H:%M:%S'
>
> What am I missing?
> What is the recommended solution?
>
> Thanks in advance.
>
> --
>
>
>
>



-- 
Att.

Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן

-- 





Re: [web2py] Re: Deploying on windows - login works locally but not remotely

2012-02-02 Thread Carlos Costa
I think their purpose is for prototyping.

2012/2/2 Jim Steil :
> You are good!
>
> Is this done because of a security concern?  Would 'best practice' dictate
> that I not use the generic views.
>
>     -Jim
>
>
> On 2/2/2012 12:14 PM, Anthony wrote:
>
> Do you have an actual /views/default/user.html view, or are you relying on
> generic.html to show the login form? If the latter, not that by default, the
> 'welcome' app only enables generic views for local requests.
>
> Anthony
>
> On Thursday, February 2, 2012 1:04:43 PM UTC-5, Jim S wrote:
>>
>> Hi
>>
>> I have an app that I'm deploying on a different windows box on our
>> internal network.  I can connect to the app from a browser on that server
>> without any problems.  I can login with no problems and do what I want.
>>
>> When I go to a remote machine to connect to it, I can connect just fine
>> and navigate around until I hit a page that requires me to login.  Instead
>> of getting the login page, I get:
>>
>> invalid view (default/user.html)
>>
>> Works fine if I'm browsing from the local machine, but fails on any remote
>> machine.
>>
>> Thoughts?
>>
>>     -Jim
>>
>



-- 
Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן


Re: [web2py] Error writing an auth_event

2012-02-02 Thread Carlos Costa
Hard to guess withou the model, but looks like its related to the
membership.

2012/2/2 pbreit 

> My code is erroring and it looks like the culprit is the logging of an
> auth_event. It's happening on a lightly customized auth_user Profile update.
>
>
>
> Traceback (most recent call last):
>   File "/opt/web2py/gluon/restricted.py", line 204, in restricted
> exec ccode in environment
>   File "/opt/web2py/applications/init/controllers/default.py" 
> , line 133, in 
> 
>   File "/opt/web2py/gluon/globals.py", line 172, in 
> self._caller = lambda f: f()
>   File "/opt/web2py/applications/init/controllers/default.py" 
> , line 85, in 
> user
> form = auth()
>   File "/opt/web2py/gluon/tools.py", line 1159, in __call__
> return getattr(self,args[0])()
>   File "/opt/web2py/gluon/tools.py", line 2431, in profile
> onvalidation=onvalidation, hideerror=self.settings.hideerror):
>   File "/opt/web2py/gluon/sqlhtml.py", line 1088, in accepts
> hideerror=hideerror,
>   File "/opt/web2py/gluon/html.py", line 1807, in accepts
> status = self._traverse(status,hideerror)
>   File "/opt/web2py/gluon/html.py", line 749, in _traverse
> newstatus = c._traverse(status,hideerror) and newstatus
>   File "/opt/web2py/gluon/html.py", line 749, in _traverse
> newstatus = c._traverse(status,hideerror) and newstatus
>   File "/opt/web2py/gluon/html.py", line 749, in _traverse
> newstatus = c._traverse(status,hideerror) and newstatus
>   File "/opt/web2py/gluon/html.py", line 749, in _traverse
> newstatus = c._traverse(status,hideerror) and newstatus
>   File "/opt/web2py/gluon/html.py", line 756, in _traverse
> newstatus = self._validate()
>   File "/opt/web2py/gluon/html.py", line 1572, in _validate
> (value, errors) = validator(value)
>   File "/opt/web2py/gluon/validators.py", line 549, in __call__
> elif str(rows[0]._id) != str(self.record_id):
>   File "/opt/web2py/gluon/dal.py", line 5459, in __getattr__
> return self[key]
>   File "/opt/web2py/gluon/dal.py", line 5450, in __getitem__
> return dict.__getitem__(self, key)
> KeyError: '_id'
>
>
>
> Function argument list
>
> (self= }>, key='_id')
> Code listing
>
> 5445.
> 5446.
> 5447.
> 5448.
> 5449.
> 5450.
>
> 5451.
> 5452.
> 5453.
> 5454.
>
> elif m:
> try:
> return dict.__getitem__(self, m.group(1))[m.group(2)]
> except (KeyError,TypeError):
> key = m.group(2)
> return dict.__getitem__(self, key)
>
>
> def __call__(self,key):
> return self.__getitem__(key)
>
> Variablesself 0x2...embership': }>dict.__getitem__ '__getitem__' of 'dict' objects>builtindictkey'_id'
>



-- 
Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן


Re: [web2py] Error writing an auth_event

2012-02-02 Thread Carlos Costa
Looking the code above, elif is hit when len(rows) = 0.
So I am stuck here, how could it retrive any value if the lenght is zero?
Must look this whole code to understand it.

2012/2/2 pbreit 

> I'm not really using memberships and I have auto group creation turned off:
>
> auth.settings.create_user_groups = False
>
> It works OK in my dev environment so it has something to do with my
> production data.
>
> One thing I noticed is that it looks like it might be trying to validate
> NOT_IN_DB. Since it's a Profile update, it should certainly account for the
> current auth_user's email already being in the DB.
>
>
>
> *File /opt/web2py/gluon/validators.py in __call__ at line 549* code
> arguments variables
> Function argument list
>
> (self=, value='pb@com')
> Code listing
>
> 544.
> 545.
> 546.
> 547.
> 548.
> 549.
>
> 550.
> 551.
> 552.
> 553.
>
> if len(rows) > 0:
> if isinstance(self.record_id, dict):
> for f in self.record_id:
> if str(getattr(rows[0], f)) != str(self.record_id[f]):
> return (value, translate(self.error_message))
>
> elif str(rows[0]._id) != str(self.record_id):
>
> return (value, translate(self.error_message))
> return (value, None)
>
>


-- 
Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן


Re: [web2py] newbie : Accessing specific form elements' values from a controller.

2012-02-04 Thread Carlos Costa
I think you can do like this:

if request.vars:
   use request.vars.varname to access values
else:
  return .

Since you point your form to the right actions the all the vars will
be there when you submit.
When you dont submit they will not be there.

2012/2/4 Salvation :
> Hi!
>    I have a html form in my default view. I don't want to create form
> elements from my controller, but use pure HTML where possible. How can
> I
> 1. Access the form elements, and their values into my controller, say
> default.py. (something like GetElementById )
> 2. Detect if the form has been submitted, so that I can use the values
> I Accessed.
>
> I went through many questions here, but couldn't work it out.
>
> My View:
>
> 
>     Search Videos
>         
>               id="searchKeyword" class="xlarge">
>         
>
>         
>                  Search button>
>          
> 
>
> My Controller:
>
> def index():
> #    is form submitted ?
> #    if Yes
> #        Access the form
> #        get the value inside the searchKeyword text box
> #        Use it elsewhere
> #    else
> #        display the form and wait
>
> I have a feeling that this is not the correct approach. Please feel
> free to point me in the right direction.
>
> Thank You.



-- 
Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן


Re: [web2py] newbie question about relationships in model

2012-02-04 Thread Carlos Costa
Is t_winery being created after this line?

2012/2/4 air_cooled :
> I've created a model in the GAE SQL tool - which was great, except it
> didn't work in web2py.  I just got errors.
>
> So I created a model from the wizard to get going, but I've got some
> strange behaviour around relationships.
>
> I have a table 'labels' which is linked to a number of other tables.
> A couple of these links work as you'd expect - in the edit screen you
> see a drop list of the 'name' field from the relate table.  For some
> reason I can't fathom ONE of these tables ('winery') shows a text
> field into which the ID of the related record has to be added.  That
> related table 'winery' is similar to the others that do work 'variety'
> and 'retailcategory', and has a 'name' field with the same data type
> as the others.  These relationships are modelled:
>
>    Field('f_retailcategory', type='reference t_retailcategory',
>          label=T('Retailcategory')),
>    Field('f_winery', type='reference t_winery',
>          label=T('Winery')),
> On searching the syntax is suggested as:
>
>    Field('f_winery_id', db.winery),
>
> or
>
>
>    Field('f_winery_id', db.t_winery)
>
> However adding these lines just causes it to blow up and show the
> error:
>  'winery'
>
> This is all a bit arcane.  I can't understand why the GAE stuff
> does'nt work after fixing all the parsing errors.
> I've used PHP Cake a bit, so I get the concepts, but at this stage it
> seems the documentation != practice.
>
> Any tips?
> thanks
>
>
>



-- 
Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן


Re: [web2py] Re: lungo.js

2012-02-05 Thread Carlos Costa
+1

2012/2/5 Oli :
> we should have a mobile solution for web2py "out of the box". Would this be
> possible?



-- 
Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן


Re: [web2py] how to display data

2012-02-08 Thread Carlos Costa
First select the data you want to display

#select all records with all fields
articles = db(db.articles).select()

Second, pass it to the view
return dict(articles=articles)

Third, render it in the view inde.html
{{=articles}}

Note: this is the most basic data displaying with Web2py, you will
need to increment funcionality and design.



2012/2/8 Praveen Bhat :
> Hello,
>
> I have 2 controllers Index and articles, how do I display data from defined
> in articles in Index controller?
>
>
> Regards,
> Praveen



-- 
Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן


Re: [web2py] Re: I would like to learn Web2py but where do I start?

2012-02-24 Thread Carlos Costa
Massimo is a nice guy!

2012/2/24 newbie :
> Thank you all so much for your responses and recommendations.  I will
> give those a try.  Massimo, keep up the great work and thank you for
> taking the time to help.  I look forward to the video tutorial.
>
> On Feb 23, 10:20 pm, pbreit  wrote:
>> W3schools is perfectly fine. That fools thing is a little overblown.



-- 
Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן


Re: [web2py] How to use XML data

2012-03-05 Thread Carlos Costa
You can do something like in http://web2py.com/books/default/chapter/29/5 :
Parsing

The TAG object is also an XML/HTML parser. It can read text and
convert into a tree structure of helpers. This allows manipulation
using the API above:
>>> html = 'Titlethis is a test'
>>> parsed_html = TAG(html)
>>> parsed_html.element('span')[0]='TEST'
>>> print parsed_html
Titlethis is a TEST

2012/3/5 Praveen Bhat :
> Hello,
>
> I am using http://worldweatheronline.com API to display weather info. The
> API returns the data in XML format.
>
> How can i render the same in a HTML page in Web2py.
>
> Link for accessing the API Data:
>
> Weather API
>
> I have done the same in PHP as following:
>
>  $xml =
> simplexml_load_file('http://free.worldweatheronline.com/feed/weather.ashx?q=udupi&format=xml&num_of_days=5&key=b019cd7d6a135850110711');
> $current = $xml->xpath("/data/current_condition");
> ?>
>
> 
> Weather :
> temp_C ?>° C,
> weatherDesc ?>
> 
>
> How can I do the same in web2py?
>
>
> Regards,
> Praveen
>



-- 
Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן


Re: [web2py] Weird behavior of decimal stored in session.

2012-03-05 Thread Carlos Costa
I dont know why but you can fix it explicitly using Decimal.
http://docs.python.org/library/decimal.html#module-decimal

2012/3/5 Francisco :
> Hi everyone. I just came across a weird behavior and I'm wondering if it's
> some kind of bug or just my fault.
>
> I have a model for a product like this:
>
> db.define_table('products',
>     Field('name',length=128, notnull=True),
>     Field('sale_price',type='decimal(14,4)',default=0, notnull=True))
>
> Now when the user adds a product to the cart I'm storing the row for the
> product in a dictionary in the session like this:
>
> session.cart[product.id] = product
>
> finally the view that displays it lets you pick among several payment
> options and based on the option it multiplies the price by another number
> like this:
>
> {{=session.cart[id].sale_price * session.payment_factor}}
>
> Both sale price and payment factor are store in DB as decimal(14,4). The
> first time the code is run the view executes correctly. But when you add
> another product to the cart, or modify any other thing that requires a
> reload or repost of the page I get an error like this:
>
> TypeError: unsupported operand type(s) for *: 'float' and 'Decimal'
>
>
> So what is happening is that after the first time my variable which is store
> in the session and that should be treated like a Decimal is being returned
> as a float. This is happening in the development environment with SQLite, I
> have not tested this yet under MySQL. I think it is caused by the fact that
> SQLite stores decimals as float, buy I wonder why does the first time it is
> transformed to Decimal, and then just used as a float? And I wonder if I
> must manually converted them to Decimal every time I use this variables.
>
> Hope someone can help.



-- 
Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן


Re: [web2py] How to use XML data

2012-03-06 Thread Carlos Costa
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 :
> 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 the following code:
>
> Controller:
>
> def index():
> import urllib2
> temp =
> urllib2.urlopen('http://free.worldweatheronline.com/feed/weather.ashx?q=udupi&format=xml&num_of_days=2&key=b019cd7d6a135850110711')
> tempdata = temp.read()
> parseddata = XML(tempdata).xml()
> return dict(parseddata = parseddata)
>
> View:
>
>
> {{ for parseddata in parseddata: }}
>
> {{=XML(parseddata)}}
>
> {{pass}}
>
> I am missing something here. Could you please help.
>
> Regards
>
>
> On Monday, March 5, 2012 10:14:46 PM UTC+5:30, yamandu wrote:
>>
>> You can do something like in http://web2py.com/books/default/chapter/29/5
>> :
>> Parsing
>>
>> The TAG object is also an XML/HTML parser. It can read text and
>> convert into a tree structure of helpers. This allows manipulation
>> using the API above:
>> >>> html = 'Titlethis is a test'
>> >>> parsed_html = TAG(html)
>> >>> parsed_html.element('span')[0]='TEST'
>> >>> print parsed_html
>> Titlethis is a TEST
>>
>> 2012/3/5 Praveen Bhat :
>> > Hello,
>> >
>> > I am using http://worldweatheronline.com API to display weather info.
>> > The
>> > API returns the data in XML format.
>> >
>> > How can i render the same in a HTML page in Web2py.
>> >
>> > Link for accessing the API Data:
>> >
>> > Weather API
>> >
>> > I have done the same in PHP as following:
>> >
>> > > > $xml =
>> >
>> > simplexml_load_file('http://free.worldweatheronline.com/feed/weather.ashx?q=udupi&format=xml&num_of_days=5&key=b019cd7d6a135850110711');
>> > $current = $xml->xpath("/data/current_condition");
>> > ?>
>> >
>> > 
>> > Weather :
>> > temp_C ?>° C,
>> > weatherDesc ?>
>> > 
>> >
>> > How can I do the same in web2py?
>> >
>> >
>> > Regards,
>> > Praveen
>> >
>>
>> --
>> Carlos J. Costa
>> Cientista da Computação
>> Esp. Gestão em Telecom
>>
>> EL MELECH NEEMAN!
>> אָמֵן



-- 
Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן


Re: [web2py] view with 2 forms

2012-03-06 Thread Carlos Costa
You will need to pass the post ID in the url or var or something.
And I think you want to show comments related to the post not another posts.

comments = db(db.comment.id=request.args(0)).select()

Pass this to the view.

2012/3/6 Ale :
> Good morning everyone. I am making a simple application, but I'm running
> into some doubt. I wanted to do something like thefacebook posts .. Where I
> have a site that I put a post, listed below are all posts with the option
> to comment on them. So far so good .. But how to write the data's
> comment in a post post correct? Attached I am sending the screen of my
> application, I think it is easier to visualize
> what I wanted. Transmission also Model / View / Controller. If you can help
> me will be grateful.
>
> I'd have to get the id of the post via ajax?
>
> My model:
>
> Post = db.define_table('post',
>     Field('title'),
>     Field('post'),
>     format="%(title)s"
>     )
>
> Comment = db.define_table('comment',
>     Field('post', 'reference post'),
>     Field('comment')
>     )
>
> My Controller
>
> def index():
>     form = SQLFORM(Post,
>                     formstyle="divs",
>                     submit_button="Postar").process()
>
>     form2 = SQLFORM.factory(
>                     Field('comment', requires=IS_NOT_EMPTY()),
>                     formstyle="divs",
>                     submit_button="Comentar")
>     if form2.process().accepted:
>         print request.vars
>         print request.args
>         response.flash = 'form accepted'
>     elif form2.errors:
>         response.flash = 'form has errors'
>     else:
>         response.flash = 'please fill out the form'
>
>
>     posts = db().select(Post.ALL)
>     return dict(form=form, form2=form2, posts=posts)
>
>
> my view:
>
> 
>     {{=form.custom.begin}}
>         Title
>         {{=form.custom.widget.title}}
>         Post
>         {{=form.custom.widget.post}}
>         {{=form.custom.submit}}
>     {{=form.custom.end}}
> 
> 
>     {{for post in posts:}}
>         
>             {{=post.post}}
>             {{=post.id}}
>             
>                 {{=form2.custom.begin}}
>                     {{=form2.custom.widget.comment}}
>                     {{=form2.custom.submit}}
>                 {{=form2.custom.end}}
>             
>         
>     {{pass}}
> 



-- 
Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן


Re: [web2py] fit image to shape

2012-03-06 Thread Carlos Costa
You will need an extra library to accomplish this, like PIL
http://www.pythonware.com/products/pil/

2012/3/6 mwk :
> I would like to have an uploaded image displayed inside a specific
> shape.  For instance, I would like to have an uploaded image fill a
> circle or fill an octagon shape, or other shape.  How can I accomplish
> that with We2py?
>
> Thanks
> Mark



-- 
Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן


Re: [web2py] Update query failing on GAE

2012-03-06 Thread Carlos Costa
Looks its a timeout.
Maybe I am wrong but you can state an update too many records. GAE has
time limitations, I dont know how much because I dont use it anymore.
Search for the GAE docs on these limitations.

2012/3/6 Sushant Taneja :
> Hi All,
>
> I am building a invite module.
> In the controller, I have the following code :
>
> try:
>  some initial stuff
>
>    try:
>
>        ... some stuff
>
>        update_request_query = (db.INVITE_SIGNUP.email_id ==
> request_email_id)
>
>  db(update_request_query).update(activation_key=key,activation_url=activation_url)
>
>         ... some other stuff
>
>    except (Timeout,TransactionFailedError,InternalError), derr:
>                     logger.warn('Datastore exception for ID: '+
> request_email_id +': '+ str(derr))
> except (Error, Exception), ex:
>             logger.error('Fatal Error: '+ request_email_id +': '+ str(ex))
>
> The problem is that the update statement is not working on GAE. The fields
> which need to be updated are NULL and no error is thrown.
> From my observation, this is happening once a day approx around the time
> when daily quota is reset.
>
> Am I doing something wrong here ?
>
> Thanks,
> Sushant
>
>



-- 
Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן


Re: [web2py] Update query failing on GAE

2012-03-06 Thread Carlos Costa
I dont know, but have you examined the GAE log?

2012/3/6 Sushant Taneja :
> Hi,
>
> I thought the same but as you can see I have handled the Timeout exception
> in the code.
> If its the Timeout then why I am unable to catch the exception ?
>
> On Tuesday, March 6, 2012 7:30:38 PM UTC+5:30, yamandu wrote:
>>
>> Looks its a timeout.
>> Maybe I am wrong but you can state an update too many records. GAE has
>> time limitations, I dont know how much because I dont use it anymore.
>> Search for the GAE docs on these limitations.
>>
>> 2012/3/6 Sushant Taneja :
>> > Hi All,
>> >
>> > I am building a invite module.
>> > In the controller, I have the following code :
>> >
>> > try:
>> >  some initial stuff
>> >
>> >    try:
>> >
>> >        ... some stuff
>> >
>> >        update_request_query = (db.INVITE_SIGNUP.email_id ==
>> > request_email_id)
>> >
>> >
>> >  db(update_request_query).update(activation_key=key,activation_url=activation_url)
>> >
>> >         ... some other stuff
>> >
>> >    except (Timeout,TransactionFailedError,InternalError), derr:
>> >                     logger.warn('Datastore exception for ID: '+
>> > request_email_id +': '+ str(derr))
>> > except (Error, Exception), ex:
>> >             logger.error('Fatal Error: '+ request_email_id +': '+
>> > str(ex))
>> >
>> > The problem is that the update statement is not working on GAE. The
>> > fields
>> > which need to be updated are NULL and no error is thrown.
>> > From my observation, this is happening once a day approx around the time
>> > when daily quota is reset.
>> >
>> > Am I doing something wrong here ?
>> >
>> > Thanks,
>> > Sushant
>> >
>> >
>>
>> --
>> Carlos J. Costa
>> Cientista da Computação
>> Esp. Gestão em Telecom
>>
>> EL MELECH NEEMAN!
>> אָמֵן



-- 
Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן


Re: [web2py] Dynamic IS_IN_DB

2013-05-02 Thread Carlos Costa
You may try something like this:

for id in id_list:
 query = query | (db.asset_class.id == id)
requires = IS_IN_DB(query,..)


2013/5/2 Domagoj Kovač 

> Hi,
>
> i want to have dynamic query in my IS_IN_DB validator:
> requires = IS_IN_DB(db((db.asset_class.id == 10) |
>(db.asset_class.id == 9) |
>(db.asset_class.id == 7)), 'asset_class.id',
> '%(name)s', zero=T("-- Odaberite --"))
>
> I want to have query like this but, right now my values are hardcoded, how
> can i generate something like (db.asset_class.id == 10) | (db.asset_class.
> id == 9) | (db.asset_class.id == 7)
>
> Lets say that i have a list of ids in available_classes = db(
> db.asset_class.id > 0).select()
>
> --
>
> ---
> 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 more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Att.

Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן

-- 

--- 
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 more options, visit https://groups.google.com/groups/opt_out.




Re: [web2py] form.custom in modal window

2013-05-17 Thread Carlos Costa
Have you tested it without modal?
Just hit the url for mailVcard.load and make shure it works.
If if works you may have to debug the javascript using firebug for example.


2013/5/16 Annet 

> I have the following link to open a view in a modal window:
>
>
>  src="{{=URL('static','img/icons/vCard.png')}}" alt="" width="48px"
> height="48px" />
>
> 
>   {{=LOAD('vcard','mailVcard.load', args=node.id, ajax=True,
> ajax_trap=True)}}
>  
>
>
> This is the mailVcard.load view:
>
>
> 
>aria-hidden="true">×
>   {{=response.bannerHeader}}
>  
> 
>class="form-horizontal">
> 
>   
> {{=form.custom.widget.replyTo}}
>
>  
> 
>   
> {{=form.custom.widget.to}}
>
>  
>  
> 
>   
> 
>   {{=form.custom.submit}}
>style="margin-right: 125px;">Sluit
>   {{=form.custom.end}}
>  
>
>  
>
> When I click the submit button, nothing happens. What in Bootstrap modal
> is the cause of this problem,
> what is the easiest way to solve it?
>
>
> Regards,
>
> Annet
>
>  --
>
> ---
> 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 more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Att.

Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן

-- 

--- 
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 more options, visit https://groups.google.com/groups/opt_out.




Re: [web2py] How to run web2py on Linux Shared Hosting With No Shell, or SSH access

2013-05-17 Thread Carlos Costa
Have you asked your host for SSH access?
I have used hostgator, I have to ask then to grant me SSH access, and even
with this is a pain to make web2py run there.
If they dont give it anyway, consider change the host, give a try at
pythonanywhere.com, you should install web2py with one click.


2013/5/16 Neeraj Kumar 

> Hi,
>
> I am trying to deploy Web2Py on my linux shared hosting with
> siliconhouse.net.
>
> Python runs on their system, able to run HelloWorld.py
>
> But when i unzipped the files on my public_html folder(with 755 permission
> on *.py files), instead of running it, it shows me listing of all files
> including *.py files.
>
> I am not sure what the problem is? If i click on any *.py files, it shows
> me 500-Internal Server Error 500.
>
> I have no shell or SSH access, is there a simple and easy way for me to be
> able to run web2py on this.
>
> They are using mod_python, and i can not deploy mod_wsgi. Is there any
> alternate, or is there something i can do my editable area i.e. inside
> public_html/..., so that when open my site i should be able to see running
> web2py application of my choice?
>
> I shall be highly thankful for any assistance on this.
>
> Regards,
> Neeraj Kumar
>
>
>
> --
>
> ---
> 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 more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Att.

Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן

-- 

--- 
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 more options, visit https://groups.google.com/groups/opt_out.




Re: [web2py] Avoiding extra quries when using DAL

2013-06-04 Thread Carlos Costa
Maybe something like that.
You could do the query and save it as a dict and work on it.

result = db(db.table2.id > 0).select().as_dict()
retVal = [entity.name for entity in result]


2013/6/4 guruyaya 

> Lets examine this code for a sec:
> db.define_table('table1',Field('name'))
> db.define_table('table2',Field('table1', db.table1), Field('name2'))
>
> Now, if I need a list of all table2 entries, but not the table1 entries,
> I'll do something like this:
>
> retVal = []
> for entity in db(db.table2.id > 0).select():
> retVal += entity.name2
>
> BUT
> As you well know, web2py acctuall did ask for table1 info, just in case
> I'll do this:
>
> retVal = []
> for entity in db(db.table2.id > 0).select():
> retVal += entity.table1.name
>
> On a normal hosting, it doesn't matter that much, but on GAE, it does an
> extra query to the datastore, and that's just a waste.
> Is there a way to avoid that?
>
> Thanks in advance
> Yair
>
> --
>
> ---
> 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 more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Att.

Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן

-- 

--- 
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 more options, visit https://groups.google.com/groups/opt_out.




Re: [web2py] Re: Avoiding extra quries when using DAL

2013-06-04 Thread Carlos Costa
Hum, I forgot the problem has two tables. Nice!


2013/6/4 Massimo Di Pierro 

> I would replace
>
> retVal = []
> for entity in db(db.table2.id > 0).select():
> retVal += entity.table1.name
>
> with
>
> table1_map = db(db.table2 ).select().as_dict()
> retVal = [table1_map[entity.table1].name  for
> entity in db(db.table2 ).select()]
>
> It will loads all records from table1 in ram but your code does it too.
> Two queries instead of many.
> select().as_dict() creates a dict where the key is the id and the value is
> the record.
>
> On Tuesday, 4 June 2013 04:25:06 UTC-5, guruyaya wrote:
>>
>> Lets examine this code for a sec:
>> db.define_table('table1',**Field('name'))
>> db.define_table('table2',**Field('table1', db.table1), Field('name2'))
>>
>> Now, if I need a list of all table2 entries, but not the table1 entries,
>> I'll do something like this:
>>
>> retVal = []
>> for entity in db(db.table2.id > 0).select():
>> retVal += entity.name2
>>
>> BUT
>> As you well know, web2py acctuall did ask for table1 info, just in case
>> I'll do this:
>>
>> retVal = []
>> for entity in db(db.table2.id > 0).select():
>> retVal += entity.table1.name
>>
>> On a normal hosting, it doesn't matter that much, but on GAE, it does an
>> extra query to the datastore, and that's just a waste.
>> Is there a way to avoid that?
>>
>> Thanks in advance
>> Yair
>>
>  --
>
> ---
> 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 more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Att.

Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן

-- 

--- 
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 more options, visit https://groups.google.com/groups/opt_out.




Re: [web2py] Fun with Scheduler

2013-06-05 Thread Carlos Costa
Very good idea. I have not learned to use scheduler yet.
This would be very useful, I think.


2013/6/5 Joe Barnhart 

> I think the web2py scheduler is the most amazing thing ever added to the
> platform.  It is truly a wonder in that it works so well and has such a
> clean design.
>
> I was trying to improve it in the most minor way -- I wanted to create a
> decorator that causes a function to be submitted to the scheduler instead
> of being executed directly.  That way I could easily switch from background
> to foreground processing by commenting out the decorator, or add new
> functions to the scheduler by adding the decorator.  Here's what I came up
> with:
>
>
> def scheduled(name="Scheduled",timeout=60):
> def wrap(f):
> def new_f(*a):
> current.db.scheduler_task.insert(
> task_name=name,
> function_name=f.__name__,
> args='"%s"'%str(list(a)),
> timeout=timeout)
> return new_f
> return wrap
>
>
> In this decorator, I only passed two variables to the scheduler --
> task_name and timeout.  The heck of it is, I think the decorator is working
> except I'm running into a conceptual problem with the scheduler in
> general.  Using it I can create a new scheduled task:
>
>
> @scheduled(name='import_times')
> def import_cl2times(fid):
> from ssobjects import SsMessage
> from ssimporter import SsImportTimes
> if fid:
> fname=current.db.fileobject(fid).get('filename')
> SsImportTimes.cl2read(fid)
> msg=SsMessage(subject="Meet results",message="File import of meet
> results %s is complete."%fname)
> msg.send()
> return
>
>
> This code lives in a module and is called by the scheduler.  Or maybe
> isn't.  I seem to be having module/controller/model difficulty at the
> moment.
>
> I have much of my functionality in modules, to permit the speed of
> compiled code in my rather large and growing website.  I would like to call
> the decorator from either the context of the models, or from tasks already
> running in the background, in a module.  Yes, I have background tasks which
> schedule other background tasks.  Have I mentioned how much I love the
> scheduler??!?
>
> I can't seem to get the various imports right to have the scheduler
> actually be able to run a bit of code in a module.  i had it working at one
> point when the scheduler and all of its background tasks were in the model
> file.  But I couldn't schedule tasks from a module since the module can't
> see the model's context.  But now that everything is in modules, the
> scheduler can't seem to find the code to run it.
>
> Any help is appreciated.
>
>
>  --
>
> ---
> 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 more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Att.

Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן

-- 

--- 
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 more options, visit https://groups.google.com/groups/opt_out.




Re: [web2py] Re: How do you use web2py app work with phonegap?

2016-03-21 Thread Carlos Costa
I am using cordova and bootstrap for rapid prototyping.
Next I will change it to static pages interacting via json webservices.

2016-03-21 7:23 GMT-03:00 eric cuver :

> ok thank you i'll check
>
>
> Le dimanche 20 mars 2016 21:24:05 UTC+1, pbreit a écrit :
>>
>> Ionic is free. But it does use Angular.
>>
>> You can't just "use a CSS framework" as mentioned above. You need a
>> framework that can manage data and interactions with server.
>>
>> Maybe look at Onsen or F7?
>>
>>
>> https://www.airpair.com/ionic-framework/posts/hybrid-apps-ionic-famous-f7-onsen
>>
>>
>>
>> On Sunday, March 20, 2016 at 12:14:14 PM UTC-7, eric cuver wrote:
>>>
>>> Ionic it pays I believe? and  I do not like angular
>>>
>>> Le dimanche 20 mars 2016 05:05:09 UTC+1, pbreit a écrit :

 Ionic is a good choice.

 As mentioned, Web2py will run on your server and mostly deliver and
 receive JSON to/from the mobile app.


 On Saturday, March 19, 2016 at 3:12:42 AM UTC-7, eric cuver wrote:
>
> hi Leonel,
>
> which client (boostrap, jquery mobile, ionic.)  for design with
> phonegap advises you ?
>
>
> Le vendredi 18 mars 2016 18:41:22 UTC+1, Leonel Câmara a écrit :
>>
>> I'm sorry but you show fundamental misconceptions about what phonegap
>> does, what web2py does, how they run in the devices and server, and about
>> how they can and should interact.
>>
>> Your questions don't even make sense. I can't help you until you know
>> more about web2py, phonegap, what REST APIs are and how do you access 
>> them
>> using javascript.
>>
> --
> 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 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 more options, visit https://groups.google.com/d/optout.
>



-- 


Carlos J. Costa
Cientista da Computação  | BS Computer Science
Esp. Gestão em Telecom   | PgC Telecom Mangement
<º))><

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] Can I do INSERT INTO statement with DAL syntax ?

2018-10-16 Thread Carlos Costa
I think it is not possible yet.
If you don't care about performance, in this case you can do it by code.
But if you care, use db.executesql...

Em sex, 12 de out de 2018 às 12:44, icodk  escreveu:

> something like :
>
> INSERT INTO Customers (CustomerName, City, Country)
> SELECT SupplierName, City, Country FROM Suppliers
> WHERE Country=1;
>
>
> --
> 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 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 more options, visit https://groups.google.com/d/optout.
>


-- 
At.

Carlos J. Costa
--
Cientista da Computação - Esp. Gestão em Telecom

-- 
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 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 more options, visit https://groups.google.com/d/optout.


[web2py] New International Telegram Support Group

2019-03-19 Thread Carlos Costa
We have had a good experience with the brazilian telegram group dedicated 
to to support web2py users.

But the english speaking group is not used at.

Here is the link to join it: https://t.me/web2py_en

Also, here is the link to the Brazilian group (portuguese speaking and some 
portunhol allowed too :D ): https://t.me/web2pybrasil

-- 
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 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 more options, visit https://groups.google.com/d/optout.


[web2py] Re: New International Telegram Support Group

2019-03-19 Thread Carlos Costa
we noticied this group has no administrator, so we are moving to a new one, 
here is the link https://t.me/joinchat/DYZrfBT-bIsVhwLZc1hG8Q 


Em terça-feira, 19 de março de 2019 12:14:17 UTC-3, Carlos Costa escreveu:
>
> We have had a good experience with the brazilian telegram group dedicated 
> to to support web2py users.
>
> But the english speaking group is not used at.
>
> Here is the link to join it: https://t.me/web2py_en
>
> Also, here is the link to the Brazilian group (portuguese speaking and 
> some portunhol allowed too :D ): https://t.me/web2pybrasil
>

-- 
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 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 more options, visit https://groups.google.com/d/optout.


[web2py] Re: web3py again....

2019-04-02 Thread Carlos Costa
Will it have default url routes?

beyond that,  my thought about ui widgets:
I think it would be nice:
1 - to have an easy integration via a model rest api
2- be agnostice to client side frameworks
3 - come with a default client side framework (preferably vue)
4 - have a ui lib by default
5 - have a template for building custom ui widgets using vue (like single 
page components or something.) that integrates easily, 
maybe with some client api, with the server

Em quinta-feira, 28 de março de 2019 06:16:15 UTC-3, Massimo Di Pierro 
escreveu:
>
> I know this comes up once in a while but ...
>
> https://github.com/web2py/web3py
>
> what do you think? 
>
> It is very preliminary but I will have an admin soon.
> Backporting SQLFORM, grid and Auth, should not be that complicated, 
> although I think we can do better.
>
> Massimo
>
>

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] Enjoying web2py

2019-04-18 Thread Carlos Costa
😀

Em qui, 18 de abr de 2019 às 08:25, Kevin Keller 
escreveu:

> Just wanted to say that im working on app on an old Acer one 32 bit 2gb
> machine with web2py, midori as Browser and Vim as code editor and I'm
> enjoying it a lot!
>
> Thanks for creating such a great batteries included framework.
>
> I barely had to touch html so far to get the prototype working and I
> didn't have to configuring or installing anything.
>
> It's pure productivity.
>
> --
> 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 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 more options, visit https://groups.google.com/d/optout.
>


-- 
At.

Carlos J. Costa
--
Cientista da Computação - Esp. Gestão em Telecom

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] bye bye T, welcome pluralize

2019-04-30 Thread Carlos Costa
Looks nice!

What would be the best approach to translate phrases and longer texts?

Em seg, 29 de abr de 2019 às 10:59, Carlos Cesar Caballero Díaz <
carlos.caball...@cfg.jovenclub.cu> escreveu:

> It looks good!! I can work to support categories if you think it worth it.
> Allow something like T("string", "category") or T("string",
> cat="category"). A category would map to an specific folder of json
> internationalization files, if there is no category specified, it will map
> to a default category. Something like this would make the translations
> reutilization easier.
>
> Greetings.
> El 26/4/19 a las 1:53 a.m., Massimo Di Pierro escribió:
>
> web3py now uses this:
>
> https://pypi.org/project/pluralize/
> https://github.com/web2py/pluralize
>
> thoughts? comments?
>
> --
> 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 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 more options, visit https://groups.google.com/d/optout.
>
> --
> 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 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 more options, visit https://groups.google.com/d/optout.
>


-- 
At.

Carlos J. Costa
--
Cientista da Computação - Esp. Gestão em Telecom

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Future of web2py

2019-05-02 Thread Carlos Costa
Massimo,

could you create some issues related to these things to be done?
I will be easier if anyone wants to contribute.
I want to contribute but don't know exactly how.

Em qui, 2 de mai de 2019 às 09:16, rāma  escreveu:

> ONE month!? Sounds super exciting.
>
> On Thursday, 2 May 2019 15:16:21 UTC+8, Massimo Di Pierro wrote:
>>
>> yes. for my prospective it is very close to be done. we have:
>>
>> [x] more than x10 faster than web2py
>> [x] pydal (same as web2py)
>> [x] routing (like bottle or flask)
>> [x] T
>> [x] helpers (99% compatible with a web2py)
>> [x] template (same as web2py)
>> [x] sessions (in cookies, db, redis, memcache) (need more testing)
>> [90%] forms (very similar to web2py)
>> [50%] _dashboard (equivalent of admin)
>> [0%] grid
>> [0%] appadmin replacement
>> [0%] auth
>>
>> The last 3 will very different from web2py. grid will be more JS based.
>> appadmin will use the grid and be based on some variation collection/json
>> and/or graphql support for pydal. auth will be replaced by plugguble
>> modules and a simple database structure. groups will be replaced by generic
>> hierarchical tags. Maybe I will be done in one more month.
>>
>> I could use some help adding missing functions to _dashboard.
>>
>> On Tuesday, 30 April 2019 13:46:04 UTC-7, villas wrote:
>>>
>>> Check this out:
>>> https://github.com/web2py/web3py
>>>
>>> Search this current group for recent posts on 'web3py'.
>>>
>>> Regards, D
>>>
>>>
>>>
>>> On Tuesday, 30 April 2019 18:35:04 UTC+1, Gabor Nyul wrote:

 We are talking for about 2 years now about a possible web3py and other
 possible addons to it.
 What do you think, when we can get the first insight of it? If at all...

 --
> 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 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 more options, visit https://groups.google.com/d/optout.
>


-- 
At.

Carlos J. Costa
--
Cientista da Computação - Esp. Gestão em Telecom

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Future of web2py

2019-05-10 Thread Carlos Costa
I am developing this on web2py apps and I plan to contribute with it on
web3py.

Em sex, 10 de mai de 2019 às 03:35, Martin Weissenboeck 
escreveu:

> Is it planned that web3py will support the development of PWAs?
> Martin
>
> Am Fr., 10. Mai 2019 um 03:58 Uhr schrieb Massimo Di Pierro <
> massimo.dipie...@gmail.com>:
>
>> Good question.
>>
>> We are not dropping web2py support. We will continue improve web2py. You
>> may have seen a lot of work in that direction recently, mostly thanks to
>> Paolo. Also over the years we made web2py work with python 3.
>>
>> Yet web2py is showing its age. If you are building something new I will
>> recommend you use web3py. It will be usable by the end of May and stable by
>> July. If you want to port your existing apps to python 3, rather than
>> staying with web2py + python 3, I would recommend you jump one more step
>> and port it directly to web3py. If you want to stick with python 2, you
>> will not have a choice.
>>
>> Massimo
>>
>>
>>
>>
>> On Wednesday, 8 May 2019 04:52:44 UTC-7, Rafael Oliveira wrote:
>>>
>>> Will web3py replace web2py? Will web2py end? Sorry for my English. I
>>> used the google translator.
>>>
>> --
>> 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 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.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/web2py/c99109e1-8e7b-46f7-ab17-a0912581f3ae%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> --
> 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 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/web2py/CAMcwXCf6_8PiWvFtKB9YFPq_J2VxFsO%2BRbNcsAfVJ-nsGm96OQ%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
At.

Carlos J. Costa
--
Cientista da Computação - Esp. Gestão em Telecom

-- 
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 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CAGsD4NxZV26Pzgmp%2BNpMB7vk%3Dz%3DBAEOHb1%2BpbFq7MDkv_bvS8g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Future of web2py

2019-05-11 Thread Carlos Costa
Recently Google released official support to PWAs in Play Store.

So, if a web2py or web3py scaffoles ships with PWA support, it will be easy
to deploy it on web and Play Store
We would be able make web and mobile apps easily.

This technique is saving me hours and hours.

Em sáb, 11 de mai de 2019 às 04:40, Martin Weissenboeck 
escreveu:

> I think, progessive web applications are a very important way to create
> native-like apps and it would be nice, if web3py could support pwas. There
> is an interesting article about the future of pwas:
>
> https://enonic.com/progressive-web-apps
>
> Regards, Martin
>
> Am Sa., 11. Mai 2019 um 05:45 Uhr schrieb 黄祥  >:
>
>> What is pwa?
>>
>>
>> ref:
>> https://en.wikipedia.org/wiki/Progressive_web_applications
>> https://developers.google.com/web/progressive-web-apps/
>> https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps
>>
>> best regards,
>> stifan
>>
>> --
>> 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 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.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/web2py/d4d39e2f-0ab5-400b-b46a-ceaa9ef3da18%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> --
> 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 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/web2py/CAMcwXCevb4KiOgh-OVjXvOQYwb%3DVPYVxT52S_hx6ukEQAAXmAA%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
At.

Carlos J. Costa
--
Cientista da Computação - Esp. Gestão em Telecom

-- 
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 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CAGsD4NyFF6Btk29CPjw9TobbUN8SMw2PxiSmTdYVz5HkBK68DQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Future of web2py

2019-05-11 Thread Carlos Costa
Untill this moment, for me, it means that in a second run, the app can open
instantly, mostly because of cached assets.
It does not mean that it will always partially work offline. It depends on
the need.
I think most apps made with web2py (and maybe web3py will be in the same
case) are dependent on server data and interactions.
Most data cannot be cached.
So it's my case.

One advantage of PWA is it being elligible for the A2HS (add to home
screen) funcionality.
Sometimes it is not viable for the user have installed a native mobile
version of a web app for long time, because the use is not frequent.

Basically, we need:
1 - a manifest.json
2 - icons referenced in the manifest.json, used to build the thome icon and
the splash screen
3 - a service worker js to be registered for the app, to be served at app
root. In web2py it is done with routes.py
4 - (optional) workbox to cache automatically all the app assets. (I
haven't got this working yet)

The first 3 steps are the only need to the browser display the A2HS pop up.






Em sáb, 11 de mai de 2019 às 19:07, Massimo Di Pierro <
massimo.dipie...@gmail.com> escreveu:

> I agree with the article. It is unclear to me that people agree about the
> meaning of pwa. Does it mean you can run the app locally as in web2py and
> access via the browser? (web2py and web3py can do this) or does it mean
> that the app is mostly client-side and you can run the client (in browser
> or cordova) without any interaction with a server? This is possible but it
> is up to the developer of the front-end. but  is it useful?
>
> On Saturday, 11 May 2019 00:40:35 UTC-7, mweissen wrote:
>>
>> I think, progessive web applications are a very important way to create
>> native-like apps and it would be nice, if web3py could support pwas. There
>> is an interesting article about the future of pwas:
>>
>> https://enonic.com/progressive-web-apps
>>
>> Regards, Martin
>>
>> Am Sa., 11. Mai 2019 um 05:45 Uhr schrieb 黄祥 <
>> steve.van.chris...@gmail.com>:
>>
>>> What is pwa?
>>>
>>>
>>> ref:
>>> https://en.wikipedia.org/wiki/Progressive_web_applications
>>> https://developers.google.com/web/progressive-web-apps/
>>> https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps
>>>
>>> best regards,
>>> stifan
>>>
>>> --
>>> 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 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.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/web2py/d4d39e2f-0ab5-400b-b46a-ceaa9ef3da18%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>> --
> 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 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/web2py/4b9537f9-013f-49b3-a72a-b4749ee64596%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
At.

Carlos J. Costa
--
Cientista da Computação - Esp. Gestão em Telecom

-- 
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 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CAGsD4Nys-5ovCVsLsoRd_4jnJhk%2B%2BEjd1mao%3Df_1RQA3pY5mKg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Future of web2py

2019-05-13 Thread Carlos Costa
I don't think all PWA cases must work 100% offline.
For 100% offline apps you just need a server to "install" your app, and so
web2py would be handy, but no more after install in client.
This is not case we should aim as web2py as focused on database driven apps.

Sync database may be desirable in some cases but no viable in many cases.
For most cases you want to cache a bit of data, like user data for example.
Think of a ordering or data collecting app, you may want to cache
items/products and also the order and sync it later.
For me this would be awesome but a little complicated.

My opinion is that for now if scaffold helped you to be eligible for A2HS
feature and cache static assets in client, it would be very helpful.

Em seg, 13 de mai de 2019 às 07:46, Val K  escreveu:

> my example is not fully featured PWA, but it works offline and as I
> mentioned above it is possible to make that web23py application will show
> something better than nothing when offline
>
> --
> 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 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/web2py/fd6ea76b-7d3b-4704-886b-a2e6bc4d6e47%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
At.

Carlos J. Costa
--
Cientista da Computação - Esp. Gestão em Telecom

-- 
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 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CAGsD4NxhgGCB%3D9VndXzS4-ZsKMOtgQnbG0BJzLJbnFo29xQeDQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: new DBAPI in pydal for both web2py and web3py

2019-05-15 Thread Carlos Costa
Aweome!

I made a similar API for my apps, but is simpler.
I like this one more as it is more complete.

Mine is called Consult (because we call query as consulta in Portuguese)
This is very useful to integrate ui components such as datatable, or 
anything.

Maybe dal-api should be a good name.
If you want to use Consult, it is ok if it make sense for you, lol.


Em terça-feira, 14 de maio de 2019 03:18:42 UTC-3, Massimo Di Pierro 
escreveu:
>
> You may have missed this but there is a new functionality in PyDAL that 
> allows you to create very powerful APIs. It is called DBAPI.
> It is still not 100% stable but it is working and I could use some help 
> testing it.
> web3py's equivalent of appadmin will be called dbadmin (90% done) and it 
> is based on DBAPI.
> Even if primarily designed for web3py it works for web2py too and you can 
> find some preliminary examples below.
> Hope it is self-explanatory.
>
> DBAPI EXAMPLES 
>
> Inspired by GraphQL but not quite the same
>
> Less powerful but simpler to use
>
> Self descriptive (@model=True) and policy based (policy set serverside)
>
> Support complex queries like: 
>
>- name.eq=Clark Kent
>- name.ne=Clark Kent
>- name.gt=Clark Kent
>- name.lt=Clark Kent
>- name.ge=Clark Kent
>- name.le=Clark Kent
>- name.startswith=Clark
>- name.contains=Kent
>- not.real_identity.name.contains=Wayne
>- not.superhero.tag.superpower.description.eq=Flight
>
> Support de-normalization: 
>
>- @lookup=real_identity
>- @lookup=real_identity[name]
>- @lookup=real_identity[name,job]
>- @lookup=identity:real_identity[name,job]
>- @lookup=identity!:real_identity[name,job]
>- @lookup=superhero.tag
>- @lookup=superhero.tag[strength]
>- @lookup=superhero.tag[strength].superpower
>- @lookup=superhero.tag[strength].superpower.description
>
> Fast. Even the most complex query is implemented with at most 2 selects + 
> 1 select for each denormalized link table
> Example Model 
>
> db.define_table(
> 'person',
> Field('name'),
> Field('job'))
>
> db.define_table(
> 'superhero',
> Field('name'),
> Field('real_identity', 'reference person'))
>
> db.define_table(
> 'superpower',
> Field('description'))
>
> db.define_table(
> 'tag',
> Field('superhero', 'reference superhero'),
> Field('superpower', 'reference superpower'),
> Field('strength', 'integer'))
>
> Example Controller 
>
> from pydal.dbapi import DBAPI, Policy
> policy = Policy()
> policy.set('*', 'GET', authorize=lambda tablename, id, get_vars, 
> post_vars:True, allowed_patterns=['*'])
> policy.set('*', 'PUT', authorize=lambda tablename, id, get_vars, 
> post_vars:False)
> policy.set('*', 'POST', authorize=lambda tablename, id, get_vars, 
> post_vars:False)
> policy.set('*', 'DELETE', authorize=lambda tablename, id, get_vars, 
> post_vars:False)
>
> def api():
> return DBAPI(db, policy)(request.method, request.args(0), request.args(1),
>  request.get_vars, request.post_vars)
>
> Example GET URLs 
> /superheroes/default/api.json/superhero 
>
> {
> "count": 3,
> "status": "success",
> "code": 200,
> "items": [
> {
> "real_identity": 1,
> "name": "Superman",
> "id": 1
> },
> {
> "real_identity": 2,
> "name": "Spiderman",
> "id": 2
> },
> {
> "real_identity": 3,
> "name": "Batman",
> "id": 3
> }
> ],
> "timestamp": "2019-05-14T06:14:06.764966",
> "api_version": "0.1"
> }
>
> /superheroes/default/api.json/superhero&@model=true 
>
> {
> "status": "error",
> "timestamp": "2019-05-14T06:14:06.997662",
> "message": "Invalid table name: superhero_amp_@model=true",
> "code": 400,
> "api_version": "0.1"
> }
>
> /superheroes/default/api.json/superhero?@lookup=real_identity 
>
> {
> "count": 3,
> "status": "success",
> "code": 200,
> "items": [
> {
> "real_identity": {
> "name": "Clark Kent",
> "job": "Journalist",
> "id": 1
> },
> "name": "Superman",
> "id": 1
> },
> {
> "real_identity": {
> "name": "Peter Park",
> "job": "Photographer",
> "id": 2
> },
> "name": "Spiderman",
> "id": 2
> },
> {
> "real_identity": {
> "name": "Bruce Wayne",
> "job": "CEO",
> "id": 3
> },
> "name": "Batman",
> "id": 3
> }
> ],
> "timestamp": "2019-05-14T06:14:06.931746",
> "api_version": "0.1"
> }
>
> /superheroes/default/api.json/superhero?@lookup=identity:real_identity 
>
> {
> "count": 3,
> "status": "success",
> "code": 200,
> "items":

Re: [web2py] Need a developer. Seattle Wa

2014-04-04 Thread Carlos Costa
I guess it will be easier to find devs to work remotely for you.
Here in the group or even in ODesk for example.
Or if you prefer a local dev, you can hire a Django dev and ask him to
learn web2py.
He will find a very easy learning curve.


2014-04-04 2:59 GMT-03:00 Brando :

> It's pretty easy to find Django developers out there; however, I can't
> seem to find web2py devs.  I have an upcoming project to build an app for
> data entry and report generation for security audits (penetration testing).
>  I need a developer who can help me build out the code base and is familiar
> with ajax/jquery data entry.
>
> Can someone point me in the right direction?
>
> --
> 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 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 more options, visit https://groups.google.com/d/optout.
>



-- 
Att.

Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Brazilian web2py users, what system do you use to receive credit card payments?

2014-04-15 Thread Carlos Costa
Pagseguro, for sure is the most used here in Brazil.
It belongs to UOL, it has a lot of advertising on TV.
Its the best know and trusted.

Another options are:
-mercado pago
-bcash
-moip
-braspag
-f2b
-paypal Brasil

I tried to sort them in an order of popularity.


2014-04-11 23:54 GMT-03:00 samuel bonill :

> i use stripe.com
>
> El viernes, 11 de abril de 2014 09:39:15 UTC-5, Leonel Câmara escribió:
>
>> I have a Brazilian costumer and I will need to implement this soon so I'm
>> now evaluating the available options. Any suggestions?
>>
>> Until now I have found this project by Bruno Rocha:
>> https://github.com/rochacbruno/python-pagseguro
>>
>  --
> 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 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 more options, visit https://groups.google.com/d/optout.
>



-- 
Att.

Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] AYUDA como ajustar la resolucion de la pagina de web segun el navegador ?

2014-04-15 Thread Carlos Costa
Mayra, esto es lo grupo web2py en ingles.
Por favor, reecriba tu question en ingles para que qualquier uno pueda
compreenderla.
Asi tenes mas chances de ser respondida.

Mayra, this is the web2py group in english.
Please, rewrite your question in english so anyone can understand it.
So you more chances to be answered.

The default layout.html already fits well and resizes itself when displayed
and smaller devices.
You can teste this by simpling resizing your browser window.
For me, it looks like you have a issue with your own css styling.
Maybe you need to redesign it avoiding fixed widths and heights.
Also give a look at the Bootstrap documentation, it is the css (and other
things) framework used now in Web2py.
Look how you can design your layout safely across different devices using
the appropriated classes.
http://getbootstrap.com/2.3.2/scaffolding.html#gridSystem


2014-04-15 9:12 GMT-03:00 Mayra Marticorena :

> hola buen dia , como andan ? estoy teniendo problemas de resolucion en mi
> pagina de web , http://www.distribuidorahenry.com.ar/welcome/default/index, 
> si entro en la pc que he utilize para armar esta misma , se ve claramente
> , sin embargo cuando entro con otra pc se ve mal , saltos de pagina e
> margenes etc . Existe un parche , que automaticamente se ajuste a los
> diferentes resoluciones , de los navegadores ? .
> Desde ya , muchas gracias !
>
> mayra
>
> --
> 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 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 more options, visit https://groups.google.com/d/optout.
>



-- 
Att.

Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] too many values to unpack

2014-04-16 Thread Carlos Costa
To show some code should help us to help you.

This type of error occurs when something like this is tried;
d = dict(a='a',b='b')
a, b, c = d



2014-04-16 6:36 GMT-03:00 Richard :

>
> I have a working app and added a list of form in the response variables
> from the controller tot the view. Now the app comes with the error "too
> many values to unpack".
> I can imagine that there is a limit tot the response size. Is there and
> how can I increase this.
>
> Background info: I want to add a button to records for changing and
> deleting that record. So I create a list of forms with the specific
> record=id parameter. This solution is not optimal for memory and speed, but
> quite easy to implement. Some clever rpc functionality might also do the
> trick.
>
> Thanks.
>
> --
> 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 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 more options, visit https://groups.google.com/d/optout.
>



-- 
Att.

Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] 'Table' object has no attribute 'attr'

2014-04-16 Thread Carlos Costa
The book says in
http://web2py.com/books/default/chapter/29/07/forms-and-validators
"causes the hidden fields to be passed with the submission, no more, no
less. form.accepts(...) is not intended to read the received hidden fields
and move them into form.vars. The reason is security. Hidden fields can be
tampered with. So you have to explicitly move hidden fields from the
request to the form:

form.vars.a = request.vars.a
"

So I think you do not have attr field in the table activity, do you?

If so, you should do something like that:

values=request.vars
del values['attr']
db(db.activity._id == request.vars['id']).update(**dict(values))





2014-04-16 13:36 GMT-03:00 Richard :

> I have used a form in a view and want to update a record after submit:
>
> View:
> {{=SQLFORM(db.activity, record = a.id, deletable = True,
> hidden=dict(attr='chgact'))}}
>
>
> controller:
>
> if (request.vars['attr'] == 'chgact') and
> (request.vars['delete_this_record'] != 'on'):
> db(db.activity._id ==
> request.vars['id']).update(**dict(request.vars))
>
> I use the convention in the controller because is is described in the
> manual in chapter 6:
>
> The update of record with given id can be done with:
> Inserting and updating from a dictionary
>
> A common issue consists of needing to insert or update records in a table
> where the name of the table, the field to be updated, and the value for the
> field are all stored in variables. For example: tablename, fieldname, and
> value.
>
> The insert can be done using the following syntax:
>
> db[tablename].insert(**{fieldname:value})
>
> The update of record with given id can be done with:
> db(db[tablename]._id==id).update(**{fieldname:value})
>
> Notice we used table._id instead of table.id. In this way the query works
> even for tables with a field of type "id" which has a name other than "id".
>
>
> What is going wrong?
>
> --
> 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 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 more options, visit https://groups.google.com/d/optout.
>



-- 
Att.

Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: first() as aggregation function

2014-04-28 Thread Carlos Costa
I think he is looking for the first record of each group, not the first
record of the entire result.
I think there is no such function in web2py yet.

I have performed a similar task for reporting using this:
https://docs.python.org/2/library/itertools.html#itertools.groupby

It will require more computation and memory as you will have do it in
memory but is possible and simple.


2014-04-28 10:33 GMT-03:00 Jim S :

>
> http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#first-and-last
>
> Is this what you were looking for?
>
> -Jim
>
> On Monday, April 28, 2014 7:20:15 AM UTC-5, Manuele wrote:
>>
>> Hi!
>> does exists or can be implemented an aggregation function that returns
>> the first element of a group instead of the sum, max, min or avg result?
>>
>> Thank you... as usual :)
>>
>> Manuele
>>
>  --
> 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 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 more options, visit https://groups.google.com/d/optout.
>



-- 
Att.

Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] URLising Links in Tables

2014-04-28 Thread Carlos Costa
Use represent and the tag A helper.

db.table_name.link_field.represent = lambda value, row: A(value,
_href=value)


2014-04-28 13:17 GMT-03:00 :

> Hi
>
> I've created a run-of-the-mill table:
>
> def index():
> grid = SQLFORM.grid(db.table_name, user_signature=False)
> return dict(grid=grid)
>
> One of the columns in the table is an actual link - how do I go about
> making this "clickable"?
>
> Thanks!
>
> --
> 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 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 more options, visit https://groups.google.com/d/optout.
>



-- 
Att.

Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: first() as aggregation function

2014-04-28 Thread Carlos Costa
Jim, I thought that at first too. :)


2014-04-28 16:06 GMT-03:00 Niphlod :

> seems to me that you should use windowing functions instead
>
> there's no need to introduce a new method you can use expression
> themselves in the select, and extract the field as usual
>
> myexpr = 'first_value(b_field) over (partition by a_field order by
> b_field)'
> rows = db2(db2.test_table.id > 0).select(myexpr, db2.test_table.a_field)
> for row in rows:
> print row.aa, row[myexpr]
>
>
>
>
> On Monday, April 28, 2014 4:46:43 PM UTC+2, Manuele wrote:
>>
>> Il 28/04/14 16:05, Carlos Costa ha scritto:
>> > I think he is looking for the first record of each group, not the
>> > first record of the entire result.
>> > I think there is no such function in web2py yet.
>> >
>> > I have performed a similar task for reporting using this:
>> > https://docs.python.org/2/library/itertools.html#itertools.groupby
>> >
>> > It will require more computation and memory as you will have do it in
>> > memory but is possible and simple.
>> starting from the point I'm using postgresql (v. 9.3) I was thinking
>> about introducing a new method to the class Expression in dal defined as
>> follows:
>>
>> def array_agg(self):
>> db = self.db
>> return Expression(db, db._adapter.AGGREGATE, self, 'array_agg',
>> self.type)
>>
>> and get the first argument of the returned list.
>>
>> maybe this method can be introduced in the dal code but for the moment
>> Is there a way to locally "monkey patch" the Expression class for my
>> application?
>>
>> thank you
>> Cheers
>>
>> Manuele
>>
>  --
> 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 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 more options, visit https://groups.google.com/d/optout.
>



-- 
Att.

Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] OAuth - Can Users Authenticate without an Internet connection?

2014-04-30 Thread Carlos Costa
If each node must authenticate with OAuth with it will requires internet
connection.
Give a look here: https://developers.google.com/accounts/docs/OAuth2


2014-04-30 16:30 GMT-03:00 Brando :

> I want to use OAuth + Google and want to know if things will work if a
> node is offline.  My app model is as follows.
>
>
> I will have about 15 laptops in the field.
> Each laptop will have a local copy of the app installed.
> The laptop may/may not have Internet access.
> I plan on using Couchbase for the DB
> I need to be able to restrict access to a particular user (if they get
> fired or something)
>
> Is it possible to allow people to login even if they don't have Internet
> access?  How would this work?
>
> --
> 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 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 more options, visit https://groups.google.com/d/optout.
>



-- 
Att.

Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] OAuth - Can Users Authenticate without an Internet connection?

2014-05-01 Thread Carlos Costa
If they share the same DB and they all are in the same network, the builtin
authentication will work.

If not, you may want to sync the authentication tables while you have
connection. So each local application will have a copy.



2014-05-01 12:22 GMT-03:00 Brando :

> What are my options if I want users to be able to login with or without an
> internet connection and still be able to centrally control authentication
> on all the nodes?   Keep in mind that these machines will have internet
> connection throughout the day, however they will be offline for an hour or
> two at the time.
>
>
>
> On Wednesday, April 30, 2014 1:46:01 PM UTC-7, yamandu wrote:
>
>> If each node must authenticate with OAuth with it will requires internet
>> connection.
>> Give a look here: https://developers.google.com/accounts/docs/OAuth2
>>
>>
>> 2014-04-30 16:30 GMT-03:00 Brando :
>>
>>> I want to use OAuth + Google and want to know if things will work if a
>>> node is offline.  My app model is as follows.
>>>
>>>
>>> I will have about 15 laptops in the field.
>>> Each laptop will have a local copy of the app installed.
>>> The laptop may/may not have Internet access.
>>> I plan on using Couchbase for the DB
>>> I need to be able to restrict access to a particular user (if they get
>>> fired or something)
>>>
>>> Is it possible to allow people to login even if they don't have Internet
>>> access?  How would this work?
>>>
>>> --
>>> 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 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...@googlegroups.com.
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Att.
>>
>> Carlos J. Costa
>> Cientista da Computação
>> Esp. Gestão em Telecom
>>
>> EL MELECH NEEMAN!
>> אָמֵן
>>
>>   --
> 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 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 more options, visit https://groups.google.com/d/optout.
>



-- 
Att.

Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] help with helper!

2014-05-14 Thread Carlos Costa
Like this

A(I(_class="fa-home"),SPAN("Home",_class="menu-item-parent"),_href="index.html",
_title="Home")


2014-05-14 18:59 GMT-03:00 greenpoise :

> I need help with this helper!
>
> I have this
>
>   "menu-item-parent">Home
>
>
> and I made this:
>
> [A(I(SPAN(_class=('menu-item-parent','Home')), _class='fa-home',_title=
> 'Home',), False, None, []),]
>
>
>
> I am missing the URL('home") cant get it to work. Where should I put it?
>
>
> thanks
>
> --
> 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 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 more options, visit https://groups.google.com/d/optout.
>



-- 
Att.

Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] help with helper!

2014-05-14 Thread Carlos Costa
Are you using it in the MENU helper?


2014-05-14 20:14 GMT-03:00 greenpoise :

> I tried this but didnt work. I am using it in the menu section
>
>
> Thanks
>
>
>
> On Wednesday, May 14, 2014 3:59:19 PM UTC-7, yamandu wrote:
>
>> Like this
>>
>> A(I(_class="fa-home"),SPAN("Home",_class="menu-item-parent"),_href="index.html",
>> _title="Home")
>>
>>
>> 2014-05-14 18:59 GMT-03:00 greenpoise :
>>
>>> I need help with this helper!
>>>
>>> I have this
>>>
>>>  >> "menu-item-parent">Home
>>>
>>>
>>> and I made this:
>>>
>>> [A(I(SPAN(_class=('menu-item-parent','Home')), _class='fa-home',_title=
>>> 'Home',), False, None, []),]
>>>
>>>
>>>
>>> I am missing the URL('home") cant get it to work. Where should I put it?
>>>
>>>
>>> thanks
>>>
>>> --
>>> 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 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...@googlegroups.com.
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Att.
>>
>> Carlos J. Costa
>> Cientista da Computação
>> Esp. Gestão em Telecom
>>
>> EL MELECH NEEMAN!
>> אָמֵן
>>
>>   --
> 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 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 more options, visit https://groups.google.com/d/optout.
>



-- 
Att.

Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: help with helper!

2014-05-15 Thread Carlos Costa
It is because you are using it the wrong way.

MENU helper itself generates the html marckup, ul, li, a, etc

Give a look at the documentation here
http://web2py.com/books/default/chapter/29/05/the-views?search=menu#MENU

Look that MENU has some optional arguments to setup the classes to custom
ones:

The MENU helper takes the following optional arguments:

   - _class: defaults to "web2py-menu web2py-menu-vertical" and sets the
   class of the outer UL elements.
   - ul_class: defaults to "web2py-menu-vertical" and sets the class of the
   inner UL elements.
   - li_class: defaults to "web2py-menu-expand" and sets the class of the
   inner LI elements.
   - li_first: allows to add a class to the first list element.
   - li_last: allows to add a class to the last list element.


But it always generate the same kind of structure:

>>> print MENU([['One', False, 'link1', [['Two', False, 'link2')

  
 One
 
Two
 
  


I you really need a different one, you should write it your own.

If your menus don't change do it hardcoded.



2014-05-15 15:58 GMT-03:00 Dave S :

>
>
> On Thursday, May 15, 2014 10:21:48 AM UTC-7, greenpoise wrote:
>>
>> Yes font-awesome is what I am trying to use. Both attempts, yours and
>> yamandu prompt me the same error
>>
>> (name, active, link) = item[:3]
>> ValueError: need more than 2 values to unpack
>>
>>
>
> Is there a line number associated with that error message?  Is "item"
> something in your code, or is it part of the helper?  Evidently it's being
> created with only 2 values, instead of the 3 needed.  I'm tempted to say
> that "active" should be a boolean, but that's just a guess.
>
> /dps
>
>
>
>
>> On Wednesday, May 14, 2014 8:36:48 PM UTC-7, Joe Barnhart wrote:
>>>
>>> I see you're using font-awesome.  You need to add "fa" as well as the
>>> icon name you want "fa-home".  I also recommend you use the URL helper if
>>> you ever want the url re-writing features of web2py.  My recommendation is:
>>>
>>> A(I(_class="fa fa-home"),SPAN("Home",_class="menu-item-parent"),_href=
>>> URL('index'))
>>>
>>> Please notice the underscore in the "class" and "href" entries.  That is
>>> how web2py knows you want those to wind up on the final HTML version of the
>>> element and keeps the names from colliding with Python identifiers (like
>>> "class").
>>>
>>>
>>> On Wednesday, May 14, 2014 2:59:03 PM UTC-7, greenpoise wrote:

 I need help with this helper!

 I have this

  >>> "menu-item-parent">Home


 and I made this:

 [A(I(SPAN(_class=('menu-item-parent','Home')), _class='fa-home',_title=
 'Home',), False, None, []),]



 I am missing the URL('home") cant get it to work. Where should I put it?


 thanks

>>>  --
> 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 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 more options, visit https://groups.google.com/d/optout.
>



-- 
Att.

Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: TAG helper can not parse html

2014-05-20 Thread Carlos Costa
Yeah, the error is thrown by HTMLParser, TAG is build on top of it.
I will try some other tools like Beautifull Soup.

Thanks.


2014-05-20 10:04 GMT-03:00 Anthony :

> No, TAG is only a basic parser and not robust against errors in the HTML.
> You should probably use a more sophisticated tool, such as Beautiful Soup
> (which is built on top of the lxml and html5lib parsers). The standard
> library also includes the HTMLParser module, but you may run into similar
> problems with that.
>
> Anthony
>
>
> On Tuesday, May 20, 2014 8:14:37 AM UTC-4, yamandu wrote:
>>
>> I am trying to parse a HTML with the TAG helper from a fetched URL using
>> urllib.
>> The HTML is broken in some parts, it has end span tags without respective
>> start span tags.
>>
>> TAG helper gives error: unable to balance span tag.
>>
>> I tested it. Open tags not closed are parsed, but not closed tags without
>> open.
>>
>> Would be there a work around for this?
>>
>  --
> 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 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 more options, visit https://groups.google.com/d/optout.
>



-- 
Att.

Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] Can't login to Admin interface

2014-05-21 Thread Carlos Costa
How did you started web2py?


2014-05-21 2:36 GMT-03:00 shubham agarwal :

> I'am trying to login to the web2py admin interface but my password is not
> been accepted. I'm pretty sure that the password is correct. Can anyone
> help me with this issue.
>
> Thanks
>
> --
> 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 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 more options, visit https://groups.google.com/d/optout.
>



-- 
Att.

Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] going crazy with pyfpdf

2014-05-21 Thread Carlos Costa
It uses pyfpdf to convert it.
But there are some restrictions as I remember.
You check it here https://code.google.com/p/pyfpdf/


2014-05-21 12:13 GMT-03:00 Carlos Cesar Caballero Díaz <
desarro...@spicm.cfg.sld.cu>:

>  Hi, I need some help, when I call a view with ".pdf" this:
>
> 
> 
> Report
> 
> 
> 
> 
> name
> pepe
> 
> 
> 
> 
>
> or this:
>
> 
> 
> 
> name
> pepe
> 
> 
> 
>
> returns a blank one page pdf. Now if I put the content before the body
> tag, it is rendered, but the table allways throw a
> "Table column/cell width not specified, unable to continue" error.
>
> --
> 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 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 more options, visit https://groups.google.com/d/optout.
>



-- 
Att.

Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] How to select a column of numbers into a list so that I can manipulate the list

2014-05-26 Thread Carlos Costa
Try:

 nums3 = db(db.Measures).select( db.Measures.measure_value,
orderby=db.Measures.measure_date_time).as_list()


2014-05-26 7:20 GMT-03:00 Syd Stewart :

> Hi
>
> What is the simplest way please to select a column of figures (floats and
> int) into a list, so I can manipulate the list e.g randomise the order
>
>  nums3 = db(db.Measures).select( db.Measures.measure_value,
> orderby=db.Measures.measure_date_time)
>
>  meannums= sum(nums3)/float(len(nums3))
>
> This calculation of the mean keeps giving me an error
>
>   File "/home/sydstewart/web2py/applications/SydOwn/controllers/test.py" 
> ,
>  line 92, in cusum
> qnum[i][k] = (nums3[k]) - (meannums)
> TypeError: unsupported operand type(s) for -: 'Row' and 'int'
>
>
> Thanks
>
>
>  --
> 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 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 more options, visit https://groups.google.com/d/optout.
>



-- 
Att.

Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] DAL Referencing By Name Not By ID Possible?

2014-05-28 Thread Carlos Costa
Give a look here:
http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Legacy-databases-and-keyed-tables

But I think it won't work in your case because name is a string.
Our you can model it another way.

db.define_table('tiers',
Field('name', 'string'),
Field('created_on', 'datetime', default=request.now),
format = '%(name)s')

db.define_table('metrics',
Field('tier_name', 'string', requires=IS_IN_DB(db, 'tiers.name
',%(name)s')),
Field('total_count', 'integer'),
Field('total_size', 'bigint'),
Field('created_on', 'datetime', default=request.now))

However, this will not enforce reference at db level, only in application.
But you can query an join it by name without problems.

query = db(db.tiers.name == db.metrics.tier_name).select()
metric = db(db.metrics.tier_name == 'name').select()

or you can obviously write a helper function to short it

get_metrics = lambda name: db(db.metrics.tier_name == name).select()
get_tier = lambda name: db(db.tier.name == name).select().first()

tier = get_tier(name)
tier_metrics = get_metrics(name)


2014-05-27 21:35 GMT-03:00 'Michael Gheith' via web2py-users <
web2py@googlegroups.com>:

> I have two pretty basic tables:
>
> db.define_table('tiers',
> Field('name', 'string'),
> Field('created_on', 'datetime', default=request.now),
> format = '%(name)s')
>
> db.define_table('metrics',
> Field('tier_id', 'reference tiers'),
> Field('total_count', 'integer'),
> Field('total_size', 'bigint'),
> Field('created_on', 'datetime', default=request.now))
>
> I pre populated my tiers table with data.  When I store data in my metrics
> table, I don't know off hand the tier_id.  I know the tier name though.  Is
> there a way I can use the tier name instead of the tier_id in this
> reference?
>
> --
> 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 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 more options, visit https://groups.google.com/d/optout.
>



-- 
Att.

Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] DAL Referencing By Name Not By ID Possible?

2014-05-28 Thread Carlos Costa
You are welcome! :)


2014-05-28 11:08 GMT-03:00 'Michael Gheith' via web2py-users <
web2py@googlegroups.com>:

> Many thanks for this, I found it to be helpful :)
>
>
> On Wednesday, May 28, 2014 6:30:31 AM UTC-5, yamandu wrote:
>
>> Give a look here: http://web2py.com/books/default/chapter/29/06/the-
>> database-abstraction-layer#Legacy-databases-and-keyed-tables
>>
>> But I think it won't work in your case because name is a string.
>> Our you can model it another way.
>>
>> db.define_table('tiers',
>> Field('name', 'string'),
>> Field('created_on', 'datetime', default=request.now),
>> format = '%(name)s')
>>
>> db.define_table('metrics',
>> Field('tier_name', 'string', requires=IS_IN_DB(db, 'tiers.name
>> ',%(name)s')),
>> Field('total_count', 'integer'),
>> Field('total_size', 'bigint'),
>> Field('created_on', 'datetime', default=request.now))
>>
>> However, this will not enforce reference at db level, only in application.
>> But you can query an join it by name without problems.
>>
>> query = db(db.tiers.name == db.metrics.tier_name).select()
>> metric = db(db.metrics.tier_name == 'name').select()
>>
>> or you can obviously write a helper function to short it
>>
>> get_metrics = lambda name: db(db.metrics.tier_name == name).select()
>> get_tier = lambda name: db(db.tier.name == name).select().first()
>>
>> tier = get_tier(name)
>> tier_metrics = get_metrics(name)
>>
>>
>> 2014-05-27 21:35 GMT-03:00 'Michael Gheith' via web2py-users <
>> web...@googlegroups.com>:
>>
>>> I have two pretty basic tables:
>>>
>>> db.define_table('tiers',
>>> Field('name', 'string'),
>>> Field('created_on', 'datetime', default=request.now),
>>> format = '%(name)s')
>>>
>>> db.define_table('metrics',
>>> Field('tier_id', 'reference tiers'),
>>> Field('total_count', 'integer'),
>>> Field('total_size', 'bigint'),
>>> Field('created_on', 'datetime', default=request.now))
>>>
>>> I pre populated my tiers table with data.  When I store data in my
>>> metrics table, I don't know off hand the tier_id.  I know the tier name
>>> though.  Is there a way I can use the tier name instead of the tier_id in
>>> this reference?
>>>
>>> --
>>> 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 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...@googlegroups.com.
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Att.
>>
>> Carlos J. Costa
>> Cientista da Computação
>> Esp. Gestão em Telecom
>>
>> EL MELECH NEEMAN!
>> אָמֵן
>>
>>   --
> 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 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 more options, visit https://groups.google.com/d/optout.
>



-- 
Att.

Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] requires IS_IN_DB set as a union of two queries

2014-05-28 Thread Carlos Costa
Have you tried something like:

query1=((db.vehicle.id==db.owner.own_veh_fk)&(db.owner.own_end_date!=None))

query2=(~db.vehicle.id.belongs(db(db.owner.own_veh_fk==db.vehicle.id
)._select(db.vehicle.id)))

query = query1 & query2

db.owner.own_veh_fk.requires=IS_IN_DB(query,'vehicle.id', '%(manufacturer)s
%(vin)s')





2014-05-28 20:47 GMT-03:00 <98uj...@gmail.com>:

> Thank you Mr. Massimo and your colleagues for bringing the web2py to the
> masses.
> I need to have a field that will present a choice of values that result
> from a union of query1 and query2
> How can i create a set that would go where the question mark is? Thanks
> for any help!
>
> query1=((db.vehicle.id
> ==db.owner.own_veh_fk)&(db.owner.own_end_date!=None))
>
> query2=(~db.vehicle.id.belongs(db(db.owner.own_veh_fk==db.vehicle.id
> )._select(db.vehicle.id)))
>
> db.owner.own_veh_fk.requires=IS_IN_DB((db(?)),'vehicle.id',
> '%(manufacturer)s %(vin)s')
>
>  --
> 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 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 more options, visit https://groups.google.com/d/optout.
>



-- 
Att.

Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: requires IS_IN_DB set as a union of two queries

2014-05-29 Thread Carlos Costa
Sorry, I should have written:

db.owner.own_veh_fk.requires=IS_IN_DB(db(query),'vehicle.id',
'%(manufacturer)s %(vin)s')

If you need to pass a set so you need to call db(query) in order to execute
the query.



2014-05-28 21:46 GMT-03:00 <98uj...@gmail.com>:

> I did try:
> query =  query1 | guery2
> and received error: "Set | Set" or similar
>
>
> On Wednesday, May 28, 2014 7:47:36 PM UTC-4, 98u...@gmail.com wrote:
>>
>> Thank you Mr. Massimo and your colleagues for bringing the web2py to the
>> masses.
>> I need to have a field that will present a choice of values that result
>> from a union of query1 and query2
>> How can i create a set that would go where the question mark is? Thanks
>> for any help!
>>
>> query1=((db.vehicle.id==db.owner.own_veh_fk)&(db.owner.
>> own_end_date!=None))
>>
>> query2=(~db.vehicle.id.belongs(db(db.owner.own_veh_fk==db.vehicle.id
>> )._select(db.vehicle.id)))
>>
>> db.owner.own_veh_fk.requires=IS_IN_DB((db(?)),'vehicle.id',
>> '%(manufacturer)s %(vin)s')
>>
>>  --
> 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 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 more options, visit https://groups.google.com/d/optout.
>



-- 
Att.

Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] web2py CMS

2014-05-30 Thread Carlos Costa
We have some options as I know.

Kpax from Massimo
http://vimeo.com/1098656
https://github.com/mdipierro/web2py-appliances/tree/master/KPax2


Quoca and Movuca (more lika a social app) from Bruno Rocha
http://quokkaproject.org/
https://github.com/rochacbruno/Movuca

https://code.google.com/p/instant-press/


2014-05-30 17:52 GMT-03:00 Fabiano Almeida :

> Hi Andrey,
>
> Do you need a blog?
>
>
> 2014-05-30 11:21 GMT-03:00 Andrey K :
>
> I am interested to add in CMS system for our web2py application.
>>  Quick search does not give me any solutions. Is there any CMS plugin
>> already or any recipes on it?
>> Any thoughts, suggestions, links and comments would be very appreciated.
>> Thank you in advance!
>>
>>  --
>> 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 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 more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> 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 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 more options, visit https://groups.google.com/d/optout.
>



-- 
Att.

Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom

EL MELECH NEEMAN!
אָמֵן

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: web2py CMS

2014-06-04 Thread Carlos Costa
I found Plone very hard to do almost anything.
For simple sites I would not recomend although it is really the best in the
Python world.


2014-06-04 6:02 GMT-03:00 Philip Kilner :

> Hi,
>
> +1 for Plone from me, too.
>
> If you only need something lightweight, it may be OTT - but if you need
> a mature product that you will not outgrow then Plone is well worth a look.
>
> It's not hard to knit web2py and Plone together - depends what you want
> to achieve obviously, but where I've needed both Plone's CMS strengths
> and web2py's RDBMS strengths in a single project, I've found it easier
> to embed a web2py application in a Plone page than /vice versa/.
>
>
> --
>
> Regards,
>
> PhilK
>
>
> 'a bell is a cup...until it is struck'
>
> --
> 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 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 more options, visit https://groups.google.com/d/optout.
>



-- 
Att.

Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom
<º))><

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] How do I view text on view.html

2014-06-16 Thread Carlos Costa
You should create and action for that view and pass it in dictionary to the
view


2014-06-16 7:08 GMT-03:00 Maurice Waka :

>  My code:
>
>
>
>
> class Person():
>  name = 'Victor'
>  def say(self, what):
>  print(self.name, what)
>
>
> getattr(person, attr_name)
>
> How do I display 'Victor' on web2py html.view?
>
> I tried using:
>
> {{=getattr(person, attr_name)}}
>
>
>  I know this could be wrong and I cant get a result either
>
>  --
> 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 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 more options, visit https://groups.google.com/d/optout.
>



-- 
Att.

Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom
<º))><

-- 
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 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 more options, visit https://groups.google.com/d/optout.


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

2014-06-16 Thread Carlos Costa
It may work if this button is inside the component loaded.


2014-06-13 20:47 GMT-03:00 Omri Levy :

> Hi ,
>
> So I have a ticket system, and I want to allow user to edit the ticket
> without leaving the page.
> I don't want to LOAD the edit_page and hide it, but only load it once user
> is clicking on the ticket body.
> Another thing is, when user edits the ticket, he should again see changes
> on the same page.
>
> Is this possible? I'm a bit confused, because LOAD works fine, but not
> when using conditions with JS.
>
> Thanks.
>
> --
> 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 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 more options, visit https://groups.google.com/d/optout.
>



-- 
Att.

Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom
<º))><

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: How do I view text on view.html

2014-06-16 Thread Carlos Costa
I guess you need to familiarize yourself more with not just with web2py but
also with web development, right?

Anthony is right, you should read web2py book at www.web2py.com/book, at
least the first chapters to get a start.
At first you need to understand MVC.

For example you may have:

in db.py (Model)

class Person():
 name = 'Victor'

in default.py (Controler)


def index():

person = Person()

return dict(person=person)


in default/index.html (View)


{{=person.name}}




2014-06-16 10:24 GMT-03:00 Anthony :

> This doesn't look anything like typical web2py code. I would recommend
> that you read some of the book and follow the typical patterns and then
> come back with questions if you're having trouble. In general, though, note
> that you won't be using the print statement to display anything in HTML
> pages -- print is for printing to the console.
>
> Anthony
>
>
> On Monday, June 16, 2014 6:08:55 AM UTC-4, Maurice Waka wrote:
>>
>>  My code:
>>
>>
>>
>>
>> class Person():
>>  name = 'Victor'
>>  def say(self, what):
>>  print(self.name, what)
>>
>>
>> getattr(person, attr_name)
>>
>> How do I display 'Victor' on web2py html.view?
>>
>> I tried using:
>>
>> {{=getattr(person, attr_name)}}
>>
>>
>>  I know this could be wrong and I cant get a result either
>>
>>  --
> 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 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 more options, visit https://groups.google.com/d/optout.
>



-- 
Att.

Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom
<º))><

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] Web2py Rocks ... Again :)

2014-07-03 Thread Carlos Costa
+1


2014-07-03 8:38 GMT-03:00 lyn2py :

> Finally, have ironed out all the kinks and sorted out all the errors. Most
> of them come about because of user-problems (yes, me), because I don't
> deploy to production often enough to keep up with the versions of all other
> supporting platforms/software. In addition, my memory sometimes fail me and
> I run into errors, make mistakes unknowingly and carelessly (Don't work too
> late! Stop when you are tired!).
>
> If you are planning to deploy to production servers, I just want to
> reassure you that what works on localhost will work on production servers.
> Web2py is very reliable! It was a journey of twist and turns, but
> fortunately I only needed to start over once and it was all ok after that.
>
> And the familiar feeling sets in again... the more I code with Web2py, the
> more I want to praise it! Web2py ROCKS! Thank you to Massimo and all
> developers for putting in your time, effort and expertise to make Web2py
> such a wonderful framework and contribute to this sharing community.
>
> THANK YOU.
>
> --
> 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 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 more options, visit https://groups.google.com/d/optout.
>



-- 
Att.

Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom
<º))><

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] The Zen of web2py

2014-07-09 Thread Carlos Costa
I like it.

I wonder if we could do it in an organized in some way.

Recently I lost to convince my boss to change everything to web2py because
"there are few developers that know it".
So it would be very good to have a massive community. As we will have more
opportunities to work on the framework we love best.

Groups like this have little exposure outside. We need something else!


2014-07-09 10:03 GMT-03:00 Philip Kilner :

> Hi,
>
> On 09/07/14 13:31, horridohobbyist wrote:
>
>> Let's improve web2py's PR. A blast of articles over the next year could
>> change the fortunes of our favourite web framework.
>>
>>
> Good piece, great finish.
>
> I'll take that as a challenge, and see if I can describe my own journey
> from desktop databases to web2py via Zope and Plone as succinctly!
>
> :-)
>
>
> --
>
> Regards,
>
> PhilK
>
>
> e: p...@xfr.co.uk - m: 07775 796 747
>
> 'work as if you lived in the early days of a better nation'
> - alasdair gray
>
>
> --
> 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 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 more options, visit https://groups.google.com/d/optout.
>



-- 
Att.

Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom
<º))><

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] The Zen of web2py

2014-07-09 Thread Carlos Costa
I agree with you Massimo, the best ones are those that built something.
Videos like this http://vimeo.com/6782736 helped me to decide to stay with
web2py.
Not only that title is quite "marketish" but content is so true.


2014-07-09 12:28 GMT-03:00 Massimo Di Pierro :

> I think this would help a lot web2py.
>
> I can share some personal experience. In my experience the best articles
> are those that show how to build something and focus on one feature at the
> time. People are very religious about certain frameworks and for the
> message to get across one really has to convince them that web2py will save
> them time and pain. One cannot convince everybody, but one can choose a
> target audience.
>
> I like comparison: this is how you do X in Django (for example) - this is
> how you do in web2py. The reason I like them is that they talk to a clear
> audience and users of both frameworks have something to learn from each
> other. Mind some people are very touchy and they do not like to be told
> that another kid has a shiner tool.
>
> Massimo
>
>
>
> On Wednesday, 9 July 2014 08:12:55 UTC-5, yamandu wrote:
>>
>> I like it.
>>
>> I wonder if we could do it in an organized in some way.
>>
>> Recently I lost to convince my boss to change everything to web2py
>> because "there are few developers that know it".
>> So it would be very good to have a massive community. As we will have
>> more opportunities to work on the framework we love best.
>>
>> Groups like this have little exposure outside. We need something else!
>>
>>
>> 2014-07-09 10:03 GMT-03:00 Philip Kilner :
>>
>>> Hi,
>>>
>>> On 09/07/14 13:31, horridohobbyist wrote:
>>>
 Let's improve web2py's PR. A blast of articles over the next year could
 change the fortunes of our favourite web framework.


>>> Good piece, great finish.
>>>
>>> I'll take that as a challenge, and see if I can describe my own journey
>>> from desktop databases to web2py via Zope and Plone as succinctly!
>>>
>>> :-)
>>>
>>>
>>> --
>>>
>>> Regards,
>>>
>>> PhilK
>>>
>>>
>>> e: p...@xfr.co.uk - m: 07775 796 747
>>>
>>> 'work as if you lived in the early days of a better nation'
>>> - alasdair gray
>>>
>>>
>>> --
>>> 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 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 more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Att.
>>
>> Carlos J. Costa
>> Cientista da Computação
>> Esp. Gestão em Telecom
>> <º))><
>>
>  --
> 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 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 more options, visit https://groups.google.com/d/optout.
>



-- 
Att.

Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom
<º))><

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] web2py 2.9.7 is OUT

2014-09-05 Thread Carlos Costa
Cool!


2014-09-05 2:47 GMT-03:00 Massimo Di Pierro :

> same as 2.9.6 except:
>
> - a few more bug fixes
> - sessions are stores in sessions/XX/YY/ subfolder to avoid proliferation
> of files under the same folder which causes slowdown
> - cache.disk has been rewritten by Leonel and it much better.
>
>  --
> 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 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 more options, visit https://groups.google.com/d/optout.
>



-- 


Carlos J. Costa
Cientista da Computação  | BS Computer Science
Esp. Gestão em Telecom   | PgC Telecom Mangement
<º))><

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] Accesing table from external database

2014-09-17 Thread Carlos Costa
I don't get it.
You can make DAL connection to SQL Server, what is the problem you can not?

2014-09-17 16:39 GMT-03:00 José Eloy :

> Hello!
>
> I need to populate a combobox in a FORM (or SQL FORM) with the content of
> a field of a table which is in an external SQL Server database. I know that
> is not possible to reference an external database using DAL, but how can I
> to load the content of the external field in a SQLFORM field (combobox)?
>
> Any idea?
>
> Regards.
>
> --
> 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 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 more options, visit https://groups.google.com/d/optout.
>



-- 


Carlos J. Costa
Cientista da Computação  | BS Computer Science
Esp. Gestão em Telecom   | PgC Telecom Mangement
<º))><

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: We could have something like this

2014-10-22 Thread Carlos Costa
It does not the same thing but it does.

It was intend to keep recipes, but one can post links to anything too.
Thinking this way it is even better than meteorhelp.

But the main difference I see is the dated layout, design and UX.
It is a nice tool but already needs a refresh.

2014-10-21 11:23 GMT-02:00 António Ramos :

> differs in the fact that its not only for recipes
>
> i can see where to find videos, faqs, books etc as listed in the left
>
> Also reviews from users are nice.
> Maybe web2py slices does the same thing but its not clear for occasionaly
> users/readers
>
> regards
>
>
>
> 2014-10-20 23:39 GMT+01:00 Dave S :
>
>>
>>
>> On Monday, October 20, 2014 2:41:26 PM UTC-7, Ramos wrote:
>>>
>>> it was not a question.
>>> we know everything is possible.
>>>
>>> Its just that finding info about web2py are sometimes dificult
>>>
>>> A site like this could help and also rate the source of info.
>>>
>>>
>> In what way do you see it as being different web2pyslices?
>>
>> /dps
>>
>>
>>
>>
>>> Regards
>>>
>>> 2014-10-20 22:37 GMT+01:00 Derek :
>>>
 Is that a question? Are you asking if you can build a site like that? I
 don't see why not. In fact, instantpress almost meets your needs, though
 you might want to customize the theme a bit.

 On Monday, October 20, 2014 3:12:29 AM UTC-7, Ramos wrote:
>
> http://meteorhelp.com/
>
  --
 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 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...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

>>>
>>>  --
>> 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 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 more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> 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 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 more options, visit https://groups.google.com/d/optout.
>



-- 


Carlos J. Costa
Cientista da Computação  | BS Computer Science
Esp. Gestão em Telecom   | PgC Telecom Mangement
<º))><

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: We could have something like this

2014-10-22 Thread Carlos Costa
We have Web2py Slices.

http://www.web2pyslices.com

2014-10-20 19:41 GMT-02:00 António Ramos :

> it was not a question.
> we know everything is possible.
>
> Its just that finding info about web2py are sometimes dificult
>
> A site like this could help and also rate the source of info.
>
> Regards
>
> 2014-10-20 22:37 GMT+01:00 Derek :
>
>> Is that a question? Are you asking if you can build a site like that? I
>> don't see why not. In fact, instantpress almost meets your needs, though
>> you might want to customize the theme a bit.
>>
>> On Monday, October 20, 2014 3:12:29 AM UTC-7, Ramos wrote:
>>>
>>> http://meteorhelp.com/
>>>
>>  --
>> 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 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 more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> 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 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 more options, visit https://groups.google.com/d/optout.
>



-- 


Carlos J. Costa
Cientista da Computação  | BS Computer Science
Esp. Gestão em Telecom   | PgC Telecom Mangement
<º))><

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] Translate Controller names and Function names

2015-01-27 Thread Carlos Costa
Very interesting question. It must have some effect on SEO.
I have seen this post but it does not seem to solve exactly this
https://groups.google.com/forum/#!searchin/web2py/translate$20url/web2py/3adXUSCGQQQ/TaKfRagHyvMJ

Although if you have a different URL for different content it will be
indexed.
If the two apps are working in two different domains they will be indexed
accordingly.

I tried to do what you want by interception the request object but it doe
not work.

One way is to use routes.py and write one rule per URL.

2015-01-27 10:12 GMT-02:00 Francisco Costa :

> I'm using the Parameter-based rewrite system
> 
> and I would like to find a strategy to **translate controller names and
> function names**.
>
> I have 2 domains and I use only one app for both, but I would like to have
> the controllers and functions translated for the non-english one.
>
> Something like this:
>
>  - http://domain.com/article/new (english - default language)
>  - http://domain.pt/artigo/novo(portuguese - translation)
>
> What would be the best way to achieve this?
>
> PS: I also would like to have some redirection if someone typed the wrong
> domain extension:
> http://domain.pt/article/new -> http://domain.pt/artigo/novo
>
>
>  --
> 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 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 more options, visit https://groups.google.com/d/optout.
>



-- 


Carlos J. Costa
Cientista da Computação  | BS Computer Science
Esp. Gestão em Telecom   | PgC Telecom Mangement
<º))><

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Function being called twice from one button click

2015-02-26 Thread Carlos Costa
Use the browser console to investigate.
Look at the Network tab if it performs two actions with that URL.
Another thing that may sound stupid but it is not uncommon and I have
already seen it.
Some people double click buttons, icons in the web too.
I saw a case that a delay between clicks was need.
Another thing to look is the page delay. If it delays too much the person
may click again.

2015-02-26 9:46 GMT-03:00 Leonel Câmara :

> I don't see how it can happen. Your costumer probably has a virus or
> something. It may also be a buggy browser extension (tell him to try with
> the browser in private mode so the extensions are off).
>
> --
> 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 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 more options, visit https://groups.google.com/d/optout.
>



-- 


Carlos J. Costa
Cientista da Computação  | BS Computer Science
Esp. Gestão em Telecom   | PgC Telecom Mangement
<º))><

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Search in web2py book case sensitive

2015-03-20 Thread Carlos Costa
+1

2015-03-19 14:07 GMT-03:00 Massimo Di Pierro :

> done. Thanks.
>
> On Thursday, 19 March 2015 05:26:22 UTC-5, Kiran Subbaraman wrote:
>>
>> Yes, it is.
>> This line of code probably needs to be changed:
>> https://github.com/mdipierro/web2py-book/blob/master/
>> controllers/default.py#L152 to
>> k = data.lower().find(search.lower())
>>
>>
>>
>>
>> On Thursday, March 19, 2015 at 2:35:59 PM UTC+5:30, Kenneth wrote:
>>>
>>> Hello,
>>>
>>> is the search function in web2py Book supposed to be case sensitive?
>>>
>>> I went to the online book and typed sqlform in the search field.
>>>
>>> Was a little bit surprised when I got: No results for "sqlform"
>>> Searching for SQLFORM works.
>>>
>>>
>>> Kenneth
>>>
>>>  --
> 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 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 more options, visit https://groups.google.com/d/optout.
>



-- 


Carlos J. Costa
Cientista da Computação  | BS Computer Science
Esp. Gestão em Telecom   | PgC Telecom Mangement
<º))><

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] several vars in page

2015-03-20 Thread Carlos Costa
Question 1:
The parenthesis are wrong. The _href attribute is inside I and not A
helper. In fact, a parenthesis was missing too.
{{if page:}}
{{request.vars.page = [page - 1] }}
{{=SPAN(A(I(T('Previous')), _href = URL(vars = request.vars ) ) ) }}
{{elif len(rows) > items_per_page:}}
{{request.vars.page = [page + 1] }}
{{=SPAN(A(T('Next'), _href = URL(vars = request.vars ) ) ) }}
{{pass}}

Question 2:
If you are getting the following error: non-keyword arg after keyword arg
That is because you must always write first the "unnamed" arguments and and
the "named" arguments after.

2015-03-19 20:18 GMT-03:00 黄祥 :

> hi,
>
> i have several vars that store : view (grid or list), sort (a_z, z_a,
> highest_price, lowest_price, newest), search_product, category_product
> (drop down list IS_IN_DB() ) and product_brand (drop down list IS_IN_DB() )
>
> search_product, category_product (drop down list IS_IN_DB() ) and
> product_brand (drop down list IS_IN_DB() ) is on the other file (sidebar)
>
> *question 1 :*
> *works well*
> {{if page:}}
> {{=SPAN(A(T('Previous'),
>   _href = URL(*vars = dict(request.vars, page = [page - 1]*) ) ) ) }}
> {{elif len(rows) > items_per_page:}}
> {{=SPAN(A(T('Next'),
>   _href = URL(*vars = dict(request.vars, page = [page + 1]*) ) ) ) }}
> {{pass}}
>
> *no errors occured but the result is not expected*
> {{if page:}}
> * {{request.vars.page = [page - 1] }}*
> {{=SPAN(A(I(T('Previous'),
>   _href = URL(*vars = request.vars* ) ) ) }}
> {{elif len(rows) > items_per_page:}}
> * {{request.vars.page = [page + 1] }}*
> {{=SPAN(A(T('Next'),
>   _href = URL(*vars = request.vars* ) ) ) }}
> {{pass}}
>
> why the result is not expected, when i have multiple vars in 1 page (the
> page vars value is not store in vars)?
>
> *question 2 :*
> *works well*
> {{if page:}}
> {{=SPAN(A(T('Previous'),
>   _href = URL(vars = dict(*request.vars, page = [page - 1]*) ) ) ) }}
> {{elif len(rows) > items_per_page:}}
> {{=SPAN(A(T('Next'),
>   _href = URL(vars = dict(*request.vars, page = [page + 1]*) ) ) ) }}
> {{pass}}
>
> *an error occured*
> {{if page:}}
> {{=SPAN(A(T('Previous'),
>   _href = URL(vars = dict(*page = [page - 1], request.vars*) ) ) ) }}
> {{elif len(rows) > items_per_page:}}
> {{=SPAN(A(T('Next'),
>   _href = URL(vars = dict(*page = [page + 1], request.vars*) ) ) ) }}
> {{pass}}
>
> my 2nd question is why if i assign the var page first it return an error?
>
> thanks and best regards,
> stifan
>
> --
> 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 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 more options, visit https://groups.google.com/d/optout.
>



-- 


Carlos J. Costa
Cientista da Computação  | BS Computer Science
Esp. Gestão em Telecom   | PgC Telecom Mangement
<º))><

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Install in hostgator

2015-03-23 Thread Carlos Costa
Have you seen this?
http://www.web2pyslices.com/slice/show/1567/running-web2py-on-hostgator-shared-host

2015-03-22 23:24 GMT-03:00 LoveWeb2py :

> Did anyone ever find a complete solution to this? I'm using web2py on
> hostgator and after following this tutorial I can only get my app to work
> if I name it init. Also, if I try to access another controller for example:
> www.mysite.com/controller/ I get a 404 error. Does this have something to
> do with my htaccess or routes? They are setup exactly how this thread
> recommends
>
> On Thursday, April 10, 2014 at 1:28:14 PM UTC-4, RTBS wrote:
>>
>> Hey Criss,
>>
>> Great testimonial and I would love to use hostgator.  However, I would
>> also like to use web2py.  Currently, a complete tutorial does not exist to
>> make these two work together.  It seems some people have been able to get
>> this to work, unfortunately, I am not one of them.
>>
>> The django tutorial on the hostgator web page works great and only took
>> about 10 min. to get working.  https://support.hostgator.
>> com/articles/django-with-fastcgi
>>
>> I am looking for something similar for web2py.  I really hate to tie up
>> their support team on an issue that they shouldn't be supporting.  I'm
>> surprised that no one has written a white-paper how-to on this one.  Maybe
>> I'm missing something so simple that no one has bothered to mention it.
>>
>> Thanks again, you have solidified my resolve to make this work (or at
>> least ask their support team again).
>>
>>
>> On Wednesday, April 9, 2014 10:43:10 AM UTC-7, criss shirley wrote:
>>>
>>> Hey Everyone
>>>
>>> I saw many of peoples asking about the best web hosting with best
>>> resultat so
>>>
>>>  i'm here to giving and sharing you my experience :
>>>
>>> I have been with Hostgator for over 4 years now having moved from many
>>> different hosts before finding the right one, Hostgator. I have never had
>>> such a fantastic service from any company anywhere! Hostgator are simply
>>> the best you will find, the customer service is amazing, 24/7 and they help
>>> with all kinds of advice, even when it isnt server related. They have techs
>>> working for them that actually care for the customers and this has been
>>> proven time and time again when I had issues with scripts, even though it
>>> wasnt up to Hostgator to fix these issues, they gave me great advice to get
>>> the scripts working. I have a dedicated pro server, fully managed and a
>>> level 4 VPS, both are perfect for my entire business and I have a lot of
>>> sites!
>>>
>>> Anyway, Hostgator are simply the best hosting company out there and that
>>> is the reason why they are so popular, if you are searching for a hosting
>>> company, you dont need to, just go to Hostgator!
>>>
>>> If you are looking to host your website, my strongest advise is to go
>>> with Hostgator and you will never regret doing so...
>>>
>>> With hostgator 1 cent coupon, you can get hostgator hosting in just 1
>>> cent for first month.
>>>
>>>  You can use following coupons to get discount:
>>>
>>> $0.01 First Month, Coupon Code -> markdownhost
>>>
>>> To sign up in hostgator here : http://goo.gl/3cVZNd
>>>
>>>
>>> Le samedi 14 mai 2011 05:21:13 UTC+1, José Eloy a écrit :

 Hello!

 Recently a customer bought a hosting plan (business) with hostgator.
 I'm developing for him a web2py application, I have doubts of how to
 deploy it. Somebody can help me? The application runs well in
 localhost (ubuntu).

 Thanks in advance

  --
> 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 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 more options, visit https://groups.google.com/d/optout.
>



-- 


Carlos J. Costa
Cientista da Computação  | BS Computer Science
Esp. Gestão em Telecom   | PgC Telecom Mangement
<º))><

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: WEB2PY Certificate ?

2015-03-28 Thread Carlos Costa
And what is the future of experts4solutions ?

2015-03-25 0:19 GMT-03:00 Massimo Di Pierro :

> Looks like you did. :-O
>
> Anyway, the point of a university is that we do not usually teach courses
> about specific technologies. We use specific technologies to serve more
> abstract purposes. For example I teach CSC438 which is about the internal
> design of web frameworks and I use web2py as one of the (main) examples.
>
> We use Python in many classes but the goal is not teach python. The goal
> is to teach programming (for, if, def, return).
>
> Anyway, it would be nice to have more material about teaching web2py
> and/or teaching with web2py. Perhaps we could crowdsource the effort. If I
> have a list of 10 topics that people would want me to cover in detail I can
> make some short videos. I am sure other people here would be willing to
> help.
>
> Massimo
>
>
>
> On Tuesday, 24 March 2015 12:39:02 UTC-5, Ron Chatterjee wrote:
>>
>> We should clone you saying!? lol. jk:-). Would be nice to have an advance
>> course like that. Someone should write to the dean and sign me up.
>>
>>
>>
>> On Tuesday, March 24, 2015 at 12:19:23 PM UTC-4, Massimo Di Pierro wrote:
>>>
>>> No. Perhaps there should be. But not yet.
>>>
>>> On Tuesday, 24 March 2015 08:40:40 UTC-5, Ron Chatterjee wrote:

 Massimo,

 On that note. I have seen some of that lecture and it seems very
 undergrad level. Is there a grad level course that you can offer where we
 can go through each API (or the most important one). Lets create few stand
 alone code and go line by line to understand how the framework is made? Get
 into more depth and complexity. Lets say someone is already a web2py
 developer but he wants to push the envelop and become an expert or even
 better (since no one can't clone you. lol). Is there a course like that?

 Ron


 On Tuesday, March 24, 2015 at 3:34:26 AM UTC-4, Massimo Di Pierro wrote:
>
> Yes.
> http://www.cdm.depaul.edu/ipd/Programs/Pages/
> WebDevelopmentwithPython.aspx
>
> I teach it and it is basically a course on web2py. Problem is, I am
> too busy to teach it and I have not been teaching it in one year.
>
> Anyway, past lectures are all online. I am considering automating the
> certification process. I have a large database of questions/problems.
>
> Massimo
>
> On Monday, 23 March 2015 21:53:16 UTC-5, KPlusPlus wrote:
>>
>> Hello
>>
>> I was wondering if there's an organization/institution can offer a
>> WEB2PY Certificate with or without Course ?
>>
>>  --
> 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 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 more options, visit https://groups.google.com/d/optout.
>



-- 


Carlos J. Costa
Cientista da Computação  | BS Computer Science
Esp. Gestão em Telecom   | PgC Telecom Mangement
<º))><

-- 
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 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 more options, visit https://groups.google.com/d/optout.


[web2py] websocket messaging VS scheduler

2015-03-31 Thread Carlos Costa
I would like to use scheduler with a task sends websocket messages but it 
looks like they conflict with each other.
I am able to run only one of them.

If I start scheduler first, websocket freezes web2py.
If I start websocket first scheduler do not run any worker.

I start we2py with web2py.py -K app -a password -X -D15

In some action I do this to start the websocket

import subprocess
subprocess.call("python gluon/contrib/websocket_messaging.py -k mykey -p 
".split(' '))

but this freezes everything.

If I start websocket from shell manually both things work but I would like 
my app  to guarantee that things are running.

Some idea why this is not possible?

Running 2.9.12 with python 2.7 on Ubuntu 14.10

-- 
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 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 more options, visit https://groups.google.com/d/optout.


[web2py] How to read latin encoded characters correctly from MSSQL?

2015-04-17 Thread Carlos Costa
Whe I use pyodbc only, I can read and convert characters correctly.
But always replace accentuated characters with '?'.

I already tried the db_codec='cp1252' and db_codec='latin1' attribute in 
DAL.
In fact, MSSQL uses its own collation: sql_latin1_general_cp1_ci_as as 
collation.
But both latin1 and cp1252 work fine with pyodbc only by simply 
doing row[0].decode('cp1252') for example.

I also tried to use filter_out and SQLCustomType but they receive tha value 
already decoded wrong.

Any other thing may I be missing beyond hack DAL?

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: web2pyslices

2017-03-22 Thread Carlos Costa
I'd like to help maintain it. And I vote for a web2py solution.
Not using would let us in a "shoemaker's son always goes barefoot"
situation.
I think this is embarrassing.

2017-03-22 1:23 GMT-03:00 Kiran Subbaraman :

> I agree that the managing web2pyslices as issues may be one way to go.A
> couple of options that I have in mind
>
> *Option 1 / bl.ocks.org *
> But there is another idea that I have been considering for sometime...
> I follow the d3js community once in a while, and they have this nice way
> to contribute and expand on the examples created using d3js. These examples
> are hosted on http://bl.ocks.org. If an example is created on Gist, and
> follows a prescribed template, then it is hosted as an example on
> bl.ocks.org.
>
> The template and process is defined here: https://bl.ocks.org/-/about
>
> The work that the bl.ocks.org application does, needs to be replicated in
> some form by another application in the web2py world (This has similar
> problems - hosting, and computation power, etc)
>
> *Option 2 / Gists, with PR based list*
>
>- Post a slice on gist
>- Raise a PR, with this link - this is similar to the way one raises
>PRs to lists such as this - https://github.com/akullpp/awesome-java
>- If someone creates a web2pyslices.github.io on this site, then you
>have an autogenerated webpage with the curated list of slices.
>
>
> The reason am plugging for Gist based solutions is that it makes
> contribution to that Gist, or improvement in code a possibility (however
> remote).
>
> On Wednesday, March 22, 2017 at 1:23:16 AM UTC+5:30, Massimo Di Pierro
> wrote:
>>
>> web2pyslices is becoming hard to maintain. Right now the best solution is
>> to create a github repo and move all the recipes into issues. We will
>> deprecate by closing them. People with gihub accounts can post and comment
>> issues/recipes. Unless you have a better solution, this will be done within
>> the next week.
>>
>> One sideffect is that we will lose some information about authorship of
>> the recipes and the comments. We will add a notice "created by {...}" but
>> the {...} name will be the web2pyslices username and that may not mean
>> anything in the gihub context.
>>
>> At this I do not have a better solution but please share your thoughts.
>>
>> --
> 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 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 more options, visit https://groups.google.com/d/optout.
>



-- 


Carlos J. Costa
Cientista da Computação  | BS Computer Science
Esp. Gestão em Telecom   | PgC Telecom Mangement
<º))><

-- 
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 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 more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: web2pyslices

2017-03-22 Thread Carlos Costa
+1 for the web2py fiddle idea.
Maybe it could be run on an entirely Python sandbox. There are some libs
available to accomplish this.

2017-03-22 11:29 GMT-03:00 Richard Vézina :

> Just an idea, need coding though, maybe we could create a basic app where
> the slice has to be a working example a la fiddle (web2py-fiddle). I know
> it difficult and involve a lot of security, sandboxing, etc, but it would
> be interresting to have demo of slice, that make sure we have the exact
> code to make it works...
>
> Richard
>
> On Wed, Mar 22, 2017 at 7:42 AM, Carlos Costa 
> wrote:
>
>> I'd like to help maintain it. And I vote for a web2py solution.
>> Not using would let us in a "shoemaker's son always goes barefoot"
>> situation.
>> I think this is embarrassing.
>>
>> 2017-03-22 1:23 GMT-03:00 Kiran Subbaraman :
>>
>>> I agree that the managing web2pyslices as issues may be one way to go.A
>>> couple of options that I have in mind
>>>
>>> *Option 1 / bl.ocks.org <http://bl.ocks.org>*
>>> But there is another idea that I have been considering for sometime...
>>> I follow the d3js community once in a while, and they have this nice way
>>> to contribute and expand on the examples created using d3js. These examples
>>> are hosted on http://bl.ocks.org. If an example is created on Gist, and
>>> follows a prescribed template, then it is hosted as an example on
>>> bl.ocks.org.
>>>
>>> The template and process is defined here: https://bl.ocks.org/-/about
>>>
>>> The work that the bl.ocks.org application does, needs to be replicated
>>> in some form by another application in the web2py world (This has similar
>>> problems - hosting, and computation power, etc)
>>>
>>> *Option 2 / Gists, with PR based list*
>>>
>>>- Post a slice on gist
>>>- Raise a PR, with this link - this is similar to the way one raises
>>>PRs to lists such as this - https://github.com/akullpp/awesome-java
>>>- If someone creates a web2pyslices.github.io on this site, then you
>>>have an autogenerated webpage with the curated list of slices.
>>>
>>>
>>> The reason am plugging for Gist based solutions is that it makes
>>> contribution to that Gist, or improvement in code a possibility (however
>>> remote).
>>>
>>> On Wednesday, March 22, 2017 at 1:23:16 AM UTC+5:30, Massimo Di Pierro
>>> wrote:
>>>>
>>>> web2pyslices is becoming hard to maintain. Right now the best solution
>>>> is to create a github repo and move all the recipes into issues. We will
>>>> deprecate by closing them. People with gihub accounts can post and comment
>>>> issues/recipes. Unless you have a better solution, this will be done within
>>>> the next week.
>>>>
>>>> One sideffect is that we will lose some information about authorship of
>>>> the recipes and the comments. We will add a notice "created by {...}" but
>>>> the {...} name will be the web2pyslices username and that may not mean
>>>> anything in the gihub context.
>>>>
>>>> At this I do not have a better solution but please share your thoughts.
>>>>
>>>> --
>>> 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 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 more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>>
>>
>> Carlos J. Costa
>> Cientista da Computação  | BS Computer Science
>> Esp. Gestão em Telecom   | PgC Telecom Mangement
>> <º))><
>>
>> --
>> 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 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 more options,

  1   2   >