Table of Contents

Module: resources ./src/peak/web/resources.py
Imported modules   
from __future__ import generators
from environ import clientHas, traverseItem
from errors import UnsupportedMethod, NotFound, NotAllowed
from interfaces import *
import os.path
from peak.api import *
from peak.naming.factories.openable import FileURL
from peak.util.imports import importString
from places import Place
import posixpath
from publish import TraversalPath
import sys
Functions   
bindResource
filenameAsProperty
findPackage
parseFileResource
  bindResource 
bindResource (
        path,
        pkg=None,
        metadata=None,
        **kw,
        )

Attribute binding to look up a resource

  filenameAsProperty 
filenameAsProperty ( name )

Convert a filename (base, no path) into a usable property name

  findPackage 
findPackage ( pkg )

Find containing package (module w/__path__) for module named pkg

  parseFileResource 
parseFileResource (
        parser,
        section,
        name,
        value,
        lineInfo,
        )

Handle a line from a [Files *.foo] section

Classes   

DefaultLayer

FSResource

FileResource

ImageResource

Resource

ResourceDirectory

ResourceProxy


Table of Contents

This document was automatically generated on Mon May 6 01:11:03 2024 by HappyDoc version 2.1