|
From: Chris W. <la...@us...> - 2001-10-15 04:46:16
|
Update of /cvsroot/openinteract/SPOPS/eg
In directory usw-pr-cvs1:/tmp/cvs-serv1724
Modified Files:
README
Log Message:
added some pointers as to how to use the examples
Index: README
===================================================================
RCS file: /cvsroot/openinteract/SPOPS/eg/README,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** README 2001/10/15 04:24:38 1.6
--- README 2001/10/15 04:46:13 1.7
***************
*** 3,11 ****
This directory contains sample SPOPS code and classes you can use for
! users and groups.
- fatbomb*
! - sample standalone scripts
My/DiscoverField.pm
--- 3,11 ----
This directory contains sample SPOPS code and classes you can use for
! users, groups and security, along with a simple class to test them
! out. Plus one class that's useful anywhere.
! For the class that's useful anywhere:
My/DiscoverField.pm
***************
*** 21,28 ****
Note that if you create a database, run the data stocking script and
then clear the data out, the security data won't match up properly. In
! particular, the ID of the group 'site admin' (2) is hardcoded into
! both My/Group.pm and My/User.pm. You might need to change it. (This
! will be fixed with the next version of SPOPS.)
users_groups_(mysql|pgsql|tsql).sql
--- 21,66 ----
Note that if you create a database, run the data stocking script and
then clear the data out, the security data won't match up properly. In
! particular, the ID of the group 'managers' (3) is hardcoded into both
! My/Group.pm and My/User.pm. You might need to change it.
!
! How to use these:
!
! (1) Either pick a database to use or create a new one
!
! (2) Create the schema -- this is dependent on your database. An
! example is:
!
! $ mysql --user=test --password=dingdong test < users_groups_mysql.sql
!
! (3) Set the parameters in My/Common.pm for your database and driver.
!
! (4) Run the user and group stocking script:
!
! $ perl stock_user_group.pl
!
! (5) Check out the raw data to see what it looks like:
+ $ mysql --user=test --password=dingdong test
+ mysql> select * from spops_user;
+ ...
+ mysql> select * from spops_security;
+
+ (6) Run the doodad stocking script:
+
+ $ perl stock_doodads.pl
+
+ (7) Run the simple fetching script:
+
+ $ perl fetch_doodads.pl
+
+ (8) Clear out the tables and do it all again, playing around with the
+ different scripts and classes.
+
+ $ mysql--user=test --password=dingdong test < users_groups_clear.sql
+
+
+
+ Schema files:
+
users_groups_(mysql|pgsql|tsql).sql
***************
*** 41,44 ****
--- 79,85 ----
addition to 'users_groups_clear.sql'.
+
+ Scripts to manipulate the objects:
+
stock_user_group.pl
***************
*** 53,56 ****
--- 94,100 ----
- fetch sample objects as two different users, displaying
different security settings for each
+
+
+ Object classes:
My/Common.pm
|