not fetching my classes

Author Message

Marko Žmak

Saturday 10 July 2004 6:59:38 am

I created some of my own classes and when I try to fetch objects with the following code, it doesn't fetch objects belonging to my classes.

{let folder_list=fetch( content, list, hash( 'parent_node_id', $search_node_id,
					)
			)}

But it fetches only objects belonging to EZ native classes (Folder, Article...).

Why? Is it a bug, or I'm doing something wrong?

P.S. The classes I created are members of the Content group.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Marko Žmak

Saturday 10 July 2004 7:39:56 am

P.S. It happens only when fetching list, when I try to fetch a node (by node_id), everything works O.K.

Please help!

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Paul Forsyth

Saturday 10 July 2004 7:52:03 am

You need to update the role permissions for your current user (typically the anonymouse user) to include your new classes.

Fetch is trying to read the objects but it doesnt have permissions to do so.

paul

--
http://www.visionwt.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 11:18:59
Script start
Timing: Jan 31 2025 11:18:59
Module start 'layout'
Timing: Jan 31 2025 11:18:59
Module start 'content'
Timing: Jan 31 2025 11:18:59
Module end 'content'
Timing: Jan 31 2025 11:18:59
Script end

Main resources:

Total runtime0.0161 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 588.1250151.2109
Module start 'layout' 0.00490.0022 739.335936.6484
Module start 'content' 0.00700.0076 775.984490.2500
Module end 'content' 0.01470.0014 866.234433.9922
Script end 0.0161  900.2266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002314.2098140.0002
Check MTime0.00116.5412140.0001
Mysql Total
Database connection0.00074.338110.0007
Mysqli_queries0.002414.800230.0008
Looping result0.00000.074010.0000
Template Total0.00106.410.0010
Template load0.00085.214010.0008
Template processing0.00021.179210.0002
Override
Cache load0.00063.835110.0006
General
dbfile0.003320.285080.0004
String conversion0.00000.037040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs