Re: [web2py] Re: Multi-language field content

2015-10-23 Thread Richard Vézina
This is an old thread, but can we hava this to work I didn't see any
japanese specific translation file include in the last welcome app...

Thanks

Richard

On Sat, May 4, 2013 at 10:22 AM, 黄祥  wrote:

> imho, i think your define table is redundant if you do like your post
> above e.g. field name1 is redundant with name2.
> i think it can be achieve you only create 1 table field called name and
> translate it using T(). define the japanese language translation on the
> languages folder and create new file (jp-romaji.py, jp-kanji.py,
> jp-hiragana.py, jp-katakana.py) after that create the language selector
> like in the admin page.
> if you want to set the default language for japanese language (romaji or
> kanji or hiragana or katakana), you can replace the layout.html in the
> views folder
> e.g.
> 
> for example replace with the japanese file that you've define before
> (jp-romaji.py, jp-kanji.py, jp-hiragana.py, jp-katakana.py)
> 
>
> hope this can help
>
> best regards
>
>
> On Saturday, May 4, 2013 9:42:05 AM UTC-4, Reza Shah wrote:
>>
>> Hi,
>>
>> I'm planning a feature which allowed the user to display the content of
>> country name in english or japanese and for item_data name in english, in
>> japanese(kanji) or in japanese pronunciation(kana).
>> The target user mostly foreigners which have basic japanese ability, they
>> just use visual ability to match character written in website and in actual
>> product.
>> In this context the text in website will be mixed with english and
>> japanese.
>>
>> With these table structure:
>> db.define_table('country',
>> Field('name1', label=T('Name'), unique=True),
>> Field('name2', label=T('Name(Japanese)'), unique=True),
>> format='%(name1)s')
>>
>> db.define_table('item_data',
>> Field('name1', label=T('Name'), comment=T('Commercial name')),
>> Field('name2', label=T('Name(Romaji)'), comment=T('Product name in
>> romaji')),
>> Field('name3', label=T('Name(Kana)'), comment=T('Product name in
>> kana')),
>> Field('country_id', 'reference country', label=T('Country of
>> Origin'), requires=IS_EMPTY_OR(IS_IN_DB(db, 'country.id', '%(name1)s',
>> orderby=db.country.id, zero=T('-- Select product country --'))),
>> represent=lambda id, row: db.country(id).name1 if id else ''),
>> format='%(name1)s')
>>
>> db.define_table('setting',
>> Field('show_country_in_kanji')
>>
>>
>> What is the best practice for this kind of feature?
>> Should i create the table country and table item_data with one name
>> field(english only), how to display it in japanese?
>> If the above structure can be used, how to display the
>> item_data.country_id based on user setting  for example in japanese(kanji)?
>>
>>
>> Thanks,
>> Reza
>>
> --
>
> ---
> 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.
>
>
>

-- 
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: Resource webservice built on web2py for web2py comunity [BETA]

2015-10-23 Thread Richard Vézina
It will make it more difficult to review IMHO and you kind of need to
install the app before you can even look at the code... Since there can
have nasty piece of code in an uploaded app, I would really avoid this path.

Richard

On Fri, Oct 23, 2015 at 2:20 PM, Ron Chatterjee 
wrote:

> Right, or have a link where we can upload .w2p file and install, and have
> another link to that app to see if its working.
>
> On Friday, October 23, 2015 at 1:42:12 PM UTC-4, Richard wrote:
>>
>> Just by providing a way to the user to create model/controller/view file
>> to the web2py ref app securely (which is the difficult path, maybe having a
>> review of posted code can do the trick) can at least let us know if the
>> code can work under the current version of web2py that is in use by the
>> web2py ref site.
>>
>> Richard
>>
>> On Fri, Oct 23, 2015 at 11:58 AM, Ron Chatterjee 
>> wrote:
>>
>>> I agree with Richard. An online demo to make sure the code works will be
>>> great.
>>>
>>> On Friday, October 23, 2015 at 11:30:15 AM UTC-4, Richard wrote:

 What about snippet validation of code infrastructure??

 It sound crazy, but I am sure we can find a way to do it...

 Just a working Demo environnement that implement the proposed snippet
 could do it, if the demo run that mean the snippet is still working is not
 snippet may be put in a queue to be revised and update...

 Richard

 On Fri, Oct 23, 2015 at 9:58 AM, Ron Chatterjee 
 wrote:

> Wondering if we can have more examples, source code and snippets gets
> put into web2pyref. I don't know who is maintaining the page but few 
> things
> I wish I could use example of sending email using gmail SMTP and contact
> form, voting, likes, rating, bootstrap3 and social media integration etc.
> Just some thoughts...
>
>
>
> On Monday, June 8, 2015 at 8:19:32 PM UTC-4, Carlos A. Armenta Castro
> wrote:
>>
>> I don't know if web2pyslices is better than web2pyref and it doesn't
>> care for me. My personal opinion is: We need a decent, powerful and 
>> usable
>> website to collect all ours code snippets, examples, recipes, plugins, 
>> demo
>> sites, templates (bs2, bs3, etc.) and for to be honest that is our
>> Achilles' heel. We have a really great community, but a no optimal system
>> to show our work to the world (and to motivate the newbies).
>>
>> Finally, I appreciate the work of the web2pyref.com and
>> web2pyslices.com, and I think we need to be part of that kind of
>> projects contributing to the source code, promotion and with donations.
>>
>> Sorry for my bad english.
>>
>> El lunes, 8 de junio de 2015, 6:16:43 (UTC-7), Carlos Cesar Caballero
>> Díaz escribió:
>>>
>>> Some months ago, because I can´t post anything to web2pyslices
>>> (others have the same problem and no one knows why) I post that I could
>>> motivate some of my team (including a designer) for building (and 
>>> maintain)
>>> a new web2pyslices, and the proposal remains on the table. Right now I 
>>> have
>>> two ideas, first, open source the site, and motivate the comunity to
>>> contribute, the other thing is, taking advantage of the web2pyslices
>>> maintenance problems, mix everything in a improved new web2py site, and
>>> web2pyslices could continue alive, for consulting, in some kind of read
>>> only mode.
>>>
>>>
>>> El 07/06/15 a las 20:49, Massimo Di Pierro escribió:
>>>
>>> The maintainers of web2pyslices do not want to do it any more. The
>>> domain has been donated to me (although we are in the process of
>>> transferring it) so if Ivica want to put the effort of maintaining an
>>> alternate site, that is better for me than maintaining web2pyslices, as
>>> long as info is not lost.
>>>
>>>
>>> On Saturday, 6 June 2015 04:52:56 UTC-5, Ivica Kralj wrote:

 That is fine Niphlod. I created this project, primary for personal
 reason to have quick resource to examples when I 'm working on my small
 projects,. I think people, specially newbies, might find it useful.
 Comparing myself to allot of members here, I do consider myself a 
 newbie,
 although I have joined this group over 4-5 years ago or so.

 Any feature can be added if its needed or requested.

 I agree, over the years there were number of resources,  most of
 them got abandoned, but their resources are still out here (alter ego 
 for
 example), and I still regularly visit them. Even if they might not work
 with current web2py version, we can still learn from them, well I do.


 On Friday, 5 June 2015 21:35:08 UTC+2, Niphlod wrote:
>
> not to be 

Re: [web2py] Re: Resource webservice built on web2py for web2py comunity [BETA]

2015-10-23 Thread Ron Chatterjee
Right, or have a link where we can upload .w2p file and install, and have 
another link to that app to see if its working. 

On Friday, October 23, 2015 at 1:42:12 PM UTC-4, Richard wrote:
>
> Just by providing a way to the user to create model/controller/view file 
> to the web2py ref app securely (which is the difficult path, maybe having a 
> review of posted code can do the trick) can at least let us know if the 
> code can work under the current version of web2py that is in use by the 
> web2py ref site.
>
> Richard
>
> On Fri, Oct 23, 2015 at 11:58 AM, Ron Chatterjee  > wrote:
>
>> I agree with Richard. An online demo to make sure the code works will be 
>> great. 
>>
>> On Friday, October 23, 2015 at 11:30:15 AM UTC-4, Richard wrote:
>>>
>>> What about snippet validation of code infrastructure??
>>>
>>> It sound crazy, but I am sure we can find a way to do it...
>>>
>>> Just a working Demo environnement that implement the proposed snippet 
>>> could do it, if the demo run that mean the snippet is still working is not 
>>> snippet may be put in a queue to be revised and update...
>>>
>>> Richard
>>>
>>> On Fri, Oct 23, 2015 at 9:58 AM, Ron Chatterjee  
>>> wrote:
>>>
 Wondering if we can have more examples, source code and snippets gets 
 put into web2pyref. I don't know who is maintaining the page but few 
 things 
 I wish I could use example of sending email using gmail SMTP and contact 
 form, voting, likes, rating, bootstrap3 and social media integration etc. 
 Just some thoughts...



 On Monday, June 8, 2015 at 8:19:32 PM UTC-4, Carlos A. Armenta Castro 
 wrote:
>
> I don't know if web2pyslices is better than web2pyref and it doesn't 
> care for me. My personal opinion is: We need a decent, powerful and 
> usable 
> website to collect all ours code snippets, examples, recipes, plugins, 
> demo 
> sites, templates (bs2, bs3, etc.) and for to be honest that is our 
> Achilles' heel. We have a really great community, but a no optimal system 
> to show our work to the world (and to motivate the newbies). 
>
> Finally, I appreciate the work of the web2pyref.com and 
> web2pyslices.com, and I think we need to be part of that kind of 
> projects contributing to the source code, promotion and with donations.
>
> Sorry for my bad english.
>
> El lunes, 8 de junio de 2015, 6:16:43 (UTC-7), Carlos Cesar Caballero 
> Díaz escribió:
>>
>> Some months ago, because I can´t post anything to web2pyslices 
>> (others have the same problem and no one knows why) I post that I could 
>> motivate some of my team (including a designer) for building (and 
>> maintain) 
>> a new web2pyslices, and the proposal remains on the table. Right now I 
>> have 
>> two ideas, first, open source the site, and motivate the comunity to 
>> contribute, the other thing is, taking advantage of the web2pyslices 
>> maintenance problems, mix everything in a improved new web2py site, and 
>> web2pyslices could continue alive, for consulting, in some kind of read 
>> only mode.
>>
>>
>> El 07/06/15 a las 20:49, Massimo Di Pierro escribió:
>>
>> The maintainers of web2pyslices do not want to do it any more. The 
>> domain has been donated to me (although we are in the process of 
>> transferring it) so if Ivica want to put the effort of maintaining an 
>> alternate site, that is better for me than maintaining web2pyslices, as 
>> long as info is not lost. 
>>
>>
>> On Saturday, 6 June 2015 04:52:56 UTC-5, Ivica Kralj wrote: 
>>>
>>> That is fine Niphlod. I created this project, primary for personal 
>>> reason to have quick resource to examples when I 'm working on my small 
>>> projects,. I think people, specially newbies, might find it useful. 
>>> Comparing myself to allot of members here, I do consider myself a 
>>> newbie, 
>>> although I have joined this group over 4-5 years ago or so. 
>>>
>>> Any feature can be added if its needed or requested. 
>>>
>>> I agree, over the years there were number of resources,  most of 
>>> them got abandoned, but their resources are still out here (alter ego 
>>> for 
>>> example), and I still regularly visit them. Even if they might not work 
>>> with current web2py version, we can still learn from them, well I do.
>>>
>>>
>>> On Friday, 5 June 2015 21:35:08 UTC+2, Niphlod wrote: 

 not to be the buzzkiller but I won't post any example there that 
 exists on web2pyslices.com that ATM has at least 2 killer 
 features: social login and packages uploads.  

 BTW: until all snippets are continously tested, this is going to 
 become the 4th incarnation of a "web2py snippet blog/container/etc" 
 with 
 

Re: [web2py] Re: Resource webservice built on web2py for web2py comunity [BETA]

2015-10-23 Thread Ron Chatterjee
I see. Its not my site or maintaining. It will be upto Ivica I am assuming. 
But good discussion! 

On Friday, October 23, 2015 at 2:31:49 PM UTC-4, Richard wrote:
>
> It will make it more difficult to review IMHO and you kind of need to 
> install the app before you can even look at the code... Since there can 
> have nasty piece of code in an uploaded app, I would really avoid this path.
>
> Richard
>
> On Fri, Oct 23, 2015 at 2:20 PM, Ron Chatterjee  > wrote:
>
>> Right, or have a link where we can upload .w2p file and install, and have 
>> another link to that app to see if its working. 
>>
>> On Friday, October 23, 2015 at 1:42:12 PM UTC-4, Richard wrote:
>>>
>>> Just by providing a way to the user to create model/controller/view file 
>>> to the web2py ref app securely (which is the difficult path, maybe having a 
>>> review of posted code can do the trick) can at least let us know if the 
>>> code can work under the current version of web2py that is in use by the 
>>> web2py ref site.
>>>
>>> Richard
>>>
>>> On Fri, Oct 23, 2015 at 11:58 AM, Ron Chatterjee  
>>> wrote:
>>>
 I agree with Richard. An online demo to make sure the code works will 
 be great. 

 On Friday, October 23, 2015 at 11:30:15 AM UTC-4, Richard wrote:
>
> What about snippet validation of code infrastructure??
>
> It sound crazy, but I am sure we can find a way to do it...
>
> Just a working Demo environnement that implement the proposed snippet 
> could do it, if the demo run that mean the snippet is still working is 
> not 
> snippet may be put in a queue to be revised and update...
>
> Richard
>
> On Fri, Oct 23, 2015 at 9:58 AM, Ron Chatterjee  
> wrote:
>
>> Wondering if we can have more examples, source code and snippets gets 
>> put into web2pyref. I don't know who is maintaining the page but few 
>> things 
>> I wish I could use example of sending email using gmail SMTP and contact 
>> form, voting, likes, rating, bootstrap3 and social media integration 
>> etc. 
>> Just some thoughts...
>>
>>
>>
>> On Monday, June 8, 2015 at 8:19:32 PM UTC-4, Carlos A. Armenta Castro 
>> wrote:
>>>
>>> I don't know if web2pyslices is better than web2pyref and it doesn't 
>>> care for me. My personal opinion is: We need a decent, powerful and 
>>> usable 
>>> website to collect all ours code snippets, examples, recipes, plugins, 
>>> demo 
>>> sites, templates (bs2, bs3, etc.) and for to be honest that is our 
>>> Achilles' heel. We have a really great community, but a no optimal 
>>> system 
>>> to show our work to the world (and to motivate the newbies). 
>>>
>>> Finally, I appreciate the work of the web2pyref.com and 
>>> web2pyslices.com, and I think we need to be part of that kind of 
>>> projects contributing to the source code, promotion and with donations.
>>>
>>> Sorry for my bad english.
>>>
>>> El lunes, 8 de junio de 2015, 6:16:43 (UTC-7), Carlos Cesar 
>>> Caballero Díaz escribió:

 Some months ago, because I can´t post anything to web2pyslices 
 (others have the same problem and no one knows why) I post that I 
 could 
 motivate some of my team (including a designer) for building (and 
 maintain) 
 a new web2pyslices, and the proposal remains on the table. Right now I 
 have 
 two ideas, first, open source the site, and motivate the comunity to 
 contribute, the other thing is, taking advantage of the web2pyslices 
 maintenance problems, mix everything in a improved new web2py site, 
 and 
 web2pyslices could continue alive, for consulting, in some kind of 
 read 
 only mode.


 El 07/06/15 a las 20:49, Massimo Di Pierro escribió:

 The maintainers of web2pyslices do not want to do it any more. The 
 domain has been donated to me (although we are in the process of 
 transferring it) so if Ivica want to put the effort of maintaining an 
 alternate site, that is better for me than maintaining web2pyslices, 
 as 
 long as info is not lost. 


 On Saturday, 6 June 2015 04:52:56 UTC-5, Ivica Kralj wrote: 
>
> That is fine Niphlod. I created this project, primary for personal 
> reason to have quick resource to examples when I 'm working on my 
> small 
> projects,. I think people, specially newbies, might find it useful. 
> Comparing myself to allot of members here, I do consider myself a 
> newbie, 
> although I have joined this group over 4-5 years ago or so. 
>
> Any feature can be added if its needed or requested. 
>
> I agree, over the years there 

Re: [web2py] Re: Resource webservice built on web2py for web2py comunity [BETA]

2015-10-23 Thread Ron Chatterjee
I agree with Richard. An online demo to make sure the code works will be 
great. 

On Friday, October 23, 2015 at 11:30:15 AM UTC-4, Richard wrote:
>
> What about snippet validation of code infrastructure??
>
> It sound crazy, but I am sure we can find a way to do it...
>
> Just a working Demo environnement that implement the proposed snippet 
> could do it, if the demo run that mean the snippet is still working is not 
> snippet may be put in a queue to be revised and update...
>
> Richard
>
> On Fri, Oct 23, 2015 at 9:58 AM, Ron Chatterjee  > wrote:
>
>> Wondering if we can have more examples, source code and snippets gets put 
>> into web2pyref. I don't know who is maintaining the page but few things I 
>> wish I could use example of sending email using gmail SMTP and contact 
>> form, voting, likes, rating, bootstrap3 and social media integration etc. 
>> Just some thoughts...
>>
>>
>>
>> On Monday, June 8, 2015 at 8:19:32 PM UTC-4, Carlos A. Armenta Castro 
>> wrote:
>>>
>>> I don't know if web2pyslices is better than web2pyref and it doesn't 
>>> care for me. My personal opinion is: We need a decent, powerful and usable 
>>> website to collect all ours code snippets, examples, recipes, plugins, demo 
>>> sites, templates (bs2, bs3, etc.) and for to be honest that is our 
>>> Achilles' heel. We have a really great community, but a no optimal system 
>>> to show our work to the world (and to motivate the newbies). 
>>>
>>> Finally, I appreciate the work of the web2pyref.com and web2pyslices.com, 
>>> and I think we need to be part of that kind of projects contributing to the 
>>> source code, promotion and with donations.
>>>
>>> Sorry for my bad english.
>>>
>>> El lunes, 8 de junio de 2015, 6:16:43 (UTC-7), Carlos Cesar Caballero 
>>> Díaz escribió:

 Some months ago, because I can´t post anything to web2pyslices (others 
 have the same problem and no one knows why) I post that I could motivate 
 some of my team (including a designer) for building (and maintain) a new 
 web2pyslices, and the proposal remains on the table. Right now I have two 
 ideas, first, open source the site, and motivate the comunity to 
 contribute, the other thing is, taking advantage of the web2pyslices 
 maintenance problems, mix everything in a improved new web2py site, and 
 web2pyslices could continue alive, for consulting, in some kind of read 
 only mode.


 El 07/06/15 a las 20:49, Massimo Di Pierro escribió:

 The maintainers of web2pyslices do not want to do it any more. The 
 domain has been donated to me (although we are in the process of 
 transferring it) so if Ivica want to put the effort of maintaining an 
 alternate site, that is better for me than maintaining web2pyslices, as 
 long as info is not lost. 


 On Saturday, 6 June 2015 04:52:56 UTC-5, Ivica Kralj wrote: 
>
> That is fine Niphlod. I created this project, primary for personal 
> reason to have quick resource to examples when I 'm working on my small 
> projects,. I think people, specially newbies, might find it useful. 
> Comparing myself to allot of members here, I do consider myself a newbie, 
> although I have joined this group over 4-5 years ago or so. 
>
> Any feature can be added if its needed or requested. 
>
> I agree, over the years there were number of resources,  most of them 
> got abandoned, but their resources are still out here (alter ego for 
> example), and I still regularly visit them. Even if they might not work 
> with current web2py version, we can still learn from them, well I do.
>
>
> On Friday, 5 June 2015 21:35:08 UTC+2, Niphlod wrote: 
>>
>> not to be the buzzkiller but I won't post any example there that 
>> exists on web2pyslices.com that ATM has at least 2 killer features: 
>> social login and packages uploads.  
>>
>> BTW: until all snippets are continously tested, this is going to 
>> become the 4th incarnation of a "web2py snippet blog/container/etc" with 
>> outdated pieces of code within the next year, when the buzz wears 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+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 

Re: [web2py] Re: Resource webservice built on web2py for web2py comunity [BETA]

2015-10-23 Thread Ron Chatterjee
Wondering if we can have more examples, source code and snippets gets put 
into web2pyref. I don't know who is maintaining the page but few things I 
wish I could use example of sending email using gmail SMTP and contact 
form, voting, likes, rating, bootstrap3 and social media integration etc. 
Just some thoughts...



On Monday, June 8, 2015 at 8:19:32 PM UTC-4, Carlos A. Armenta Castro wrote:
>
> I don't know if web2pyslices is better than web2pyref and it doesn't care 
> for me. My personal opinion is: We need a decent, powerful and usable 
> website to collect all ours code snippets, examples, recipes, plugins, demo 
> sites, templates (bs2, bs3, etc.) and for to be honest that is our 
> Achilles' heel. We have a really great community, but a no optimal system 
> to show our work to the world (and to motivate the newbies). 
>
> Finally, I appreciate the work of the web2pyref.com and web2pyslices.com, 
> and I think we need to be part of that kind of projects contributing to the 
> source code, promotion and with donations.
>
> Sorry for my bad english.
>
> El lunes, 8 de junio de 2015, 6:16:43 (UTC-7), Carlos Cesar Caballero Díaz 
> escribió:
>>
>> Some months ago, because I can´t post anything to web2pyslices (others 
>> have the same problem and no one knows why) I post that I could motivate 
>> some of my team (including a designer) for building (and maintain) a new 
>> web2pyslices, and the proposal remains on the table. Right now I have two 
>> ideas, first, open source the site, and motivate the comunity to 
>> contribute, the other thing is, taking advantage of the web2pyslices 
>> maintenance problems, mix everything in a improved new web2py site, and 
>> web2pyslices could continue alive, for consulting, in some kind of read 
>> only mode.
>>
>>
>> El 07/06/15 a las 20:49, Massimo Di Pierro escribió:
>>
>> The maintainers of web2pyslices do not want to do it any more. The domain 
>> has been donated to me (although we are in the process of transferring it) 
>> so if Ivica want to put the effort of maintaining an alternate site, that 
>> is better for me than maintaining web2pyslices, as long as info is not 
>> lost. 
>>
>>
>> On Saturday, 6 June 2015 04:52:56 UTC-5, Ivica Kralj wrote: 
>>>
>>> That is fine Niphlod. I created this project, primary for personal 
>>> reason to have quick resource to examples when I 'm working on my small 
>>> projects,. I think people, specially newbies, might find it useful. 
>>> Comparing myself to allot of members here, I do consider myself a newbie, 
>>> although I have joined this group over 4-5 years ago or so. 
>>>
>>> Any feature can be added if its needed or requested. 
>>>
>>> I agree, over the years there were number of resources,  most of them 
>>> got abandoned, but their resources are still out here (alter ego for 
>>> example), and I still regularly visit them. Even if they might not work 
>>> with current web2py version, we can still learn from them, well I do.
>>>
>>>
>>> On Friday, 5 June 2015 21:35:08 UTC+2, Niphlod wrote: 

 not to be the buzzkiller but I won't post any example there that exists 
 on web2pyslices.com that ATM has at least 2 killer features: social 
 login and packages uploads.  

 BTW: until all snippets are continously tested, this is going to become 
 the 4th incarnation of a "web2py snippet blog/container/etc" with outdated 
 pieces of code within the next year, when the buzz wears 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+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.


[web2py] Should this work in Web2py

2015-10-23 Thread Anthony Smith

I am trying to update *withhold_until_date* with the following 



import datetime
#product withholding in days
days = (0)

#get the days
pdays_row = db(db.product.withholding_period>0).select().first()
pdays =  pdays_row.pdays

#get the date
wdate_rows = db(db.stock_task.completed_date>0).select().first()
wdate = wdate_row.wdate

#finish date
fdate = wdate + datetime.timedelta(days + pdays)


def stock_tasks():
db.stock_task.created_on.readable = True
db.stock_task.created_by.readable = True
db.stock_task.task_name.represent =lambda stock_task,row:\
A(stock_task,_href=URL('view_stock_task',args=row.id))
query = (db.stock_task.created_by==me)
query = (db.stock_task.*withhold_until_date*==fdate)
grid = SQLFORM.grid(query, orderby=~db.stock_task.created_on,
create=False,details=False,editable=False,
deletable=lambda row: (row.created_by==me),
fields =[
db.stock_task.status,
db.stock_task.task_name,
db.stock_task.start_date,
db.stock_task.completed_date,
db.stock_task.mob,
db.stock_task.*withhold_until_date*,
db.stock_task.product,
db.stock_task.paddock_name,
db.stock_task.created_by,
db.stock_task.created_on,
])
return locals()

-- 
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: Should this work in Web2py

2015-10-23 Thread Niphlod
many things are unclear:
- "I'm trying" ---> meaning it's not working ? what's the issue ? does it 
return an exception ?
- the code you posted doesn't call anywhere an .update() . Goes without 
saying that no record will be ever updated
- the code you posted is in between a model and a controller . which is 
it ?

tl;dr: when you ask for help include:
 a) what you want 
 b) what you have 
 c) what you get

it then gets easier to help 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.


Re: [web2py] Re: Resource webservice built on web2py for web2py comunity [BETA]

2015-10-23 Thread Richard Vézina
Just by providing a way to the user to create model/controller/view file to
the web2py ref app securely (which is the difficult path, maybe having a
review of posted code can do the trick) can at least let us know if the
code can work under the current version of web2py that is in use by the
web2py ref site.

Richard

On Fri, Oct 23, 2015 at 11:58 AM, Ron Chatterjee 
wrote:

> I agree with Richard. An online demo to make sure the code works will be
> great.
>
> On Friday, October 23, 2015 at 11:30:15 AM UTC-4, Richard wrote:
>>
>> What about snippet validation of code infrastructure??
>>
>> It sound crazy, but I am sure we can find a way to do it...
>>
>> Just a working Demo environnement that implement the proposed snippet
>> could do it, if the demo run that mean the snippet is still working is not
>> snippet may be put in a queue to be revised and update...
>>
>> Richard
>>
>> On Fri, Oct 23, 2015 at 9:58 AM, Ron Chatterjee 
>> wrote:
>>
>>> Wondering if we can have more examples, source code and snippets gets
>>> put into web2pyref. I don't know who is maintaining the page but few things
>>> I wish I could use example of sending email using gmail SMTP and contact
>>> form, voting, likes, rating, bootstrap3 and social media integration etc.
>>> Just some thoughts...
>>>
>>>
>>>
>>> On Monday, June 8, 2015 at 8:19:32 PM UTC-4, Carlos A. Armenta Castro
>>> wrote:

 I don't know if web2pyslices is better than web2pyref and it doesn't
 care for me. My personal opinion is: We need a decent, powerful and usable
 website to collect all ours code snippets, examples, recipes, plugins, demo
 sites, templates (bs2, bs3, etc.) and for to be honest that is our
 Achilles' heel. We have a really great community, but a no optimal system
 to show our work to the world (and to motivate the newbies).

 Finally, I appreciate the work of the web2pyref.com and
 web2pyslices.com, and I think we need to be part of that kind of
 projects contributing to the source code, promotion and with donations.

 Sorry for my bad english.

 El lunes, 8 de junio de 2015, 6:16:43 (UTC-7), Carlos Cesar Caballero
 Díaz escribió:
>
> Some months ago, because I can´t post anything to web2pyslices (others
> have the same problem and no one knows why) I post that I could motivate
> some of my team (including a designer) for building (and maintain) a new
> web2pyslices, and the proposal remains on the table. Right now I have two
> ideas, first, open source the site, and motivate the comunity to
> contribute, the other thing is, taking advantage of the web2pyslices
> maintenance problems, mix everything in a improved new web2py site, and
> web2pyslices could continue alive, for consulting, in some kind of read
> only mode.
>
>
> El 07/06/15 a las 20:49, Massimo Di Pierro escribió:
>
> The maintainers of web2pyslices do not want to do it any more. The
> domain has been donated to me (although we are in the process of
> transferring it) so if Ivica want to put the effort of maintaining an
> alternate site, that is better for me than maintaining web2pyslices, as
> long as info is not lost.
>
>
> On Saturday, 6 June 2015 04:52:56 UTC-5, Ivica Kralj wrote:
>>
>> That is fine Niphlod. I created this project, primary for personal
>> reason to have quick resource to examples when I 'm working on my small
>> projects,. I think people, specially newbies, might find it useful.
>> Comparing myself to allot of members here, I do consider myself a newbie,
>> although I have joined this group over 4-5 years ago or so.
>>
>> Any feature can be added if its needed or requested.
>>
>> I agree, over the years there were number of resources,  most of them
>> got abandoned, but their resources are still out here (alter ego for
>> example), and I still regularly visit them. Even if they might not work
>> with current web2py version, we can still learn from them, well I do.
>>
>>
>> On Friday, 5 June 2015 21:35:08 UTC+2, Niphlod wrote:
>>>
>>> not to be the buzzkiller but I won't post any example there that
>>> exists on web2pyslices.com that ATM has at least 2 killer features:
>>> social login and packages uploads.
>>>
>>> BTW: until all snippets are continously tested, this is going to
>>> become the 4th incarnation of a "web2py snippet blog/container/etc" with
>>> outdated pieces of code within the next year, when the buzz wears 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.

Re: [web2py] Re: Ask Web2py Groups: Has anyone here used web2py with JQuery Mobile?

2015-10-23 Thread Marco Mansilla
El Wed, 21 Oct 2015 11:38:56 -0700 (PDT)
Julieta Abdala  escribió:

> How I can load Layout.html or plugin_jqmobile/layout.html according
> with the client?
> 
> I need to do 2 applications? One for pc and other for mobile?
> 
> Thanks
> 
> El sábado, 17 de septiembre de 2011, 10:45:19 (UTC-3), Pystar
> escribió:
> >
> > I would like to know if anyone here has  used web2py with JQuery 
> > Mobile? And what the experience was.  
> 

H... there are several ways to accomplish this, but basically you
could write some js that load either jquery or jquery_mobile based on
the device, also you could create two layouts and load them based on
the same events.

Take advantage of responsiveness of bootstrap or any other css
framework and load jquery, or both. There's no need of two apps, would
be a pain in the ass to maintain or even scale!.

Marco.

-- 
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: Should this work in Web2py

2015-10-23 Thread Anthony Smith
what I want to is update the stock_task.withhold until date with the result 
of db.product.withholding_
period (int) + stock_task.completed date (date)

This is what I have tried, below 

On Friday, 23 October 2015 20:56:44 UTC+11, Anthony Smith wrote:
>
>
> I am trying to update *withhold_until_date* with the following 
>
>
>
> import datetime
> #product withholding in days
> days = (0)
>
> #get the days
> pdays_row = db(db.product.withholding_period>0).select().first()
> pdays =  pdays_row.pdays
>
> #get the date
> wdate_rows = db(db.stock_task.completed_date>0).select().first()
> wdate = wdate_row.wdate
>
> #finish date
> fdate = wdate + datetime.timedelta(days + pdays)
>
>
> def stock_tasks():
> db.stock_task.created_on.readable = True
> db.stock_task.created_by.readable = True
> db.stock_task.task_name.represent =lambda stock_task,row:\
> A(stock_task,_href=URL('view_stock_task',args=row.id))
> query = (db.stock_task.created_by==me)
> query = (db.stock_task.*withhold_until_date*==fdate)
> grid = SQLFORM.grid(query, orderby=~db.stock_task.created_on,
> create=False,details=False,editable=False,
> deletable=lambda row: (row.created_by==me),
> fields =[
> db.stock_task.status,
> db.stock_task.task_name,
> db.stock_task.start_date,
> db.stock_task.completed_date,
> db.stock_task.mob,
> db.stock_task.*withhold_until_date*,
> db.stock_task.product,
> db.stock_task.paddock_name,
> db.stock_task.created_by,
> db.stock_task.created_on,
> ])
> return locals()
>

-- 
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: Clean Bootstrap layout

2015-10-23 Thread Dave S


On Friday, October 23, 2015 at 5:38:29 PM UTC-7, pbreit wrote:
>
> Is there a nice, clean Bootstrap layout with none of the web2py cruft in 
> it? Just the bare essentials?
>

Did you check the Bootstrap site?

/dps
 

-- 
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: Multi-language field content

2015-10-23 Thread Richard Vézina
T.force('jp') didn't result in jp.py language file being created... Was
this available in web2py 2.9.5? My understanding of T.force(some language)
was that it override browser preferred language, doc here :
http://web2py.com/books/default/chapter/29/04/the-core?search=T.force

Richard

On Fri, Oct 23, 2015 at 4:12 PM, Leonel Câmara 
wrote:

> Yes,
>
> If you want it created automatically you can also use T.force('jp') in the
> beginning of your first model.
>
> --
> 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.


[web2py] Re: Multi-language field content

2015-10-23 Thread Leonel Câmara
You don't need them included in the welcome. You can just create them. The 
reason web2py is not creating them automatically is because no one with a 
browser requesting that language (Accept-Language) has made a request. I 
don't know nothing about Japanese so I don't even know if those variants 
are requested by any browser locale.

-- 
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: Multi-language field content

2015-10-23 Thread Richard Vézina
Japanese is available in chrome, can I just create the jp.py language file?

On Fri, Oct 23, 2015 at 3:56 PM, Leonel Câmara 
wrote:

> You don't need them included in the welcome. You can just create them. The
> reason web2py is not creating them automatically is because no one with a
> browser requesting that language (Accept-Language) has made a request. I
> don't know nothing about Japanese so I don't even know if those variants
> are requested by any browser locale.
>
> --
> 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.


[web2py] Re: Multi-language field content

2015-10-23 Thread Leonel Câmara
Yes,

If you want it created automatically you can also use T.force('jp') in the 
beginning of your first model.

-- 
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: Multi-language field content

2015-10-23 Thread Richard Vézina
I may use the wrong language ID?

On Fri, Oct 23, 2015 at 4:32 PM, Richard Vézina  wrote:

> T.force('jp') didn't result in jp.py language file being created... Was
> this available in web2py 2.9.5? My understanding of T.force(some language)
> was that it override browser preferred language, doc here :
> http://web2py.com/books/default/chapter/29/04/the-core?search=T.force
>
> Richard
>
> On Fri, Oct 23, 2015 at 4:12 PM, Leonel Câmara 
> wrote:
>
>> Yes,
>>
>> If you want it created automatically you can also use T.force('jp') in
>> the beginning of your first model.
>>
>> --
>> 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.


Re: [web2py] Re: Resource webservice built on web2py for web2py comunity [BETA]

2015-10-23 Thread Richard Vézina
What about snippet validation of code infrastructure??

It sound crazy, but I am sure we can find a way to do it...

Just a working Demo environnement that implement the proposed snippet could
do it, if the demo run that mean the snippet is still working is not
snippet may be put in a queue to be revised and update...

Richard

On Fri, Oct 23, 2015 at 9:58 AM, Ron Chatterjee 
wrote:

> Wondering if we can have more examples, source code and snippets gets put
> into web2pyref. I don't know who is maintaining the page but few things I
> wish I could use example of sending email using gmail SMTP and contact
> form, voting, likes, rating, bootstrap3 and social media integration etc.
> Just some thoughts...
>
>
>
> On Monday, June 8, 2015 at 8:19:32 PM UTC-4, Carlos A. Armenta Castro
> wrote:
>>
>> I don't know if web2pyslices is better than web2pyref and it doesn't care
>> for me. My personal opinion is: We need a decent, powerful and usable
>> website to collect all ours code snippets, examples, recipes, plugins, demo
>> sites, templates (bs2, bs3, etc.) and for to be honest that is our
>> Achilles' heel. We have a really great community, but a no optimal system
>> to show our work to the world (and to motivate the newbies).
>>
>> Finally, I appreciate the work of the web2pyref.com and web2pyslices.com,
>> and I think we need to be part of that kind of projects contributing to the
>> source code, promotion and with donations.
>>
>> Sorry for my bad english.
>>
>> El lunes, 8 de junio de 2015, 6:16:43 (UTC-7), Carlos Cesar Caballero
>> Díaz escribió:
>>>
>>> Some months ago, because I can´t post anything to web2pyslices (others
>>> have the same problem and no one knows why) I post that I could motivate
>>> some of my team (including a designer) for building (and maintain) a new
>>> web2pyslices, and the proposal remains on the table. Right now I have two
>>> ideas, first, open source the site, and motivate the comunity to
>>> contribute, the other thing is, taking advantage of the web2pyslices
>>> maintenance problems, mix everything in a improved new web2py site, and
>>> web2pyslices could continue alive, for consulting, in some kind of read
>>> only mode.
>>>
>>>
>>> El 07/06/15 a las 20:49, Massimo Di Pierro escribió:
>>>
>>> The maintainers of web2pyslices do not want to do it any more. The
>>> domain has been donated to me (although we are in the process of
>>> transferring it) so if Ivica want to put the effort of maintaining an
>>> alternate site, that is better for me than maintaining web2pyslices, as
>>> long as info is not lost.
>>>
>>>
>>> On Saturday, 6 June 2015 04:52:56 UTC-5, Ivica Kralj wrote:

 That is fine Niphlod. I created this project, primary for personal
 reason to have quick resource to examples when I 'm working on my small
 projects,. I think people, specially newbies, might find it useful.
 Comparing myself to allot of members here, I do consider myself a newbie,
 although I have joined this group over 4-5 years ago or so.

 Any feature can be added if its needed or requested.

 I agree, over the years there were number of resources,  most of them
 got abandoned, but their resources are still out here (alter ego for
 example), and I still regularly visit them. Even if they might not work
 with current web2py version, we can still learn from them, well I do.


 On Friday, 5 June 2015 21:35:08 UTC+2, Niphlod wrote:
>
> not to be the buzzkiller but I won't post any example there that
> exists on web2pyslices.com that ATM has at least 2 killer features:
> social login and packages uploads.
>
> BTW: until all snippets are continously tested, this is going to
> become the 4th incarnation of a "web2py snippet blog/container/etc" with
> outdated pieces of code within the next year, when the buzz wears 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+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 

[web2py] Clean Bootstrap layout

2015-10-23 Thread pbreit
Is there a nice, clean Bootstrap layout with none of the web2py cruft in 
it? Just the bare essentials?

-- 
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] GAE problems cont'd--Library not loaded: libmysqlclient.18.dylib

2015-10-23 Thread Tom Campbell
Have been unable to connect to Cloud SQL so far in Python (I can do it in 
raw Go). Sébastien reminded me 
 about 
installing the Python MySQLdb lib 
. Still no luck, but it 
got me thinking. When I did an >>> import MySQLdb at the Python prompt I 
noticed some errors. Can anyone help discern what it means? I am developing 
under OS X so that part's not wrong. I don't know if libmysqlclient.18.dylib 
is required or what.

 

File "", line 1, in 

  File "build/bdist.macosx-10.11-intel/egg/MySQLdb/__init__.py", line 19, 
in 

  File "build/bdist.macosx-10.11-intel/egg/_mysql.py", line 7, in 

  File "build/bdist.macosx-10.11-intel/egg/_mysql.py", line 6, in 
__bootstrap__

ImportError: 
dlopen(/Users/tom/.python-eggs/MySQL_python-1.2.5-py2.7-macosx-10.11-intel.egg-tmp/_mysql.so,
 
2): Library not loaded: libmysqlclient.18.dylib

  Referenced from: 
/Users/tom/.python-eggs/MySQL_python-1.2.5-py2.7-macosx-10.11-intel.egg-tmp/_mysql.so

  Reason: unsafe use of relative rpath libmysqlclient.18.dylib in 
/Users/tom/.python-eggs/MySQL_python-1.2.5-py2.7-macosx-10.11-intel.egg-tmp/_mysql.so
 
with restricted binary

-- 
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: Google Cloud SQL: Unable to connect

2015-10-23 Thread Tom Campbell
Thank you, Sébastien. I indeed had not used MySQLdb in app.yam, nor had I 
included credentials on the tried what you suggested and still get an error 
on the dev_appserver.py command line. Log files say this:

ERROR2015-10-23 21:47:10,581 restricted.py:174] Traceback (most recent 
call last):

  File "/usr/local/web2py/gluon/restricted.py", line 227, in restricted

exec ccode in environment

  File "/usr/local/web2py/applications/todo/models/db.py", line 27, in 


db = DAL('google:sql://gigcity-1051:dbtest/tomsdatabase')

  File "/usr/local/web2py/gluon/packages/dal/pydal/base.py", line 174, in 
__call__

obj = super(MetaDAL, cls).__call__(*args, **kwargs)

  File "/usr/local/web2py/gluon/packages/dal/pydal/base.py", line 473, in 
__init__

"Failure to connect, tried %d times:\n%s" % (attempts, tb)

RuntimeError: Failure to connect, tried 5 times:

Traceback (most recent call last):

  File "/usr/local/web2py/gluon/packages/dal/pydal/base.py", line 446, in 
__init__

self._adapter = ADAPTERS[self._dbname](**kwargs)

  File "/usr/local/web2py/gluon/packages/dal/pydal/adapters/base.py", line 
60, in __call__

obj = super(AdapterMeta, cls).__call__(*args, **kwargs)

  File 
"/usr/local/web2py/gluon/packages/dal/pydal/adapters/google_adapters.py", 
line 59, in __init__

if do_connect: self.reconnect()

  File "/usr/local/web2py/gluon/packages/dal/pydal/connection.py", line 
104, in reconnect

self.connection = f()

  File 
"/usr/local/web2py/gluon/packages/dal/pydal/adapters/google_adapters.py", 
line 57, in connector

return rdbms.connect(**driver_args)

TypeError: connect() got an unexpected keyword argument 'charset'



INFO 2015-10-23 21:47:10,581 gaehandler.py:75]  Request: 
5024.00ms/7.39ms (real time/cpu time)

INFO 2015-10-23 21:47:10,586 module.py:812] default: "GET 
/todo/default/index HTTP/1.1" 500 707

-- 
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: Should this work in Web2py

2015-10-23 Thread Anthony Smith
I think I need to re think how I am doing this as I am learning web2py. It 
maybe a case of re looking at the book.

cheers

On Friday, 23 October 2015 20:56:44 UTC+11, Anthony Smith wrote:
>
>
> I am trying to update *withhold_until_date* with the following 
>
>
>
> import datetime
> #product withholding in days
> days = (0)
>
> #get the days
> pdays_row = db(db.product.withholding_period>0).select().first()
> pdays =  pdays_row.pdays
>
> #get the date
> wdate_rows = db(db.stock_task.completed_date>0).select().first()
> wdate = wdate_row.wdate
>
> #finish date
> fdate = wdate + datetime.timedelta(days + pdays)
>
>
> def stock_tasks():
> db.stock_task.created_on.readable = True
> db.stock_task.created_by.readable = True
> db.stock_task.task_name.represent =lambda stock_task,row:\
> A(stock_task,_href=URL('view_stock_task',args=row.id))
> query = (db.stock_task.created_by==me)
> query = (db.stock_task.*withhold_until_date*==fdate)
> grid = SQLFORM.grid(query, orderby=~db.stock_task.created_on,
> create=False,details=False,editable=False,
> deletable=lambda row: (row.created_by==me),
> fields =[
> db.stock_task.status,
> db.stock_task.task_name,
> db.stock_task.start_date,
> db.stock_task.completed_date,
> db.stock_task.mob,
> db.stock_task.*withhold_until_date*,
> db.stock_task.product,
> db.stock_task.paddock_name,
> db.stock_task.created_by,
> db.stock_task.created_on,
> ])
> return locals()
>

-- 
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: CMS WEB2PY

2015-10-23 Thread Selman Kocael
i found a web2py CMS on google code called instantpress.
https://code.google.com/p/instant-press/

https://www.youtube.com/watch?v=gtdJ5JCxiJQ

it is last updated December 2010, still working. (of course :))

i need to modify tables visual, or create simple pages. so it could be nice
to improve functionalities of appadmin controller.
*to add/edit/delete pages *visual*.
-select layout page (so select bootstrap or other css frameworks.)
-add new page (with view) with simple functions (about, contact, forms,
sqlforms pages)
- 
*modify tables (as moment) and create tables (like phpmyadmini but not huge
as it is.)



2015-10-15 16:03 GMT+03:00 Paolo Amboni :

> I'm very curious  to see the config part!! Let us know when you publish
> the source code. Thanks.
>
> Il giorno martedì 13 ottobre 2015 15:17:20 UTC+2, Carlos Cesar Caballero
> ha scritto:
>>
>> I am working on a site that is builded using custom made CMS, I am
>> planning to release it to github when it's finished (the cms), right now
>> you can see the site (work in progress) at www.daxslab.com, suggestions
>> and criticism are very welcomed
>>
>> El 12/10/15 a las 06:09, Paolo Amboni escribió:
>>
>> Are there some contraindications to use web2py with php based cms like
>> joomla?
>>
>> Il giorno sabato 10 ottobre 2015 18:34:55 UTC+2, Anthony ha scritto:
>>>
>>> If it has to be Python, there are several Django based CMSes -- Wagtail
>>> looks like a nice one (there's also Mezzanine and
>>> Django CMS).
>>>
>>> Anthony
>>>
>>> On Saturday, October 10, 2015 at 3:32:22 AM UTC-4, Paolo Amboni wrote:

 After some research i finally concluded that there is no stable and
 structured CMS made for web2py (tell me if i'm wrong).
 Which is a python cms that better can be put beside a web2py site
 (already made)?
 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.
>>
>>
>> --
> 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.
>



-- 
Selman Kocael
İsabet Yayınları

-- 
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: CMS WEB2PY

2015-10-23 Thread Selman Kocael
sorry. it is new version:
https://bitbucket.org/mulonemartin/instantpress/wiki/Home

video: https://www.youtube.com/watch?v=vGkR246URRk

2015-10-23 11:11 GMT+03:00 Selman Kocael :

> i found a web2py CMS on google code called instantpress.
> https://code.google.com/p/instant-press/
>
> https://www.youtube.com/watch?v=gtdJ5JCxiJQ
>
> it is last updated December 2010, still working. (of course :))
>
> i need to modify tables visual, or create simple pages. so it could be
> nice to improve functionalities of appadmin controller.
> *to add/edit/delete pages *visual*.
> -select layout page (so select bootstrap or other css frameworks.)
> -add new page (with view) with simple functions (about, contact, forms,
> sqlforms pages)
> - 
> *modify tables (as moment) and create tables (like phpmyadmini but not
> huge as it is.)
>
>
>
> 2015-10-15 16:03 GMT+03:00 Paolo Amboni :
>
>> I'm very curious  to see the config part!! Let us know when you publish
>> the source code. Thanks.
>>
>> Il giorno martedì 13 ottobre 2015 15:17:20 UTC+2, Carlos Cesar Caballero
>> ha scritto:
>>>
>>> I am working on a site that is builded using custom made CMS, I am
>>> planning to release it to github when it's finished (the cms), right now
>>> you can see the site (work in progress) at www.daxslab.com, suggestions
>>> and criticism are very welcomed
>>>
>>> El 12/10/15 a las 06:09, Paolo Amboni escribió:
>>>
>>> Are there some contraindications to use web2py with php based cms like
>>> joomla?
>>>
>>> Il giorno sabato 10 ottobre 2015 18:34:55 UTC+2, Anthony ha scritto:

 If it has to be Python, there are several Django based CMSes -- Wagtail
 looks like a nice one (there's also Mezzanine and
 Django CMS).

 Anthony

 On Saturday, October 10, 2015 at 3:32:22 AM UTC-4, Paolo Amboni wrote:
>
> After some research i finally concluded that there is no stable and
> structured CMS made for web2py (tell me if i'm wrong).
> Which is a python cms that better can be put beside a web2py site
> (already made)?
> 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.
>>>
>>>
>>> --
>> 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.
>>
>
>
>
> --
> Selman Kocael
> İsabet Yayınları
>
>


-- 
Selman Kocael
İsabet Yayınları

-- 
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: Resource webservice built on web2py for web2py comunity [BETA]

2015-10-23 Thread Richard Vézina
The easiess way I can see, is having a form with code/textarea for each
important web2py code container (models/controllers/views, maybe modules),
before any bit of code submit get executed it needs a review from site
administrator or web2py core dev (which is a bottle neck and a time
investment)... Once validated the code is injected somehow at runtime and
resulting demo app available embeded in web2py ref site page... It can
limit the possibility of a demo for some kind of examples... We can also
make use of the web2py plugins mechanism that could fit perfectly for this
task...

Richard

On Fri, Oct 23, 2015 at 2:40 PM, Ron Chatterjee 
wrote:

> I see. Its not my site or maintaining. It will be upto Ivica I am
> assuming. But good discussion!
>
> On Friday, October 23, 2015 at 2:31:49 PM UTC-4, Richard wrote:
>>
>> It will make it more difficult to review IMHO and you kind of need to
>> install the app before you can even look at the code... Since there can
>> have nasty piece of code in an uploaded app, I would really avoid this path.
>>
>> Richard
>>
>> On Fri, Oct 23, 2015 at 2:20 PM, Ron Chatterjee 
>> wrote:
>>
>>> Right, or have a link where we can upload .w2p file and install, and
>>> have another link to that app to see if its working.
>>>
>>> On Friday, October 23, 2015 at 1:42:12 PM UTC-4, Richard wrote:

 Just by providing a way to the user to create model/controller/view
 file to the web2py ref app securely (which is the difficult path, maybe
 having a review of posted code can do the trick) can at least let us know
 if the code can work under the current version of web2py that is in use by
 the web2py ref site.

 Richard

 On Fri, Oct 23, 2015 at 11:58 AM, Ron Chatterjee 
 wrote:

> I agree with Richard. An online demo to make sure the code works will
> be great.
>
> On Friday, October 23, 2015 at 11:30:15 AM UTC-4, Richard wrote:
>>
>> What about snippet validation of code infrastructure??
>>
>> It sound crazy, but I am sure we can find a way to do it...
>>
>> Just a working Demo environnement that implement the proposed snippet
>> could do it, if the demo run that mean the snippet is still working is 
>> not
>> snippet may be put in a queue to be revised and update...
>>
>> Richard
>>
>> On Fri, Oct 23, 2015 at 9:58 AM, Ron Chatterjee > > wrote:
>>
>>> Wondering if we can have more examples, source code and snippets
>>> gets put into web2pyref. I don't know who is maintaining the page but 
>>> few
>>> things I wish I could use example of sending email using gmail SMTP and
>>> contact form, voting, likes, rating, bootstrap3 and social media
>>> integration etc. Just some thoughts...
>>>
>>>
>>>
>>> On Monday, June 8, 2015 at 8:19:32 PM UTC-4, Carlos A. Armenta
>>> Castro wrote:

 I don't know if web2pyslices is better than web2pyref and it
 doesn't care for me. My personal opinion is: We need a decent, 
 powerful and
 usable website to collect all ours code snippets, examples, recipes,
 plugins, demo sites, templates (bs2, bs3, etc.) and for to be honest 
 that
 is our Achilles' heel. We have a really great community, but a no 
 optimal
 system to show our work to the world (and to motivate the newbies).

 Finally, I appreciate the work of the web2pyref.com and
 web2pyslices.com, and I think we need to be part of that kind of
 projects contributing to the source code, promotion and with donations.

 Sorry for my bad english.

 El lunes, 8 de junio de 2015, 6:16:43 (UTC-7), Carlos Cesar
 Caballero Díaz escribió:
>
> Some months ago, because I can´t post anything to web2pyslices
> (others have the same problem and no one knows why) I post that I 
> could
> motivate some of my team (including a designer) for building (and 
> maintain)
> a new web2pyslices, and the proposal remains on the table. Right now 
> I have
> two ideas, first, open source the site, and motivate the comunity to
> contribute, the other thing is, taking advantage of the web2pyslices
> maintenance problems, mix everything in a improved new web2py site, 
> and
> web2pyslices could continue alive, for consulting, in some kind of 
> read
> only mode.
>
>
> El 07/06/15 a las 20:49, Massimo Di Pierro escribió:
>
> The maintainers of web2pyslices do not want to do it any more. The
> domain has been donated to me (although we are in the process of
> transferring it) so if Ivica want to put the effort of maintaining an
> alternate site, that is