Package slum :: Module collectClasses
[hide private]
[frames] | no frames]

Module collectClasses

source code

Classes [hide private]
  collectSlumClasses
low level class (shouldn't be directly used - refer to high level functions/classes) class responsible for deal with slum files and classes initializing a new class object will trigger the search of *.slum files in the local search path and online repositories.
Functions [hide private]
 
all()
high level function return all classes found on disk/online, that suscessfully passed the runtime/syntax error check.
source code
 
refresh()
high level function force a refresh of all templates from disk/online
source code
 
init()
high level function loads all templates from disk/online
source code
 
path(name)
high level function returns a updated path for a given template name.
source code
 
md5(name)
high level function returns a updated path for a given template name.
source code
 
template(name)
high level function returns a class obj for the givem template name.
source code
 
_test(classe)
low level class (shouldn't be directly used - refer to high level functions/classes) test methods in a template for runtime/syntax errors.
source code
 
_readSlumFile(path)
low level class (shouldn't be directly used - refer to high level functions/classes) reads a template from a file and returns it as a list (one line per record)
source code
 
evalSlumClass(code, classeName)
low level class (shouldn't be directly used - refer to high level functions/classes) execute "code" string, and returns the class object for "classeName"
source code
 
getMD5(code)
low level class (shouldn't be directly used - refer to high level functions/classes) calculates md5 for the given code
source code
 
checkMD5(md5data, file)
low level class (shouldn't be directly used - refer to high level functions/classes) check if the md5 matchs the md5 of the source file.
source code
Variables [hide private]
  defaultSearchPath = 'SLUM_SEARCH_PATH'
  defaultOnlineRepositorie = 'http://slum.hradec.com/repositorie'
  __package__ = 'slum'
  __warningregistry__ = {('the md5 module is deprecated; use has...
  localClasses = {}
  onlineClasses = {}
  onlineRepositoriesCache = 'http://slum.hradec.com/repositorie'
  searchPathCache = 'SLUM_SEARCH_PATH'
Function Details [hide private]

template(name)

source code 

high level function returns a class obj for the givem template name. The returned object will be the class defined in the template, properly evaluated for runtime/syntax errors.

_test(classe)

source code 

low level class (shouldn't be directly used - refer to high level functions/classes)
test methods in a template for runtime/syntax errors.

todo:   only delight() method being test. Need to implement a
                loop that tests all methods in the given class.


Variables Details [hide private]

__warningregistry__

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