{ "info": { "author": "Mirko Darino, Alessandro Molina, Vincenzo Castiglia, Marco Bosio", "author_email": "mirko.darino@axant.it, alessandro.molina@axant.it, vincenzo.castiglia@axant.it, marco.bosio@axant.it", "bugtrack_url": null, "classifiers": [], "description": "About userprofile\n-----------------\n\nuserprofile is a Pluggable application for TurboGears2 which provides a basic user\nprofile page with forms to allow users to edit their own profile or change their password.\n\nThis is a fork born to provide validation to the existing pluggable, but introduces\nbreaking changes. the password is now on the same form, you can now set the avatar,\nyour users must confirm their email if they change it.\n\n\nInstalling\n----------\n\nuserprofile can be installed both from pypi or from github::\n\n pip install tgapp-userprofile-validated\n\nshould just work for most of the users\n\nPlugging userprofile\n--------------------\n\nIn your application *config/app_cfg.py* import **plug**::\n\n from tgext.pluggable import plug\n\nThen at the *end of the file* call plug with userprofile::\n\n plug(base_config, 'userprofile')\n\nYou will be able to access your profile at\n*http://localhost:8080/userprofile*.\n\nOptions\n-------\n\n``tgapp-userprofile`` supports some options that can be passed\nto the ``plug`` method to customize various aspects of the application:\n\n- ``user_partial`` - Path of a partial to display into the user profile page.\n Useful to add more data to the profile page without changing its template\n- ``custom_css`` - Path to a CSS file which will be used for the profile pages in place of the default one.\n\nUser Properties\n---------------\n\n``tgapp-userprofile`` looks for various properties into the User class instances\nto drive its default behavior, the most important property is the ``profile_data``\nproperty which can provide a dictionary with the user information to display\non the profile page, but other properties are available to tune the behavior:\n\nprofile_data\n~~~~~~~~~~~~\nA dictionary of entries to display into the profile page,\nthe default dictionary is built with::\n\n {'display_name':('Display Name', user.display_name),\n 'email_address':('Email Address', user.email_address)}\n\neach key of the dictionary if the id of the field, in most\ncases it will have the same name of the user property where\nthat field is stored. Values of the dictionary are tuples\nwhere the first value is the name of the field which will\nbe displayed and the second one is the real value of the field.\n\nIf an ``avatar`` key is available that is expected to provide\nthe url of the avatar image of the user. If it is not available\nuserprofile will look for a ``tgapp-fbauth`` facebook avatar or will\nfalleback to the default avatar.\n\n``display_name`` key will be used as the profile page title.\n\nprofile_form\n~~~~~~~~~~~~\n\nA ToscaWidgets or tw2 form that can be used to edit the user profile.\nBy default an autogenerated one with a text field for each entry in\n``profile_data`` is provided.\n\nsave_profile\n~~~~~~~~~~~~\n\nA callable which will receive the user data submitted by the edit\nform and is expected to update the user accordingly.\n\nBy default values will be stored as they are into the user field\nwith the same id provided into ``profile_data``.\n\nBootstrap Layout\n----------------\nIf you want use bootstrap for beautify style of `UserForm` or `ChangePasswordForm` form layout, in your app_cfg::\n\n def replace_profile_form_layout():\n from axf.bootstrap import BootstrapFormLayout\n from userprofile.lib import UserForm\n from userprofile.lib import ChangePasswordForm\n\n UserForm.child = BootstrapFormLayout(children=UserForm.child.children)\n UserForm.submit.css_class = 'btn-primary form-control'\n\n ChangePasswordForm.child = BootstrapFormLayout(children=ChangePasswordForm.child.children)\n ChangePasswordForm.submit.css_class = 'btn-primary form-control'\n\n milestones.config_ready.register(replace_profile_form_layout)\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/axant/tgapp-userprofile-validated", "keywords": "turbogears2.application", "license": "", "maintainer": "", "maintainer_email": "", "name": "tgapp-userprofile-validated", "package_url": "https://pypi.org/project/tgapp-userprofile-validated/", "platform": "", "project_url": "https://pypi.org/project/tgapp-userprofile-validated/", "project_urls": { "Homepage": "https://github.com/axant/tgapp-userprofile-validated" }, "release_url": "https://pypi.org/project/tgapp-userprofile-validated/0.0.4/", "requires_dist": null, "requires_python": "", "summary": "Pluggable application for TurboGears2 which provides a basic user profile page with forms to allow users to edit their own profile or change their password", "version": "0.0.4" }, "last_serial": 3557881, "releases": { "0.0.0": [ { "comment_text": "", "digests": { "md5": "da23dc3d41286c8d57a9ac40b9f659e8", "sha256": "76754fdb29879b8b52de987747d9f1634ca74aa76ebf6afc9c1ce39b4baccc93" }, "downloads": -1, "filename": "tgapp-userprofile-validated-0.0.0.tar.gz", "has_sig": false, "md5_digest": "da23dc3d41286c8d57a9ac40b9f659e8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16448, "upload_time": "2018-01-31T20:33:16", "url": "https://files.pythonhosted.org/packages/af/1d/c5bc12e7532197cd9ad65fafbc697bbb293355a932dcf46a0f6d30e7a55d/tgapp-userprofile-validated-0.0.0.tar.gz" } ], "0.0.1": [ { "comment_text": "", "digests": { "md5": "1e9e9bbe82c0f36194ffedcc006af5d0", "sha256": "a89d1dd99805a47fa71adad7fc8ceea9ff0858ff48cea848bc3bf43d3c5a225e" }, "downloads": -1, "filename": "tgapp-userprofile-validated-0.0.1.tar.gz", "has_sig": false, "md5_digest": "1e9e9bbe82c0f36194ffedcc006af5d0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16487, "upload_time": "2018-02-01T18:40:59", "url": "https://files.pythonhosted.org/packages/73/c6/6b8472e28d8af2d78e5554b8187459e755329c4ed7ac7a54a89bb165e417/tgapp-userprofile-validated-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "db868a58346d86f90c2aa533e6420427", "sha256": "afe6362ea0db2dd2a7c24ceeaee87bb134b83660003d4ccf192ef4919721b942" }, "downloads": -1, "filename": "tgapp-userprofile-validated-0.0.2.tar.gz", "has_sig": false, "md5_digest": "db868a58346d86f90c2aa533e6420427", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16406, "upload_time": "2018-02-05T17:04:08", "url": "https://files.pythonhosted.org/packages/db/71/ea892bb2ec17c79e2f681c288cd8f30908ef8e7f1a82f48a2d347250237f/tgapp-userprofile-validated-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "643682aa9b668b5227556f1236eb9a11", "sha256": "9672d2d9814deb6dd01acb9ae49c685c501f4f26a6da125dfb1fc6204ddfea80" }, "downloads": -1, "filename": "tgapp-userprofile-validated-0.0.3.tar.gz", "has_sig": false, "md5_digest": "643682aa9b668b5227556f1236eb9a11", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16586, "upload_time": "2018-02-06T14:44:10", "url": "https://files.pythonhosted.org/packages/2f/aa/9f1f8f3ce6fdb1d21633e655c01ad7ea27cbce7d598591a73bcb9e661989/tgapp-userprofile-validated-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "b62ff7cf7983ecb24af0269eea3463e6", "sha256": "6873cc5522522ee93d9ab51d888b82e05ca9f59872fe07b683453e537542a6cb" }, "downloads": -1, "filename": "tgapp-userprofile-validated-0.0.4.tar.gz", "has_sig": false, "md5_digest": "b62ff7cf7983ecb24af0269eea3463e6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16574, "upload_time": "2018-02-06T17:11:16", "url": "https://files.pythonhosted.org/packages/58/a0/ce68593a4cc71c55cea54a0a3814672b9b4d959eaf40689499674322a04c/tgapp-userprofile-validated-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b62ff7cf7983ecb24af0269eea3463e6", "sha256": "6873cc5522522ee93d9ab51d888b82e05ca9f59872fe07b683453e537542a6cb" }, "downloads": -1, "filename": "tgapp-userprofile-validated-0.0.4.tar.gz", "has_sig": false, "md5_digest": "b62ff7cf7983ecb24af0269eea3463e6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16574, "upload_time": "2018-02-06T17:11:16", "url": "https://files.pythonhosted.org/packages/58/a0/ce68593a4cc71c55cea54a0a3814672b9b4d959eaf40689499674322a04c/tgapp-userprofile-validated-0.0.4.tar.gz" } ] }