Re: [web2py] Re: 2.02 Table name in smartgrid changed...

2012-09-05 Thread Paolo Caruccio
Moreover, if you are interested (I don't know if this is documented), you 
could change breadcrumbs divider and assign a css class to breadcrumbs 
itself.

The complete signature for the smartgrid is indeed the following:

SQLFORM.smartgrid( table, 
  constraints=None, 
  linked_tables=None,
  links=None,
  links_in_grid=True,
  args=None, 
  user_signature=True,
  divider='>',
  breadcrumbs_class='',
  **kwargs):
 

Il giorno mercoledì 5 settembre 2012 21:33:29 UTC+2, Adi ha scritto:
>
> thanks Paolo... worked perfectly.
>
> On Wed, Sep 5, 2012 at 1:59 PM, Paolo Caruccio 
> 
> > wrote:
>
>> to display all breadcrumbs in the same line please try to append to 
>> web2py.css following rule
>>
>> li.w2p_grid_breadcrumb_elem {
>> display:inline-block;
>> }
>>
>> in versions >= 2.0.2 web2py.css file has the right rule, so this issue 
>> should arise only with previous experimental versions.
>>
>> Il giorno giovedì 30 agosto 2012 17:29:25 UTC+2, Adi ha scritto:
>>
>>> Smartgrid used to display the table name automatically. Is that supposed 
>>> to be as before?
>>>
>>  -- 
>>  
>>  
>>   
>>
>
>

-- 





Re: [web2py] Re: 2.02 Table name in smartgrid changed...

2012-09-05 Thread Adnan Smajlovic
thanks Paolo... worked perfectly.

On Wed, Sep 5, 2012 at 1:59 PM, Paolo Caruccio
wrote:

> to display all breadcrumbs in the same line please try to append to
> web2py.css following rule
>
> li.w2p_grid_breadcrumb_elem {
> display:inline-block;
> }
>
> in versions >= 2.0.2 web2py.css file has the right rule, so this issue
> should arise only with previous experimental versions.
>
> Il giorno giovedì 30 agosto 2012 17:29:25 UTC+2, Adi ha scritto:
>
>> Smartgrid used to display the table name automatically. Is that supposed
>> to be as before?
>>
>  --
>
>
>
>

-- 





[web2py] Re: 2.02 Table name in smartgrid changed...

2012-09-05 Thread Paolo Caruccio
to display all breadcrumbs in the same line please try to append to 
web2py.css following rule

li.w2p_grid_breadcrumb_elem {
display:inline-block;
}

in versions >= 2.0.2 web2py.css file has the right rule, so this issue 
should arise only with previous experimental versions.

Il giorno giovedì 30 agosto 2012 17:29:25 UTC+2, Adi ha scritto:
>
> Smartgrid used to display the table name automatically. Is that supposed 
> to be as before?
>

-- 





Re: [web2py] Re: 2.02 Table name in smartgrid changed...

2012-09-05 Thread Massimo Di Pierro
Open an issue. We can make that a parameter.

On Wednesday, 5 September 2012 09:49:11 UTC-5, Adi wrote:
>
> Massimo,
> Any chance to leave only table_plural on line 2248 in sqlhtml.py: 
>
> #header = table._plural + (field and ' for '+field.name or '')
> header = table._plural
>
> I would also leave all in one line if possible, e.g: table_level_1 > id > 
> table_level_2, etc... 
>
>
> Thanks,
> Adnan
>
> On Tue, Sep 4, 2012 at 10:07 AM, Jim S > wrote:
>
>> I'm having the same issue as well with second level display
>>
>> -Jim
>>
>> On Friday, August 31, 2012 9:59:38 AM UTC-5, Adi wrote:
>>>
>>> trunk works for the first level, but doesn't when i drill down into the 
>>> second level... (image attached)
>>>
>>> also it used to display all breadcrumbs in the same line...
>>>
>>> old source code:
>>> >> >Suppliers> 
>>> Concept Laboratories, Inc. > Purchase orders
>>> 
>>>
>>> so far, all seems to work perfectly fine on 2 apps :) had a migration 
>>> problem to alter scheduler tables (usual back and forth), but got it 
>>> working as well... continuing testing...
>>>
>>> thanks again for the best framework!
>>>
>>>
>>> On Thursday, August 30, 2012 4:36:40 PM UTC-4, Massimo Di Pierro wrote:

 Got it. fixed in trunk. This was not intentional!

 On Thursday, 30 August 2012 10:29:25 UTC-5, Adi wrote:
>
> Smartgrid used to display the table name automatically. Is that 
> supposed to be as before?
>
  -- 
>>  
>>  
>>  
>>
>
>
>
>
>

-- 





Re: [web2py] Re: 2.02 Table name in smartgrid changed...

2012-09-05 Thread Adnan Smajlovic
Massimo,
Any chance to leave only table_plural on line 2248 in sqlhtml.py:

#header = table._plural + (field and ' for '+field.name or '')
header = table._plural

I would also leave all in one line if possible, e.g: table_level_1 > id >
table_level_2, etc...


Thanks,
Adnan

On Tue, Sep 4, 2012 at 10:07 AM, Jim S  wrote:

> I'm having the same issue as well with second level display
>
> -Jim
>
> On Friday, August 31, 2012 9:59:38 AM UTC-5, Adi wrote:
>>
>> trunk works for the first level, but doesn't when i drill down into the
>> second level... (image attached)
>>
>> also it used to display all breadcrumbs in the same line...
>>
>> old source code:
>> > class="w2p_trap" href="/list_suppliers/supplier">Suppliers > > class="w2p_trap" href="
>> /list_suppliers/supplier/view/supplier/21?_signature=3a9f06fff5edbc76efc140b8838b11063d1cd328
>> ">Concept Laboratories, Inc. > Purchase orders
>> 
>>
>> so far, all seems to work perfectly fine on 2 apps :) had a migration
>> problem to alter scheduler tables (usual back and forth), but got it
>> working as well... continuing testing...
>>
>> thanks again for the best framework!
>>
>>
>> On Thursday, August 30, 2012 4:36:40 PM UTC-4, Massimo Di Pierro wrote:
>>>
>>> Got it. fixed in trunk. This was not intentional!
>>>
>>> On Thursday, 30 August 2012 10:29:25 UTC-5, Adi wrote:

 Smartgrid used to display the table name automatically. Is that
 supposed to be as before?

>>>  --
>
>
>
>

-- 





[web2py] Re: 2.02 Table name in smartgrid changed...

2012-09-04 Thread Jim S
I'm having the same issue as well with second level display

-Jim

On Friday, August 31, 2012 9:59:38 AM UTC-5, Adi wrote:
>
> trunk works for the first level, but doesn't when i drill down into the 
> second level... (image attached)
>
> also it used to display all breadcrumbs in the same line...
>
> old source code:
>  class="w2p_trap" href="/list_suppliers/supplier">Suppliers >  class="w2p_trap" href="
> /list_suppliers/supplier/view/supplier/21?_signature=3a9f06fff5edbc76efc140b8838b11063d1cd328
> ">Concept Laboratories, Inc. > Purchase orders
> 
>
> so far, all seems to work perfectly fine on 2 apps :) had a migration 
> problem to alter scheduler tables (usual back and forth), but got it 
> working as well... continuing testing...
>
> thanks again for the best framework!
>
>
> On Thursday, August 30, 2012 4:36:40 PM UTC-4, Massimo Di Pierro wrote:
>>
>> Got it. fixed in trunk. This was not intentional!
>>
>> On Thursday, 30 August 2012 10:29:25 UTC-5, Adi wrote:
>>>
>>> Smartgrid used to display the table name automatically. Is that supposed 
>>> to be as before?
>>>
>>

-- 





[web2py] Re: 2.02 Table name in smartgrid changed...

2012-09-03 Thread Stanislav Stankevich
I'm new in web2py, but really excited with the one. Thanks to Massimo Di 
Pierro. IMHO when I hided the breadcramb with CSS I lost nothing because 
the parents' positions are shown in the child tables.

пятница, 31 августа 2012 г., 18:59:38 UTC+4 пользователь Adi написал:
>
> trunk works for the first level, but doesn't when i drill down into the 
> second level... (image attached)
>
> also it used to display all breadcrumbs in the same line...
>
> old source code:
>  class="w2p_trap" href="/list_suppliers/supplier">Suppliers >  class="w2p_trap" href="
> /list_suppliers/supplier/view/supplier/21?_signature=3a9f06fff5edbc76efc140b8838b11063d1cd328
> ">Concept Laboratories, Inc. > Purchase orders
> 
>
> so far, all seems to work perfectly fine on 2 apps :) had a migration 
> problem to alter scheduler tables (usual back and forth), but got it 
> working as well... continuing testing...
>
> thanks again for the best framework!
>
>
> On Thursday, August 30, 2012 4:36:40 PM UTC-4, Massimo Di Pierro wrote:
>>
>> Got it. fixed in trunk. This was not intentional!
>>
>> On Thursday, 30 August 2012 10:29:25 UTC-5, Adi wrote:
>>>
>>> Smartgrid used to display the table name automatically. Is that supposed 
>>> to be as before?
>>>
>>

-- 





[web2py] Re: 2.02 Table name in smartgrid changed...

2012-08-30 Thread Massimo Di Pierro
Got it. fixed in trunk. This was not intentional!

On Thursday, 30 August 2012 10:29:25 UTC-5, Adi wrote:
>
> Smartgrid used to display the table name automatically. Is that supposed 
> to be as before?
>

-- 





[web2py] Re: 2.02 Table name in smartgrid changed...

2012-08-30 Thread Massimo Di Pierro
This is not supposed to have changed. Can you please email me the code that 
causes it so I can check it?

On Thursday, 30 August 2012 10:29:25 UTC-5, Adi wrote:
>
> Smartgrid used to display the table name automatically. Is that supposed 
> to be as before?
>

--