Changes between Version 18 and Version 19 of S3/S3Model/SuperEntities


Ignore:
Timestamp:
08/07/12 07:41:58 (9 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • S3/S3Model/SuperEntities

    v18 v19  
    6868tablename = "%s_%s" % (prefix, resourcename)
    6969table = db.define_table(tablename,
    70                         super_link(db.pr_pentity), # pe_id
    71                         super_link(db.sit_situation), # sit_id
     70                        super_link("pe_id", "pr_pentity"),
     71                        super_link("sit_id", "sit_situation"), # sit_id
    7272                        ...)
    7373}}}
     
    7676
    7777{{{
    78 sk = super_key(db.pr_pentity) # returns the string "pe_id"
     78sk = s3db.super_key(db.pr_pentity) # returns the string "pe_id"
    7979}}}
    8080=== Updating a Super-Entity ===