comparison _test/dump.out @ 339:97628101b765

refactoring: application now holds a security object factory rather than a security object
author cin
date Wed, 19 Jun 2013 03:25:44 +0400
parents d3b5a67ad2e8
children
comparison
equal deleted inserted replaced
338:c78dfbe658bd 339:97628101b765
1 $VAR1 = [ 1 $VAR1 = [
2 bless( { 2 bless( {
3 'require' => sub { "DUMMY" },
4 'global' => {}, 3 'global' => {},
5 'inc' => sub { "DUMMY" }, 4 'inc' => sub { "DUMMY" },
6 'date' => { 5 'date' => {
7 'now' => sub { "DUMMY" } 6 'now' => sub { "DUMMY" }
8 }, 7 },
35 '_DEBUG' => 0, 34 '_DEBUG' => 0,
36 '_PARENT' => undef 35 '_PARENT' => undef
37 }, 'Template::Stash::XS' ) 36 }, 'Template::Stash::XS' )
38 }, 'Template::Stash::XS' ), 37 }, 'Template::Stash::XS' ),
39 bless( { 38 bless( {
39 'global' => $VAR1->[0]{'global'},
40 'date' => $VAR1->[0]{'date'},
41 'inc' => $VAR1->[0]{'inc'},
42 'dynamic' => $VAR1->[0]{'dynamic'},
43 'dec' => $VAR1->[0]{'dec'},
44 'strings' => sub { "DUMMY" },
45 '_STRICT' => undef,
46 'component' => '',
47 'site' => $VAR1->[0]{'site'},
48 'dojo' => $VAR1->[0]{'dojo'},
49 'view' => $VAR1->[0]{'view'},
50 'user' => 'test_user',
51 '_DEBUG' => 0,
52 '_PARENT' => $VAR1->[0]
53 }, 'Template::Stash::XS' ),
54 bless( {
40 'PREFIX_MAP' => {}, 55 'PREFIX_MAP' => {},
41 'BLOCKS' => { 56 'BLOCKS' => {
42 'CTOR' => sub { "DUMMY" } 57 'CTOR' => sub { "DUMMY" }
43 }, 58 },
44 'TRIM' => 0, 59 'TRIM' => 0,
45 'CONFIG' => { 60 'CONFIG' => {
46 'PREFIX_MAP' => $VAR1->[1]{'PREFIX_MAP'}, 61 'PREFIX_MAP' => $VAR1->[2]{'PREFIX_MAP'},
47 'BLOCKS' => {}, 62 'BLOCKS' => {
63 'CTOR' => $VAR1->[2]{'BLOCKS'}{'CTOR'}
64 },
48 'TRIM' => 0, 65 'TRIM' => 0,
49 'LOAD_PLUGINS' => [ 66 'LOAD_PLUGINS' => [
50 bless( { 67 bless( {
51 'DEBUG' => 0, 68 'DEBUG' => 0,
52 'FACTORY' => {}, 69 'FACTORY' => {},
89 'HEAD' => [ 106 'HEAD' => [
90 undef, 107 undef,
91 '/home/sergey/workspace.web/Impl/_test/Resources/TTView/simple.tt', 108 '/home/sergey/workspace.web/Impl/_test/Resources/TTView/simple.tt',
92 bless( { 109 bless( {
93 '_DEFBLOCKS' => { 110 '_DEFBLOCKS' => {
94 'CTOR' => $VAR1->[1]{'BLOCKS'}{'CTOR'} 111 'CTOR' => $VAR1->[2]{'BLOCKS'}{'CTOR'}
95 }, 112 },
96 '_VARIABLES' => {}, 113 '_VARIABLES' => {},
97 'modtime' => 1343890751, 114 'modtime' => 1343890751,
98 'version' => '10', 115 'version' => '10',
99 'name' => 'simple.tt', 116 'name' => 'simple.tt',
101 'title' => "\x{414}\x{43e}\x{43a}\x{443}\x{43c}\x{435}\x{43d}\x{442} 1", 118 'title' => "\x{414}\x{43e}\x{43a}\x{443}\x{43c}\x{435}\x{43d}\x{442} 1",
102 '_HOT' => 0 119 '_HOT' => 0
103 }, 'Template::Document' ), 120 }, 'Template::Document' ),
104 1343890751, 121 1343890751,
105 [ 122 [
106 $VAR1->[1]{'CONFIG'}{'LOAD_TEMPLATES'}[0]{'HEAD'}, 123 $VAR1->[2]{'CONFIG'}{'LOAD_TEMPLATES'}[0]{'HEAD'},
107 '/home/sergey/workspace.web/Impl/_test/Resources/TTView/global.tt', 124 '/home/sergey/workspace.web/Impl/_test/Resources/TTView/global.tt',
108 bless( { 125 bless( {
109 '_DEFBLOCKS' => {}, 126 '_DEFBLOCKS' => {},
110 '_BLOCK' => sub { "DUMMY" }, 127 '_BLOCK' => sub { "DUMMY" },
111 '_VARIABLES' => {}, 128 '_VARIABLES' => {},
114 'name' => 'global.tt', 131 'name' => 'global.tt',
115 '_HOT' => 0 132 '_HOT' => 0
116 }, 'Template::Document' ), 133 }, 'Template::Document' ),
117 1343890751, 134 1343890751,
118 undef, 135 undef,
119 1366549254 136 1371164279
120 ], 137 ],
121 1366549254 138 1371164279
122 ], 139 ],
123 'DELIMITER' => ':', 140 'DELIMITER' => ':',
124 'UNICODE' => 1, 141 'UNICODE' => 1,
125 'TOLERANT' => 0, 142 'TOLERANT' => 0,
126 'DOCUMENT' => 'Template::Document', 143 'DOCUMENT' => 'Template::Document',
132 ], 149 ],
133 'DEBUG' => 0, 150 'DEBUG' => 0,
134 'STAT_TTL' => 1, 151 'STAT_TTL' => 1,
135 'ABSOLUTE' => 0, 152 'ABSOLUTE' => 0,
136 'LOOKUP' => { 153 'LOOKUP' => {
137 '/home/sergey/workspace.web/Impl/_test/Resources/TTView/global.tt' => $VAR1->[1]{'CONFIG'}{'LOAD_TEMPLATES'}[0]{'HEAD'}[4], 154 '/home/sergey/workspace.web/Impl/_test/Resources/TTView/global.tt' => $VAR1->[2]{'CONFIG'}{'LOAD_TEMPLATES'}[0]{'HEAD'}[4],
138 '/home/sergey/workspace.web/Impl/_test/Resources/TTView/simple.tt' => $VAR1->[1]{'CONFIG'}{'LOAD_TEMPLATES'}[0]{'HEAD'} 155 '/home/sergey/workspace.web/Impl/_test/Resources/TTView/simple.tt' => $VAR1->[2]{'CONFIG'}{'LOAD_TEMPLATES'}[0]{'HEAD'}
139 }, 156 },
140 'DEFAULT' => undef, 157 'DEFAULT' => undef,
141 'PARSER' => bless( { 158 'PARSER' => bless( {
142 'FILE' => 'global.tt', 159 'FILE' => 'global.tt',
143 'ANYCASE' => 0, 160 'ANYCASE' => 0,
5302 'DEBUG' => 0, 5319 'DEBUG' => 0,
5303 'EVAL_PERL' => 0, 5320 'EVAL_PERL' => 0,
5304 'DEBUG_DIRS' => 0, 5321 'DEBUG_DIRS' => 0,
5305 'PRE_CHOMP' => 0, 5322 'PRE_CHOMP' => 0,
5306 'GRAMMAR' => bless( { 5323 'GRAMMAR' => bless( {
5307 'STATES' => $VAR1->[1]{'CONFIG'}{'LOAD_TEMPLATES'}[0]{'PARSER'}{'STATES'}, 5324 'STATES' => $VAR1->[2]{'CONFIG'}{'LOAD_TEMPLATES'}[0]{'PARSER'}{'STATES'},
5308 'RULES' => [ 5325 'RULES' => [
5309 [ 5326 [
5310 '$start', 5327 '$start',
5311 2, 5328 2,
5312 undef 5329 undef
6205 'quotable', 6222 'quotable',
6206 1, 6223 1,
6207 sub { "DUMMY" } 6224 sub { "DUMMY" }
6208 ] 6225 ]
6209 ], 6226 ],
6210 'LEXTABLE' => $VAR1->[1]{'CONFIG'}{'LOAD_TEMPLATES'}[0]{'PARSER'}{'LEXTABLE'} 6227 'LEXTABLE' => $VAR1->[2]{'CONFIG'}{'LOAD_TEMPLATES'}[0]{'PARSER'}{'LEXTABLE'}
6211 }, 'Template::Grammar' ), 6228 }, 'Template::Grammar' ),
6212 'RULES' => $VAR1->[1]{'CONFIG'}{'LOAD_TEMPLATES'}[0]{'PARSER'}{'GRAMMAR'}{'RULES'}, 6229 'RULES' => $VAR1->[2]{'CONFIG'}{'LOAD_TEMPLATES'}[0]{'PARSER'}{'GRAMMAR'}{'RULES'},
6213 'FILE_INFO' => 1, 6230 'FILE_INFO' => 1,
6214 'TRACE_VARS' => undef, 6231 'TRACE_VARS' => undef,
6215 'DEFBLOCK' => $VAR1->[1]{'CONFIG'}{'LOAD_TEMPLATES'}[0]{'HEAD'}[4][2]{'_DEFBLOCKS'}, 6232 'DEFBLOCK' => $VAR1->[2]{'CONFIG'}{'LOAD_TEMPLATES'}[0]{'HEAD'}[4][2]{'_DEFBLOCKS'},
6216 'METADATA' => [ 6233 'METADATA' => [
6217 'version', 6234 'version',
6218 '1' 6235 '1'
6219 ], 6236 ],
6220 'END_TAG' => undef, 6237 'END_TAG' => undef,
6230 'INTERPOLATE' => 1, 6247 'INTERPOLATE' => 1,
6231 'POST_CHOMP' => 1, 6248 'POST_CHOMP' => 1,
6232 'START_TAG' => '\\[%' 6249 'START_TAG' => '\\[%'
6233 } 6250 }
6234 ], 6251 ],
6235 'VARIABLES' => $VAR1->[1]{'CONFIG'}{'LOAD_TEMPLATES'}[0]{'HEAD'}[4][2]{'_VARIABLES'}, 6252 'VARIABLES' => $VAR1->[2]{'CONFIG'}{'LOAD_TEMPLATES'}[0]{'HEAD'}[4][2]{'_VARIABLES'},
6236 'START_TAG' => undef 6253 'START_TAG' => undef
6237 }, 'Template::Parser' ), 6254 }, 'Template::Parser' ),
6238 'TAIL' => $VAR1->[1]{'CONFIG'}{'LOAD_TEMPLATES'}[0]{'HEAD'}[4], 6255 'TAIL' => $VAR1->[2]{'CONFIG'}{'LOAD_TEMPLATES'}[0]{'HEAD'}[4],
6239 'ENCODING' => 'utf-8', 6256 'ENCODING' => 'utf-8',
6240 'SLOTS' => 2, 6257 'SLOTS' => 2,
6241 'PARAMS' => { 6258 'PARAMS' => {
6242 'ENCODING' => 'utf-8', 6259 'ENCODING' => 'utf-8',
6243 'INTERPOLATE' => 1, 6260 'INTERPOLATE' => 1,
6244 'POST_CHOMP' => 1, 6261 'POST_CHOMP' => 1,
6245 'INCLUDE_PATH' => $VAR1->[1]{'CONFIG'}{'LOAD_TEMPLATES'}[0]{'INCLUDE_PATH'} 6262 'INCLUDE_PATH' => $VAR1->[2]{'CONFIG'}{'LOAD_TEMPLATES'}[0]{'INCLUDE_PATH'}
6246 }, 6263 },
6247 'COMPILE_EXT' => '' 6264 'COMPILE_EXT' => ''
6248 }, 'Template::Provider' ) 6265 }, 'Template::Provider' )
6249 ], 6266 ],
6250 'BLKSTACK' => [], 6267 'BLKSTACK' => [],
6251 'STASH' => $VAR1->[0], 6268 'STASH' => $VAR1->[1],
6252 '_ERROR' => '', 6269 '_ERROR' => '',
6253 'DEBUG_FORMAT' => undef, 6270 'DEBUG_FORMAT' => undef,
6254 'DEBUG' => 0, 6271 'DEBUG' => 0,
6255 'EVAL_PERL' => 0, 6272 'EVAL_PERL' => 0,
6256 'EXPOSE_BLOCKS' => 0, 6273 'EXPOSE_BLOCKS' => 0,
6257 'DEBUG_DIRS' => 0, 6274 'DEBUG_DIRS' => 0,
6258 'RECURSION' => 0, 6275 'RECURSION' => 0,
6259 'INIT_BLOCKS' => $VAR1->[1]{'CONFIG'}{'BLOCKS'}, 6276 'INIT_BLOCKS' => $VAR1->[2]{'CONFIG'}{'BLOCKS'},
6260 'LOAD_FILTERS' => [ 6277 'LOAD_FILTERS' => [
6261 bless( { 6278 bless( {
6262 'DEBUG' => 0, 6279 'DEBUG' => 0,
6263 'TOLERANT' => 0, 6280 'TOLERANT' => 0,
6264 'FILTERS' => {}, 6281 'FILTERS' => {},
6265 '_ERROR' => '' 6282 '_ERROR' => ''
6266 }, 'Template::Filters' ) 6283 }, 'Template::Filters' )
6267 ] 6284 ]
6268 }, 6285 },
6269 'LOAD_PLUGINS' => $VAR1->[1]{'CONFIG'}{'LOAD_PLUGINS'}, 6286 'LOAD_PLUGINS' => $VAR1->[2]{'CONFIG'}{'LOAD_PLUGINS'},
6270 'LOAD_TEMPLATES' => $VAR1->[1]{'CONFIG'}{'LOAD_TEMPLATES'}, 6287 'LOAD_TEMPLATES' => $VAR1->[2]{'CONFIG'}{'LOAD_TEMPLATES'},
6271 'BLKSTACK' => [], 6288 'BLKSTACK' => [],
6272 'STASH' => $VAR1->[0], 6289 'STASH' => $VAR1->[1],
6273 'DEBUG_FORMAT' => undef, 6290 'DEBUG_FORMAT' => undef,
6274 '_ERROR' => '', 6291 '_ERROR' => '',
6275 'DEBUG' => 0, 6292 'DEBUG' => 0,
6276 'EVAL_PERL' => 0, 6293 'EVAL_PERL' => 0,
6277 'EXPOSE_BLOCKS' => 0, 6294 'EXPOSE_BLOCKS' => 0,
6278 'DEBUG_DIRS' => 0, 6295 'DEBUG_DIRS' => 0,
6279 'RECURSION' => 0, 6296 'RECURSION' => 0,
6280 'INIT_BLOCKS' => $VAR1->[1]{'BLOCKS'}, 6297 'INIT_BLOCKS' => $VAR1->[2]{'BLOCKS'},
6281 'LOAD_FILTERS' => $VAR1->[1]{'CONFIG'}{'LOAD_FILTERS'} 6298 'LOAD_FILTERS' => $VAR1->[2]{'CONFIG'}{'LOAD_FILTERS'}
6282 }, 'Template::Context' ), 6299 }, 'Template::Context' )
6283 bless( {
6284 'IMPL_Web_View_TTRegistry_context' => $VAR1->[1],
6285 'IMPL_Web_View_TTRegistry_loader' => bless( {
6286 'IMPL_Web_View_TTLoader_context' => bless( {
6287 'PREFIX_MAP' => $VAR1->[1]{'PREFIX_MAP'},
6288 'BLOCKS' => $VAR1->[1]{'CONFIG'}{'BLOCKS'},
6289 'TRIM' => 0,
6290 'CONFIG' => {
6291 'ENCODING' => 'utf-8',
6292 'POST_CHOMP' => 1,
6293 'INTERPOLATE' => 1,
6294 'LOAD_TEMPLATES' => $VAR1->[1]{'CONFIG'}{'LOAD_TEMPLATES'}[0],
6295 'INCLUDE_PATH' => $VAR1->[1]{'CONFIG'}{'LOAD_TEMPLATES'}[0]{'INCLUDE_PATH'}
6296 },
6297 'LOAD_PLUGINS' => $VAR1->[1]{'CONFIG'}{'LOAD_PLUGINS'},
6298 'LOAD_TEMPLATES' => $VAR1->[1]{'CONFIG'}{'LOAD_TEMPLATES'},
6299 'BLKSTACK' => $VAR1->[1]{'CONFIG'}{'BLKSTACK'},
6300 'STASH' => $VAR1->[0]{'_PARENT'},
6301 'DEBUG_FORMAT' => undef,
6302 '_ERROR' => '',
6303 'DEBUG' => 0,
6304 'EVAL_PERL' => 0,
6305 'EXPOSE_BLOCKS' => 0,
6306 'DEBUG_DIRS' => 0,
6307 'RECURSION' => 0,
6308 'INIT_BLOCKS' => $VAR1->[1]{'CONFIG'}{'BLOCKS'},
6309 'LOAD_FILTERS' => $VAR1->[1]{'CONFIG'}{'LOAD_FILTERS'}
6310 }, 'Template::Context' ),
6311 'IMPL_Web_View_TTLoader_layoutBase' => 'Layout',
6312 'IMPL_Web_View_TTLoader_initializer' => 'global.tt',
6313 'IMPL_Web_View_TTLoader_provider' => $VAR1->[1]{'CONFIG'}{'LOAD_TEMPLATES'}[0],
6314 'IMPL_Web_View_TTLoader_ext' => '.tt',
6315 'IMPL_Web_View_TTLoader__globals' => {
6316 'site' => $VAR1->[0]{'site'},
6317 'view' => $VAR1->[0]{'view'},
6318 'date' => $VAR1->[0]{'date'},
6319 'dynamic' => $VAR1->[0]{'dynamic'}
6320 },
6321 'IMPL_Web_View_TTLoader_options' => $VAR1->[2]{'IMPL_Web_View_TTRegistry_loader'}{'IMPL_Web_View_TTLoader_context'}{'CONFIG'},
6322 'IMPL_Web_View_TTLoader_isInitialized' => 1
6323 }, 'IMPL::Web::View::TTLoader' ),
6324 'IMPL_Web_View_TTRegistry__cache' => {}
6325 }, 'IMPL::Web::View::TTRegistry' ),
6326 bless( {
6327 'IMPL_Web_View_TTFactory_initialized' => 1,
6328 'IMPL_Web_View_TTFactory_registry' => $VAR1->[2],
6329 'IMPL_Web_View_TTFactory_instances' => 1,
6330 'IMPL_Object_Factory_factory' => 'IMPL::Web::View::TTDocument',
6331 'IMPL_Web_View_TTFactory_baseLocation' => '',
6332 'IMPL_Web_View_TTFactory_context' => $VAR1->[1],
6333 'IMPL_Web_View_TTFactory_blocks' => $VAR1->[1]{'CONFIG'}{'LOAD_TEMPLATES'}[0]{'HEAD'}[2]{'_DEFBLOCKS'},
6334 'IMPL_Web_View_TTFactory_template' => $VAR1->[1]{'CONFIG'}{'LOAD_TEMPLATES'}[0]{'HEAD'}[2]
6335 }, 'IMPL::Web::View::TTFactory' ),
6336 bless( {
6337 'require' => $VAR1->[0]{'require'},
6338 'global' => $VAR1->[0]{'global'},
6339 'date' => $VAR1->[0]{'date'},
6340 'inc' => $VAR1->[0]{'inc'},
6341 'dynamic' => $VAR1->[0]{'dynamic'},
6342 'dec' => $VAR1->[0]{'dec'},
6343 '_STRICT' => undef,
6344 'site' => $VAR1->[0]{'site'},
6345 'component' => '',
6346 'dojo' => $VAR1->[0]{'dojo'},
6347 'view' => $VAR1->[0]{'view'},
6348 'user' => 'test_user',
6349 '_DEBUG' => 0,
6350 '_PARENT' => $VAR1->[0]
6351 }, 'Template::Stash::XS' ),
6352 bless( {
6353 'PREFIX_MAP' => $VAR1->[1]{'PREFIX_MAP'},
6354 'BLOCKS' => {
6355 'CTOR' => $VAR1->[1]{'BLOCKS'}{'CTOR'}
6356 },
6357 'TRIM' => 0,
6358 'CONFIG' => {
6359 'PREFIX_MAP' => $VAR1->[1]{'PREFIX_MAP'},
6360 'BLOCKS' => $VAR1->[1]{'BLOCKS'},
6361 'TRIM' => 0,
6362 'LOAD_PLUGINS' => $VAR1->[1]{'CONFIG'}{'LOAD_PLUGINS'},
6363 'LOAD_TEMPLATES' => $VAR1->[1]{'CONFIG'}{'LOAD_TEMPLATES'},
6364 'BLKSTACK' => $VAR1->[1]{'BLKSTACK'},
6365 'STASH' => $VAR1->[4],
6366 '_ERROR' => '',
6367 'DEBUG_FORMAT' => undef,
6368 'DEBUG' => 0,
6369 'EVAL_PERL' => 0,
6370 'EXPOSE_BLOCKS' => 0,
6371 'DEBUG_DIRS' => 0,
6372 'RECURSION' => 0,
6373 'INIT_BLOCKS' => $VAR1->[1]{'BLOCKS'},
6374 'LOAD_FILTERS' => $VAR1->[1]{'CONFIG'}{'LOAD_FILTERS'}
6375 },
6376 'LOAD_PLUGINS' => $VAR1->[1]{'CONFIG'}{'LOAD_PLUGINS'},
6377 'LOAD_TEMPLATES' => $VAR1->[1]{'CONFIG'}{'LOAD_TEMPLATES'},
6378 'BLKSTACK' => [],
6379 'STASH' => $VAR1->[4],
6380 'DEBUG_FORMAT' => undef,
6381 '_ERROR' => '',
6382 'DEBUG' => 0,
6383 'EVAL_PERL' => 0,
6384 'EXPOSE_BLOCKS' => 0,
6385 'DEBUG_DIRS' => 0,
6386 'RECURSION' => 0,
6387 'INIT_BLOCKS' => $VAR1->[5]{'BLOCKS'},
6388 'LOAD_FILTERS' => $VAR1->[1]{'CONFIG'}{'LOAD_FILTERS'}
6389 }, 'Template::Context' ),
6390 bless( {
6391 'IMPL_Web_View_TTControl_id' => '_16',
6392 'IMPL_Web_View_TTDocument_registry' => $VAR1->[2],
6393 'IMPL_Web_View_TTControl_template' => $VAR1->[1]{'CONFIG'}{'LOAD_TEMPLATES'}[0]{'HEAD'}[2],
6394 'IMPL_Web_View_TTControl_context' => $VAR1->[5],
6395 'IMPL_Web_View_TTDocument_layout' => undef,
6396 'IMPL_Web_View_TTControl_attributes' => {
6397 'factory' => $VAR1->[3],
6398 'title' => "\x{414}\x{43e}\x{43a}\x{443}\x{43c}\x{435}\x{43d}\x{442} 1"
6399 },
6400 'IMPL_Web_View_TTDocument_layoutBase' => 'Layout'
6401 }, 'IMPL::Web::View::TTDocument' )
6402 ]; 6300 ];