[web2py] Re: missing response.title and subtitle

2016-04-15 Thread Dave S


On Thursday, April 14, 2016 at 5:36:39 PM UTC-7, Alex Glaros wrote:
>
> okay, I get itI never changed layout.html until now.
>
> what font do you use for headers?   I used "class = 'header" and it looks 
> a little plain
>
> thanks for your help Dave
>
> Alex
>

I'm experimenting with tweaking  web2py-bootstrap3.css 

I've included


header h1 {
font-family: "Ubuntu";
font-weight: 700;
font-size:  55px;
}


where Ubuntu is a Google Font, and in my view, I've put 

https://fonts.googleapis.com/css?family=Ubuntu:400,700 rel=
stylesheet type=text/css>
{{extend layout.html}}


(I'm doing this in an effort to match the type in a logo .. in this case, a 
strong sans-serif with very round characters.  Arial Bold is close, but a 
little too compact.  Montserrat is another I've tried.)

/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: missing response.title and subtitle

2016-04-14 Thread Alex Glaros
okay, I get itI never changed layout.html until now.

what font do you use for headers?   I used "class = 'header" and it looks a 
little plain

thanks for your help Dave

Alex

-- 
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: missing response.title and subtitle

2016-04-14 Thread Dave S
On Thursday, April 14, 2016 at 1:43:45 PM UTC-7, Dave S wrote:
>
>
>
> On Wednesday, April 13, 2016 at 6:33:23 PM UTC-7, Dave S wrote:
>  
>
>> FWIW, my oldest app (created under 2.4.x) did have the 
>> banner/title/subtitle stuff in layout.html, and not in default/index.html. 
>>  It kept working under most updates, so I didn't pay attention, and the 
>> later apps mostly started with the newer welcome.
>>
>>
> With the oldest app, I'm not using the horizon background (and the other 
> apps may not keep it, either), so I'd like to skip the whitening of the 
> title, and the drop shadow, too.  But I'm not sure where it comes from.  Is 
> it from using the "jumbotron" style on the div?  Changing that to 
> "masthead" doesn't alter the lettering.  This seems to be tied to the H1 
> tag, but H1 outside the header container is black and no drop shadow.  (H2 
> is black and no drop shadow, but too small.)
>
> I know, this is a Bootstrap (3) question, but it's tempting me to switch 
> this app to stupid.css.
>
>
Ah, web2py-bootstrap3.css.

/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: missing response.title and subtitle

2016-04-14 Thread Dave S


On Wednesday, April 13, 2016 at 6:33:23 PM UTC-7, Dave S wrote:
 

> FWIW, my oldest app (created under 2.4.x) did have the 
> banner/title/subtitle stuff in layout.html, and not in default/index.html. 
>  It kept working under most updates, so I didn't pay attention, and the 
> later apps mostly started with the newer welcome.
>
>
With the oldest app, I'm not using the horizon background (and the other 
apps may not keep it, either), so I'd like to skip the whitening of the 
title, and the drop shadow, too.  But I'm not sure where it comes from.  Is 
it from using the "jumbotron" style on the div?  Changing that to 
"masthead" doesn't alter the lettering.  This seems to be tied to the H1 
tag, but H1 outside the header container is black and no drop shadow.  (H2 
is black and no drop shadow, but too small.)

I know, this is a Bootstrap (3) question, but it's tempting me to switch 
this app to stupid.css.

/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: missing response.title and subtitle

2016-04-13 Thread Dave S


On Wednesday, April 13, 2016 at 4:44:27 PM UTC-7, Dave S wrote:
>
>
>
> On Wednesday, April 13, 2016 at 3:47:38 PM UTC-7, Alex Glaros wrote:
>>
>> that works as I expected,but didn't we not have to copy index.html to 
>> newfunc.html?  
>>
>> we used to just use admin button to "create new view" and mast header 
>> code was automatically included.  I mean we had to have {{extend 
>> 'layout.html'}} in the view, and that was all that was needed to get 
>> headers in the new view.
>>
>
>
> Poking around on git, this doesn't seem to have changed since 2013.
>
> Create view on 2.14.4 makes what is basically a placeholder, with extend, 
> h1, beautify().That doesn't surprise me, because views are 
> opportunities to customize.  It looks like 2.11.2 did the same:   This very 
> minimal view is created in applications/admin/controllers/default.py. 
>
> I'm not how quickly I access the 2.4.x version web2py I first used.
>
>
FWIW, my oldest app (created under 2.4.x) did have the 
banner/title/subtitle stuff in layout.html, and not in default/index.html. 
 It kept working under most updates, so I didn't pay attention, and the 
later apps mostly started with the newer welcome.

/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: missing response.title and subtitle

2016-04-13 Thread Dave S


On Wednesday, April 13, 2016 at 3:47:38 PM UTC-7, Alex Glaros wrote:
>
> that works as I expected,but didn't we not have to copy index.html to 
> newfunc.html?  
>
> we used to just use admin button to "create new view" and mast header code 
> was automatically included.  I mean we had to have {{extend 'layout.html'}} 
> in the view, and that was all that was needed to get headers in the new 
> view.
>


Poking around on git, this doesn't seem to have changed since 2013.

Create view on 2.14.4 makes what is basically a placeholder, with extend, 
h1, beautify().That doesn't surprise me, because views are 
opportunities to customize.  It looks like 2.11.2 did the same:   This very 
minimal view is created in applications/admin/controllers/default.py. 

I'm not how quickly I access the 2.4.x version web2py I first used.

/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: missing response.title and subtitle

2016-04-13 Thread Dave S


On Wednesday, April 13, 2016 at 3:47:38 PM UTC-7, Alex Glaros wrote:
>
> that works as I expected,but didn't we not have to copy index.html to 
> newfunc.html?  
>
> we used to just use admin button to "create new view" and mast header code 
> was automatically included.  I mean we had to have {{extend 'layout.html'}} 
> in the view, and that was all that was needed to get headers in the new 
> view.
>


 

-- 
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: missing response.title and subtitle

2016-04-13 Thread Alex Glaros
that works as I expected,but didn't we not have to copy index.html to 
newfunc.html?  

we used to just use admin button to "create new view" and mast header code 
was automatically included

-- 
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: missing response.title and subtitle

2016-04-13 Thread Dave S


On Wednesday, April 13, 2016 at 3:30:07 PM UTC-7, Alex Glaros wrote:
>
> it works for me like that too but can you please try a new function not 
> named index.html?
>
> the reason I'm posting is because I get the same behaviour on two 
> different computers.
>
> much appreciated!
>
> Alex
>

newfunc() behaves exactly like index(), which isn't surprising ... I block 
copied the python code within default.py, and I copied 
views/default/index.html to views/default/newfunc.html.


/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: missing response.title and subtitle

2016-04-13 Thread Alex Glaros
it works for me like that too but can you please try a new function not 
named index.html?

the reason I'm posting is because I get the same behaviour on two different 
computers.

much appreciated!

Alex

-- 
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: missing response.title and subtitle

2016-04-13 Thread Dave S


On Wednesday, April 13, 2016 at 2:47:56 PM UTC-7, Alex Glaros wrote:
>
> forgot to include that to create the new app, use the admin function: 
>
> New simple application
>
> that's where I see that layout is missing header includers
>
> thanks
>
> Alex
>

I used the button to create mynewapp.   The file 
mynewapp/views/default/index.html indeed has the block to show title and 
subtitle. I click on "try view", and it shows the title (defaulted to 
appname).  I go back and edit default.py to add a subtitle, go to the view, 
and click on "try view"  voila, the subtitle shows up.

/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: missing response.title and subtitle

2016-04-13 Thread Alex Glaros
forgot to include that to create the new app, use the admin function: 

New simple application

that's where I see that layout is missing header includers

thanks

Alex

-- 
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: missing response.title and subtitle

2016-04-13 Thread Alex Glaros
hi Dave

I know it's in the sample but didn't it used to automatically populate when 
creating any new function besides index.html?

Can you please try creating a new function besides index.html and see if 
the title/subtitle appear in view automatically (after adding them to the 
controller of the same name)?

thanks,

Alex

-- 
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: missing response.title and subtitle

2016-04-13 Thread Dave S


On Wednesday, April 13, 2016 at 1:07:58 PM UTC-7, Alex Glaros wrote:
>
> Do we have to manually add this to each page now?
>
> {{block header}}
> 
>   
> {{if response.title:}}
> {{=response.title}}
>   {{=response.subtitle or ''}}
> {{pass}}
>   
> 
> {{end}}
>
> Is not included in layout.html
>

It's in the sample default/index.html  in the welcome app.

/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: missing response.title and subtitle

2016-04-13 Thread Alex Glaros
Do have to manually add this to each page now?

{{block header}}

  
{{if response.title:}}
{{=response.title}}
  {{=response.subtitle or ''}}
{{pass}}
  

{{end}}

Is not included in layout.html

-- 
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: missing response.title and subtitle

2016-04-13 Thread Alex Glaros
forgot to state:

response.title works in index file for me too

please try again with a new function

thanks Dave

Alex

-- 
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: missing response.title and subtitle

2016-04-13 Thread Dave S


On Wednesday, April 13, 2016 at 12:35:21 PM UTC-7, Alex Glaros wrote:
>
> Can someone please help me? This is a huge favor
>
>
>- download the very latest Windows binary version from web2py.com
>- create the simplest possible app with simplest possible view
>- in controller for that view please add only this basic stuff
>
> response.title = T('Bye')
> response.subtitle = T('See you later!')
>
>- Browse to the view.  Do you see the title and subtitle?
>
>
> thanks!
>
> Alex
>

I took a shortcut, and set them in my existing default/index controller. 
 They show up for me, replacing the default ones ("appname" and "", 
respectively).

The key parts of default/index.html are



4 

 
{{block header}}
5 

 

6 

 
  
7 

 
{{if response.title:}}
8 

 
{{=response.title}}
9 

 
  {{=response.subtitle or ''}}
10 

 
{{pass}}
11 

 
  
12 

 

13 

 
{{end}}
14 

 

 
HTH

Dave
/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: missing response.title and subtitle

2016-04-13 Thread Alex Glaros
Can someone please help me? This is a huge favor


   - download the very latest Windows binary version from web2py.com
   - create the simplest possible app with simplest possible view
   - in controller for that view please add only this basic stuff
   
response.title = T('Bye')
response.subtitle = T('See you later!')

   - Browse to the view.  Do you see the title and subtitle?
   

thanks!

Alex

-- 
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: missing response.title and subtitle

2016-04-13 Thread Anthony
I assume it's a CSS issue, but don't know what the original or new CSS 
looks like, so difficult to say. Maybe use the browser tools to inspect the 
CSS properties in both versions and figure out what is different.

Anthony

On Wednesday, April 13, 2016 at 2:14:54 AM UTC-4, Alex Glaros wrote:
>
> ooops, meant layout.html, not menu.py
>
> anyway, this looks much better (it's in layout.html): I added the 
> highlighted text.
>
> 
> {{block header}}
> 
> {{=response.title or request.application}} 
> {{=response.subtitle or ''}}
> 
> {{end}}
> 
>
> Is there a way to deduce what is missing by seeing that this hack in 
> layout.html almost fixes the problem?
>
> thanks
>
> Alex
>

-- 
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: missing response.title and subtitle

2016-04-13 Thread Alex Glaros
ooops, meant layout.html, not menu.py

anyway, this looks much better (it's in layout.html):


{{block header}}

{{=response.title or request.application}} 
{{=response.subtitle or ''}}

{{end}}


Is there a way to deduce what is missing by seeing that this hack in 
layout.html almost fixes the problem?

thanks

Alex

-- 
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: missing response.title and subtitle

2016-04-12 Thread Alex Glaros
I converted from old template to new so it's a little hard to compare 
what's different

In the new menu.py, I have this


{{block header}}
{{end}}


In the old menu.py I had this






{{=response.title or request.application}} 
{{=response.subtitle or ''}}





When I copied the old to the new like this below, I finally got a title and 
subtitle but obviously there is a mismatch in versions as the text was 
blockish and fuzzed out


{{block header}}
   



{{=response.title or request.application}} 
{{=response.subtitle or ''}}




{{end}}

Any ideas on what might be missing?  Did I accidentally comment out an 
import line? 

thanks,

Alex

-- 
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: missing response.title and subtitle

2016-04-12 Thread Anthony
Check your layout and make sure they are included. If you're using version 
control (or have some older backups), see if you can search to figure out 
at what point you removed them.

Anthony

On Tuesday, April 12, 2016 at 11:11:16 PM UTC-4, Alex Glaros wrote:
>
> I did something and now response.title and response.subtitle don't appear.
>
> I tried re-copying the menu.py from welcome app into my app but still no 
> titles
>
> where did I mess it up?
>
> thanks
>
> Alex Glaros
>

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