fixed up community profile - some of the features from the origina weren't in

there yet
This commit is contained in:
Eric J. Bowersox
2003-06-25 03:44:10 +00:00
parent 4a305dcd91
commit 8b40695626
2 changed files with 38 additions and 14 deletions

View File

@@ -53,16 +53,27 @@ if (logo_url==null)
rc.setParameter("logo",logorender.getRenderingObject(logo_url));
// Get the community type.
tmp = cast.toInteger(comm.getObject(VeniceNamespaces.COMMUNITY_SECURITY_NAMESPACE,"type.hint"));
if (tmp==0)
rc.setParameter("type","Public Community");
else if (tmp==1)
rc.setParameter("type","Private Community");
else if (tmp==2)
rc.setParameter("type","Invitation-Only Community");
// Get the "use category" flag.
opts = cast.toOptionSet(globals.getObject(VeniceNamespaces.COMMUNITY_GLOBALS_NAMESPACE,"options"));
if (opts.get(0))
rc.setParameter("use_category",Boolean.TRUE);
rc.setParameter("category",comm.category);
// Set the parameters that correspond to single properties.
rc.setParameter("synopsis",PropertyUtils.getPropertyNoErr(comm,VeniceNamespaces.COMMUNITY_PROFILE_NAMESPACE,
"synopsis"));
rc.setParameter("rules",PropertyUtils.getPropertyNoErr(comm,VeniceNamespaces.COMMUNITY_PROFILE_NAMESPACE,"rules"));
rc.setParameter("language",comm.getObject(VeniceNamespaces.COMMUNITY_PROFILE_NAMESPACE,"language"));
rc.setParameter("homepage",PropertyUtils.getPropertyNoErr(comm,VeniceNamespaces.COMMUNITY_PROFILE_NAMESPACE,
"url.homepage"));
// Fill in the location list.
locs = new ArrayList();