Package fcp :: Module sitemgr
[hide private]
[frames] | no frames]

Module sitemgr

source code

new persistent SiteMgr class

Classes [hide private]
  Hell
Something smells wrong here...
  SiteMgr
New nuclear-war-resistant Freesite insertion class
  SiteState
Stores the current state of a single freesite's insertion, in a way that can recover from cancellations, node crashes etc
Functions [hide private]
 
getFileSize(filepath)
Get the size of the file in bytes.
source code
 
fixUri(uri, name, version=0)
Conditions a URI to be suitable for freesitemgr
source code
 
ChkTargetFilename(name)
Make the name suitable for a ChkTargetFilename
source code
 
runTest() source code
Variables [hide private]
  defaultBaseDir = '/home/arne/.freesitemgr'
  maxretries = -1
  defaultMaxConcurrent = 10
  testMode = False
  defaultPriority = 3
  defaultMaxManifestSizeBytes = 2097152
  defaultMaxNumberSeparateFiles = 512
  version = 1
  minVersion = 0
  __package__ = 'fcp'
  __warningregistry__ = {('the sha module is deprecated; use the...
Variables Details [hide private]

__warningregistry__

Value:
{('the sha module is deprecated; use the hashlib module instead',
  <type 'exceptions.DeprecationWarning'>,
  9): True}