Changes between Version 3 and Version 4 of TaiwanSettings


Ignore:
Timestamp:
11/09/10 10:09:51 (11 years ago)
Author:
marr
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TaiwanSettings

    v3 v4  
    11= Taiwan Settings =
    22
    3 Here are example configuration and settings for Taiwan development and deployment.
     3Remember to see ConfigurationGuidelines first. And here are example configuration and settings for Taiwan development and deployment.
    44
    55== Basic Settings ==
    66
    7 After bzr checking out the codes, edit `eden/models/000_config.py` first. Remember to set `FINISHED_EDITING_CONFIG_FILE = True`. Here are some recommended settings:
     7After bzr checking out the codes, first time running with `python web2py.py -S eden -M` should fail, but generating `eden/models/000_config.py` file. Edit `eden/models/000_config.py` and remember to set `FINISHED_EDITING_CONFIG_FILE = True`. Here are some recommended settings:
    88
    99{{{
     
    4646  >>> db.commit()
    4747  # L1
    48   >>> gis.import_csv("L1.csv", check_duplicates=False)
     48  >>> gis.import_csv("L1.csv")
    4949  >>> db.commit()
    5050  # L2
    51   >>> gis.import_csv("L2.csv", check_duplicates=False)
     51  >>> gis.import_csv("L2.csv")
    5252  >>> db.commit()
    5353  # L3
    54   >>> gis.import_csv("L3.csv", check_duplicates=False)
     54  >>> gis.import_csv("L3.csv")
    5555  >>> db.commit()
    5656  # Example to look for records matching a name
    5757  >>> db.executesql("SELECT * FROM gis_location WHERE name = 'ε…‰εΎ©ι‡Œ' and level = 'L3'")
    58   # Here will show a list of 13 tuples.
     58  # Here will show a list of 13 tuples. Use SELECT count(*) in the above statement to verify.
    5959}}}