Changes between Version 7 and Version 8 of S3/S3Hierarchy


Ignore:
Timestamp:
05/21/14 21:34:26 (11 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • S3/S3Hierarchy

    v7 v8  
    4141[[Image(hierarchy_data_model.png)]]
    4242
    43 A typical data model for a hierarchical taxonomy could look like:
     43A typical data model for a hierarchical taxonomy (with simple self-reference) could look like:
    4444
    4545{{{#!python
     
    5858                       )
    5959}}}
     60
     61For a super-entity self-reference, the parent-field is defined as reference to the super entity:
     62
     63{{{#!python
     64        tablename = "vulnerability_indicator"
     65        define_table(tablename,
     66                     # Instance table
     67                     super_link("parameter_id", "stats_parameter"),
     68                     # Parent-field for the hierarchy:
     69                     Field("parent", "reference stats_parameter",
     70                           ),
     71                     Field("name",
     72                           ),
     73                     s3_comments(),
     74                     *s3_meta_fields()
     75                     )
     76}}}
    6077== Configuration ==
    6178