{ "info": { "author": "Ben Gillies", "author_email": "bengillies@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "tiddlywebplugins.urls\n=====================\n\nThis plugin lets you:\n\n* Map a custom URL to a default TiddlyWeb URL.\n* Map a custom URL to any other URL, for use as a URL shortener\n\nIt uses selector syntax for the custom URL (http://lukearno.com/projects/selector/)\n\nConfiguration\n-------------\n\nThis plugin is a \"system\" and a \"twanager\" plugin. Type ``twanager usage`` in the command line. Your ``tiddlywebconfig.py`` should look similar to this configuration::\n\n config = {\n 'system_plugins': ['tiddlywebwiki', 'tiddlywebplugins.urls' ],\n 'secret': 'XXXXXXXX',\n 'twanager_plugins': ['tiddlywebwiki', 'tiddlywebplugins.urls'],\n\n # the tiddlywebwiki.friendlywiki function doesn't work with urls plugin, \n\n # it needs to be disabled.\n 'tiddlywebwiki.friendlywiki': False,\n\n #'url_bag':'__urls',\n }\n\nNote: All urls are stored in a bag called \"urls\" by default. \n\nThe name of this bag can be changed by adding \"urls_bag\" to tiddlywebconfig.py, but all tiddlers in the bag must be \"url tiddlers\" of the described format. If this bag doesn't exists already, it will be created automatically.\n\nRewrite URLs\n============\n\nTo bring up a tiddlywiki at ``/default``, create a tiddler like::\n\n title:\n /default\n\n text:\n /recipes/default/tiddlers.wiki\n\nThis configuration creates a link eg: ``http://example.com/default`` that would otherwise be: ``http://example.com/recipes/default/tiddlers.wiki``, which is still valid. Be sure the recipe named \"default\" exists!\n\nFlexible Version\n----------------\n\nUsing the above format you'd need to create one tiddler per recipe. This isn't very \"user friendly\". So we need to be more flexibe, using \"placeholders\" to define the relation. Now we want to map every recipe_name, that the user may enter eg: ``/wiki/anyRecipeName``::\n\n title: \n /wiki/{recipe_name:segment}\n\n text:\n /recipes/{{ recipe_name }}/tiddlers.wiki\n\nA URL ``http://example.com/wiki/myWiki`` will load ``http://example.com/recipes/myWiki/tiddlers.wiki``\n\nLink to a Single Page Application\n---------------------------------\n\nIt is possible to directly link to a single tiddler within a recipe or bag::\n\n title: \n /spa/{spa_name:segment}\n\n text:\n /recipes/my_recipe/tiddlers/{{ spa_name }}\n or\n /bags/my_bag/tiddlers/{{ spa_name }}\n\nBe aware of the title ``/spa`` prefix. It is optional. Here it is used, to separate the function from the \"Rewrite Recipe URL\" configuration. \n\nRedirect URLs\n=============\n\nRedirect to internal URL\n------------------------\n\nIf you want to redirect instead of rewrite to an internal URL, you can add the tag \"redirect\"::\n\n title:\n /wiki/{user:segment}\n \n tags:\n redirect\n \n text:\n /recipes/{{ user }}/tiddlers.wiki\n\nBe aware, that adding a user will not automatically add a user recipe. So if you need one, you need to create it. \n\nRedirect to exernal URL\n-----------------------\n\nTo create a short link to google.com, you might do the following. There is no need for the \"redirect\" tag::\n\n title:\n /google\n \n text:\n http://www.google.com\n\n\nExperimental\n============\n\nIf we create a tiddlywiki with a bag eg: ``/bags/{{ bag_name }}/tiddlers.wiki`` it will be loaded as a TiddlyWiki representation, but it is not saveable:: \n\n title:\n /test/{bag_name:segment}\n\n text:\n /recipes/experiment/tiddlers.wiki\n\nThe ``experiment`` recipe needs to look similar to this one (in production you'll need access rights!)::\n\n desc: some description text ...\n policy: {\"read\": [], \"create\": [], \"manage\": [R:ADMIN], \"write\": [], \"owner\": null, \"delete\": []}\n\n /bags/system/tiddlers\n /bags/{{ bag_name }}/tiddlers\n\nWhere bag_name can be any variable name.\n\nNote that this does not support PUTs, you are unable to PUT to the recipe (unless you provide a default for bag_name). This version needs a client side plugin to work with PUTs.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/tiddlywebplugins.urls", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "tiddlywebplugins.urls", "package_url": "https://pypi.org/project/tiddlywebplugins.urls/", "platform": "Posix; MacOS X; Windows", "project_url": "https://pypi.org/project/tiddlywebplugins.urls/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/tiddlywebplugins.urls" }, "release_url": "https://pypi.org/project/tiddlywebplugins.urls/0.6.1/", "requires_dist": null, "requires_python": null, "summary": "Map TiddlyWeb URLs to your own custom URLs", "version": "0.6.1" }, "last_serial": 800666, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "4e395623cb528e11dbb0635414c3346b", "sha256": "a67fafb8870e5ad4e03ed97b0feea2edfc111dd6046352aaed2818676a07d5c6" }, "downloads": -1, "filename": "tiddlywebplugins.urls-0.1.tar.gz", "has_sig": false, "md5_digest": "4e395623cb528e11dbb0635414c3346b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6127, "upload_time": "2009-12-17T18:19:15", "url": "https://files.pythonhosted.org/packages/2a/34/b5b1aabfda066b9d93e8bd4a1bd2de0ea78ff764515196b0e2c8673e0ce1/tiddlywebplugins.urls-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "993c717b951b23b0a631b485177bc966", "sha256": "28c66d8f82c487ad1bd9dc29bcaed08b7f883b130ff8f43631214accffcc8867" }, "downloads": -1, "filename": "tiddlywebplugins.urls-0.2.tar.gz", "has_sig": false, "md5_digest": "993c717b951b23b0a631b485177bc966", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6211, "upload_time": "2009-12-21T13:39:45", "url": "https://files.pythonhosted.org/packages/3d/f3/0558020a7abfee24547e6fe81a0fb4f4fe3013a817bdda71b96b19b1d847/tiddlywebplugins.urls-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "4ef5430d0dc5950abbf3dc7526550c3e", "sha256": "51fa75b5ccbe86a170723250929facd4440674ee0753db7bcc0923f2dd678d25" }, "downloads": -1, "filename": "tiddlywebplugins.urls-0.3.tar.gz", "has_sig": false, "md5_digest": "4ef5430d0dc5950abbf3dc7526550c3e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6204, "upload_time": "2010-01-04T16:45:44", "url": "https://files.pythonhosted.org/packages/3b/8b/596337cba1b5288156c3d016e35473e05bd598accc27135829f5658174cb/tiddlywebplugins.urls-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "9464dc450fc901defec7567ffb9d4ddf", "sha256": "1b4d3e094f42aec21480629a9e60efc869a97e5bdc4c50d74c70291cd5024b68" }, "downloads": -1, "filename": "tiddlywebplugins.urls-0.4.tar.gz", "has_sig": false, "md5_digest": "9464dc450fc901defec7567ffb9d4ddf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6193, "upload_time": "2010-01-19T16:16:34", "url": "https://files.pythonhosted.org/packages/d0/dd/42e7a457ad4f608ed440cca6dccb6f631f528d317cee39987796d1ee7844/tiddlywebplugins.urls-0.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "5d6f3e84aa4bde96eeb4722957a47ba9", "sha256": "640832d9a7449950ff8023b2384abb091e1a161f3cde192fc7542eedd984f5ae" }, "downloads": -1, "filename": "tiddlywebplugins.urls-0.5.tar.gz", "has_sig": false, "md5_digest": "5d6f3e84aa4bde96eeb4722957a47ba9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14774, "upload_time": "2010-05-07T18:40:51", "url": "https://files.pythonhosted.org/packages/e3/41/3a5240b35556c0c1da98a6da213574cd7a7627e3e0135d39e07de310cbee/tiddlywebplugins.urls-0.5.tar.gz" } ], "0.6": [ { "comment_text": "", "digests": { "md5": "5bd7fc86df21b8e632b6f3e497f9c51f", "sha256": "bc082d5110a2c85899591eacad3d875498d09b86bdc70bbd3f25af31a02bb243" }, "downloads": -1, "filename": "tiddlywebplugins.urls-0.6.tar.gz", "has_sig": false, "md5_digest": "5bd7fc86df21b8e632b6f3e497f9c51f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13534, "upload_time": "2010-10-26T17:14:28", "url": "https://files.pythonhosted.org/packages/9b/bd/22fa6a41b9b6699b8900501f8bb54cfa70ff51bafee1e478fdb184f682c4/tiddlywebplugins.urls-0.6.tar.gz" } ], "0.6.1": [ { "comment_text": "", "digests": { "md5": "8873d04744a5096728ceb0ee203f896e", "sha256": "ce1ea900411404cc02d0bea21030a0b50458fa7db62c5c0b306646eb3ede113d" }, "downloads": -1, "filename": "tiddlywebplugins.urls-0.6.1.tar.gz", "has_sig": false, "md5_digest": "8873d04744a5096728ceb0ee203f896e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12103, "upload_time": "2013-04-05T14:42:21", "url": "https://files.pythonhosted.org/packages/a7/78/3531edd10e7ef6861e28fa9a5df71823a892a5ef5799f80827c9ddc538b6/tiddlywebplugins.urls-0.6.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8873d04744a5096728ceb0ee203f896e", "sha256": "ce1ea900411404cc02d0bea21030a0b50458fa7db62c5c0b306646eb3ede113d" }, "downloads": -1, "filename": "tiddlywebplugins.urls-0.6.1.tar.gz", "has_sig": false, "md5_digest": "8873d04744a5096728ceb0ee203f896e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12103, "upload_time": "2013-04-05T14:42:21", "url": "https://files.pythonhosted.org/packages/a7/78/3531edd10e7ef6861e28fa9a5df71823a892a5ef5799f80827c9ddc538b6/tiddlywebplugins.urls-0.6.1.tar.gz" } ] }