Exporting roles & policies to an other instance

Author Message

Nabil Alimi

Friday 24 September 2010 8:15:05 am

Hi,

I've been looking for a way to export roles & policies to an other eZ Publish instance.

It seems that there's 4 tables that rules the roles & policies. Is it "ok" to export those 4 tables (ezpolicy, ezpolicy_limitation, ezpolicy_limitation_value, ezrole), and inject them in the target eZ Publish instance ? There should be not be too much node ids references and such.

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr

Jérôme Vieilledent

Sunday 26 September 2010 12:07:48 pm

Hi Nabil

You can export/import roles with eZXMLInstaller. There is a module bundled with this extension that exports roles in XML (go to http://yourhost.com/xmlexport/roles).

Nabil Alimi

Monday 27 September 2010 1:34:10 am

Thanks Jérôme, looks great ! I'll definitely try this.

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr

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 29 2025 23:44:11
Script start
Timing: Jan 29 2025 23:44:11
Module start 'layout'
Timing: Jan 29 2025 23:44:11
Module start 'content'
Timing: Jan 29 2025 23:44:11
Module end 'content'
Timing: Jan 29 2025 23:44:11
Script end

Main resources:

Total runtime0.0160 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.2578151.2266
Module start 'layout' 0.00490.0032 739.484436.6875
Module start 'content' 0.00810.0063 776.171990.2656
Module end 'content' 0.01440.0015 866.437533.9766
Script end 0.0159  900.4141 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002515.4002140.0002
Check MTime0.00116.9467140.0001
Mysql Total
Database connection0.00063.898510.0006
Mysqli_queries0.002918.252930.0010
Looping result0.00000.080610.0000
Template Total0.00127.210.0012
Template load0.00085.312910.0008
Template processing0.00031.876910.0003
Override
Cache load0.00063.710610.0006
General
dbfile0.001911.718080.0002
String conversion0.00000.041840.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