Back to index

plone3  3.1.7
Functions | Variables
MimetypesRegistry.base_zope Namespace Reference

Functions

def log
def implements
def getToolByName

Variables

 FB_REGISTRY = None
tuple logger = logging.getLogger('PortalTransforms')
tuple _www = os.path.join(os.path.dirname(__file__), 'www')
tuple skins_dir = os.path.join(os.path.dirname(__file__), 'skins')
list _marker = []
tuple __all__

Detailed Description

some common utilities

Function Documentation

def MimetypesRegistry.base_zope.getToolByName (   context,
  name,
  default = _marker 
)

Definition at line 39 of file base_zope.py.

00039 
00040 def getToolByName(context, name, default=_marker):
00041     global FB_REGISTRY
00042     tool = _getToolByName(context, name, default)
00043     if name == 'mimetypes_registry' and tool is default:
00044         if FB_REGISTRY is None:
00045             from Products.MimetypesRegistry.MimeTypesRegistry \
00046                  import MimeTypesRegistry
00047             FB_REGISTRY = MimeTypesRegistry()
00048         tool = FB_REGISTRY
00049     return tool

def MimetypesRegistry.base_zope.implements (   object,
  interface 
)

Definition at line 32 of file base_zope.py.

00032 
00033 def implements(object, interface):
00034     return interface.isImplementedBy(object)
00035 
# getToolByName
def MimetypesRegistry.base_zope.log (   msg,
  severity = logging.INFO,
  id = 'PortalTransforms' 
)

Definition at line 15 of file base_zope.py.

00015 
00016 def log(msg, severity=logging.INFO, id='PortalTransforms'):
00017     logger.log(severity, msg)
00018 
# directory where template for the ZMI are located

Variable Documentation

Initial value:
00001 ('Base', 'log', 'DictClass', 'ListClass', 'getToolByName', 'aq_base',
00002            'Interface', 'Attribute', 'implements', 'skins_dir', '_www',
00003            'BadRequest', )

Definition at line 52 of file base_zope.py.

Definition at line 37 of file base_zope.py.

tuple MimetypesRegistry.base_zope._www = os.path.join(os.path.dirname(__file__), 'www')

Definition at line 20 of file base_zope.py.

Definition at line 4 of file base_zope.py.

tuple MimetypesRegistry.base_zope.logger = logging.getLogger('PortalTransforms')

Definition at line 13 of file base_zope.py.

tuple MimetypesRegistry.base_zope.skins_dir = os.path.join(os.path.dirname(__file__), 'skins')

Definition at line 21 of file base_zope.py.