{
"info": {
"author": "Zope Corporation and Contributors",
"author_email": "zope3-dev@zope.org",
"bugtrack_url": null,
"classifiers": [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Zope3",
"Intended Audience :: Developers",
"License :: OSI Approved :: Zope Public License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Internet :: WWW/HTTP"
],
"description": "This package provides an extension to the File and Image content components\nfor Zope 3, allowing the content to be localized.\n\n\nDetailed Dcoumentation\n----------------------\n\n\n==============\nI18nFile tests\n==============\n\nFirst, let's create an I18nFile instance:\n\n >>> print http(r\"\"\"\n ... POST /@@contents.html HTTP/1.1\n ... Authorization: Basic mgr:mgrpw\n ... \"\"\", form={\"type_name\": \"BrowserAdd__zope.app.i18nfile.i18nfile.I18nFile\",\n ... \"new_value\": \"i18nfile\"})\n HTTP/1.1 303 See Other\n ...\n\nThen add some sample data for default (en) language:\n\n >>> print http(r\"\"\"\n ... POST /i18nfile/edit.html HTTP/1.1\n ... Authorization: Basic mgr:mgrpw\n ... \"\"\", form={\"contentType\": \"text/plain\",\n ... \"defaultLanguage\": \"en\",\n ... \"language\": \"en\",\n ... \"newLanguage\": \"\",\n ... \"data\": \"English\",\n ... \"edit\": \"Save\"})\n HTTP/1.1 303 See Other\n ...\n\nOk, now we can view the data in the edit form:\n\n >>> print http(r\"\"\"\n ... GET /i18nfile/editForm.html?language=en HTTP/1.1\n ... Authorization: Basic mgr:mgrpw\n ... \"\"\")\n HTTP/1.1 200 OK\n ...\n \n ...\n\nand as file content:\n\n >>> print http(r\"\"\"\n ... GET /i18nfile/index.html HTTP/1.1\n ... Authorization: Basic mgr:mgrpw\n ... \"\"\")\n HTTP/1.1 200 OK\n ...\n English\n\nLet's add new (russian) language:\n\n >>> print http(r\"\"\"\n ... POST /i18nfile/edit.html HTTP/1.1\n ... Authorization: Basic mgr:mgrpw\n ... \"\"\", form={\"contentType\": \"text/plain\",\n ... \"defaultLanguage\": \"en\",\n ... \"language\": \"en\",\n ... \"addLanguage\": \"Add new language\",\n ... \"newLanguage\": \"ru\",\n ... \"data\": \"English\"})\n HTTP/1.1 303 See Other\n ...\n\nand add some sample data for russian (ru) language:\n\n >>> print http(r\"\"\"\n ... POST /i18nfile/edit.html HTTP/1.1\n ... Authorization: Basic mgr:mgrpw\n ... \"\"\", form={\"contentType\": \"text/plain\",\n ... \"defaultLanguage\": \"en\",\n ... \"language\": \"ru\",\n ... \"newLanguage\": \"\",\n ... \"data\": \"Russian\",\n ... \"edit\": \"Save\"})\n HTTP/1.1 303 See Other\n ...\n\nThen we can view sample data for russain language in the edit form:\n\n >>> print http(r\"\"\"\n ... GET /i18nfile/editForm.html?language=ru HTTP/1.1\n ... Authorization: Basic mgr:mgrpw\n ... \"\"\")\n HTTP/1.1 200 OK\n ...\n \n ...\n\nand if our preferred language is russian as file content:\n\n >>> print http(r\"\"\"\n ... GET /i18nfile/index.html HTTP/1.1\n ... Authorization: Basic mgr:mgrpw\n ... Accept-Language: ru,en\n ... \"\"\")\n HTTP/1.1 200 OK\n ...\n Russian\n\n\n===============\nI18nImage tests\n===============\n\nFirst, let's create an I18nImage instance:\n\n >>> print http(r\"\"\"\n ... POST /@@contents.html HTTP/1.1\n ... Authorization: Basic mgr:mgrpw\n ... \"\"\", form={\n ... \"type_name\": \"BrowserAdd__zope.app.i18nfile.i18nimage.I18nImage\",\n ... \"new_value\": \"i18nimage\"})\n HTTP/1.1 303 See Other\n ...\n\nThen add some sample image data for default (en) language:\n\n >>> print http(r\"\"\"\n ... POST /i18nimage/uploadAction.html HTTP/1.1\n ... Authorization: Basic mgr:mgrpw\n ... \"\"\", form={\"contentType\": \"image/gif\",\n ... \"defaultLanguage\": \"en\",\n ... \"language\": \"en\",\n ... \"newLanguage\": \"\",\n ... \"data\": 'GIF89aENEN',\n ... \"edit\": \"Save\"})\n HTTP/1.1 303 See Other\n ...\n\nOk, now we can view the image size in the edit form:\n\n >>> print http(r\"\"\"\n ... GET /i18nimage/upload.html?language=en HTTP/1.1\n ... Authorization: Basic mgr:mgrpw\n ... \"\"\")\n HTTP/1.1 200 OK\n ...\n ...>1 KB 20037x20037>> print http(r\"\"\"\n ... GET /i18nimage/ HTTP/1.1\n ... Authorization: Basic mgr:mgrpw\n ... \"\"\")\n HTTP/1.1 200 OK\n Content-Length: 10\n Content-Type: image/gif\n \n GIF89aENEN\n\nLet's add new (russian) language:\n\n >>> print http(r\"\"\"\n ... POST /i18nimage/uploadAction.html HTTP/1.1\n ... Authorization: Basic mgr:mgrpw\n ... \"\"\", form={\"contentType\": \"image/gif\",\n ... \"defaultLanguage\": \"en\",\n ... \"language\": \"en\",\n ... \"addLanguage\": \"Add new language\",\n ... \"newLanguage\": \"ru\",\n ... \"data\": \"\"})\n HTTP/1.1 303 See Other\n ...\n\nand add some sample image data for russian (ru) language:\n\n >>> print http(r\"\"\"\n ... POST /i18nimage/uploadAction.html HTTP/1.1\n ... Authorization: Basic mgr:mgrpw\n ... \"\"\", form={\"contentType\": \"image/gif\",\n ... \"defaultLanguage\": \"en\",\n ... \"language\": \"ru\",\n ... \"newLanguage\": \"\",\n ... \"data\": \"GIF89aRURU\",\n ... \"edit\": \"Save\"})\n HTTP/1.1 303 See Other\n ...\n\nThen we can view the size of sample image for russain language in\nthe edit form:\n\n >>> print http(r\"\"\"\n ... GET /i18nimage/upload.html?language=ru HTTP/1.1\n ... Authorization: Basic mgr:mgrpw\n ... \"\"\")\n HTTP/1.1 200 OK\n ...\n ...>1 KB 21842x21842>> print http(r\"\"\"\n ... GET /i18nimage/ HTTP/1.1\n ... Authorization: Basic mgr:mgrpw\n ... Accept-Language: ru,en\n ... \"\"\")\n HTTP/1.1 200 OK\n Content-Length: 10\n Content-Type: image/gif\n \n GIF89aRURU\n\n\n=======\nCHANGES\n=======\n\n3.4.1 (2007-10-31)\n------------------\n\n- Resolve ``ZopeSecurityPolicy`` deprecation warning.\n\n\n3.4.0 (2007-10-24)\n------------------\n\n- Initial release independent of the main Zope tree.",
"description_content_type": null,
"docs_url": null,
"download_url": "UNKNOWN",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "http://cheeseshop.python.org/pypi/zope.app.i18nfile",
"keywords": "zope3 i18n l10n file image content",
"license": "ZPL 2.1",
"maintainer": null,
"maintainer_email": null,
"name": "zope.app.i18nfile",
"package_url": "https://pypi.org/project/zope.app.i18nfile/",
"platform": "UNKNOWN",
"project_url": "https://pypi.org/project/zope.app.i18nfile/",
"project_urls": {
"Download": "UNKNOWN",
"Homepage": "http://cheeseshop.python.org/pypi/zope.app.i18nfile"
},
"release_url": "https://pypi.org/project/zope.app.i18nfile/3.4.1/",
"requires_dist": null,
"requires_python": null,
"summary": "I18n File and Image -- Zope 3 Content Components",
"version": "3.4.1"
},
"last_serial": 805198,
"releases": {
"3.4.0": [
{
"comment_text": "",
"digests": {
"md5": "6580fb100c6cdd20381ff83ade55755b",
"sha256": "eedf412615035925be8fb0a4f6da23aefdc80820764e095f4cd9bee7256c1b69"
},
"downloads": -1,
"filename": "zope.app.i18nfile-3.4.0.tar.gz",
"has_sig": false,
"md5_digest": "6580fb100c6cdd20381ff83ade55755b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 11308,
"upload_time": "2007-10-24T20:24:57",
"url": "https://files.pythonhosted.org/packages/8c/ea/a50c442a4a4d5b6ee4a41938f52712fdba1c5a70ffbebad56a779f1213ff/zope.app.i18nfile-3.4.0.tar.gz"
}
],
"3.4.0a1": [
{
"comment_text": "",
"digests": {
"md5": "a067695e6e4c1d0b1bdd29bab3af22da",
"sha256": "1412e001a35e5e795ce470c022a8eff4e967cc382d71a554939edaed2e8376a5"
},
"downloads": -1,
"filename": "zope.app.i18nfile-3.4.0a1.tar.gz",
"has_sig": false,
"md5_digest": "a067695e6e4c1d0b1bdd29bab3af22da",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 9978,
"upload_time": "2007-04-23T13:31:23",
"url": "https://files.pythonhosted.org/packages/8c/92/aafc2b3b910c5399e2367b5566c411e41933d6349cc1d5bcfc2bc8519839/zope.app.i18nfile-3.4.0a1.tar.gz"
}
],
"3.4.1": [
{
"comment_text": "",
"digests": {
"md5": "295553b12f664ff88fcb3ff87d840a5b",
"sha256": "92b29c423f479614f149002c0b2aa19ea586242f9d0603175ef37d50dc363ea9"
},
"downloads": -1,
"filename": "zope.app.i18nfile-3.4.1.tar.gz",
"has_sig": false,
"md5_digest": "295553b12f664ff88fcb3ff87d840a5b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 11375,
"upload_time": "2007-10-31T18:31:28",
"url": "https://files.pythonhosted.org/packages/dc/f6/2b8aa1bf333fd3823d112a91c1f55e956342baa9d6e6b05650e8f2d44e81/zope.app.i18nfile-3.4.1.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "295553b12f664ff88fcb3ff87d840a5b",
"sha256": "92b29c423f479614f149002c0b2aa19ea586242f9d0603175ef37d50dc363ea9"
},
"downloads": -1,
"filename": "zope.app.i18nfile-3.4.1.tar.gz",
"has_sig": false,
"md5_digest": "295553b12f664ff88fcb3ff87d840a5b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 11375,
"upload_time": "2007-10-31T18:31:28",
"url": "https://files.pythonhosted.org/packages/dc/f6/2b8aa1bf333fd3823d112a91c1f55e956342baa9d6e6b05650e8f2d44e81/zope.app.i18nfile-3.4.1.tar.gz"
}
]
}