+@title@
+@context@
+
+@control_bar;noquote@
+
+
+
+
Index: openacs-4/packages/dotfolio/www/directory.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotfolio/www/directory.tcl,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/dotfolio/www/directory.tcl 2 Aug 2005 01:54:52 -0000 1.1
@@ -0,0 +1,48 @@
+ad_page_contract {
+ Directory page lists all portfolios in the system.
+
+ @author Nick Carroll (nick.c@rroll.net)
+ @creation-date 2005-07-18
+ @cvs-id $Id: directory.tcl,v 1.1 2005/08/02 01:54:52 ncarroll Exp $
+} -query {
+ {section All}
+} -properties {
+ control_bar:onevalue
+}
+
+set title [_ dotfolio.directory]
+set context [_ dotfolio.directory]
+
+set dimension_list {A B C D E F G H I J K L M N O P Q R S T U V W X Y Z}
+foreach dimension $dimension_list {
+ lappend dimensions [list $dimension $dimension {}]
+}
+lappend dimensions [list Other Other {}]
+lappend dimensions [list All All {}]
+
+set control_bar [dotfolio::dimensional -no_bars [list [list section {} $section $dimensions]]]
+
+
+set elements {
+ name {
+ label {\#dotfolio.directory_listing_of_eportfolios\#}
+ link_url_col url
+ }
+}
+
+template::list::create \
+ -name portfolios \
+ -elements $elements \
+ -no_data "#dotfolio.no_portfolios_in_section#"
+
+set query "portfolios"
+
+if { [string match Other $section] } {
+ append query "_other"
+} elseif { [string match All $section] } {
+ append query "_all"
+}
+
+db_multirow portfolios $query {} {}
+
+ad_return_template
Index: openacs-4/packages/dotfolio/www/index.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotfolio/www/index.tcl,v
diff -u -r1.5 -r1.6
--- openacs-4/packages/dotfolio/www/index.tcl 23 Jun 2005 01:38:49 -0000 1.5
+++ openacs-4/packages/dotfolio/www/index.tcl 2 Aug 2005 01:54:52 -0000 1.6
@@ -22,10 +22,12 @@
set root_object_id [acs_magic_object security_context_root]
-set adviser_p [dotfolio::user::adviser_p $user_id]
+# Determine the type of dotfolio user.
+set type_adviser_p [dotfolio::user::type_adviser_p -user_id $user_id]
+set type_admin_p [dotfolio::user::type_admin_p -user_id $user_id]
# If user is not adviser then do some redirection.
-if {!$adviser_p} {
+if {!$type_adviser_p && !$type_admin_p} {
# If user has a dotfolio, then redirect to the location of the dotfolio.
# Otherwise redirect user back to index with message.
Index: openacs-4/packages/dotfolio/www/admin/group-members.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotfolio/www/admin/group-members.tcl,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/dotfolio/www/admin/group-members.tcl 23 Jun 2005 01:38:49 -0000 1.2
+++ openacs-4/packages/dotfolio/www/admin/group-members.tcl 2 Aug 2005 01:54:52 -0000 1.3
@@ -14,7 +14,7 @@
set context_bar "[_ dotfolio.group_members_curly]"
-set group_name [db_string group_name {} -default ""]
+set group_name [lang::util::localize [db_string group_name {} -default ""]]
db_multirow group_members group_members {}
Index: openacs-4/packages/dotfolio/www/admin/user-add-2.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotfolio/www/admin/user-add-2.tcl,v
diff -u -r1.3 -r1.4
--- openacs-4/packages/dotfolio/www/admin/user-add-2.tcl 23 Jun 2005 01:38:49 -0000 1.3
+++ openacs-4/packages/dotfolio/www/admin/user-add-2.tcl 2 Aug 2005 01:54:52 -0000 1.4
@@ -38,6 +38,7 @@
id:onevalue
password:onevalue
administration_name:onevalue
+ username:onevalue
}
# Get user info
@@ -49,7 +50,7 @@
set dotfolio_user_p [dotfolio::user_p -user_id $user_id]
-set redirect "user-add-2?[export_vars {user_id password referer type can_browse_p read_private_data_p add_membership_p}]"
+set redirect "user-add-2?[export_vars {user_id password referer type can_browse_p read_private_data_p add_membership_p username}]"
# Don't redirect back to the user-add-type page if we've already been there
if {!$dotfolio_user_p} {
set redirect "${redirect}"
Index: openacs-4/packages/dotfolio/www/admin/users-bulk-upload-2.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotfolio/www/admin/users-bulk-upload-2.tcl,v
diff -u -r1.3 -r1.4
--- openacs-4/packages/dotfolio/www/admin/users-bulk-upload-2.tcl 23 Jun 2005 01:38:49 -0000 1.3
+++ openacs-4/packages/dotfolio/www/admin/users-bulk-upload-2.tcl 2 Aug 2005 01:54:52 -0000 1.4
@@ -112,7 +112,7 @@
set msg_subst_list [list system_name [ad_system_name] \
system_url [ad_parameter -package_id [ad_acs_kernel_id] SystemURL] \
- user_email $row(email) \
+ user_username $row(username) \
user_password $password]
set message [_ dotfolio.user_add_confirm_email_body \
$msg_subst_list]
Index: openacs-4/packages/dotfolio/www/admin/users-bulk-upload.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotfolio/www/admin/users-bulk-upload.adp,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/dotfolio/www/admin/users-bulk-upload.adp 23 Jun 2005 01:38:49 -0000 1.2
+++ openacs-4/packages/dotfolio/www/admin/users-bulk-upload.adp 2 Aug 2005 01:54:52 -0000 1.3
@@ -78,7 +78,7 @@
first_names,last_name,email,username,password,type
- Joe,Student,joe@_somewhere_.net,joestue,4jfe3,student
+ Joe,Student,joe@_somewhere_.net,joestue,4jfe3,owner
Albert,Einstein,al@_school_.edu,al,,adviser
Systems,Hacker,syshacker@_company_.com,syshackr,,guest