Skip to Content.
Sympa Menu

comanage-dev - [comanage-dev] r118 - in trunk/app: libs vendors/shells

Subject: COmanage Developers List

List archive

[comanage-dev] r118 - in trunk/app: libs vendors/shells


Chronological Thread 
  • From:
  • To:
  • Subject: [comanage-dev] r118 - in trunk/app: libs vendors/shells
  • Date: Mon, 21 Nov 2011 14:32:27 -0500

Author: benno
Date: 2011-11-21 14:32:27 -0500 (Mon, 21 Nov 2011)
New Revision: 118

Modified:
trunk/app/libs/lang.php
trunk/app/vendors/shells/setup.php
Log:
Bring setup up to date for previous changes

Modified: trunk/app/libs/lang.php
===================================================================
--- trunk/app/libs/lang.php 2011-11-20 21:27:45 UTC (rev 117)
+++ trunk/app/libs/lang.php 2011-11-21 19:32:27 UTC (rev 118)
@@ -198,6 +198,7 @@
'fd.address' => 'Address',
'fd.address.1' => 'Address Line 1',
'fd.address.2' => 'Address Line 2',
+ 'fd.admin' => 'Administrator',
'fd.affiliation' => 'Affiliation',
'fd.an.desc' => 'Alphanumeric characters only',
'fd.attribute' => 'Attribute',
@@ -351,7 +352,6 @@
'se.db.group' => 'Creating COmanage admin group',
'se.db.op' => 'Adding initial Org Identity',
'se.done' => 'Setup complete',
- 'se.users.drop' => 'Dropping users table',
'se.users.view' => 'Creating users view'
);


Modified: trunk/app/vendors/shells/setup.php
===================================================================
--- trunk/app/vendors/shells/setup.php 2011-11-20 21:27:45 UTC (rev 117)
+++ trunk/app/vendors/shells/setup.php 2011-11-21 19:32:27 UTC (rev 118)
@@ -39,9 +39,6 @@

if(isset($db->config['prefix']))
$prefix = $db->config['prefix'];
-
- $this->out("- " . _txt('se.users.drop'));
- $this->Identifier->query("DROP TABLE " . $prefix . "users");

$this->out("- " . _txt('se.users.view'));
$this->Identifier->query("CREATE VIEW " . $prefix . "users AS
@@ -68,25 +65,27 @@
'Co' => array(
'name' => 'COmanage',
'description' => _txt('co.cm.desc'),
- 'status' => 'A'
+ 'status' => StatusEnum::Active
)
);

$this->Co->save($co);
$co_id = $this->Co->id;

- // Create the OrgIdentity
+ // Create the OrgIdentity. By default, Org Identities are not pooled,
so
+ // we attach this org_identity to the new CO.

$this->out("- " . _txt('se.db.op'));

$op = array(
'OrgIdentity' => array(
- 'edu_person_affiliation' => 'member'
+ 'edu_person_affiliation' => 'member',
+ 'co_id' => $co_id
),
'Name' => array(
'given' => $gn,
'family' => $sn,
- 'type' => 'O'
+ 'type' => NameEnum::Official
)
);

@@ -100,7 +99,7 @@
$id = array(
'Identifier' => array(
'identifier' => $user,
- 'type' => 'uid',
+ 'type' => IdentifierEnum::UID,
'login' => true,
'org_identity_id' => $op_id
)
@@ -119,12 +118,12 @@
$cop = array(
'CoPerson' => array(
'co_id' => $co_id,
- 'status' => 'A'
+ 'status' => StatusEnum::Active
),
'Name' => array(
'given' => $gn,
'family' => $sn,
- 'type' => 'P'
+ 'type' => NameEnum::Preferred
)
);

@@ -136,8 +135,9 @@
$copr = array(
'CoPersonRole' => array(
'co_person_id' => $cop_id,
+ 'title' => _txt('fd.admin'),
'edu_person_affiliation' => 'staff',
- 'status' => 'A'
+ 'status' => StatusEnum::Active
)
);

@@ -166,7 +166,7 @@
'name' => 'admin',
'description' => _txt('co.cm.gradmin'),
'open' => false,
- 'status' => 'A'
+ 'status' => StatusEnum::Active
)
);

@@ -187,14 +187,13 @@
$this->CoGroupMember->save($grm);
$grm_id = $this->CoGroupMember->id;

- $this->out(_txt('se.done'));
-
// Clear the models in the cache since the cm_users view
// was just created and will not otherwise appear in the cache.
//
// See https://bugs.internet2.edu/jira/browse/CO-191
clearCache(null, 'models');
-
+
+ $this->out(_txt('se.done'));
}
}
?>



  • [comanage-dev] r118 - in trunk/app: libs vendors/shells, benno, 11/21/2011

Archive powered by MHonArc 2.6.16.

Top of Page