[web2py] Re: Tutorial bootstrap+web2py

2015-08-02 Thread Massimo Di Pierro
if it works for you there should be no problem. On Sunday, 2 August 2015 18:56:30 UTC-5, Blutoh wrote: > > > FWIW, I have only been using web2py bout a month, but I have taken the > approach of adding my own style sheet and linking it in the layout.html > file. In my style sheet I override the

[web2py] Re: Tutorial bootstrap+web2py

2015-08-02 Thread Blutoh
FWIW, I have only been using web2py bout a month, but I have taken the approach of adding my own style sheet and linking it in the layout.html file. In my style sheet I override the bootstrap and any other classes that I want to change (and only those classes). When I have it to my satisfac

[web2py] Re: Tutorial bootstrap+web2py

2015-07-28 Thread 黄祥
i think you can look at this slices http://www.web2pyslices.com/slice/show/1516/adapt-a-css-template-to-web2py-layouthtml imho, it better to have the response.menu and auth.navbar manually in your layout template, because what i tried before it will be replace by web2py css class. test doing wit

[web2py] Re: Tutorial bootstrap+web2py

2015-07-24 Thread Massimo Di Pierro
I had answered this and my poste disappeared. :-( web2py.css is legacy code and unused in the new welcome app. You would use it in apps that do not have bootstrap. bootstrap.min.css is what it says web2py-bootstrap3.css includes classes to make the grid and the forms work well with bootstrap b

[web2py] Re: Tutorial: Populating a Handsontable Grid using web2py

2015-05-09 Thread Tom Campbell
Done and done, Ken--another blog post floating in the wind. Fixed the CRUD thing and a few other items. PyGuy web2py Handsontable tutorial #1: Populating a Handsontable grid using web2py

[web2py] Re: Tutorial: Populating a Handsontable Grid using web2py

2015-05-09 Thread Ron Chatterjee
I tried to go to slice and its kind of sliced off instead of slides on. lol. Any ideas? On Saturday, May 9, 2015 at 8:51:11 PM UTC-4, Kenneth wrote: > > Look great, Tom. > > Thank you for sharing. I wonder what we can implement with this instead of > CRUD. > > On Thursday, April 9, 2015 at 11:49

[web2py] Re: Tutorial: Populating a Handsontable Grid using web2py

2015-05-09 Thread Kenneth
Look great, Tom. Thank you for sharing. I wonder what we can implement with this instead of CRUD. On Thursday, April 9, 2015 at 11:49:02 PM UTC-4, Tom Campbell wrote: > > Niphlod helped me with some crucial code getting Handsontable to work with > web2py so I wrote this: web2py Handsontable tut

[web2py] Re: tutorial code: recipes modifying it without success

2012-05-30 Thread Cédric Mayer
In the above controller, you refers to the variable request.vars.category, which refers to a POST or GET variable named "category" So in your link you should have the same variable: {{=A("recipes",_href=URL('recipes',vars=dict(*category*= )))}} You then replace with a known ca

Re: [web2py] Re: tutorial

2012-05-15 Thread Anthony
No problem, it happens to everyone. :-) Anthony On Tuesday, May 15, 2012 6:33:59 PM UTC-4, Gerald Klein wrote: > > OK, This is the post where I make a total fool out of myself, my contrite > apologies. I don't know if I had edited it to many times and was just not > seeing it. At the end of the

Re: [web2py] Re: tutorial

2012-05-15 Thread Gerald Klein
OK, This is the post where I make a total fool out of myself, my contrite apologies. I don't know if I had edited it to many times and was just not seeing it. At the end of the day when I read the email and opened the code there it was. I even recoded the previous part and it worked fine. Once

Re: [web2py] Re: tutorial

2012-05-15 Thread Richard Vézina
In controller : def index(): session.counter = (session.counter or 0) + 1 return dict(message="Hello from MyApp", counter=session.counter) View : {{=message}} Number of visits: {{=counter}} >From the book and it should work... On Tue, May 15, 2012 at 2:16 PM

Re: [web2py] Re: tutorial

2012-05-15 Thread Anthony
> > outside of the string passed to the message variable in the call to dict > my code is exactly the same, I didn't have any luck with the version above > this so I coded this instead. As far as the syntax error, I would be happy > to know where it is as I can't see it. And yes the trace is po

Re: [web2py] Re: tutorial

2012-05-15 Thread Jim Steil
Yes, you're missing the -->> counter=...before the second arg you're passing: Your statement: return dict(message="hello", session.counter) should be return dict(message="hello", counter=session.counter) -Jim On 5/15/2012 1:16 PM, Gerald Klein wrote: outside of the string passed t

Re: [web2py] Re: tutorial

2012-05-15 Thread Gerald Klein
outside of the string passed to the message variable in the call to dict my code is exactly the same, I didn't have any luck with the version above this so I coded this instead. As far as the syntax error, I would be happy to know where it is as I can't see it. And yes the trace is pointing to a

[web2py] Re: tutorial

2012-05-15 Thread Anthony
You have a syntax error in your code, and the error appears to be reporting that syntax error. Are you saying the line number reported in the traceback doesn't match up with the actual line number in your code? Can you show the full code (so we can count the line numbers) as well as the full tra

Re: [web2py] Re: tutorial

2012-05-15 Thread Ivica Kralj
hm, I checked online book and example you mentioned, contains variable name in dict function, while your example above, doesn't. Is this the example you are talking about? ( http://web2py.com/books/default/chapter/29/3#Let%27s-count). def index(): session.counter = (session.counter or 0) + 1

Re: [web2py] Re: tutorial

2012-05-15 Thread Richard Vézina
If there is a typo in the book report it here on the list with an email object like : book typo And give details and link the proper page anchors to find the book section. Richard On Tue, May 15, 2012 at 12:00 PM, Gerald Klein wrote: > All suggestions that I will check out, but this is actual

[web2py] Re: tutorial

2012-05-15 Thread Gerald Klein
All suggestions that I will check out, but this is actually character for character from the web2py site. I guess that's why I am scratching my head. That and the fact that the debug references text that is not on the page. I am always leery of platforms that do a lot for you, sometimes you giv

Re: [web2py] Re: Tutorial about making a Layout

2011-07-24 Thread Anthony
On Sunday, July 24, 2011 5:27:12 PM UTC-4, Ramos wrote: > > My dificulty is the {{ include }}tag > > If a layout has for example 4 include tags how does the view knows where to > put the content. > It doesn't, which is why you can have only one {{include}} in a view. However, if you want to in

Re: [web2py] Re: Tutorial about making a Layout

2011-07-24 Thread António Ramos
My dificulty is the {{ include }}tag If a layout has for example 4 include tags how does the view knows where to put the content. Also the block tag is the same as the include tag? thank you António 2011/7/24 Bruno Rocha > I wrote something in pt-BR > http://web2pybrasil.appspot.com/init/plug

Re: [web2py] Re: Tutorial about making a Layout

2011-07-24 Thread Bruno Rocha
I wrote something in pt-BR http://web2pybrasil.appspot.com/init/plugin_wiki/page/curso-web2py-017 http://zerp.ly/rochacbruno Em 24/07/2011 14:36, "Anthony" escreveu: > On Sunday, July 24, 2011 1:04:41 PM UTC-4, Ramos wrote: > >> Ok, but the book is only text i need some images to understand. >> >

Re: [web2py] Re: Tutorial about making a Layout

2011-07-24 Thread Anthony
On Sunday, July 24, 2011 1:04:41 PM UTC-4, Ramos wrote: > Ok, but the book is only text i need some images to understand. > > i read this tutorial in portuguese with some images to go along to see what > we are talking about layouts but the example does not work as expected . > http://www.tuxtilt

Re: [web2py] Re: Tutorial about making a Layout

2011-07-24 Thread António Ramos
Ok, but the book is only text i need some images to understand. i read this tutorial in portuguese with some images to go along to see what we are talking about layouts but the example does not work as expected . http://www.tuxtilt.com/web2py-views-e-static-files-layout/ I need a layout for dummi

[web2py] Re: Tutorial about making a Layout

2011-07-24 Thread Anthony
Are you talking about how to design a layout from an HTML/CSS perspective (for which you should probably consult outside resources, as that is not a web2py specific issue), or just the mechanics of how to assemble a web2py layout view template (assuming you already know the HTML/CSS structure yo