From: Chris W. <la...@us...> - 2004-11-30 00:06:34
|
Update of /cvsroot/openinteract/OpenInteract2/doc/Manual In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5999/Manual Modified Files: DataImport.pod Log Message: inline data import examples, and reference oi2_manage task vs the standalone script used before for security Index: DataImport.pod =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/doc/Manual/DataImport.pod,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** DataImport.pod 17 Feb 2004 04:30:11 -0000 1.5 --- DataImport.pod 30 Nov 2004 00:06:23 -0000 1.6 *************** *** 22,26 **** OpenInteract2 for themes: ! [% INCLUDE examples/dataimport_theme_example | indent(4) %] So the first element in the C<$theme> arrayref is a hashref with three --- 22,33 ---- OpenInteract2 for themes: ! $theme = [ ! { import_type => 'object', ! spops_class => 'OpenInteract2::Theme', ! field_order => [ qw/ theme_id title description parent ! credit / ] }, ! [ 1, 'main', 'Your basic, parent of all themes. Main.', 0, ! 'OpenInteract Developers <in...@op...>' ], ! ]; So the first element in the C<$theme> arrayref is a hashref with three *************** *** 65,69 **** The import file can then be run using oi_manage: ! [% INCLUDE examples/dataimport_oi2_manage | indent(2) %] =head2 Setting Security on the Data --- 72,79 ---- The import file can then be run using oi_manage: ! $ export OPENINTERACT2=/path/to/mysite ! $ oi2_manage install_sql --package=mypackage ! # ALT: just run data import, no structures ! $ oi2_manage install_sql_data --package=mypackage =head2 Setting Security on the Data *************** *** 78,85 **** admin' group): ! [% INCLUDE examples/dataimport_set_security | indent(2) %] ! To learn more about its operation just run the script with the ! '--help' argument. If you need to setup security to distribute along with your package, --- 88,96 ---- admin' group): ! $ export OPENINTERACT2=/path/to/mysite ! $ oi2_manage create_security --spops=news --level=write --scope=group --scope_id=3 ! To learn more about its operation see ! L<OpenInteract2::Manage::Website::CreateSecurity>. If you need to setup security to distribute along with your package, |