Introduction
This package provides an light-weight API for vudo packages which provide user-changeable skins. These packages may advertise their skin directory using setuptools entry points.
Additionally, this package provides a script to manage the skin directory of a vudo project in a convenient way.
Usage
Developers, which want to make vudo packages which provide skins, need to include their skin resources in the EGG, and include a entry point.
Skin Resources
Depending whether or not a SCM system supported by setuptools (currently SVN) is used or not, developers may need to include their resources manually using package_data:
setup(name='vudo.compositepage',
...
packages=find_packages('src'),
package_dir = {'': 'src'},
package_data = {
"vudo.compositepage": [
"skin/*.zcml",
"skin/compositepage/*.zcml",
"skin/compositepage/ajax/*.pt",
"skin/region/*.pt",
]
},
...
)
Entry Point
Additionally to include the skin resources in the package egg, the skin needs to be advertized using a entry point:
setup(name='vudo.compositepage',
...
entry_points="""
# -*- Entry points: -*-
[vudo.skin]
compositepage=vudo.compositepage:provide_skin [skin]
""",
extras_require={
"skin": "vudo.skinsetup",
},
...
)
The provide_skin mentioned above needs to call the vudo.skinsetup package API to return the skin information:
def provide_skin():
import os
from vudo.skinsetup import provide_skin
return provide_skin(
package="vudo.compositepage",
name="compositepage",
skin_path="skin")
the parameters to the provide_skin method are as follows:
- package
The package name which provides the skin
- name
The skin name
- skin_path
The path to the skin within the package. Note, this is usually a setuptools resource path, and thus always “/” separated. Do not use os.path.
Links
Change history
Changelog
0.1 (2008-12-08)
Script entry point for vudoskin script. [seletz]
Very basic API for vudo packages which want to provide a skin [seletz]
Initial package setup. [seletz]
Contributors
Stefan Eletzhofer, Author
Download
Metadata
Release files for vudo.skinsetup 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vudo.skinsetup-0.1.zip | 12.6 kB | Without provenance | Details for vudo.skinsetup-0.1.zip |
Release files / vudo.skinsetup-0.1.zip
| Download URL | vudo.skinsetup-0.1.zip |
|---|---|
| Size | 12.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
81018890dd461013b2e862751c36d7a6b11a12438dd95d3d0bf979c024decb3b
|
|
BLAKE2b-256 checksum How to use checksums |
435156876832c78b30155131ee53d208f6f0cdfcf4ac6fcf01ef7de907f684d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for vudo.skinsetup 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.