Index: openacs-4/packages/dotlrn/catalog/dotlrn.de_DE.ISO-8859-1.xml
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/catalog/dotlrn.de_DE.ISO-8859-1.xml,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/dotlrn/catalog/dotlrn.de_DE.ISO-8859-1.xml 7 Nov 2002 13:13:26 -0000 1.2
+++ openacs-4/packages/dotlrn/catalog/dotlrn.de_DE.ISO-8859-1.xml 4 Dec 2002 09:51:03 -0000 1.3
@@ -5,7 +5,6 @@
AdministrierenNeues SprachMeine Kennwort �ndern
- HilfeAktionenEinstellungenund
@@ -37,7 +36,6 @@
AusloggenMeine Pers�nliche Information BearbeitenMitglieder
- Meine StartseiteNeuerkeineNicht Registriert
Index: openacs-4/packages/dotlrn/catalog/dotlrn.en_US.ISO-8859-1.xml
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/catalog/dotlrn.en_US.ISO-8859-1.xml,v
diff -u -r1.6 -r1.7
--- openacs-4/packages/dotlrn/catalog/dotlrn.en_US.ISO-8859-1.xml 21 Nov 2002 15:18:50 -0000 1.6
+++ openacs-4/packages/dotlrn/catalog/dotlrn.en_US.ISO-8859-1.xml 4 Dec 2002 09:51:03 -0000 1.7
@@ -1,5 +1,5 @@
-
+
A copy of
@@ -34,6 +34,8 @@
Applets To AddApproveArchived
+ Are you sure?
+ Ask a question:Be sureBecome this user!Biography:
@@ -54,10 +56,15 @@
Community memberCommunity's NameConfigure Element
+ Configure %name%Confirm
+ Confirm:
+ Confirm Drop
+ ConfirmationControl PanelCopyCreate A New User
+ Create a Web LogCurrentCustomize LayoutDeactivate ...
@@ -67,10 +74,11 @@
Delete EmptyDepartmentDescription
+ Description:Don't AddDownload
+ DropDrop Membership
- Drop MembershipEditEdit PropertiesEdit Term
@@ -80,32 +88,32 @@
Email MembersEnd DateEnd date:
+ Error sending mailExample FileExternal URL
+ External URL:Extra LargeFieldsFirst Line
+ First NameFirst NamesFromFullFull AccessGeneral Information
- Groups
+ General Site HelpGuest?Guest?
+ Header Alternate TextHeader FontHeader Font ColorHeader Font ColorsHeader Font SizeHeader Font SizesHeader Fonts
- Header Icon
- Header Icon Alt Text
- Header Icon Alt text
- Header Logo
+ Header Icon Alt textHeader Logo Alt TextHeader Logo Item ID
- HelpID:IDInvalid
@@ -120,6 +128,7 @@
Last Visit:Last visit overLast visit under
+ Latest post:LimitedLimited AccessMail Failed
@@ -137,10 +146,12 @@
Memberships:MessageMy Communities
+ N/ANameName / EmailNeeds ApprovalNew
+ New Password:New TermNew UserNo
@@ -150,28 +161,32 @@
No classesNo, don't delete itNo groups to add to
- No membersNo user foundNoneNormalNot AllowedNote:
+ NukeNuke ...Nuke UsersOpenOrPendingPending Approval
+ Personal OptionsPersonal home page:Portrait:
+ Post to:Pretty NamePretty PluralPreview
+ Public Web LogRecipient's EmailRecipient's Last NameRefererRegistration date:Reject
+ Request MembershipResultsReturn URLRole
@@ -185,7 +200,9 @@
SizeSloanSpaceSmall
+ Sorry!Spam ...
+ Spam CommunitySpam UsersStart DateStart date:
@@ -200,7 +217,9 @@
ToTypeUnknown Term
+ Update PasswordUser
+ User Admin PageUser ID:User IDUser Management
@@ -217,7 +236,6 @@
Yes, deleteYou can specify colors by nameYou must create
- You're addingYou're editingYou've chosen to addA member of the
@@ -313,83 +331,148 @@
limeLogin information:Logout
+ Add Members to Another CommunityAdd Membership To CommunityAdd These Users To A GroupAdd a new dotLRN user:
+ Add a new user to SloanSpace
+ Add %community_name% Members to Another CommunityAdd members to another groupAdministrative Actions
+ An error occured while trying to add a user to a community. This error has been logged.
+ An error occured while trying to remove a user to a community. This error has been logged.Are you sure you want to delete the empty department
+ Be sure that the person does not already have a SloanSpace account under another email address. Duplicate accounts cause problems for everyone. To add a person with an existing account use <a href=members>Manage Membership</a>.Change my language settingClass Key (a short name, no spaces)Community's Web Address
- E-mail address must be valid and unique
- Edit My Notifications
+ Do you really want to remove the following members?
+ Do you really want to remove %num_users% users?
+ E-mail address must be valid and unique. <br>This user probably already has a SloanSpace account. <br>Try adding this user through <a href=members>Manage Membership</a>.
+ Edit My NotificationsEdit My Personal InformationEdit Pre-approved Email Servers
+ Edit department properties.Email suffixes listed here are used to automatically make dotLRN users of
people that register with email addresses that match one of the values in
this list.
+ Error Nuking %first_names% %last_name% (%email%)
+ Error adding user to community
+ Error removing user community
+ Error sending email to %email% from password-update-2.tclFirst check the box of the users you want to add, next select their
role, and finally submit the form.
+ Folder %folder_name% is emptyGo back and try again
+ Help and Personal ConfigurationHere is the actual error message:Here you can create several users at once using a correctly formatted CSV
(comma-separated values) file. You can create a spreadsheet and save it as
a CSV file to import here.
+ If this person is a MIT or Sloan Student have him self-register at sloanspace.mit.edu so he will have a full access account.
+ If you wish to give guests full access to forums and surveys you may request that the site-wide admin change the status of your community. This option is not open to classes due to MIT privacy policy.
+ Information about other members of this community will not be available to this user.Interactive setting of dotLRN parameters
+ Join/Drop Classes or CommunitiesJoin/Drop a Class or Community GroupJoin the above criteria withJoin the above criteria byKey (a short name, no spaces)Last Visit Over (in days)Last Visit Within (in days)
+ Make this user a site wide admin.Manage this user's portraitNo, I don't want to archive this group.
+ Note: The script will continue to run even if you
+close your browser.
+ Note: This process is expected to take %num_seconds% seconds.
+ Note: This process is expected to take %num_minutes% minutes.
+ Note: use this feature responsibly and <i>think</i> first.Note: you will have the option of adding these users to a group
once they have been uploaded.
+ Nuke %first_names% %last_name% (%email%)
+ Please confirm that you want eliminate all traces of %first_names%
+%last_name% (%email%) from the database. If you select "Yes", we'll
+make an attempt. If we succeed, you'll be redirected to where you
+were. If there is an error and we are unable to complete the removal,
+we'll return an error message.
+ Please follow the following link to reset your password:
+
+%change_password_url%
+
+Please select a different namePre-approved Email ServersRecipient's First Name
+ Return to where you were.Revert ONLY the Header Icon properties to defaultsRevert all properties to defaultsSave and use this header
+ Search dotLRN users for user:Sender's Email AddressSome of the emails failed. Those users had random passwords generated for them, however. The best way to proceed is to have these users log in and ask them to click on 'I have forgotten my password'.The first line of the file
+ The following email was just sent from %system_name%
+ The following email was just sent from %system_name%
+
+Sent by: %system_owner%
+Sent to: %email%
+Subject: %subject%
+Message: %body%The following members ofThe following variables can be used to insert user/community specific data:The group's data will not be modified, but the group will only be accessible to system administrators.The results of your search are:The system was unable to send email. Please notify the user personally. This problem is probably caused by a misconfiguration of your email system. Here is the error:There was a bug in this pageThere was a bug in this page. Please report this problem.
+ There was an error sending email to %email%.
+ There was an error sending email to %system_owner%.There was an error trying to add your content.
The most likely causes are that:This action will take approximately
- This page will eventually include help
+ This action will take approximately <strong>%estimated_number_of_seconds%</strong> seconds.
+ This allows you to give a non-MIT person who is not a registered student access to this group.
+ This user is a site-wide admin.
+ This user is currently in state <i>%member_state%</i>. To allow this user access to dotLRN you must <br><a href="%approve_user_url%">approve and add to dotLRN</a>Update this user's password
+ Use this only for an officially registered student in this class who is <b>not</b> a MIT or Sloan student.
+ Web Log for %user_name%
+ Well, we tried to nuke the user, but there was an error. The most
+likely case is that a reference to this user (user_id=%user_id%)
+exists somewhere in the database schema. It's time to call your
+programmers!(What others see about me:Year (e.g. 2003, 2003/2004)
+ You are about to delete %num_users% users.
+ You are adding <strong>%first_names% %last_name% (%email%)</strong> to %community_name%:You are not allowed to perform that action.You double-clicked the "Add" button on the previous page.You may now choose to
+ You need to confirm the password that you typed. (Type the same thing again.)You tried to upload a non-image file.Your Current MembershipsYour dotLRN Workspace
+ Your password on %system_name%
+ Your passwords don't match! Presumably, you made a typo while entering one of them.Your search returned no results, please broaden your search criteria.You're asking to change the level of access of this user.
This has strong repercussions. Are you user about this?, since these must be
associated with Terms.-
a secondary identifier for the user.
+ approve and add to dotLRNare not yet members ofdotLRN properties for this user.emailing this user failed!Having trouble getting the look you want? Here's some tipsIf you misspell the font name or pick a font that a user doesn't
have on her computer, the normal system font will be used.
- This is what the header will look like
+ policy must be one of: open, needs approval, or closed
+ spam policy must be one of: all or members
+ <strong>%first_names% %last_name% (%email%)</strong> is a %existing_role% in %community_name%. You may select a new role below:
+ This is what the header title will look likeThis may take some time. Please be patient.this user is deleted and
banned from the community.
@@ -401,7 +484,6 @@
Membersmust- must be one of
- MySpacenavynewNew
@@ -411,6 +493,7 @@
Not-A-Membernone set upNot a User
+ nukeof typeoliveoptional, defaults to
@@ -425,6 +508,7 @@
Thank you. Your registration request has been sent to the System Administratorrejectrequired
+ revokerrggbbsearchseconds.
@@ -448,6 +532,7 @@
The format of this value is a comma-separated list of domains (usually
preceded by the *@ string which match
<anything>@<email-domain>). For example, you might use:
+ There are no users matching %search_text%.this user is deletedthis user to dotLRN.to be able to create
Index: openacs-4/packages/dotlrn/sql/oracle/communities-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/sql/oracle/communities-create.sql,v
diff -u -r1.12 -r1.13
--- openacs-4/packages/dotlrn/sql/oracle/communities-create.sql 9 Aug 2002 18:39:24 -0000 1.12
+++ openacs-4/packages/dotlrn/sql/oracle/communities-create.sql 4 Dec 2002 09:51:03 -0000 1.13
@@ -31,7 +31,6 @@
primary key,
supertype constraint dotlrn_ct_supertype_fk
references dotlrn_community_types (community_type),
- constraint dotlrn_ct_type_supertype_un unique (community_type, supertype),
pretty_name varchar2(100)
constraint dotlrn_ct_pretty_name_nn
not null,
Fisheye: Tag 1.1 refers to a dead (removed) revision in file `openacs-4/packages/dotlrn/sql/oracle/custom-permissions.sql'.
Fisheye: No comparison available. Pass `N' to diff?
Index: openacs-4/packages/dotlrn/sql/oracle/dotlrn-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/sql/oracle/dotlrn-create.sql,v
diff -u -r1.18 -r1.19
--- openacs-4/packages/dotlrn/sql/oracle/dotlrn-create.sql 9 Aug 2002 18:39:24 -0000 1.18
+++ openacs-4/packages/dotlrn/sql/oracle/dotlrn-create.sql 4 Dec 2002 09:51:03 -0000 1.19
@@ -37,3 +37,4 @@
@@ main-portlet-create.sql
@@ security-create.sql
@@ user-extension-create.sql
+@@ custom-permissions.sql
Index: openacs-4/packages/dotlrn/sql/oracle/security-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/sql/oracle/security-create.sql,v
diff -u -r1.3 -r1.4
--- openacs-4/packages/dotlrn/sql/oracle/security-create.sql 9 Aug 2002 18:39:24 -0000 1.3
+++ openacs-4/packages/dotlrn/sql/oracle/security-create.sql 4 Dec 2002 09:51:03 -0000 1.4
@@ -49,9 +49,13 @@
-- the ability to create a community type
acs_privilege.create_privilege('dotlrn_create_community_type');
+ -- the ability to spam a community
+ acs_privilege.create_privilege('dotlrn_spam_community');
+
-- consistent permissions
acs_privilege.add_child('dotlrn_edit_community', 'dotlrn_view_community');
acs_privilege.add_child('dotlrn_admin_community', 'dotlrn_edit_community');
+ acs_privilege.add_child('dotlrn_admin_community', 'dotlrn_spam_community');
-- inheritance
acs_privilege.add_child('create', 'dotlrn_create_community_type');
Index: openacs-4/packages/dotlrn/sql/oracle/security-drop.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/sql/oracle/security-drop.sql,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/dotlrn/sql/oracle/security-drop.sql 9 Aug 2002 18:39:24 -0000 1.2
+++ openacs-4/packages/dotlrn/sql/oracle/security-drop.sql 4 Dec 2002 09:51:03 -0000 1.3
@@ -36,6 +36,7 @@
acs_privilege.remove_child('dotlrn_edit_community', 'dotlrn_view_community');
acs_privilege.remove_child('dotlrn_admin_community', 'dotlrn_edit_community');
+ acs_privilege.remove_child('dotlrn_admin_community', 'dotlrn_spam_community');
delete
from acs_permissions
@@ -46,7 +47,8 @@
'dotlrn_create_community_type',
'dotlrn_edit_community',
'dotlrn_view_community',
- 'dotlrn_view_community_type');
+ 'dotlrn_view_community_type',
+ 'dotlrn_spam_community');
acs_privilege.drop_privilege('dotlrn_admin_community');
acs_privilege.drop_privilege('dotlrn_admin_community_type');
@@ -56,6 +58,7 @@
acs_privilege.drop_privilege('dotlrn_edit_community');
acs_privilege.drop_privilege('dotlrn_view_community');
acs_privilege.drop_privilege('dotlrn_view_community_type');
+ acs_privilege.drop_privilege('dotlrn_spam_community');
end;
/
Index: openacs-4/packages/dotlrn/sql/postgresql/communities-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/sql/postgresql/communities-create.sql,v
diff -u -r1.3 -r1.4
--- openacs-4/packages/dotlrn/sql/postgresql/communities-create.sql 9 Aug 2002 18:39:25 -0000 1.3
+++ openacs-4/packages/dotlrn/sql/postgresql/communities-create.sql 4 Dec 2002 09:51:03 -0000 1.4
@@ -34,7 +34,6 @@
supertype varchar(100)
constraint dotlrn_ct_supertype_fk
references dotlrn_community_types (community_type),
- constraint dotlrn_ct_type_supertype_un unique (community_type, supertype),
pretty_name varchar(100)
constraint dotlrn_ct_pretty_name_nn
not null,
Index: openacs-4/packages/dotlrn/sql/postgresql/communities-drop.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/sql/postgresql/communities-drop.sql,v
diff -u -r1.3 -r1.4
--- openacs-4/packages/dotlrn/sql/postgresql/communities-drop.sql 9 Aug 2002 18:39:25 -0000 1.3
+++ openacs-4/packages/dotlrn/sql/postgresql/communities-drop.sql 4 Dec 2002 09:51:03 -0000 1.4
@@ -26,7 +26,7 @@
-- @version $Id$
--
-\i communities-tree-drop.sql;
+\i communities-tree-drop.sql
drop view dotlrn_active_comms_not_closed;
drop view dotlrn_active_communities;
Fisheye: Tag 1.1 refers to a dead (removed) revision in file `openacs-4/packages/dotlrn/sql/postgresql/custom-permissions.sql'.
Fisheye: No comparison available. Pass `N' to diff?
Index: openacs-4/packages/dotlrn/sql/postgresql/dotlrn-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/sql/postgresql/dotlrn-create.sql,v
diff -u -r1.9 -r1.10
--- openacs-4/packages/dotlrn/sql/postgresql/dotlrn-create.sql 9 Aug 2002 18:39:25 -0000 1.9
+++ openacs-4/packages/dotlrn/sql/postgresql/dotlrn-create.sql 4 Dec 2002 09:51:03 -0000 1.10
@@ -36,3 +36,4 @@
\i main-portlet-create.sql
\i security-create.sql
\i user-extension-create.sql
+\i custom-permissions.sql
Index: openacs-4/packages/dotlrn/sql/postgresql/security-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/sql/postgresql/security-create.sql,v
diff -u -r1.3 -r1.4
--- openacs-4/packages/dotlrn/sql/postgresql/security-create.sql 9 Aug 2002 18:39:25 -0000 1.3
+++ openacs-4/packages/dotlrn/sql/postgresql/security-create.sql 4 Dec 2002 09:51:03 -0000 1.4
@@ -28,59 +28,68 @@
-- Security Setup for dotLRN
-- privileges, privilege inheritance
--
-begin;
+create function inline0()
+returns integer as '
+begin
-- the ability to browse dotLRN in general
- select acs_privilege__create_privilege('dotlrn_browse');
+ perform acs_privilege__create_privilege(''dotlrn_browse'');
-- the ability to even view that a community exists
- select acs_privilege__create_privilege('dotlrn_view_community');
+ perform acs_privilege__create_privilege(''dotlrn_view_community'');
-- the ability to participate in a community
- select acs_privilege__create_privilege('dotlrn_edit_community');
+ perform acs_privilege__create_privilege(''dotlrn_edit_community'');
-- the ability to admin a community
- select acs_privilege__create_privilege('dotlrn_admin_community');
+ perform acs_privilege__create_privilege(''dotlrn_admin_community'');
-- the ability to create a community
- select acs_privilege__create_privilege('dotlrn_create_community');
+ perform acs_privilege__create_privilege(''dotlrn_create_community'');
-- the ability to even view a community type
- select acs_privilege__create_privilege('dotlrn_view_community_type');
+ perform acs_privilege__create_privilege(''dotlrn_view_community_type'');
-- the ability to admin a community type
- select acs_privilege__create_privilege('dotlrn_admin_community_type');
+ perform acs_privilege__create_privilege(''dotlrn_admin_community_type'');
-- the ability to create a community type
- select acs_privilege__create_privilege('dotlrn_create_community_type');
+ perform acs_privilege__create_privilege(''dotlrn_create_community_type'');
+ -- the ability to spam a community
+ perform acs_privilege__create_privilege(''dotlrn_spam_community'');
+
-- temporarily drop this trigger to avoid a data-change violation
-- on acs_privilege_hierarchy_index while updating the child privileges.
drop trigger acs_priv_hier_ins_del_tr on acs_privilege_hierarchy;
-- Consistent permissions
- select acs_privilege__add_child('dotlrn_edit_community', 'dotlrn_view_community');
- select acs_privilege__add_child('dotlrn_admin_community', 'dotlrn_edit_community');
+ perform acs_privilege__add_child(''dotlrn_edit_community'', ''dotlrn_view_community'');
+ perform acs_privilege__add_child(''dotlrn_admin_community'', ''dotlrn_edit_community'');
+ perform acs_privilege__add_child(''dotlrn_admin_community'', ''dotlrn_spam_community'');
-- inheritance
- select acs_privilege__add_child('create', 'dotlrn_create_community_type');
- select acs_privilege__add_child('create', 'dotlrn_create_community');
- select acs_privilege__add_child('write', 'dotlrn_edit_community');
- select acs_privilege__add_child('read', 'dotlrn_view_community');
- select acs_privilege__add_child('read', 'dotlrn_view_community_type');
- select acs_privilege__add_child('admin', 'dotlrn_admin_community');
- select acs_privilege__add_child('admin', 'dotlrn_admin_community_type');
+ perform acs_privilege__add_child(''create'', ''dotlrn_create_community_type'');
+ perform acs_privilege__add_child(''create'', ''dotlrn_create_community'');
+ perform acs_privilege__add_child(''write'', ''dotlrn_edit_community'');
+ perform acs_privilege__add_child(''read'', ''dotlrn_view_community'');
+ perform acs_privilege__add_child(''read'', ''dotlrn_view_community_type'');
+ perform acs_privilege__add_child(''admin'', ''dotlrn_admin_community'');
+ perform acs_privilege__add_child(''admin'', ''dotlrn_admin_community_type'');
+ -- for now, we only want admins to be able to browse by default
+ perform acs_privilege__add_child(''admin'', ''dotlrn_browse'');
-- re-enable the trigger before the last insert to force the
-- acs_privilege_hierarchy_index table to be updated.
-
create trigger acs_priv_hier_ins_del_tr after insert or delete
on acs_privilege_hierarchy for each row
execute procedure acs_priv_hier_ins_del_tr ();
- -- for now, we only want admins to be able to browse by default
- select acs_privilege__add_child('admin', 'dotlrn_browse');
-
-- no default permissions
+ return 0;
+end;' language 'plpgsql';
-end;
+select inline0();
+drop function inline0();
+
+
Index: openacs-4/packages/dotlrn/sql/postgresql/security-drop.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/sql/postgresql/security-drop.sql,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/dotlrn/sql/postgresql/security-drop.sql 9 Aug 2002 18:39:25 -0000 1.2
+++ openacs-4/packages/dotlrn/sql/postgresql/security-drop.sql 4 Dec 2002 09:51:03 -0000 1.3
@@ -39,7 +39,9 @@
perform acs_privilege__remove_child(''dotlrn_edit_community'', ''dotlrn_view_community'');
perform acs_privilege__remove_child(''dotlrn_admin_community'', ''dotlrn_edit_community'');
+ perform acs_privilege__remove_child(''dotlrn_admin_community'', ''dotlrn_spam_community'');
+
delete
from acs_permissions
where privilege in (''dotlrn_admin_community'',
@@ -59,7 +61,7 @@
perform acs_privilege__drop_privilege(''dotlrn_edit_community'');
perform acs_privilege__drop_privilege(''dotlrn_view_community'');
perform acs_privilege__drop_privilege(''dotlrn_view_community_type'');
-
+ perform acs_privilege__drop_privilege(''dotlrn_spam_community'');
return 0;
end;' language 'plpgsql';
Index: openacs-4/packages/dotlrn/tcl/community-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/tcl/community-procs.tcl,v
diff -u -r1.171 -r1.172
--- openacs-4/packages/dotlrn/tcl/community-procs.tcl 12 Nov 2002 08:44:05 -0000 1.171
+++ openacs-4/packages/dotlrn/tcl/community-procs.tcl 4 Dec 2002 09:51:03 -0000 1.172
@@ -217,7 +217,7 @@
where object_id = :community_id
}
- set template_id [dotlrn::get_portal_id_from_type -type $community_type]
+ set template_id [dotlrn::get_portal_id_from_type -type $object_type]
# Create comm's portal page
set portal_id [portal::create \
@@ -311,8 +311,21 @@
# this community should be able to read this instance (and
# it's children)
permission::set_not_inherit -object_id $community_id
-
- return $community_id
+
+ #this block sets permissions for subcommunities
+ while {1} {
+ if {![empty_string_p $parent_community_id]} {
+ #admin of the parent need admin on the subcommunity.
+ set parent_admin_party [db_string "parent_admin_party" "select segment_id from rel_segments where group_id = :parent_community_id and rel_type='dotlrn_admin_rel'"]
+ permission::grant -party_id $parent_admin_party -object_id $community_id -privilege "admin"
+
+ #if this community has a parent we need to work up the chain.
+ set parent_community_id [get_parent_id -community_id $parent_community_id]
+
+ } else {
+ return $community_id
+ }
+ }
}
ad_proc set_active_dates {
@@ -376,12 +389,10 @@
ad_proc -private get_default_roles_not_cached {
{-community_type:required}
} {
- set toplevel_community_type [get_toplevel_community_type -community_type $community_type]
-
- if {[string match $toplevel_community_type dotlrn_class_instance]} {
- set community_type dotlrn_class_instance
- } else {
+ if {[string match $community_type dotlrn_club]} {
set community_type dotlrn_community
+ } elseif {![string match $community_type dotlrn_community]} {
+ set community_type dotlrn_class_instance
}
return [db_list_of_lists select_role_data {}]
@@ -441,7 +452,6 @@
set pretty_name [lindex $roles [expr $i + 2]]
}
- ns_log Notice "PM: pretty_name $pretty_name [lang::util::localize $pretty_name]"
return [lang::util::localize $pretty_name]
}
@@ -572,6 +582,9 @@
set member_segment_id [get_members_rel_id -community_id $community_id]
set admin_segment_id [get_admin_rel_id -community_id $community_id]
+ set parent_id [dotlrn_community::get_parent_id -community_id $community_id]
+ set parent_admin_segment_id [get_admin_rel_id -community_id $parent_id]
+
permission::grant \
-party_id $member_segment_id \
-object_id $community_id \
@@ -745,6 +758,7 @@
}
util_memoize_flush "dotlrn_community::list_users_not_cached -rel_type $rel_type -community_id $community_id"
+ util_memoize_flush_regexp $user_id
}
ad_proc -public add_user_to_community {
@@ -772,6 +786,12 @@
ns_set put $extra_vars user_id $user_id
ns_set put $extra_vars community_id $community_id
+ ns_log notice "rel_type is sending the following to relation_add -member_state needs approval \
+ -extra_vars $extra_vars \
+ $rel_type \
+ $community_id \
+ $user_id "
+
# Set up the relationship
if {[catch {set rel_id [relation_add \
-member_state "needs approval" \
@@ -861,8 +881,10 @@
# flush the list_users cache
util_memoize_flush "dotlrn_community::list_users_not_cached -rel_type $rel_type -community_id $community_id"
}
+ util_memoize_flush_regexp $user_id
}
+
ad_proc -public get_all_communities_by_user {
user_id
} {
@@ -1120,6 +1142,7 @@
{-community_id:required}
{-pretext "
"}
{-join_target register}
+ {-drop_target deregister}
{-only_member_p 0}
} {
Returns a html fragment of the subcommunity hierarchy of this
@@ -1142,22 +1165,23 @@
if {[empty_string_p $user_id]} {
set user_id [ad_get_user_id]
}
-
foreach sc_id [get_subcomm_list -community_id $community_id] {
-
if {[has_subcommunity_p -community_id $sc_id] \
&& [member_p $sc_id $user_id]} {
# Shows the subcomms of this subcomm ONLY IF I'm a
# member of the current comm
set url [get_community_url $sc_id]
append chunk "$pretext [get_community_name $sc_id]\n"
- if {[dotlrn::user_can_admin_community_p -community_id $sc_id]} {
- append chunk "\[ admin \]"
- }
+ append chunk "[_ dotlrn.Drop]\n"
+
+# Removing admin to improve performance
+# if {[dotlrn::user_can_admin_community_p -community_id $sc_id]} {
+# append chunk " \n"
+# }
append chunk "
Index: openacs-4/packages/dotlrn/www/control-panel.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/control-panel.tcl,v
diff -u -r1.4 -r1.5
--- openacs-4/packages/dotlrn/www/control-panel.tcl 23 Oct 2002 12:38:39 -0000 1.4
+++ openacs-4/packages/dotlrn/www/control-panel.tcl 4 Dec 2002 09:51:04 -0000 1.5
@@ -36,11 +36,12 @@
# Make sure user is logged in
set user_id [ad_maybe_redirect_for_registration]
-set title "[_ dotlrn.Control_Panel]"
+set title [parameter::get -localize -parameter admin_page_name]
set admin_p [dotlrn::admin_p]
set admin_url "[dotlrn::get_url]/admin"
set referer [ns_conn url]
set admin_pretty_name [parameter::get -localize -parameter dotlrn_admin_pretty_name]
+set system_owner [ad_system_owner]
ad_return_template
Fisheye: Tag 1.1 refers to a dead (removed) revision in file `openacs-4/packages/dotlrn/www/deregister-confirm.adp'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.1 refers to a dead (removed) revision in file `openacs-4/packages/dotlrn/www/deregister-confirm.tcl'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.1 refers to a dead (removed) revision in file `openacs-4/packages/dotlrn/www/deregister-confirm.xql'.
Fisheye: No comparison available. Pass `N' to diff?
Index: openacs-4/packages/dotlrn/www/deregister-link.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/deregister-link.adp,v
diff -u -r1.8 -r1.9
--- openacs-4/packages/dotlrn/www/deregister-link.adp 12 Nov 2002 08:44:05 -0000 1.8
+++ openacs-4/packages/dotlrn/www/deregister-link.adp 4 Dec 2002 09:51:04 -0000 1.9
@@ -18,4 +18,8 @@
%>
-#dotlrn.Drop_Membership#@label@
+
+
+
Index: openacs-4/packages/dotlrn/www/deregister.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/deregister.tcl,v
diff -u -r1.6 -r1.7
--- openacs-4/packages/dotlrn/www/deregister.tcl 23 Oct 2002 12:38:39 -0000 1.6
+++ openacs-4/packages/dotlrn/www/deregister.tcl 4 Dec 2002 09:51:04 -0000 1.7
@@ -22,11 +22,20 @@
@creation-date 2001-10-06
@version $Id$
} -query {
- {user_id ""}
+ {user_id:multiple,integer ""}
{community_id ""}
{referer "./"}
}
+
+# This page was modified to allow more that one user to be dropped at a time.
+# This one done so there is one consistent way of dropping members.
+#
+# The parameter "user_id" was kept so that other entry points (both current
+# and those that might occur in the future from OpenACS and other changes)
+# wouldn't break. This does have the unfortunate consequence that the name
+# user_id is not intuative when it is a list of many user_ids. (teadams@alum.mit.edu)
+
ad_maybe_redirect_for_registration
if {[empty_string_p $community_id]} {
@@ -39,7 +48,28 @@
dotlrn::require_user_admin_community -community_id $community_id
}
-dotlrn_community::remove_user $community_id $user_id
+foreach member_id $user_id {
+
+ # This is catch most double clicks.
+ # The catch will take care of cases where the double click is too fast.
+ if {[dotlrn_community::member_p $community_id $member_id]} {
+ if {[catch {
+ dotlrn_community::remove_user $community_id $member_id
+ } errmsg]} {
+
+ if {![dotlrn_community::member_p $community_id $user_id]} {
+ # assume this was a double click
+ ad_returnredirect $referer
+ ad_script_abort
+ } else {
+ ns_log Error "deregister.tcl failed: $errmsg"
+ ReturnHeaders
+ ad_return_error "[_ dotlrn.lt_Error_removing_user_c]" "[_ dotlrn.lt_An_error_occured_whil_1]"
+ }
+ }
+ }
+}
+
ad_returnredirect $referer
Index: openacs-4/packages/dotlrn/www/dotlrn-default-master.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/Attic/dotlrn-default-master.adp,v
diff -u -r1.12 -r1.13
--- openacs-4/packages/dotlrn/www/dotlrn-default-master.adp 23 Oct 2002 12:38:39 -0000 1.12
+++ openacs-4/packages/dotlrn/www/dotlrn-default-master.adp 4 Dec 2002 09:51:04 -0000 1.13
@@ -36,9 +36,8 @@
+