{ "info": { "author": "Stefan Eletzhofer", "author_email": "stefan.eletzhofer@inquant.de", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: WSGI", "Topic :: Internet :: WWW/HTTP :: WSGI :: Application", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Introduction\n============\n\n\nThis package provides an light-weight API for ``vudo`` packages which provide\nuser-changeable skins. These packages may advertise their skin directory using\n``setuptools entry points``.\n\nAdditionally, this package provides a script to manage the skin directory of a\n``vudo`` project in a convenient way.\n\nUsage\n=====\n\nDevelopers, which want to make ``vudo`` packages which provide skins, need to\ninclude their skin resources in the EGG, and include a entry point.\n\nSkin Resources\n--------------\n\nDepending whether or not a SCM system supported by setuptools (currently SVN)\nis used or not, developers may need to include their resources manually using\n``package_data``::\n\n setup(name='vudo.compositepage',\n ...\n packages=find_packages('src'),\n package_dir = {'': 'src'},\n package_data = {\n \"vudo.compositepage\": [\n \"skin/*.zcml\",\n \"skin/compositepage/*.zcml\",\n \"skin/compositepage/ajax/*.pt\",\n \"skin/region/*.pt\",\n ]\n },\n ...\n )\n\nEntry Point\n-----------\n\nAdditionally to include the skin resources in the package egg, the skin needs\nto be advertized using a ``entry point``::\n\n setup(name='vudo.compositepage',\n ...\n entry_points=\"\"\"\n # -*- Entry points: -*-\n [vudo.skin]\n compositepage=vudo.compositepage:provide_skin [skin]\n \"\"\",\n extras_require={\n \"skin\": \"vudo.skinsetup\",\n },\n ...\n )\n\nThe ``provide_skin`` mentioned above needs to call the ``vudo.skinsetup``\npackage API to return the skin information::\n\n def provide_skin():\n import os\n from vudo.skinsetup import provide_skin\n return provide_skin(\n package=\"vudo.compositepage\",\n name=\"compositepage\",\n skin_path=\"skin\")\n\nthe parameters to the ``provide_skin`` method are as follows:\n\npackage\n The package name which provides the skin\n\nname\n The skin name\n\nskin_path\n The ``path`` to the skin within the package. Note, this is usually a\n ``setuptools`` resource path, and thus always \"/\" separated. Do not use\n ``os.path``.\n\nLinks\n=====\n\nPkg resources and Entry Points\n http://peak.telecommunity.com/DevCenter/PkgResources#entry-points\n http://peak.telecommunity.com/DevCenter/PkgResources#resourcemanager-api\n\nQuick tutorial\n http://wiki.pylonshq.com/display/pylonscookbook/Using+Entry+Points+to+Write+Plugins\n\n\nChange history\n==============\n\nChangelog\n=========\n\n0.1 (2008-12-08)\n----------------\n\n- Script entry point for ``vudoskin`` script. [seletz]\n\n- Very basic API for vudo packages which want to provide a skin [seletz]\n\n- Initial package setup. [seletz]\n\nContributors\n============\n\nStefan Eletzhofer, Author\n\nDownload\n========", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "git://github.com/reco/vudo.git", "keywords": "wsgi web bfg repoze vudo", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "vudo.skinsetup", "package_url": "https://pypi.org/project/vudo.skinsetup/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/vudo.skinsetup/", "project_urls": { "Download": "UNKNOWN", "Homepage": "git://github.com/reco/vudo.git" }, "release_url": "https://pypi.org/project/vudo.skinsetup/0.1/", "requires_dist": null, "requires_python": null, "summary": "Package which provides API and scripts to manage a skin directory of a VUDO app.", "version": "0.1" }, "last_serial": 801475, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "38de84e51b74456aa9cab768736c7728", "sha256": "81018890dd461013b2e862751c36d7a6b11a12438dd95d3d0bf979c024decb3b" }, "downloads": -1, "filename": "vudo.skinsetup-0.1.zip", "has_sig": false, "md5_digest": "38de84e51b74456aa9cab768736c7728", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12589, "upload_time": "2008-12-08T20:06:30", "url": "https://files.pythonhosted.org/packages/43/51/56876832c78b30155131ee53d208f6f0cdfcf4ac6fcf01ef7de907f684d7/vudo.skinsetup-0.1.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "38de84e51b74456aa9cab768736c7728", "sha256": "81018890dd461013b2e862751c36d7a6b11a12438dd95d3d0bf979c024decb3b" }, "downloads": -1, "filename": "vudo.skinsetup-0.1.zip", "has_sig": false, "md5_digest": "38de84e51b74456aa9cab768736c7728", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12589, "upload_time": "2008-12-08T20:06:30", "url": "https://files.pythonhosted.org/packages/43/51/56876832c78b30155131ee53d208f6f0cdfcf4ac6fcf01ef7de907f684d7/vudo.skinsetup-0.1.zip" } ] }