{ "info": { "author": "Ethan Jucovy", "author_email": "ejucovy@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "Genshi processor for wiki pages\n===============================\n\nDescription\n-----------\n\nThe GenshiMacro allows you to write and render Genshi templates directly\nin wiki pages with a new ``Genshi`` processor.\n\nYour templates will have access to the request as ``req``, which can be\nuseful for tasks like URL generation, rendering form tokens for POST\nrequests, and checking for a logged-in user.\n\nNote: no security considerations whatsoever went into the making of\nthis plugin. It might be a terrible idea. Trac core dev Remy Blank\nsaid::\n\n > Genshi templates allow executing arbitrary Python code. So you basically\n > give users who can insert the macro anywhere (wiki page, ticket comment,\n > etc) permission to act as the user running Trac, including running run\n > any shell command.\n >\n {{{#!Genshi\n
${open('/etc/apache2/htpasswd').read()}
\n }}}\n \n {{{#!Genshi\n \n }}}\n >\n > So my advice is, only enable this macro on sites where you trust *all*\n > users who can edit *any* wiki text with the web server's account.\n\nConfiguration and Usage\n-----------------------\n\nTo use the plugin, install it in your Trac environment and enable its \ncomponents in ``trac.ini``::\n\n [components]\n genshimacro.* = enabled\n\nYou can then write Genshi templates directly in wiki pages like so::\n\n {{{\n #!Genshi\n
\n \n \n
\n \n \n \n
\n
\n \n To file a new ticket, you'll need to\n log in or\n create an account\n first.\n \n
\n
\n }}}", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://trac-hacks.org/wiki/GenshiMacro", "keywords": "trac plugin", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "trac-GenshiMacro", "package_url": "https://pypi.org/project/trac-GenshiMacro/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/trac-GenshiMacro/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://trac-hacks.org/wiki/GenshiMacro" }, "release_url": "https://pypi.org/project/trac-GenshiMacro/0.1/", "requires_dist": null, "requires_python": null, "summary": "Write Genshi templates in Trac wiki pages", "version": "0.1" }, "last_serial": 800839, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "6f378dcd71cb1d63604bab81d7af8254", "sha256": "b5801be0388b0bbc962379fe0d7c79e547d11311fb63b1a8a8dac394f0fd3c91" }, "downloads": -1, "filename": "trac-GenshiMacro-0.1.tar.gz", "has_sig": false, "md5_digest": "6f378dcd71cb1d63604bab81d7af8254", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2214, "upload_time": "2012-08-19T13:23:44", "url": "https://files.pythonhosted.org/packages/96/1d/430701de68c8edbeaf0b05540223c92ddc200d182a47f18015c950e4aac9/trac-GenshiMacro-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6f378dcd71cb1d63604bab81d7af8254", "sha256": "b5801be0388b0bbc962379fe0d7c79e547d11311fb63b1a8a8dac394f0fd3c91" }, "downloads": -1, "filename": "trac-GenshiMacro-0.1.tar.gz", "has_sig": false, "md5_digest": "6f378dcd71cb1d63604bab81d7af8254", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2214, "upload_time": "2012-08-19T13:23:44", "url": "https://files.pythonhosted.org/packages/96/1d/430701de68c8edbeaf0b05540223c92ddc200d182a47f18015c950e4aac9/trac-GenshiMacro-0.1.tar.gz" } ] }