Thanks Tim, the information you provided is pretty cool. I will definitely read it and pratise it.
On Wed, Oct 15, 2008 at 9:47 AM, Timothy Farrell <[EMAIL PROTECTED]> wrote: > Tommy, > > It depends on the database you are using. All databases (that I know > of) take multiple access into account, so you shouldn't worry about > concurrency until you have a website with more than one request per > second. With your python app, you can use the normal database driver to > access your database. For example, if you have an sqlite database, then > use the sqlite3 module. In web2py, setup a model as described on the > DAL page. > > About pages looking different, this is a nasty business. The short > story is, Internet Explorer is less standards compliant and has more > quirks to it than web browsers like Firefox and Safari. Since the > majority of web users still use IE, we can't ignore IE's stupidity. > That leaves us with three ways of dealing with this scenario: > 1) Figure it out. Tinker with your design until you figure out why IE > looks different and see if you can work around it (www.alistapart.com is > a good website to read for this approach). This is the most flexible > approach but also requires the most amount of time. > 2) Use a pre-built layout or a CSS library that already works across > browsers. (This is what I do. I use YUI... developer.yahoo.com/yui ) > 3) Use a simpler layout that doesn't need pixel-perfect rendering. I > haven't see this discussed on this list, but it seems to me that the > web2py default templates use this paradigm. > > Two more things to consider on page layout...did you know that browsers > behave differently based on what mode they are in? IE can be in "Quirks > Mode" or "Standards Mode" depending on what DOCTYPE header you send to > it. A List Apart talks more about this here > http://www.alistapart.com/articles/doctype/ . Also, if you choose to > render your pages in Standards Mode, make sure your pages validate. Use > the Web Developer Toolbar for Firefox to help you with this (Tools -> > Validate Local HTML). > > Cheers, > tim > > tommy wrote: > > How does web2py application to access the database in other > > application? We have three applicaitons, two web applications > > developed by web2py, and another application developed by python. > > Three applications try to access one database. I don't know how to > > setup the database in which application. Can someone help me? > > > > By the way, here is my another issue. My web pages look good when I > > use firefox, but when I use IE to browse the pages, the pages looks > > mess. Any idea? > > > > > > > > > -- Tommy Zhu --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

