[web2py] Re: Diplay a list in a view like an array [URGENT]

2017-05-22 Thread Dave S


On Sunday, May 21, 2017 at 11:53:37 PM UTC-7, sunda...@gmail.com wrote:
>
> Hey guys i resolved the problem, all my images wasnt the same size, when i 
> change all the size to the same size, the whole dissapear :) 
>
>
> Thanks
>

I'm happy to hear that you got the issue sorted.

/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.


[web2py] Re: Diplay a list in a view like an array [URGENT]

2017-05-22 Thread sunda . amran
Hey guys i resolved the problem, all my images wasnt the same size, when i 
change all the size to the same size, the whole dissapear :) 


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.


[web2py] Re: Diplay a list in a view like an array [URGENT]

2017-05-20 Thread Dave S


On Friday, May 19, 2017 at 12:45:16 AM UTC-7, sunda...@gmail.com wrote:
>
>   
> {{
> availableTools=getAvailableTools(membership)
>

We may need to know more about getAvalableTools
 

>
> for result in availableTools :
>

for debug, add here:
   if len(result) == 0:
CAT('empty result found')
   pass

>
> name=result.tool 
>
for tool in getRow(name) :
>

We also should know something about getRow().  Are you looking something up 
in a dict, or making a DB query?
Add here:

   if len(tool) == 0:
 CAT( 'empty tool found')
   pass
 

> img= tool.img
> portfolio='#portfolioModal'+str(tool.nbr)
> =DIV(A(DIV(DIV(I(P(name),_class='fa fa-search-plus 
> fa-3x'),_class='caption-content'),_class='caption'),IMG(_src=img,_class='img-responsive',_alt=''),_href=portfolio,_class='portfolio-link',**{'_data-toggle':'modal'}),**{'_class':'col-sm-4
>  
> portfolio-item'})
> pass
> pass
> }}
>

The debug stuff is meant t0 look pretty, just to help you verify you've got 
the right stuff going in.  You could also try BEAUTIFY(availableTools) and 
BEAUTIFY(tool) to just dump the dicts.

/dps

 

>
> Le vendredi 19 mai 2017 08:57:14 UTC+2, sunda...@gmail.com a écrit :
>>
>> Hello everyone,
>>
>>
>> So i started web2py it have been 1 month but i have still have some 
>> questions. What is sad is that with normal html and css it could be easier 
>> for me, but my workplace want me to use web2py.
>>
>> The question is that in my view i receive a list. Each element of the 
>> list got an image. and what i want is to display this list(image) like an 
>> array. i want the display to be elegant. like
>>
>> If this is the page i want this kind of display : 
>>
>>
>> Image1   Image2 Image3
>> Image4   Image5 Image6
>>
>>
>> etc
>>
>> Actually i am using this,  _class':'col-sm-4 ... it works but have bugs 
>> like the diplay is like ( there is some hole inside the array, and i don't 
>> know why) 
>>
>>
>> Image1   Image2 Image3
>>  
>> Image4
>> Image5   Image6
>>
>> Plz Helpp me its so urgent  
>>
>>

-- 
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: Diplay a list in a view like an array [URGENT]

2017-05-19 Thread lyn2py
Result looks fine, actually. Are there empty elements in the list, or are 
you calling any empty img in those elements, or are there any accidental 
elements before "IMC"

On Friday, May 19, 2017 at 3:48:30 PM UTC+8, sunda...@gmail.com wrote:
>
>
> 
>
>
> 
>
>

-- 
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: Diplay a list in a view like an array [URGENT]

2017-05-19 Thread sunda . amran
I already search in the inspect :'( there is completly nothing in that 
whole, and the problem is that the list is really perfect, because after 
the whole, the element is next element of the element before the whole 

-- 
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: Diplay a list in a view like an array [URGENT]

2017-05-19 Thread sunda . amran






-- 
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: Diplay a list in a view like an array [URGENT]

2017-05-19 Thread sunda . amran
  
{{
availableTools=getAvailableTools(membership)

for result in availableTools :

name=result.tool
for tool in getRow(name) :
img= tool.img
portfolio='#portfolioModal'+str(tool.nbr)
=DIV(A(DIV(DIV(I(P(name),_class='fa fa-search-plus 
fa-3x'),_class='caption-content'),_class='caption'),IMG(_src=img,_class='img-responsive',_alt=''),_href=portfolio,_class='portfolio-link',**{'_data-toggle':'modal'}),**{'_class':'col-sm-4
 
portfolio-item'})
pass
pass
}}

Le vendredi 19 mai 2017 08:57:14 UTC+2, sunda...@gmail.com a écrit :
>
> Hello everyone,
>
>
> So i started web2py it have been 1 month but i have still have some 
> questions. What is sad is that with normal html and css it could be easier 
> for me, but my workplace want me to use web2py.
>
> The question is that in my view i receive a list. Each element of the list 
> got an image. and what i want is to display this list(image) like an array. 
> i want the display to be elegant. like
>
> If this is the page i want this kind of display : 
>
>
> Image1   Image2 Image3
> Image4   Image5 Image6
>
>
> etc
>
> Actually i am using this,  _class':'col-sm-4 ... it works but have bugs 
> like the diplay is like ( there is some hole inside the array, and i don't 
> know why) 
>
>
> Image1   Image2 Image3
>
>   Image4
> Image5   Image6
>
> Plz Helpp me its so urgent  
>
>

-- 
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: Diplay a list in a view like an array [URGENT]

2017-05-19 Thread Dave S


On Thursday, May 18, 2017 at 11:57:14 PM UTC-7, sunda...@gmail.com wrote:
>
> Hello everyone,
>
>
> So i started web2py it have been 1 month but i have still have some 
> questions. What is sad is that with normal html and css it could be easier 
> for me, but my workplace want me to use web2py.
>
> The question is that in my view i receive a list. Each element of the list 
> got an image. and what i want is to display this list(image) like an array. 
> i want the display to be elegant. like
>
> If this is the page i want this kind of display : 
>
>
> Image1   Image2 Image3
> Image4   Image5 Image6
>
>
> etc
>
> Actually i am using this,  _class':'col-sm-4 ... it works but have bugs 
> like the diplay is like ( there is some hole inside the array, and i don't 
> know why) 
>
>
> Image1   Image2 Image3
>
>   Image4
> Image5   Image6
>
> Plz Helpp me its so urgent  
>
>
You didn't give us a whole lot to go on.   Please show the controller and 
view code that you are using   You might also do an "inspect" (browser tool 
for developers) to see what is in the holes; I suspect that you have put 
something in the list that you didn't intend to be there.

/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.


[web2py] Re: Diplay a list in a view like an array [URGENT]

2017-05-19 Thread lyn2py
This looks to be a CSS issue.

Can you share your code? In your view

On Friday, May 19, 2017 at 2:57:14 PM UTC+8, sunda...@gmail.com wrote:
>
> Hello everyone,
>
>
> So i started web2py it have been 1 month but i have still have some 
> questions. What is sad is that with normal html and css it could be easier 
> for me, but my workplace want me to use web2py.
>
> The question is that in my view i receive a list. Each element of the list 
> got an image. and what i want is to display this list(image) like an array. 
> i want the display to be elegant. like
>
> If this is the page i want this kind of display : 
>
>
> Image1   Image2 Image3
> Image4   Image5 Image6
>
>
> etc
>
> Actually i am using this,  _class':'col-sm-4 ... it works but have bugs 
> like the diplay is like ( there is some hole inside the array, and i don't 
> know why) 
>
>
> Image1   Image2 Image3
>
>   Image4
> Image5   Image6
>
> Plz Helpp me its so urgent  
>
>

-- 
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.