Home
The Toolkit for Online Communities
16680 Community Members, 1 member online, 2546 visitors today
Log In Register
OpenACS Home : ACS API Browser : ds_set_user_switching_enabled

ds_set_user_switching_enabled (public)

ds_set_user_switching_enabled enabled_p
Defined in packages/acs-developer-support/tcl/acs-developer-support-procs.tcl

Enables/disables user-switching in a safe manner.

Parameters:
enabled_p
Author:
Lars Pind <lars@pinds.com>
Created:
31 August 2000
Source code:
    ns_log Notice "Developer-support user-switching [ad_decode $enabled_p 1 enabled disabled]"
    nsv_set ds_properties user_switching_enabled_p $enabled_p

Generic XQL file:
<?xml version="1.0"?>
<queryset>

<fullquery name="ds_user_select_widget.users">      
      <querytext>
       
	select u.user_id as user_id_from_db, 
	       acs_object.name(user_id) as name, 
	       p.email 
	from   users u, 
	       parties p 
	where  u.user_id = p.party_id 
	order by name    
      </querytext>
</fullquery>

 
</queryset>

Postgresql XQL file:
<?xml version="1.0"?>

<queryset>
   <rdbms><type>postgresql</type><version>7.1</version></rdbms>

<fullquery name="ds_instance_id.acs_kernel_id_get">      
      <querytext>

	select package_id from apm_packages
	where package_key = 'acs-developer-support'
	limit 1
    
      </querytext>
</fullquery>

 
<fullquery name="ds_require_permission.name">      
      <querytext>
      select acs_object__name(:object_id) 
      </querytext>
</fullquery>

 
<fullquery name="ds_support_url.ds_support_url">      
      <querytext>

	select site_node__url(node_id) 
	from site_nodes s, apm_packages p
	where p.package_id = s.object_id
	and p.package_key ='acs-developer-support'
	limit 1
    
      </querytext>
</fullquery>

 
<fullquery name="ds_user_select_widget.users">      
      <querytext>
       
	select u.user_id as user_id_from_db, 
	       acs_object__name(user_id) as name, 
	       p.email 
	from   users u, 
	       parties p 
	where  u.user_id = p.party_id 
	order by name
    
      </querytext>
</fullquery>

 
</queryset>

Oracle XQL file:
<?xml version="1.0"?>

<queryset>
   <rdbms><type>oracle</type><version>8.1.6</version></rdbms>

<fullquery name="ds_instance_id.acs_kernel_id_get">      
      <querytext>
      
	select package_id from apm_packages
	where package_key = 'acs-developer-support'
	and rownum=1
    
      </querytext>
</fullquery>

 
<fullquery name="ds_require_permission.name">      
      <querytext>
      select acs_object.name(:object_id) from dual
      </querytext>
</fullquery>

 
<fullquery name="ds_support_url.ds_support_url">      
      <querytext>
      
	select site_node.url(node_id) 
	from site_nodes s, apm_packages p
	where p.package_id = s.object_id
	and p.package_key ='acs-developer-support'
	and rownum = 1
    
      </querytext>
</fullquery>

 
<fullquery name="ds_user_select_widget.users">      
      <querytext>
       
	select u.user_id as user_id_from_db, 
	       acs_object.name(user_id) as name, 
	       p.email 
	from   users u, 
	       parties p 
	where  u.user_id = p.party_id 
    
      </querytext>
</fullquery>

 
</queryset>

[ hide source ] | [ make this the default ]
Show another procedure: