[web2py] Re: Help with menu error using web2py 2.0.9

2012-10-03 Thread Paolo Caruccio
With datatable do you mean that one from datables.net?

If yes, I used this guide http://datatables.net/blog/Twitter_Bootstrap_2 and 
I did not have any problem.


Il giorno mercoledì 3 ottobre 2012 02:16:07 UTC+2, apps in tables ha 
scritto:

 For me,

 The using of datatable will make the menu hovering not working.

 removed datatable and the menu is working fine...

 Regards.


-- 





[web2py] Re: Help with menu error using web2py 2.0.9

2012-10-03 Thread apps in tables
Thanks...

-- 





[web2py] Re: Help with menu error using web2py 2.0.9

2012-10-02 Thread apps in tables
Hi everybody,

Let me describe the situation on the other side of the world.

env : windows , web2py 2.0.9 stable

application : has menus and submenus

behaviour : 

on starting page (hover over 
menu shows the submenus )
selecting submenu item that use smartgrid(hover over menu shows the 
submenus )
selecting submenu item that use SQLFORM  (hover over menu *does not show*the 
submenus )
returning back to the starting page (hover over menu shows 
the submenus )
   

I hope this will help in resolving the situation.

Regards,

Ashraf

-- 





[web2py] Re: Help with menu error using web2py 2.0.9

2012-10-02 Thread apps in tables
Browser : Chrome

On Tuesday, October 2, 2012 5:54:10 PM UTC+3, apps in tables wrote:

 Hi everybody,

 Let me describe the situation on the other side of the world.

 env : windows , web2py 2.0.9 stable

 application : has menus and submenus

 behaviour : 

 on starting page (hover over 
 menu shows the submenus )
 selecting submenu item that use smartgrid(hover over menu shows the 
 submenus )
 selecting submenu item that use SQLFORM  (hover over menu *does not show*the 
 submenus )
 returning back to the starting page (hover over menu shows 
 the submenus )


 I hope this will help in resolving the situation.

 Regards,

 Ashraf


-- 





[web2py] Re: Help with menu error using web2py 2.0.9

2012-10-02 Thread Paolo Caruccio
Thank you for your feedback, but I still can't repeat the problem you are 
having. I will do more tests.
With regard to PortableApps, I was just sharing my happy experience: I make 
continuous changes to the settings of my browser, so with repeated installs 
and uninstalls. Using, instead, a portable version of the browser I just 
delete the old folder, and unzip the downloaded file again (such versions 
don't install on the computer and therefore not affect any previous 
installations of the program). I use that downloaded from PortableApps but 
there is also portablefreeware.com
If you are interested, here you will find the definition of portable 
application  http://en.wikipedia.org/wiki/Portable_application
I repeat, I'm just reporting a method by which I am fine, I'm not making 
advertising.


Il giorno martedì 2 ottobre 2012 16:50:07 UTC+2, JoeCodeswell ha scritto:

 Dear Paolo,

 I cleaned both my Opera and Firefox browsers and STILL got the same 
 result, i.e., the sub-menus show up from the test4joe home page, but NOT 
 when either of the Top Level menu items are hovered over from either of the 
 forms pages. I have included screen shots of how i cleaned the browsers.

 I am not sure what you want me to do at portableapps.com. I don't see an 
 Opera browser there. Do you want me to download Firefox and wipe out my 
 present installation, replacing it with the portableapps.com version? I 
 don't know anything about portableapps.com. Do I need to download some of 
 their framework as well? How good a reputation do they have?

 Thanks again, Paolo.

 Love and peace,

 Joe

 On Friday, September 28, 2012 3:35:27 PM UTC-7, Paolo Caruccio wrote:

 Joe,

 thank you very much for the precious informations.

 The behavior in Ubuntu that you described at 2.2 point of the list is 
 normal (collapsed menu).

 With regard to Windows I can't reproduce the issue on my XP3 system. 
 Would you please use a cleaned browser (I usually use a portable version 
 freely downloaded from portableapps.com) with its default settings?

 I'm looking forward to your reply.


 Il giorno venerdì 28 settembre 2012 22:28:34 UTC+2, JoeCodeswell ha 
 scritto:

 Dear Paolo,

 Here are the results from my runs on Ubuntu 12.04 LTS and Windows XP SP3 
 machines.

 Ubuntu
 1. ran in trunk version home/web2py-web2py-722b16e
 2. Results
 1. For Full Screen: IMPROVEMENT for menu behavior
 menus from index are same as from cu00 or app00 
 - menu behavior is better
 - menus don't seem to freeze
 [SEE test4joe-ubu-index-fullScr.jpg]
 2. For Non-fullscreen:
 Top Level Menus DO NOT show up [SEE 
 test4joe-ubu-index-NOTfull.jpg]
 except when 3 white lines are clicked on
 [SEE test4joe-ubu-index-NOTfull-click3.jpg]

 Windows
 1. ran in trunk version C:\web2py-web2py-722b16e\web2py-web2py-722b16e
 2. Results:
 IMPROVEMENT for menus from index page
 NO sub-menus from either update pages
 
 1. from http://127.0.0.1:8000/test4joe/default/index 
 -seems like everything WORKS
 see test4joe-win-index-OK.jpg
 2. from 
 http://127.0.0.1:8000/test4joe/default/update_t_appointment00
 -sub-menus DO NOT show up when either Top Level menu item is 
 hovered over
 see test4joe-win-app00-NG.jpg [unshown cursor is hovering 
 over lit up ContactUs Top Level menu item]
 the Appointment Top Level menu item does not show 
 sub-menus when hovered over 
 from this page either
 3. from http://127.0.0.1:8000/test4joe/default/update_t_contactus00
 -sub-menus DO NOT show up when either Top Level menu item is 
 hovered over
 see test4joe-win-cu00-NG.jpg [unshown cursor is hovering 
 over lit up Appointment Top Level menu item]
 the ContactUs Top Level menu item does not show 
 sub-menus when hovered over 
 from this page either


 It seems you are on the right track, Paolo. Thanks for all the help.

 Love and peace,

 Joe

 On Friday, September 28, 2012 8:03:18 AM UTC-7, JoeCodeswell wrote:

 Dear Paolo,

 I will try this on *both* my *Windows* machine *AND* my *Ubuntu*machine. 

 Also, please see my previous post, of about 5 minutes ago, in response 
 to you, regarding the *different* types of *failure modes* for my *Windows 
 and Ubuntu* machines. [The *three white lines* *never* show up *on*my 
 *Windows* machine, *only* *on* my *Ubuntu* machine]

 Thanks again, Paolo, for all the help.

 Love and peace,

 Joe

 On Thursday, September 27, 2012 4:27:24 PM UTC-7, Paolo Caruccio wrote:

 Joe a last try.
 I confused web2py versions on my pc.
 In last trunk of web2py the javascript hover menu funcion has been 
 moved in static/js/web2py_bootstrap.js
 Here attached new test4joe.
 Finger crossed.

 Il giorno giovedì 27 settembre 2012 23:51:36 UTC+2, Paolo Caruccio ha 
 scritto:

 It's very strange. I tested my layout.html in several Windows 
 

[web2py] Re: Help with menu error using web2py 2.0.9

2012-10-02 Thread apps in tables
For me,

The using of datatable will make the menu hovering not working.

removed datatable and the menu is working fine...

Regards.

-- 





[web2py] Re: Help with menu error using web2py 2.0.9

2012-09-28 Thread JoeCodeswell
Dear Paolo,

You said:

 I tested my layout.html in several Windows scenarios (windows7, windowsXp 
 sp3) with several browsers...

 
I am not sure I was clear about the fact that the *Small Viewport Problem *was 
*NOT on my Windows machine*. It *WAS on my Ubuntu machine*. On my windows 
machine, the sub-menus are the problem.

The details are in my Sep 26 post. Items 1-3 are my Windows machine. Item 4 
is my Ubuntu machine.

Thanks for the help, Paolo.

Love and peace,

Joe





On Thursday, September 27, 2012 2:51:36 PM UTC-7, Paolo Caruccio wrote:

 It's very strange. I tested my layout.html in several Windows scenarios 
 (windows7, windowsXp sp3) with several browsers (last version of Opera, 
 Firefox, Chrome and IE9) without any issue.
 I used the last trunk of web2py, not stable version 2.0.9.
 Anyway, web2py 2.0.9 has topbar menu managed via bootstrap framework. This 
 framework is responsive, so when wieport is smaller of a certain width the 
 menu collapses and it's replaced with the three white lines.

 Only for test: you could try the following options and see what happens:
 1) refresh the page when browser window is fullscreen
 2) open the web2py application with a cache cleaned browser
 3) disable javascript 

 

-- 





[web2py] Re: Help with menu error using web2py 2.0.9

2012-09-28 Thread JoeCodeswell
Dear Paolo,

I will try this on *both* my *Windows* machine *AND* my *Ubuntu* machine. 

Also, please see my previous post, of about 5 minutes ago, in response to 
you, regarding the *different* types of *failure modes* for my *Windows and 
Ubuntu* machines. [The *three white lines* *never* show up *on* my *
Windows* machine, *only* *on* my *Ubuntu* machine]

Thanks again, Paolo, for all the help.

Love and peace,

Joe

On Thursday, September 27, 2012 4:27:24 PM UTC-7, Paolo Caruccio wrote:

 Joe a last try.
 I confused web2py versions on my pc.
 In last trunk of web2py the javascript hover menu funcion has been moved 
 in static/js/web2py_bootstrap.js
 Here attached new test4joe.
 Finger crossed.

 Il giorno giovedì 27 settembre 2012 23:51:36 UTC+2, Paolo Caruccio ha 
 scritto:

 It's very strange. I tested my layout.html in several Windows scenarios 
 (windows7, windowsXp sp3) with several browsers (last version of Opera, 
 Firefox, Chrome and IE9) without any issue.
 I used the last trunk of web2py, not stable version 2.0.9.
 Anyway, web2py 2.0.9 has topbar menu managed via bootstrap framework. 
 This framework is responsive, so when wieport is smaller of a certain width 
 the menu collapses and it's replaced with the three white lines.

 Only for test: you could try the following options and see what happens:
 1) refresh the page when browser window is fullscreen
 2) open the web2py application with a cache cleaned browser
 3) disable javascript 

 Il giorno giovedì 27 settembre 2012 23:38:26 UTC+2, JoeCodeswell ha 
 scritto:

 Dear Niphlod,

 Thanks for the suggestion. I'll try that.

 I also answered my own question about where are the old versions. The 
 last 1.99.x version looks to be 1.99.7 and is found 
 herehttp://code.google.com/p/web2py/source/browse/?name=R-1.99.7. 


 http://code.google.com/p/web2py/source/browse/?name=R-1.99.7

 Thanks for all the help, everyone. It's a great community and a great 
 framework.

 Love and peace,

 Joe
  

 On Thursday, September 27, 2012 2:29:56 PM UTC-7, Niphlod wrote:

 it's not a web2py issue, you are having issues with the new scaffolding 
 app and the css running on it.
 Just copy the welcome app folders views and static of 1.99.2 over 
 the app you are developing on 2.0.9 .

 On Thursday, September 27, 2012 11:16:21 PM UTC+2, JoeCodeswell wrote:

 Dear web2py folks,

 Here's one last thing. I have one more windows XP SP3 machine. It has 
 a web2py [Version 1.99.2 (2011-09-26 06:55:33) stable] running on it. I 
 made a new simple application called forms and changed:
 1. models/menu.py  to be the same as in my original post - way 
 up at the top.   
 2. models/db.py   to be the same as in my original post - 
 way up at the top. 
 3. controllers.default.py to be the same as in my original post - 
 way up at the top. 

 *Result*.
 All the *menus and sub-menus show up and work just fine* for *both 
 Firefox and Opera*. Please see the screen shots.

 So I have the following questions. 

 How can I revert to  web2py [Version 1.99.2 (2011-09-26 06:55:33) 
 stable on my other machines so I can continue to develop my app while 
 this 
 menu issue is being resolved in version 2.0.9? Where can I download this 
 or 
 a later more stable 1.99.x version of web2py?

 Thanks for all the help.

 Love and peace,

 Joe



-- 





[web2py] Re: Help with menu error using web2py 2.0.9

2012-09-28 Thread Paolo Caruccio
Joe,

thank you very much for the precious informations.

The behavior in Ubuntu that you described at 2.2 point of the list is 
normal (collapsed menu).

With regard to Windows I can't reproduce the issue on my XP3 system. Would 
you please use a cleaned browser (I usually use a portable version freely 
downloaded from portableapps.com) with its default settings?

I'm looking forward to your reply.


Il giorno venerdì 28 settembre 2012 22:28:34 UTC+2, JoeCodeswell ha scritto:

 Dear Paolo,

 Here are the results from my runs on Ubuntu 12.04 LTS and Windows XP SP3 
 machines.

 Ubuntu
 1. ran in trunk version home/web2py-web2py-722b16e
 2. Results
 1. For Full Screen: IMPROVEMENT for menu behavior
 menus from index are same as from cu00 or app00 
 - menu behavior is better
 - menus don't seem to freeze
 [SEE test4joe-ubu-index-fullScr.jpg]
 2. For Non-fullscreen:
 Top Level Menus DO NOT show up [SEE test4joe-ubu-index-NOTfull.jpg]
 except when 3 white lines are clicked on
 [SEE test4joe-ubu-index-NOTfull-click3.jpg]

 Windows
 1. ran in trunk version C:\web2py-web2py-722b16e\web2py-web2py-722b16e
 2. Results:
 IMPROVEMENT for menus from index page
 NO sub-menus from either update pages
 
 1. from http://127.0.0.1:8000/test4joe/default/index 
 -seems like everything WORKS
 see test4joe-win-index-OK.jpg
 2. from http://127.0.0.1:8000/test4joe/default/update_t_appointment00
 -sub-menus DO NOT show up when either Top Level menu item is 
 hovered over
 see test4joe-win-app00-NG.jpg [unshown cursor is hovering over 
 lit up ContactUs Top Level menu item]
 the Appointment Top Level menu item does not show 
 sub-menus when hovered over 
 from this page either
 3. from http://127.0.0.1:8000/test4joe/default/update_t_contactus00
 -sub-menus DO NOT show up when either Top Level menu item is 
 hovered over
 see test4joe-win-cu00-NG.jpg [unshown cursor is hovering over 
 lit up Appointment Top Level menu item]
 the ContactUs Top Level menu item does not show sub-menus 
 when hovered over 
 from this page either


 It seems you are on the right track, Paolo. Thanks for all the help.

 Love and peace,

 Joe

 On Friday, September 28, 2012 8:03:18 AM UTC-7, JoeCodeswell wrote:

 Dear Paolo,

 I will try this on *both* my *Windows* machine *AND* my *Ubuntu*machine. 

 Also, please see my previous post, of about 5 minutes ago, in response to 
 you, regarding the *different* types of *failure modes* for my *Windows 
 and Ubuntu* machines. [The *three white lines* *never* show up *on* my 
 *Windows* machine, *only* *on* my *Ubuntu* machine]

 Thanks again, Paolo, for all the help.

 Love and peace,

 Joe

 On Thursday, September 27, 2012 4:27:24 PM UTC-7, Paolo Caruccio wrote:

 Joe a last try.
 I confused web2py versions on my pc.
 In last trunk of web2py the javascript hover menu funcion has been moved 
 in static/js/web2py_bootstrap.js
 Here attached new test4joe.
 Finger crossed.

 Il giorno giovedì 27 settembre 2012 23:51:36 UTC+2, Paolo Caruccio ha 
 scritto:

 It's very strange. I tested my layout.html in several Windows scenarios 
 (windows7, windowsXp sp3) with several browsers (last version of Opera, 
 Firefox, Chrome and IE9) without any issue.
 I used the last trunk of web2py, not stable version 2.0.9.
 Anyway, web2py 2.0.9 has topbar menu managed via bootstrap framework. 
 This framework is responsive, so when wieport is smaller of a certain 
 width 
 the menu collapses and it's replaced with the three white lines.

 Only for test: you could try the following options and see what happens:
 1) refresh the page when browser window is fullscreen
 2) open the web2py application with a cache cleaned browser
 3) disable javascript 

 Il giorno giovedì 27 settembre 2012 23:38:26 UTC+2, JoeCodeswell ha 
 scritto:

 Dear Niphlod,

 Thanks for the suggestion. I'll try that.

 I also answered my own question about where are the old versions. The 
 last 1.99.x version looks to be 1.99.7 and is found 
 herehttp://code.google.com/p/web2py/source/browse/?name=R-1.99.7. 


 http://code.google.com/p/web2py/source/browse/?name=R-1.99.7

 Thanks for all the help, everyone. It's a great community and a great 
 framework.

 Love and peace,

 Joe
  

 On Thursday, September 27, 2012 2:29:56 PM UTC-7, Niphlod wrote:

 it's not a web2py issue, you are having issues with the new 
 scaffolding app and the css running on it.
 Just copy the welcome app folders views and static of 1.99.2 over 
 the app you are developing on 2.0.9 .

 On Thursday, September 27, 2012 11:16:21 PM UTC+2, JoeCodeswell wrote:

 Dear web2py folks,

 Here's one last thing. I have one more windows XP SP3 machine. It 
 has a web2py [Version 1.99.2 (2011-09-26 06:55:33) stable] running on 
 it. I 
 made a new simple application 

[web2py] Re: Help with menu error using web2py 2.0.9

2012-09-27 Thread Paolo Caruccio
Joe,

maybe I understand which is the problem and I have a solution.
Please put the attached layout.html in testxjoe/wiews in place of the old 
one and check if it works.
In this latter case, I will submit a patch to issue tracker.

Issue summary:
Start an application when browser window size is  948px
Resize the browser (i.e. full screen)
Hover over a topbar menu item but the menu is not showed.

Issue cause:
In layout.html hover function is not refreshed when the browser window is 
resized: it sees always the window size as  948px

Issue solution:
In layout.html wrap hover menu function in jQuery resize()

Il giorno giovedì 27 settembre 2012 03:17:06 UTC+2, JoeCodeswell ha scritto:

 Dear Paolo, Firefox 15.0.1

 Thanks for the help. I have 4 results to report running the *textxjoe*app in 
 my environment.

 1.  Processor: Pentium dual core E5700
 Memory: 3.46 GB
 OS: winXP sp3 
 Browser: Opera 12.02 
 URL: http://127.0.0.1:8000/testxjoe/default/index
 Result: On the Home page, NONE of the sub-menus show up when either of 
 the Top Level Menus
 [ContactUs, Appointment] are either [hoveredOver, clicked] 
 See: testxjoe-opera-homepage.jpg [The cursor is not captured on the 
 windows screenshot.]

 2.  Processor: Pentium dual core E5700
 Memory: 3.46 GB
 OS: winXP sp3 
 Browser: Firefox 15.0.1 
 URL: http://127.0.0.1:8000/testxjoe/default/index
 Result: On the Home page, the sub-menus briefly show up [i.e. flash] whenthe 
 either of the 
 Top Level Menus [ContactUs, Appointment] are clicked. 
 The sub-menu appearance coincides with the favicon in the current 
 FireFox Tab being briefly replaced by a rotating arrow and the word 
 Connecting.
 When the either of the Top Level Menus are hoveredOver, they light up,but 
 no sub-menus appear. 
 See: textxjoe-firefox.jpg [The cursor is not captured on the windows 
 screenshot.]

 3.  Processor: Pentium dual core E5700
 Memory: 3.46 GB
 OS: winXP sp3 
 Browser: Opera 12.02  
 URL: http://127.0.0.1:8000/testxjoe/default/update_t_contactus00[typed 
 into the browser from home page]
 Results: 
 3.1 no sub-menus appear when hoveredOver.
 3.2 clicking on either Top Level Menu 
 a. returns to the home page
 b. after clicking browser back arrow, 
 b.1 previous url is navigated to
 b.2 showing the sub-menu of the particlar Top level menu 
 previously clicked on to navigate to the home page!!!
 
 4.  Processor: AMD Athlon(tm) XP [i know this is slower than the 
 Pentiummachine
 ]
 Memory: 1.5 GB
 OS: Ubuntu 12.04 LTS 
 Browser: Firefox 15.0.1 Mozilla Firefox for Ubuntu canonical - 1.0  [
 in FULL SCREEN MODE]
 URL: http://127.0.0.1:8000/testxjoe/default/index
 Results:
 1. If one moves slowly from one Top Level Menu Item to the other, the 
 sub-menus reliably appear.
 2. If one moves quickly, the sub-menus sometimes refuse to show up.A 
 click on 
 Home can reset things.
 3. Sometimes, from various starting URLs, if you hover over ContactUs 
 and then **without leaving the menu bar** move to hover over Appointment,
 the Appointment sub-menu does not show up.
 See: textxjoe-ubuntu-firefox-.jpg [Note the cursor hovering over the lit 
 up Appointment TL Menu with no sub-menu] 


 Thanks for the help, Paolo.

 Love and peace,
 Joe 


 On Tuesday, September 25, 2012 3:37:25 PM UTC-7, Paolo Caruccio wrote:

 Joe,

   I followed your steps and all worked for me (see attached image). I 
 packed the app, please install it on your enviroment and tell me the 
 results.




-- 



Title: {{=response.title or request.application}}






  



  
  
{{=response.flash or ''}}

  


  
  
  

web2py
{{='auth' in globals() and auth.navbar(mode="dropdown") or ''}}

  {{is_mobile=request.user_agent().is_mobile}}
  {{if response.menu:}}
  {{=MENU(response.menu, _class='mobile-menu nav' if is_mobile else 'nav',mobile=is_mobile,li_class='dropdown',ul_class='dropdown-menu')}}
  {{pass}}

  

  

  





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






{{if left_sidebar_enabled:}}

{{block left_sidebar}}
Left Sidebar

{{end}}

{{pass}}


{{block center}}
{{include}}
{{end}}


{{if right_sidebar_enabled:}}

{{block right_sidebar}}
Right Sidebar

{{end}}

{{pass}}






{{block footer}} 
{{=T('Copyright')}}  {{=request.now.year}}

{{=T('Powered by')}}
  

[web2py] Re: Help with menu error using web2py 2.0.9

2012-09-27 Thread Paolo Caruccio
Joe,

maybe I understand which is the problem and I have a solution.
Please put the attached layout.html in testxjoe/views in place of the old 
one and check if it works.
[note:this message has been canceled 3 times from group (security police?). 
Please rename the extension file to html] 
In this latter case, I will submit a patch to issue tracker.

Issue summary:
Start an application when browser window size is  948px
Resize the browser (i.e. full screen)
Hover over a topbar menu item but the menu is not showed.

Issue cause:
In layout.html hover function is not refreshed when the browser window is 
resized: it sees always the window size as  948px

Issue solution:
In layout.html wrap hover menu function in jQuery resize()

Il giorno giovedì 27 settembre 2012 03:17:06 UTC+2, JoeCodeswell ha scritto:

 Dear Paolo, Firefox 15.0.1

 Thanks for the help. I have 4 results to report running the *textxjoe*app in 
 my environment.

 1.  Processor: Pentium dual core E5700
 Memory: 3.46 GB
 OS: winXP sp3 
 Browser: Opera 12.02 
 URL: http://127.0.0.1:8000/testxjoe/default/index
 Result: On the Home page, NONE of the sub-menus show up when either of 
 the Top Level Menus
 [ContactUs, Appointment] are either [hoveredOver, clicked] 
 See: testxjoe-opera-homepage.jpg [The cursor is not captured on the 
 windows screenshot.]

 2.  Processor: Pentium dual core E5700
 Memory: 3.46 GB
 OS: winXP sp3 
 Browser: Firefox 15.0.1 
 URL: http://127.0.0.1:8000/testxjoe/default/index
 Result: On the Home page, the sub-menus briefly show up [i.e. flash] whenthe 
 either of the 
 Top Level Menus [ContactUs, Appointment] are clicked. 
 The sub-menu appearance coincides with the favicon in the current 
 FireFox Tab being briefly replaced by a rotating arrow and the word 
 Connecting.
 When the either of the Top Level Menus are hoveredOver, they light up,but 
 no sub-menus appear. 
 See: textxjoe-firefox.jpg [The cursor is not captured on the windows 
 screenshot.]

 3.  Processor: Pentium dual core E5700
 Memory: 3.46 GB
 OS: winXP sp3 
 Browser: Opera 12.02  
 URL: http://127.0.0.1:8000/testxjoe/default/update_t_contactus00[typed 
 into the browser from home page]
 Results: 
 3.1 no sub-menus appear when hoveredOver.
 3.2 clicking on either Top Level Menu 
 a. returns to the home page
 b. after clicking browser back arrow, 
 b.1 previous url is navigated to
 b.2 showing the sub-menu of the particlar Top level menu 
 previously clicked on to navigate to the home page!!!
 
 4.  Processor: AMD Athlon(tm) XP [i know this is slower than the 
 Pentiummachine
 ]
 Memory: 1.5 GB
 OS: Ubuntu 12.04 LTS 
 Browser: Firefox 15.0.1 Mozilla Firefox for Ubuntu canonical - 1.0  [
 in FULL SCREEN MODE]
 URL: http://127.0.0.1:8000/testxjoe/default/index
 Results:
 1. If one moves slowly from one Top Level Menu Item to the other, the 
 sub-menus reliably appear.
 2. If one moves quickly, the sub-menus sometimes refuse to show up.A 
 click on 
 Home can reset things.
 3. Sometimes, from various starting URLs, if you hover over ContactUs 
 and then **without leaving the menu bar** move to hover over Appointment,
 the Appointment sub-menu does not show up.
 See: textxjoe-ubuntu-firefox-.jpg [Note the cursor hovering over the lit 
 up Appointment TL Menu with no sub-menu] 


 Thanks for the help, Paolo.

 Love and peace,
 Joe 


 On Tuesday, September 25, 2012 3:37:25 PM UTC-7, Paolo Caruccio wrote:

 Joe,

   I followed your steps and all worked for me (see attached image). I 
 packed the app, please install it on your enviroment and tell me the 
 results.




-- 





layout._html
Description: Binary data


[web2py] Re: Help with menu error using web2py 2.0.9

2012-09-27 Thread Paolo Caruccio
Joe,

maybe I understand which is the problem and I have a solution.
Please put the attached layout.html in testxjoe/wiews in place of the old 
one and check if it works.
In this latter case, I will submit a patch to issue tracker.

Issue summary:
Start an application when browser window size is  948px
Resize the browser (i.e. full screen)
Hover over a topbar menu item but the menu is not showed.

Issue cause:
In layout.html hover function is not refreshed when the browser window is 
resized: it sees always the window size as  948px

Issue solution:
In layout.html wrap hover menu function in jQuery resize()

Il giorno giovedì 27 settembre 2012 03:17:06 UTC+2, JoeCodeswell ha scritto:

 Dear Paolo, Firefox 15.0.1

 Thanks for the help. I have 4 results to report running the *textxjoe*app in 
 my environment.

 1.  Processor: Pentium dual core E5700
 Memory: 3.46 GB
 OS: winXP sp3 
 Browser: Opera 12.02 
 URL: http://127.0.0.1:8000/testxjoe/default/index
 Result: On the Home page, NONE of the sub-menus show up when either of 
 the Top Level Menus
 [ContactUs, Appointment] are either [hoveredOver, clicked] 
 See: testxjoe-opera-homepage.jpg [The cursor is not captured on the 
 windows screenshot.]

 2.  Processor: Pentium dual core E5700
 Memory: 3.46 GB
 OS: winXP sp3 
 Browser: Firefox 15.0.1 
 URL: http://127.0.0.1:8000/testxjoe/default/index
 Result: On the Home page, the sub-menus briefly show up [i.e. flash] whenthe 
 either of the 
 Top Level Menus [ContactUs, Appointment] are clicked. 
 The sub-menu appearance coincides with the favicon in the current 
 FireFox Tab being briefly replaced by a rotating arrow and the word 
 Connecting.
 When the either of the Top Level Menus are hoveredOver, they light up,but 
 no sub-menus appear. 
 See: textxjoe-firefox.jpg [The cursor is not captured on the windows 
 screenshot.]

 3.  Processor: Pentium dual core E5700
 Memory: 3.46 GB
 OS: winXP sp3 
 Browser: Opera 12.02  
 URL: http://127.0.0.1:8000/testxjoe/default/update_t_contactus00[typed 
 into the browser from home page]
 Results: 
 3.1 no sub-menus appear when hoveredOver.
 3.2 clicking on either Top Level Menu 
 a. returns to the home page
 b. after clicking browser back arrow, 
 b.1 previous url is navigated to
 b.2 showing the sub-menu of the particlar Top level menu 
 previously clicked on to navigate to the home page!!!
 
 4.  Processor: AMD Athlon(tm) XP [i know this is slower than the 
 Pentiummachine
 ]
 Memory: 1.5 GB
 OS: Ubuntu 12.04 LTS 
 Browser: Firefox 15.0.1 Mozilla Firefox for Ubuntu canonical - 1.0  [
 in FULL SCREEN MODE]
 URL: http://127.0.0.1:8000/testxjoe/default/index
 Results:
 1. If one moves slowly from one Top Level Menu Item to the other, the 
 sub-menus reliably appear.
 2. If one moves quickly, the sub-menus sometimes refuse to show up.A 
 click on 
 Home can reset things.
 3. Sometimes, from various starting URLs, if you hover over ContactUs 
 and then **without leaving the menu bar** move to hover over Appointment,
 the Appointment sub-menu does not show up.
 See: textxjoe-ubuntu-firefox-.jpg [Note the cursor hovering over the lit 
 up Appointment TL Menu with no sub-menu] 


 Thanks for the help, Paolo.

 Love and peace,
 Joe 


 On Tuesday, September 25, 2012 3:37:25 PM UTC-7, Paolo Caruccio wrote:

 Joe,

   I followed your steps and all worked for me (see attached image). I 
 packed the app, please install it on your enviroment and tell me the 
 results.




-- 



Title: {{=response.title or request.application}}






  



  
  
{{=response.flash or ''}}

  


  
  
  

web2py
{{='auth' in globals() and auth.navbar(mode="dropdown") or ''}}

  {{is_mobile=request.user_agent().is_mobile}}
  {{if response.menu:}}
  {{=MENU(response.menu, _class='mobile-menu nav' if is_mobile else 'nav',mobile=is_mobile,li_class='dropdown',ul_class='dropdown-menu')}}
  {{pass}}

  

  

  





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






{{if left_sidebar_enabled:}}

{{block left_sidebar}}
Left Sidebar

{{end}}

{{pass}}


{{block center}}
{{include}}
{{end}}


{{if right_sidebar_enabled:}}

{{block right_sidebar}}
Right Sidebar

{{end}}

{{pass}}






{{block footer}} 
{{=T('Copyright')}}  {{=request.now.year}}

{{=T('Powered by')}}
  

[web2py] Re: Help with menu error using web2py 2.0.9

2012-09-27 Thread Paolo Caruccio
Joe,

maybe I understand which is the problem and I have a solution.
Please put the attached layout.html in testxjoe/wiews in place of the old 
one and write me if it works.
In this latter case I will submit a patch to issue tracker.

Issue summary:
Start an application when browser window size is  948px
Resize the browser (i.e. full screen)
Hover over a topbar menu item: the submenu is not showed.

Issue cause:
In layout.html hover function is not refreshed when the browser window is 
resized: so it sees always the window size as  948px

Issue solution:
In layout.html wrap hover menu function in jQuery resize()
   



Il giorno giovedì 27 settembre 2012 03:17:06 UTC+2, JoeCodeswell ha scritto:

 Dear Paolo, Firefox 15.0.1

 Thanks for the help. I have 4 results to report running the *textxjoe*app in 
 my environment.

 1.  Processor: Pentium dual core E5700
 Memory: 3.46 GB
 OS: winXP sp3 
 Browser: Opera 12.02 
 URL: http://127.0.0.1:8000/testxjoe/default/index
 Result: On the Home page, NONE of the sub-menus show up when either of 
 the Top Level Menus
 [ContactUs, Appointment] are either [hoveredOver, clicked] 
 See: testxjoe-opera-homepage.jpg [The cursor is not captured on the 
 windows screenshot.]

 2.  Processor: Pentium dual core E5700
 Memory: 3.46 GB
 OS: winXP sp3 
 Browser: Firefox 15.0.1 
 URL: http://127.0.0.1:8000/testxjoe/default/index
 Result: On the Home page, the sub-menus briefly show up [i.e. flash] whenthe 
 either of the 
 Top Level Menus [ContactUs, Appointment] are clicked. 
 The sub-menu appearance coincides with the favicon in the current 
 FireFox Tab being briefly replaced by a rotating arrow and the word 
 Connecting.
 When the either of the Top Level Menus are hoveredOver, they light up,but 
 no sub-menus appear. 
 See: textxjoe-firefox.jpg [The cursor is not captured on the windows 
 screenshot.]

 3.  Processor: Pentium dual core E5700
 Memory: 3.46 GB
 OS: winXP sp3 
 Browser: Opera 12.02  
 URL: http://127.0.0.1:8000/testxjoe/default/update_t_contactus00[typed 
 into the browser from home page]
 Results: 
 3.1 no sub-menus appear when hoveredOver.
 3.2 clicking on either Top Level Menu 
 a. returns to the home page
 b. after clicking browser back arrow, 
 b.1 previous url is navigated to
 b.2 showing the sub-menu of the particlar Top level menu 
 previously clicked on to navigate to the home page!!!
 
 4.  Processor: AMD Athlon(tm) XP [i know this is slower than the 
 Pentiummachine
 ]
 Memory: 1.5 GB
 OS: Ubuntu 12.04 LTS 
 Browser: Firefox 15.0.1 Mozilla Firefox for Ubuntu canonical - 1.0  [
 in FULL SCREEN MODE]
 URL: http://127.0.0.1:8000/testxjoe/default/index
 Results:
 1. If one moves slowly from one Top Level Menu Item to the other, the 
 sub-menus reliably appear.
 2. If one moves quickly, the sub-menus sometimes refuse to show up.A 
 click on 
 Home can reset things.
 3. Sometimes, from various starting URLs, if you hover over ContactUs 
 and then **without leaving the menu bar** move to hover over Appointment,
 the Appointment sub-menu does not show up.
 See: textxjoe-ubuntu-firefox-.jpg [Note the cursor hovering over the lit 
 up Appointment TL Menu with no sub-menu] 


 Thanks for the help, Paolo.

 Love and peace,
 Joe 


 On Tuesday, September 25, 2012 3:37:25 PM UTC-7, Paolo Caruccio wrote:

 Joe,

   I followed your steps and all worked for me (see attached image). I 
 packed the app, please install it on your enviroment and tell me the 
 results.




-- 



Title: {{=response.title or request.application}}






  



  
  
{{=response.flash or ''}}

  


  
  
  

web2py
{{='auth' in globals() and auth.navbar(mode="dropdown") or ''}}

  {{is_mobile=request.user_agent().is_mobile}}
  {{if response.menu:}}
  {{=MENU(response.menu, _class='mobile-menu nav' if is_mobile else 'nav',mobile=is_mobile,li_class='dropdown',ul_class='dropdown-menu')}}
  {{pass}}

  

  

  





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






{{if left_sidebar_enabled:}}

{{block left_sidebar}}
Left Sidebar

{{end}}

{{pass}}


{{block center}}
{{include}}
{{end}}


{{if right_sidebar_enabled:}}

{{block right_sidebar}}
Right Sidebar

{{end}}

{{pass}}






{{block footer}} 
{{=T('Copyright')}}  {{=request.now.year}}

{{=T('Powered 

[web2py] Re: Help with menu error using web2py 2.0.9

2012-09-27 Thread Niphlod
it's not a web2py issue, you are having issues with the new scaffolding app 
and the css running on it.
Just copy the welcome app folders views and static of 1.99.2 over the 
app you are developing on 2.0.9 .

On Thursday, September 27, 2012 11:16:21 PM UTC+2, JoeCodeswell wrote:

 Dear web2py folks,

 Here's one last thing. I have one more windows XP SP3 machine. It has a 
 web2py [Version 1.99.2 (2011-09-26 06:55:33) stable] running on it. I made 
 a new simple application called forms and changed:
 1. models/menu.py  to be the same as in my original post - way up 
 at the top.   
 2. models/db.py   to be the same as in my original post - way 
 up at the top. 
 3. controllers.default.py to be the same as in my original post - way 
 up at the top. 

 *Result*.
 All the *menus and sub-menus show up and work just fine* for *both 
 Firefox and Opera*. Please see the screen shots.

 So I have the following questions. 

 How can I revert to  web2py [Version 1.99.2 (2011-09-26 06:55:33) stable 
 on my other machines so I can continue to develop my app while this menu 
 issue is being resolved in version 2.0.9? Where can I download this or a 
 later more stable 1.99.x version of web2py?

 Thanks for all the help.

 Love and peace,

 Joe


-- 





[web2py] Re: Help with menu error using web2py 2.0.9

2012-09-27 Thread JoeCodeswell
Dear Niphlod,

Thanks for the suggestion. I'll try that.

I also answered my own question about where are the old versions. The last 
1.99.x version looks to be 1.99.7 and is found 
herehttp://code.google.com/p/web2py/source/browse/?name=R-1.99.7. 


http://code.google.com/p/web2py/source/browse/?name=R-1.99.7

Thanks for all the help, everyone. It's a great community and a great 
framework.

Love and peace,

Joe
 

On Thursday, September 27, 2012 2:29:56 PM UTC-7, Niphlod wrote:

 it's not a web2py issue, you are having issues with the new scaffolding 
 app and the css running on it.
 Just copy the welcome app folders views and static of 1.99.2 over the 
 app you are developing on 2.0.9 .

 On Thursday, September 27, 2012 11:16:21 PM UTC+2, JoeCodeswell wrote:

 Dear web2py folks,

 Here's one last thing. I have one more windows XP SP3 machine. It has a 
 web2py [Version 1.99.2 (2011-09-26 06:55:33) stable] running on it. I made 
 a new simple application called forms and changed:
 1. models/menu.py  to be the same as in my original post - way up 
 at the top.   
 2. models/db.py   to be the same as in my original post - way 
 up at the top. 
 3. controllers.default.py to be the same as in my original post - 
 way up at the top. 

 *Result*.
 All the *menus and sub-menus show up and work just fine* for *both 
 Firefox and Opera*. Please see the screen shots.

 So I have the following questions. 

 How can I revert to  web2py [Version 1.99.2 (2011-09-26 06:55:33) stable 
 on my other machines so I can continue to develop my app while this menu 
 issue is being resolved in version 2.0.9? Where can I download this or a 
 later more stable 1.99.x version of web2py?

 Thanks for all the help.

 Love and peace,

 Joe



-- 





[web2py] Re: Help with menu error using web2py 2.0.9

2012-09-27 Thread Paolo Caruccio
It's very strange. I tested my layout.html in several Windows scenarios 
(windows7, windowsXp sp3) with several browsers (last version of Opera, 
Firefox, Chrome and IE9) without any issue.
I used the last trunk of web2py, not stable version 2.0.9.
Anyway, web2py 2.0.9 has topbar menu managed via bootstrap framework. This 
framework is responsive, so when wieport is smaller of a certain width the 
menu collapses and it's replaced with the three white lines.

Only for test: you could try the following options and see what happens:
1) refresh the page when browser window is fullscreen
2) open the web2py application with a cache cleaned browser
3) disable javascript 

Il giorno giovedì 27 settembre 2012 23:38:26 UTC+2, JoeCodeswell ha scritto:

 Dear Niphlod,

 Thanks for the suggestion. I'll try that.

 I also answered my own question about where are the old versions. The last 
 1.99.x version looks to be 1.99.7 and is found 
 herehttp://code.google.com/p/web2py/source/browse/?name=R-1.99.7. 


 http://code.google.com/p/web2py/source/browse/?name=R-1.99.7

 Thanks for all the help, everyone. It's a great community and a great 
 framework.

 Love and peace,

 Joe
  

 On Thursday, September 27, 2012 2:29:56 PM UTC-7, Niphlod wrote:

 it's not a web2py issue, you are having issues with the new scaffolding 
 app and the css running on it.
 Just copy the welcome app folders views and static of 1.99.2 over the 
 app you are developing on 2.0.9 .

 On Thursday, September 27, 2012 11:16:21 PM UTC+2, JoeCodeswell wrote:

 Dear web2py folks,

 Here's one last thing. I have one more windows XP SP3 machine. It has a 
 web2py [Version 1.99.2 (2011-09-26 06:55:33) stable] running on it. I made 
 a new simple application called forms and changed:
 1. models/menu.py  to be the same as in my original post - way 
 up at the top.   
 2. models/db.py   to be the same as in my original post - 
 way up at the top. 
 3. controllers.default.py to be the same as in my original post - 
 way up at the top. 

 *Result*.
 All the *menus and sub-menus show up and work just fine* for *both 
 Firefox and Opera*. Please see the screen shots.

 So I have the following questions. 

 How can I revert to  web2py [Version 1.99.2 (2011-09-26 06:55:33) stable 
 on my other machines so I can continue to develop my app while this menu 
 issue is being resolved in version 2.0.9? Where can I download this or a 
 later more stable 1.99.x version of web2py?

 Thanks for all the help.

 Love and peace,

 Joe



-- 





[web2py] Re: Help with menu error using web2py 2.0.9

2012-09-27 Thread Paolo Caruccio
Joe a last try.
I confused web2py versions on my pc.
In last trunk of web2py the javascript hover menu funcion has been moved in 
static/js/web2py_bootstrap.js
Here attached new test4joe.
Finger crossed.

Il giorno giovedì 27 settembre 2012 23:38:26 UTC+2, JoeCodeswell ha scritto:

 Dear Niphlod,

 Thanks for the suggestion. I'll try that.

 I also answered my own question about where are the old versions. The last 
 1.99.x version looks to be 1.99.7 and is found 
 herehttp://code.google.com/p/web2py/source/browse/?name=R-1.99.7. 


 http://code.google.com/p/web2py/source/browse/?name=R-1.99.7

 Thanks for all the help, everyone. It's a great community and a great 
 framework.

 Love and peace,

 Joe
  

 On Thursday, September 27, 2012 2:29:56 PM UTC-7, Niphlod wrote:

 it's not a web2py issue, you are having issues with the new scaffolding 
 app and the css running on it.
 Just copy the welcome app folders views and static of 1.99.2 over the 
 app you are developing on 2.0.9 .

 On Thursday, September 27, 2012 11:16:21 PM UTC+2, JoeCodeswell wrote:

 Dear web2py folks,

 Here's one last thing. I have one more windows XP SP3 machine. It has a 
 web2py [Version 1.99.2 (2011-09-26 06:55:33) stable] running on it. I made 
 a new simple application called forms and changed:
 1. models/menu.py  to be the same as in my original post - way 
 up at the top.   
 2. models/db.py   to be the same as in my original post - 
 way up at the top. 
 3. controllers.default.py to be the same as in my original post - 
 way up at the top. 

 *Result*.
 All the *menus and sub-menus show up and work just fine* for *both 
 Firefox and Opera*. Please see the screen shots.

 So I have the following questions. 

 How can I revert to  web2py [Version 1.99.2 (2011-09-26 06:55:33) stable 
 on my other machines so I can continue to develop my app while this menu 
 issue is being resolved in version 2.0.9? Where can I download this or a 
 later more stable 1.99.x version of web2py?

 Thanks for all the help.

 Love and peace,

 Joe



-- 





[web2py] Re: Help with menu error using web2py 2.0.9

2012-09-25 Thread JoeCodeswell
On my Ubuntu 12.04 LTS machine here's what i did so far.
1. from https://github.com/web2py/web2py/ i downloaded the ZIP for commit 
722b16e620 authored 12 hours ago.
2. unzipped it to my home directory. The directory structure for 
~/web2py-web2py-722b16e is
applications
deposit
doc
gluon
...
web2py.py
...
3. From the command line:
$ cd web2py-web2py-722b16e
$ python web2py.py
4.in Firefox 15.0.1 Mozilla Firefox for Ubuntu canonical - 1.0 added a new 
simple app named menutest
5.changed the models/menu.py to be:
# -*- coding: utf-8 -*-


response.title = ' '.join(word.capitalize() for word in request.application.
split('_'))

response.subtitle = T('Stock Forms for Web2py')

## read more at http://dev.w3.org/html5/markup/meta.name.html

response.meta.author = 'you y...@gmail.com'

response.meta.description = 'Stock Forms for Web2py'
response.meta.keywords = 'web2py, python, framework'
response.meta.generator = 'Web2py Web Framework'

## your http://google.com/analytics id
response.google_analytics_id = None



response.menu = [

(T('Home'), False, URL('default','index'), []),
(T('ContactUs'), False, URL('default','index'), [
(T('CU-00'), False, URL('default','update_t_contactus00'), []),

]),
(T('Appointment'), False, URL('default','index'), [
(T('APP-00'), False, URL('default','update_t_appointment00'), []),

]),
]
# -*- coding: utf-8 -*-


response.title = ' '.join(word.capitalize() for word in request.application.
split('_'))

response.subtitle = T('Stock Forms for Web2py')

## read more at http://dev.w3.org/html5/markup/meta.name.html

response.meta.author = 'you y...@gmail.com'

response.meta.description = 'Stock Forms for Web2py'
response.meta.keywords = 'web2py, python, framework'
response.meta.generator = 'Web2py Web Framework'

## your http://google.com/analytics id
response.google_analytics_id = None



response.menu = [

(T('Home'), False, URL('default','index'), []),
(T('ContactUs'), False, URL('default','index'), [
(T('CU-00'), False, URL('default','update_t_contactus00'), []),

]),
(T('Appointment'), False, URL('default','index'), [
(T('APP-00'), False, URL('default','update_t_appointment00'), []),

]),
]

6. Checked the menu and it was NOT WORKING like it did on my windows 
machine. NOT EVEN the top level menus showed up in the black bar. HOWEVER, 
a Horizontally Striped Box appeared to the right of the Login menu. When i 
clicked on that Horizontally Striped Box, the entire menu appeared 
vertically, in a vertically expanded black bar that was about 2 inches from 
top to bottom.

I'll take a break now and pick up later with the Ubuntu adventure. :)

Thanks again, Massimo.

Love and peace,

Joe 

-- 





[web2py] Re: Help with menu error using web2py 2.0.9

2012-09-25 Thread JoeCodeswell
I just noticed that i double copied the contents of  models/menu.py. I am 
posting the proper menu.py content. The behavior is the same as i described 
it before, it was NOT WORKING like it did on my windows machine. NOT EVEN 
the top level menus showed up in the black bar. HOWEVER, a Horizontally 
Striped Box appeared to the right of the Login menu. When i clicked on that 
Horizontally Striped Box, the entire menu appeared vertically, in a 
vertically expanded black bar that was about 2 inches from top to bottom.  
Here is the proper menu.py content that caused the behavior i just 
described. 

# -*- coding: utf-8 -*-


response.title = ' '.join(word.capitalize() for word in request.application.
split('_'))

response.subtitle = T('Stock Forms for Web2py')

## read more at http://dev.w3.org/html5/markup/meta.name.html

response.meta.author = 'you y...@gmail.com'

response.meta.description = 'Stock Forms for Web2py'
response.meta.keywords = 'web2py, python, framework'
response.meta.generator = 'Web2py Web Framework'

## your http://google.com/analytics id
response.google_analytics_id = None



response.menu = [

(T('Home'), False, URL('default','index'), []),
(T('ContactUs'), False, URL('default','index'), [
(T('CU-00'), False, URL('default','update_t_contactus00'), []),

]),
(T('Appointment'), False, URL('default','index'), [
(T('APP-00'), False, URL('default','update_t_appointment00'), []),

]),
]

Thanks again.

Love and peace,
Joe



On Tuesday, September 25, 2012 9:59:42 AM UTC-7, JoeCodeswell wrote:

 On my Ubuntu 12.04 LTS machine here's what i did so far.
 1. from https://github.com/web2py/web2py/ i downloaded the ZIP for commit 
 722b16e620 authored 12 hours ago.
 2. unzipped it to my home directory. The directory structure for 
 ~/web2py-web2py-722b16e is
 applications
 deposit
 doc
 gluon
 ...
 web2py.py
 ...
 3. From the command line:
 $ cd web2py-web2py-722b16e
 $ python web2py.py
 4.in Firefox 15.0.1 Mozilla Firefox for Ubuntu canonical - 1.0 added a 
 new simple app named menutest
 5.changed the models/menu.py to be:
 # -*- coding: utf-8 -*-


 response.title = ' '.join(word.capitalize() for word in request.
 application.split('_'))

 response.subtitle = T('Stock Forms for Web2py')

 ## read more at http://dev.w3.org/html5/markup/meta.name.html

 response.meta.author = 'you y...@gmail.com'

 response.meta.description = 'Stock Forms for Web2py'
 response.meta.keywords = 'web2py, python, framework'
 response.meta.generator = 'Web2py Web Framework'

 ## your http://google.com/analytics id
 response.google_analytics_id = None



 response.menu = [

 (T('Home'), False, URL('default','index'), []),
 (T('ContactUs'), False, URL('default','index'), [
 (T('CU-00'), False, URL('default','update_t_contactus00'), []),

 ]),
 (T('Appointment'), False, URL('default','index'), [
 (T('APP-00'), False, URL('default','update_t_appointment00'), []),

 ]),
 ]
 # -*- coding: utf-8 -*-


 response.title = ' '.join(word.capitalize() for word in request.
 application.split('_'))

 response.subtitle = T('Stock Forms for Web2py')

 ## read more at http://dev.w3.org/html5/markup/meta.name.html

 response.meta.author = 'you y...@gmail.com'

 response.meta.description = 'Stock Forms for Web2py'
 response.meta.keywords = 'web2py, python, framework'
 response.meta.generator = 'Web2py Web Framework'

 ## your http://google.com/analytics id
 response.google_analytics_id = None



 response.menu = [

 (T('Home'), False, URL('default','index'), []),
 (T('ContactUs'), False, URL('default','index'), [
 (T('CU-00'), False, URL('default','update_t_contactus00'), []),

 ]),
 (T('Appointment'), False, URL('default','index'), [
 (T('APP-00'), False, URL('default','update_t_appointment00'), []),

 ]),
 ]

 6. Checked the menu and it was NOT WORKING like it did on my windows 
 machine. NOT EVEN the top level menus showed up in the black bar. HOWEVER, 
 a Horizontally Striped Box appeared to the right of the Login menu. When i 
 clicked on that Horizontally Striped Box, the entire menu appeared 
 vertically, in a vertically expanded black bar that was about 2 inches from 
 top to bottom.

 I'll take a break now and pick up later with the Ubuntu adventure. :)

 Thanks again, Massimo.

 Love and peace,

 Joe 


-- 





[web2py] Re: Help with menu error using web2py 2.0.9

2012-09-25 Thread Paolo Caruccio
Please try to rename bootstrap-responsive.min.css in static/css folder 
(for example change the name in _bootstrap-responsive.min.css
Moreover could you check the viewport dimensions?
It seems a responsive layout issue.  

Il giorno martedì 25 settembre 2012 19:20:18 UTC+2, JoeCodeswell ha scritto:

 I just noticed that i double copied the contents of  models/menu.py. I am 
 posting the proper menu.py content. The behavior is the same as i described 
 it before, it was NOT WORKING like it did on my windows machine. NOT EVEN 
 the top level menus showed up in the black bar. HOWEVER, a Horizontally 
 Striped Box appeared to the right of the Login menu. When i clicked on that 
 Horizontally Striped Box, the entire menu appeared vertically, in a 
 vertically expanded black bar that was about 2 inches from top to bottom.  
 Here is the proper menu.py content that caused the behavior i just 
 described. 

 # -*- coding: utf-8 -*-


 response.title = ' '.join(word.capitalize() for word in request.
 application.split('_'))

 response.subtitle = T('Stock Forms for Web2py')

 ## read more at http://dev.w3.org/html5/markup/meta.name.html

 response.meta.author = 'you y...@gmail.com'

 response.meta.description = 'Stock Forms for Web2py'
 response.meta.keywords = 'web2py, python, framework'
 response.meta.generator = 'Web2py Web Framework'

 ## your http://google.com/analytics id
 response.google_analytics_id = None



 response.menu = [

 (T('Home'), False, URL('default','index'), []),
 (T('ContactUs'), False, URL('default','index'), [
 (T('CU-00'), False, URL('default','update_t_contactus00'), []),

 ]),
 (T('Appointment'), False, URL('default','index'), [
 (T('APP-00'), False, URL('default','update_t_appointment00'), []),

 ]),
 ]

 Thanks again.

 Love and peace,
 Joe



 On Tuesday, September 25, 2012 9:59:42 AM UTC-7, JoeCodeswell wrote:

 On my Ubuntu 12.04 LTS machine here's what i did so far.
 1. from https://github.com/web2py/web2py/ i downloaded the ZIP for 
 commit 722b16e620 authored 12 hours ago.
 2. unzipped it to my home directory. The directory structure for 
 ~/web2py-web2py-722b16e is
 applications
 deposit
 doc
 gluon
 ...
 web2py.py
 ...
 3. From the command line:
 $ cd web2py-web2py-722b16e
 $ python web2py.py
 4.in Firefox 15.0.1 Mozilla Firefox for Ubuntu canonical - 1.0 added a 
 new simple app named menutest
 5.changed the models/menu.py to be:
 # -*- coding: utf-8 -*-


 response.title = ' '.join(word.capitalize() for word in request.
 application.split('_'))

 response.subtitle = T('Stock Forms for Web2py')

 ## read more at http://dev.w3.org/html5/markup/meta.name.html

 response.meta.author = 'you y...@gmail.com'

 response.meta.description = 'Stock Forms for Web2py'
 response.meta.keywords = 'web2py, python, framework'
 response.meta.generator = 'Web2py Web Framework'

 ## your http://google.com/analytics id
 response.google_analytics_id = None



 response.menu = [

 (T('Home'), False, URL('default','index'), []),
 (T('ContactUs'), False, URL('default','index'), [
 (T('CU-00'), False, URL('default','update_t_contactus00'), []),

 ]),
 (T('Appointment'), False, URL('default','index'), [
 (T('APP-00'), False, URL('default','update_t_appointment00'), 
 []),

 ]),
 ]
 # -*- coding: utf-8 -*-


 response.title = ' '.join(word.capitalize() for word in request.
 application.split('_'))

 response.subtitle = T('Stock Forms for Web2py')

 ## read more at http://dev.w3.org/html5/markup/meta.name.html

 response.meta.author = 'you y...@gmail.com'

 response.meta.description = 'Stock Forms for Web2py'
 response.meta.keywords = 'web2py, python, framework'
 response.meta.generator = 'Web2py Web Framework'

 ## your http://google.com/analytics id
 response.google_analytics_id = None



 response.menu = [

 (T('Home'), False, URL('default','index'), []),
 (T('ContactUs'), False, URL('default','index'), [
 (T('CU-00'), False, URL('default','update_t_contactus00'), []),

 ]),
 (T('Appointment'), False, URL('default','index'), [
 (T('APP-00'), False, URL('default','update_t_appointment00'), 
 []),

 ]),
 ]

 6. Checked the menu and it was NOT WORKING like it did on my windows 
 machine. NOT EVEN the top level menus showed up in the black bar. HOWEVER, 
 a Horizontally Striped Box appeared to the right of the Login menu. When i 
 clicked on that Horizontally Striped Box, the entire menu appeared 
 vertically, in a vertically expanded black bar that was about 2 inches from 
 top to bottom.

 I'll take a break now and pick up later with the Ubuntu adventure. :)

 Thanks again, Massimo.

 Love and peace,

 Joe 



-- 





[web2py] Re: Help with menu error using web2py 2.0.9

2012-09-25 Thread JoeCodeswell
Dear Paolo,

Here is the behavior *before* and *after* renaming 
bootstrap-responsive.min.css to be _bootstrap-responsive.min.css

BEFORE renaming bootstrap-responsive.min.css ro be _bootstrap-responsive.min
.css
Normal Size Viewport: w=959  h=678 
Behavior:
- top level mmenu items DO NOT appear in the black 
bar. 
- Horizontally Striped Box appeared to the right of 
the Login menu. 
- When i click on that Horizontally Striped Box, 
- the entire menu appears vertically, 
in a vertically expanded black bar, 
about 2 inches from top to bottom.  
Full Screen Viewport: w=1024 h=767
Behavior:
- NO Horizontally Striped Box appeared to the right 
of the Login menu.
- top level menu items appear in the black bar
- sub-menus DO NOT appear when main items are 
hovered over

AFTER renaming bootstrap-responsive.min.css ro be _bootstrap-responsive.min.css 

Normal Size Viewport: w=959  h=678   
Behavior: (Same as BEFORE Full Screen)
- NO Horizontally Striped Box appeared to the right 
of the Login menu.
- top level menu items appear in the black bar
- sub-menus DO NOT appear when main items are 
hovered over
Full Screen Viewport: w=1024 h=767
Behavior: (Same as BEFORE Full Screen)
- NO Horizontally Striped Box appeared to the right 
of the Login menu.
- top level menu items appear in the black bar
- sub-menus DO NOT appear when main items are 
hovered over

Here is the method i used to measure the viewport. 
viewportSize.html:

html
head
script type=text/javascript

// from http://beantin.se/post/354097397/track-viewport-google-analytics

function viewport() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
//Non-IE
myWidth = window.innerWidth;
myHeight = window.innerHeight;
  } else if( document.documentElement 
  ( document.documentElement.clientWidth
|| document.documentElement.clientHeight ) ) {
//IE 6+ in 'standards compliant mode'
myWidth = document.documentElement.clientWidth;
myHeight = document.documentElement.clientHeight;
  } else if( document.body 
  ( document.body.clientWidth
|| document.body.clientHeight ) ) {
//IE 4 compatible
myWidth = document.body.clientWidth;
myHeight = document.body.clientHeight;
  }
  alert( w=+myWidth+ h=+myHeight);
  /*
  _gaq.push(['_trackEvent',
   'Viewport',
   'Size',
   myWidth+'x'+myHeight, true]);
  _gaq.push(['_trackEvent',
   'Viewport',
   'Width',
   myWidth+'x'+myHeight,
   myWidth, true]);
  _gaq.push(['_trackEvent',
   'Viewport',
   'Height',
   myWidth+'x'+myHeight,
   myHeight, true]);
  */
}
/script
/head
body onLoad=viewport()

/body
/htmlhtml
head
script type=text/javascript src=s /script
/head
body

/body
/html

Thanks for the help, Paolo.

Love and peace,

Joe




On Tuesday, September 25, 2012 10:44:02 AM UTC-7, Paolo Caruccio wrote:

 Please try to rename bootstrap-responsive.min.css in static/css folder 
 (for example change the name in _bootstrap-responsive.min.css
 Moreover could you check the viewport dimensions?
 It seems a responsive layout issue.  

 Il giorno martedì 25 settembre 2012 19:20:18 UTC+2, JoeCodeswell ha 
 scritto:

 

-- 





[web2py] Re: Help with menu error using web2py 2.0.9

2012-09-24 Thread Massimo Di Pierro
Can you please try the nightly build? I think this problem may be related 
to a nasty issue with URL that was fixed last week. In fact I cannot 
reproduce the problem with trunk, using your code.

Massimo

On Wednesday, 19 September 2012 18:33:16 UTC-5, JoeCodeswell wrote:

 I have gone one more step in trying to isolate the problem. Given the 
 existence of models/[menu.py, db.py] in the previous post, when 
 default-fail.py is copied to controllers/default.py, the sub-menus DO NOT 
 show up when hovered over. 

 However, when default-welcome209.py is copied to controllers/default.py, 
 the sub-menus DO INDEED show up when hovered over.

 Here is default-fail.py
 # -*- coding: utf-8 -*-

 #ContactUs
 def update_t_contactus00():
 return dict(form=crud.update(db.t_contactus00, request.args(0)))
 
 #Appointment
 def update_t_appointment00():
 return dict(form=crud.update(db.t_appointment00, request.args(0)))

 indexMM = '''## Stock Forms for Web2py
 ### Background
 While using the web2py App Wizard, I got frustrated at needing to define 
 the model for a
 Contact Us form for the *90 millionth time*. So, i made a suggestion in 
 code.google/p/web2py
 in Issue 982. **Massimo liked the idea and said, If you have done work in 
 this direction feel free to post a patch.**

 '''
 
 def index():
 
 example action using the internationalization operator T and flash
 rendered by views/default/index.html or views/generic.html

 if you need a simple wiki simple replace the two lines below with:
 return auth.wiki()
 
 #response.flash = T(Welcome to web2py!)
 #return dict(message=T('Hello World'))
 return dict(message=MARKMIN(indexMM))


 Here is default-welcome209.py

 # -*- coding: utf-8 -*-
 # this file is released under public domain and you can use without 
 limitations

 #
 ## This is a samples controller
 ## - index is the default action of any application
 ## - user is required for authentication and authorization
 ## - download is for downloading files uploaded in the db (does streaming)
 ## - call exposes all registered services (none by default)
 #

 def index():
 
 example action using the internationalization operator T and flash
 rendered by views/default/index.html or views/generic.html

 if you need a simple wiki simple replace the two lines below with:
 return auth.wiki()
 
 response.flash = T(Welcome to web2py!)
 return dict(message=T('Hello World'))

 def user():
 
 exposes:
 http:///[app]/default/user/login
 http:///[app]/default/user/logout
 http:///[app]/default/user/register
 http:///[app]/default/user/profile
 http:///[app]/default/user/retrieve_password
 http:///[app]/default/user/change_password
 use @auth.requires_login()
 @auth.requires_membership('group name')
 @auth.requires_permission('read','table name',record_id)
 to decorate functions that need access control
 
 return dict(form=auth())


 def download():
 
 allows downloading of uploaded files
 http:///[app]/default/download/[filename]
 
 return response.download(request,db)


 def call():
 
 exposes services. for example:
 http:///[app]/default/call/jsonrpc
 decorate with @services.jsonrpc the functions to expose
 supports xml, json, xmlrpc, jsonrpc, amfrpc, rss, csv
 
 return service()


 @auth.requires_signature()
 def data():
 
 http:///[app]/default/data/tables
 http:///[app]/default/data/create/[table]
 http:///[app]/default/data/read/[table]/[id]
 http:///[app]/default/data/update/[table]/[id]
 http:///[app]/default/data/delete/[table]/[id]
 http:///[app]/default/data/select/[table]
 http:///[app]/default/data/search/[table]
 but URLs must be signed, i.e. linked with
   A('table',_href=URL('data/tables',user_signature=True))
 or with the signed load operator
   
 LOAD('default','data.load',args='tables',ajax=True,user_signature=True)
 
 return dict(form=crud())


 Thanks for the help.

 Love and peace,

 Joe


-- 





[web2py] Re: Help with menu error using web2py 2.0.9

2012-09-19 Thread JoeCodeswell
I have gone one more step in trying to isolate the problem. Given the 
existence of models/[menu.py, db.py] in the previous post, when 
default-fail.py is copied to controllers/default.py, the sub-menus DO NOT 
show up when hovered over. 

However, when default-welcome209.py is copied to controllers/default.py, 
the sub-menus DO INDEED show up when hovered over.

Here is default-fail.py
# -*- coding: utf-8 -*-

#ContactUs
def update_t_contactus00():
return dict(form=crud.update(db.t_contactus00, request.args(0)))

#Appointment
def update_t_appointment00():
return dict(form=crud.update(db.t_appointment00, request.args(0)))

indexMM = '''## Stock Forms for Web2py
### Background
While using the web2py App Wizard, I got frustrated at needing to define 
the model for a
Contact Us form for the *90 millionth time*. So, i made a suggestion in 
code.google/p/web2py
in Issue 982. **Massimo liked the idea and said, If you have done work in 
this direction feel free to post a patch.**

'''

def index():

example action using the internationalization operator T and flash
rendered by views/default/index.html or views/generic.html

if you need a simple wiki simple replace the two lines below with:
return auth.wiki()

#response.flash = T(Welcome to web2py!)
#return dict(message=T('Hello World'))
return dict(message=MARKMIN(indexMM))


Here is default-welcome209.py

# -*- coding: utf-8 -*-
# this file is released under public domain and you can use without 
limitations

#
## This is a samples controller
## - index is the default action of any application
## - user is required for authentication and authorization
## - download is for downloading files uploaded in the db (does streaming)
## - call exposes all registered services (none by default)
#

def index():

example action using the internationalization operator T and flash
rendered by views/default/index.html or views/generic.html

if you need a simple wiki simple replace the two lines below with:
return auth.wiki()

response.flash = T(Welcome to web2py!)
return dict(message=T('Hello World'))

def user():

exposes:
http:///[app]/default/user/login
http:///[app]/default/user/logout
http:///[app]/default/user/register
http:///[app]/default/user/profile
http:///[app]/default/user/retrieve_password
http:///[app]/default/user/change_password
use @auth.requires_login()
@auth.requires_membership('group name')
@auth.requires_permission('read','table name',record_id)
to decorate functions that need access control

return dict(form=auth())


def download():

allows downloading of uploaded files
http:///[app]/default/download/[filename]

return response.download(request,db)


def call():

exposes services. for example:
http:///[app]/default/call/jsonrpc
decorate with @services.jsonrpc the functions to expose
supports xml, json, xmlrpc, jsonrpc, amfrpc, rss, csv

return service()


@auth.requires_signature()
def data():

http:///[app]/default/data/tables
http:///[app]/default/data/create/[table]
http:///[app]/default/data/read/[table]/[id]
http:///[app]/default/data/update/[table]/[id]
http:///[app]/default/data/delete/[table]/[id]
http:///[app]/default/data/select/[table]
http:///[app]/default/data/search/[table]
but URLs must be signed, i.e. linked with
  A('table',_href=URL('data/tables',user_signature=True))
or with the signed load operator
  
LOAD('default','data.load',args='tables',ajax=True,user_signature=True)

return dict(form=crud())


Thanks for the help.

Love and peace,

Joe

--