<s> from jsbuild . attrdict import AttrDict <EOL> from time import strftime <EOL> class Manifest ( AttrDict ) : <EOL> def __init__ ( self , * args , ** kwargs ) : <EOL> super ( AttrDict , self ) . __init__ ( * args , ** kwargs ) <EOL> self . _buffer_ = None <EOL> self . _parent_ = None <EOL> if not self . __contains__ ( '<STR_LIT>' ) : <EOL> self [ '<STR_LIT>' ] = { } <EOL> self [ '<STR_LIT>' ] [ '<STR_LIT>' ] = int ( strftime ( "<STR_LIT>" ) ) <EOL> def __getitem__ ( self , name ) : <EOL> item = super ( Manifest , self ) . __getitem__ ( name ) <EOL> if isinstance ( item , Manifest ) and not item . _parent_ : <EOL> item . _parent_ = self <EOL> elif isinstance ( item , str ) : <EOL> root = self <EOL> while root . _parent_ : root = root . _parent_ <EOL> item = item % root . _dict_ <EOL> return item </s>
