Package s3 :: Module s3fields :: Class S3MetaFields
[frames] | no frames]

Class S3MetaFields

source code

object --+
         |
        S3MetaFields

Class to standardize meta-fields

Instance Methods

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods
 
created_by(cls)
Auth_user ID of the user who created the record
source code
 
modified_by(cls)
Auth_user ID of the last user who modified the record
source code
 
approved_by(cls)
Auth_user ID of the user who has approved the record:
source code
 
owned_by_user(cls)
Auth_user ID of the user owning the record
source code
 
all_meta_fields(cls)
Standard meta fields for all tables
source code
 
sync_meta_fields(cls)
Meta-fields required for sync
source code
 
owner_meta_fields(cls)
Record ownership meta-fields
source code
 
timestamps(cls)
Timestamp meta-fields
source code
Static Methods
 
uuid()
Universally unique record identifier according to RFC4122, as URN (e.g.
source code
 
mci()
Master-Copy-Index - whether this record has been created locally or imported ("copied") from another source:
source code
 
deleted()
Deletion status (True=record is deleted)
source code
 
deleted_fk()
Foreign key values of this record before deletion (foreign keys are set to None during deletion to derestrict constraints)
source code
 
deleted_rb()
De-duplication: ID of the record that has replaced this record
source code
 
created_on()
Date/time when the record was created
source code
 
modified_on()
Date/time when the record was last modified
source code
 
owned_by_group()
Auth_group ID of the user role owning the record
source code
 
realm_entity()
PE ID of the entity managing the record
source code
Properties

Inherited from object: __class__

Method Details

uuid()
Static Method

source code 

Universally unique record identifier according to RFC4122, as URN (e.g. "urn:uuid:fd8f97ab-1252-4d62-9982-8e3f3025307f"); uuids are mandatory for synchronization (incl. EdenMobile)

mci()
Static Method

source code 

Master-Copy-Index - whether this record has been created locally or imported ("copied") from another source:

  • mci=0 means "created here"
  • mci>0 means "copied n times"

deleted()
Static Method

source code 

Deletion status (True=record is deleted)

deleted_fk()
Static Method

source code 

Foreign key values of this record before deletion (foreign keys are set to None during deletion to derestrict constraints)

deleted_rb()
Static Method

source code 

De-duplication: ID of the record that has replaced this record

created_on()
Static Method

source code 

Date/time when the record was created

modified_on()
Static Method

source code 

Date/time when the record was last modified

created_by(cls)
Class Method

source code 

Auth_user ID of the user who created the record

modified_by(cls)
Class Method

source code 

Auth_user ID of the last user who modified the record

approved_by(cls)
Class Method

source code 

Auth_user ID of the user who has approved the record:

  • None means unapproved
  • 0 means auto-approved

owned_by_user(cls)
Class Method

source code 

Auth_user ID of the user owning the record

owned_by_group()
Static Method

source code 

Auth_group ID of the user role owning the record

realm_entity()
Static Method

source code 

PE ID of the entity managing the record

all_meta_fields(cls)
Class Method

source code 

Standard meta fields for all tables

Returns:
tuple of Fields

sync_meta_fields(cls)
Class Method

source code 

Meta-fields required for sync

Returns:
tuple of Fields

owner_meta_fields(cls)
Class Method

source code 

Record ownership meta-fields

Returns:
tuple of Fields

timestamps(cls)
Class Method

source code 

Timestamp meta-fields

Returns:
tuple of Fields