Can't assign roles and policies to new classes

Author Message

Paul Etienney

Monday 08 September 2008 9:13:57 am

Hello,

My problem is quite simple : I copied the default User group class. I can't assign Role and Policies to this copy ?

Do I have to declare this new class in a config file ? Do you have an idea ?

Thanks !

Edit : I found the line in site.ini I try to use an array.
Edit 2 : I can't use array. Is there a way to have several classes to create users and to assign them role and policies ?

-- Good websites creation --
My site : http://www.pauletienney.com
Twitter : http://www.twitter.com/p_etienney

André R.

Tuesday 09 September 2008 12:26:12 am

Your looking the wrong place, look in browse.ini, specifically this section:

# Action used when assigning a role to a user or user group
[AssignRole]
StartNode=users
SelectionType=multiple
ReturnType=ObjectID
Class[]
Class[]=user
Class[]=user_group
TopLevelNodes[]
TopLevelNodes[]=users

(Selection type is probably single on your install, you can change it if you like)

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Paul Etienney

Tuesday 09 September 2008 1:25:31 am

Hello André,

Thank you very much.

I changed the browse.ini file in the override folder. I cleared my caches. I added classes identifier.
The "SelectionType=multiple"parameter is working but I can't select my news classes. I am limited to user and user_group

Am I forgetting a step ?

-- Good websites creation --
My site : http://www.pauletienney.com
Twitter : http://www.twitter.com/p_etienney

André R.

Tuesday 09 September 2008 1:57:20 am

You added your class identifier to Class[] ??

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Paul Etienney

Tuesday 09 September 2008 2:14:47 am

Yes I did.

[AssignRole]
StartNode=users
SelectionType=multiple
ReturnType=ObjectID
Class[]
Class[]=user
Class[]=user_group
Class[]=commercal
Class[]=usergroup
Class[]=apporteur
Class[]=groupement
TopLevelNodes[]
TopLevelNodes[]=users

Is there another place where I have to change something ?

-- Good websites creation --
My site : http://www.pauletienney.com
Twitter : http://www.twitter.com/p_etienney

Paul Etienney

Tuesday 09 September 2008 4:24:52 am

Ok admin you can [Resolved] the thread.

The solution was to modify the browse.ini / AssignRole / Class[] paramaters.

I just did a stupid mistake. Eveyrthing is ok.

Thank you very much.

-- Good websites creation --
My site : http://www.pauletienney.com
Twitter : http://www.twitter.com/p_etienney

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 18 2025 16:05:02
Script start
Timing: Jan 18 2025 16:05:02
Module start 'layout'
Timing: Jan 18 2025 16:05:02
Module start 'content'
Timing: Jan 18 2025 16:05:02
Module end 'content'
Timing: Jan 18 2025 16:05:02
Script end

Main resources:

Total runtime0.9320 sec
Peak memory usage4,096.0000 KB
Database Queries66

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 589.1641152.6406
Module start 'layout' 0.00710.0089 741.804739.4922
Module start 'content' 0.01600.9145 781.2969585.4219
Module end 'content' 0.93060.0014 1,366.718816.1250
Script end 0.9320  1,382.8438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00490.5255160.0003
Check MTime0.00160.1713160.0001
Mysql Total
Database connection0.00230.250210.0023
Mysqli_queries0.851791.3835660.0129
Looping result0.00070.0710640.0000
Template Total0.878294.220.4391
Template load0.00200.214720.0010
Template processing0.876294.011220.4381
Template load and register function0.00020.021210.0002
states
state_id_array0.00090.101810.0009
state_identifier_array0.00080.082420.0004
Override
Cache load0.00170.1860480.0000
Sytem overhead
Fetch class attribute can translate value0.00110.119920.0006
Fetch class attribute name0.00110.122780.0001
XML
Image XML parsing0.00310.328320.0015
class_abstraction
Instantiating content class attribute0.00000.0027120.0000
General
dbfile0.00380.4107230.0002
String conversion0.00000.001340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
6content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 28
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs