[web2py] Re: Tables in Appadmin/index have disappeared

2019-08-14 Thread mostwanted
You are not the only one my friend.

On Wednesday, August 14, 2019 at 11:13:08 PM UTC+2, Tom Campbell wrote:
>
> If you can imagine a version of the old song "Strumming My Pain" but about 
> programming ("I felt he'd found my letters and read each one out loud"), 
> yeah, you just told the story of my programming life too. I feel for you!
> Also you still have hair so that's good
>

-- 
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/56213a59-babc-42f2-8852-5cae02205dfa%40googlegroups.com.


[web2py] Re: Tables in Appadmin/index have disappeared

2019-08-14 Thread Tom Campbell
If you can imagine a version of the old song "Strumming My Pain" but about 
programming ("I felt he'd found my letters and read each one out loud"), 
yeah, you just told the story of my programming life too. I feel for you!
Also you still have hair so that's good

-- 
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/b897e055-cece-43e5-bb0c-df402f26121b%40googlegroups.com.


[web2py] Re: New questions about translation

2019-08-14 Thread Константин Комков
In the book I find three possible ways for that:
First it is customize auth_user table, but Massimo wrote that this way is 
not really recommended.
Second it is add extra_fields, but I don't know how can I add 
type 'list:string' for extra_field and work with it.
Third is modify profile function def myprofile(): return 
dict(form=auth.profile()), but for me more interesting auth.profile(), 
becouse I want add new field in auth.profile() form.
I hope somebody help me with it.

-- 
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/6fc900b2-b0f5-4317-8b5c-e5bd2239d60b%40googlegroups.com.


[web2py] Re: No being able to access all the details from a for loop in the view

2019-08-14 Thread villas
Well, mixing class and id names never reads very clearly, but I guess this 
isn't really a web2py problem anyway...

BTW  this isn't so good either:  for details in details:
Maybe better:  for d in details:



On Tuesday, 13 August 2019 17:45:26 UTC+1, mostwanted wrote:
>
> Thanks for your input @villas but i can't change the link to an id because 
> it already has a class is called *whatsapp *which is the one i am calling 
> on the *click *function>
>> try:
>>
>> $(document).on("click", '#whatsapp', function(e) {
>>
>>
>>
>> On Tuesday, 13 August 2019 06:46:02 UTC+1, mostwanted wrote:
>>>
>>> I am working on a house rental application, i want users to easily 
>>> notify one another of places they know via whatsapp, i have written the 
>>> functionality and this is how it should work:
>>> Next to the rental amount is a whatsapp sharing link that when the user 
>>> clicks it carries forward all the rental details to their desired contact 
>>> but now the problem i am facing is that on my list of rentals the details 
>>> of the first link are missing, the user can't share all of them but the 
>>> following link is able to share all its details, i hope i am clear! I have 
>>> a feeling this is caused by the for loop just dont know how to rectify it, 
>>> here is my code below:
>>>
>>> CODE:
>>> {{extend 'layout.html'}}
>>> >> >{{=breadcrumbs() }}
>>>   
>>> function goBack()
>>> {
>>> window.history.back();
>>> }
>>> 
>>> >> style="font-weight: bold;" id="back">BACK
>>> 
>>> 
>>> 
>>> 
>>> Listed Rentals In Kanye & Surrounding Areas
>>>  {{=
>>> houseCount}} available houses up for rent
>>> 
>>> 
>>> 
>>>
>>> 
>>> 
>>>
>>>HOUSE OWNER
>>>CELL NUMBER
>>>HOUSE DESCRIPTION
>>>LOCATION
>>>RENTAL AMOUNT
>>>
>>> {{for details in details:}}
>>>
>>> 
>>> 
>>> $(document).ready(function() {
>>> var isMobile = {
>>> Android: function() {
>>> return navigator.userAgent.match(/Android/i);
>>> },
>>> BlackBerry: function() {
>>> return navigator.userAgent.match(/BlackBerry/i);
>>> },
>>> iOS: function() {
>>> return navigator.userAgent.match(/iPhone|iPad|iPod/i);
>>> },
>>> Opera: function() {
>>> return navigator.userAgent.match(/Opera Mini/i);
>>> },
>>> Windows: function() {
>>> return navigator.userAgent.match(/IEMobile/i);
>>> },
>>> any: function() {
>>> return (isMobile.Android() || isMobile.BlackBerry() || isMobile.
>>> iOS() || isMobile.Opera() || isMobile.Windows());
>>> }
>>> };
>>>  $(document).on("click", '.whatsapp', function(e) {
>>>  //const id = $(this).data('id'); // Extract the data-id attribute 
>>> of the link.
>>> if( isMobile.any() ) {
>>> var text = $(this).attr("data-text");
>>> //var url = $('#' + id).attr("data-link");
>>> var message =text;
>>> var whatsapp_url = "whatsapp://send?text=" + message + "C/O 
>>> SESOA&trade";
>>> window.location.href = whatsapp_url;
>>> } else {
>>> alert("This is only shareable on mobile devices!");
>>>
>>>   }
>>>  e.preventDefault();
>>> });
>>> });
>>> 
>>> 
>>> 
>>>{{=A(details.Surname, _href=URL('show', args=[
>>> details.id]))}} {{=details.Name}}
>>> 
>>> {{=details.Cell_Number}}
>>> {{=details.description}}
>>> {{=details.located_at}}
>>>   
>>> *{{=details.amount}}>> data-id="{{=details.id }}" class="whatsapp 
>>> w3_whatsapp_btn w3_whatsapp_btn_large" data-text="Owner: {{=details.Name}} 
>>> {{=details.Surname}}%0ACell: {{=details.Cell_Number}}%0AHouse Description: 
>>> {{=details.description}}%0ALocation: {{=details.located_at}}%0ARent: 
>>> {{=details.amount}}%0A" data-link="www.sesoa.co.bw 
>>> ">Share Details On Whatsapp*
>>> {{pass}}
>>> 
>>> {{pass}}
>>> 
>>> 
>>>  Regards
>>>
>>> Mostwanted
>>>
>>>

-- 
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/711e446a-5296-4193-bfee-7a5e0615b001%40googlegroups.com.