<?xml version="1.0" encoding="iso-8859-1"?>
<module name="Ft.Server.Server.Commands.CommandUtil" file="/work/a/ports/textproc/py-4suite/work/4Suite-1.0b1/build/lib.freebsd-7.1-RELEASE-i386-2.4/Ft/Server/Server/Commands/CommandUtil.py">
  <modification-date>2004-08-17 18:08:50</modification-date>
  <abstract>Functions used by various commands</abstract>
  <description>Copyright 2003 Fourthought, Inc. (USA).
Detailed license and copyright information: http://4suite.org/COPYRIGHT
Project home, documentation, distributions: http://4suite.org/</description>
  <functions>
    <function public="yes" name="GetRepository" id="GetRepository">
      <abstract>Given a dictionary of parsed command-line options (see FancyGetOpt),
reads a repo config file (which may be identified by the 'config-file'
key in the options dict, and defaults to the value of the environment
variable FTSERVER_CONFIG_FILE), obtaining the config file's contents
as a dictionary returned by Ft.Server.Server.Lib.ConfigFile.Read(),
and creating a properties dictionary that is the value of just one of
the keys from the original dictionary (the key is either the 'core-id'
option, the value of environment variable FTSS_CORE_ID, or 'Core').
If a username and password hash were not found in the options dict,
prompts for them. Uses username and password hash to obtain a repo
access object from the local repository (via SCore.GetRepository()).
Checks ACL in the repo to see if the command with the given name can
be run by the user, raising an exception if it can't or if the name
doesn't correspond to a command in the repo. Returns a tuple of:
username, password hash, config file properties dictionary, repo
access object.</abstract>
      <description>Used by pretty much every '4ss' and '4ss_manager' command.</description>
      <arguments>
        <arg name="options"/>
        <arg name="cmdName"/>
      </arguments>
    </function>
  </functions>
</module>
