Changes between Version 30 and Version 31 of ConfigurationGuidelines


Ignore:
Timestamp:
11/25/09 20:53:59 (15 years ago)
Author:
Fran Boon
Comment:

Hide optional fields

Legend:

Unmodified
Added
Removed
Modified
  • ConfigurationGuidelines

    v30 v31  
    11== Configuration Guidelines ==
    2 
    32=== Configurable Options ===
    43These can be set via [http://127.0.0.1:8000/sahana/admin/setting/update/1]
     
    2423In time we could expose to a Web-based admin page, although it's low priority as these are mostly installation-time decisions.
    2524
     25If you wish to hide some fields which you don't want to confuse your system, then you can do something like this {{{models/zzz_local.py}}} instead of amending the main model (this means that future merges from trunk won't clobber your changes):
     26{{{
     27# Hide unnecessary fields
     28table = 'pr_person'
     29db[table].pr_pe_label.readable = False
     30db[table].pr_pe_label.writable = False
     31db[table].local_name.readable = False
     32db[table].local_name.writable = False
     33db[table].opt_pr_gender.readable = False
     34db[table].opt_pr_gender.writable = False
     35db[table].opt_pr_age_group.readable = False
     36db[table].opt_pr_age_group.writable = False
     37db[table].email.readable = False
     38db[table].email.writable = False
     39db[table].mobile_phone.readable = False
     40db[table].mobile_phone.writable = False
     41db[table].date_of_birth.readable = False
     42db[table].date_of_birth.writable = False
     43db[table].opt_pr_nationality.readable = False
     44db[table].opt_pr_nationality.writable = False
     45db[table].opt_pr_country.readable = False
     46db[table].opt_pr_country.writable = False
     47db[table].opt_pr_religion.readable = False
     48db[table].opt_pr_religion.writable = False
     49db[table].opt_pr_marital_status.readable = False
     50db[table].opt_pr_marital_status.writable = False
     51db[table].occupation.readable = False
     52db[table].occupation.writable = False
     53}}}
    2654=== Roles ===
    2755By default the 1st user to register will gain the Administrator role.