{ "info": { "author": "xacce", "author_email": "UNKNOWN", "bugtrack_url": null, "classifiers": [], "description": "Demo https://djnotty.herokuapp.com/\n===================================\n\nDemo admin https://djnotty.herokuapp.com/admin Cred: guest password\n===================================================================\n\nInstallation\n============\n\n Put ``djnotty`` to ``settings.py`` Put\n ``url(r'^djnotty/', include('djnotty.urls', namespace='djnotty')),``\n to ``urls.py``\n\nOverride default ``admin/base_site.html`` or copy this code to custom\nadmin template {% load static %} {% block extrahead %}\n\n.. raw:: html\n\n \n \n \n \n \n\n{{ block.super }} {% endblock %}\n\nIf you want use djnotty on non admin pages:\n\n::\n\n \n \n \n \n\nHow to create messages\n======================\n\nCreate notification for user\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n::\n\n from djnotty import noty_builder\n from djnotty.models import Message\n from django.contrib.auth.models import Group\n\n Message.objects.create_for_object(%TARGET_OBJECT%, users=[%USER_OBJECT%], builders=[noty_builder.Text('Specific for user'),noty_builder.Close()])\n\nCreate notification for group and user\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n::\n\n from djnotty import noty_builder\n from djnotty.models import Message\n\n Message.objects.create_for_object(%TARGET_OBJECT%, groups=[Group.objects.get(name='superadmin')],users=[%USER_OBJECT%], builders=[noty_builder.Text('Specific for user and group'),noty_builder.Close()])\n\nCreate globally message:\n~~~~~~~~~~~~~~~~~~~~~~~~\n\n::\n\n from djnotty import noty_builder\n from djnotty.models import Message\n Message.objects.create_globally(builders=[noty_builder.Text('Specific for user and group'),noty_builder.Close()])\n\nMark as read\n============\n\n::\n\n from djnotty.models import Message\n Message.objects.create_globally(builders=[noty_builder.Text('Specific for user and group'),noty_builder.Close()])\n Message.objects.mark_as_viewed_for_object(%TARGET_OBJECT%,%USER_MODEL%)\n\nnoty\\_builder\n~~~~~~~~~~~~~\n\nText:\n~~~~~\n\n::\n\n Put text to popup window\n\nClose:\n~~~~~~\n\n::\n\n Notification mark as read for user after click.\n\n Close(url='redect me after click')\n\nLinked:\n~~~~~~~\n\n::\n\n Redirect to url after click on notification\n\nWhat is %TARGET\\_OBJECT%\n~~~~~~~~~~~~~~~~~~~~~~~~\n\nDjnotty using django\\_content\\_types framework for identify records.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://git.dvebukvy.ru:9852/xacce/djnotty", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "djnotty", "package_url": "https://pypi.org/project/djnotty/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/djnotty/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://git.dvebukvy.ru:9852/xacce/djnotty" }, "release_url": "https://pypi.org/project/djnotty/0.0.5/", "requires_dist": null, "requires_python": null, "summary": "Create popup notifications.", "version": "0.0.5" }, "last_serial": 1934250, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "3eaacd80723afffc3d95acfe8d0589e6", "sha256": "f0289650a4bd51497d19315aca9eeb90ee891844b83a6fc34dba403dd88ab549" }, "downloads": -1, "filename": "djnotty-0.0.1.tar.gz", "has_sig": false, "md5_digest": "3eaacd80723afffc3d95acfe8d0589e6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 27927, "upload_time": "2016-02-01T16:02:46", "url": "https://files.pythonhosted.org/packages/a9/2f/360dc7facfd360a6cd1bf8aa65973e34ac436e7e4e77b96a358c40f34b15/djnotty-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "d206eb765fed1395b21339de8e0ead4b", "sha256": "9e6ccf5a84d230d082c8ab5ddee27a659d4719fb2128b5eef5644938867a5a4b" }, "downloads": -1, "filename": "djnotty-0.0.2.tar.gz", "has_sig": false, "md5_digest": "d206eb765fed1395b21339de8e0ead4b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28114, "upload_time": "2016-02-01T17:10:53", "url": "https://files.pythonhosted.org/packages/35/77/62e52008776c651e75725f156e3751c273736d0b0c347f777bf3cee85a5d/djnotty-0.0.2.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "c91c344c19471b2ef33f9e0c7bfd6253", "sha256": "409ed7039685d026b36843aa6ed5fb00fef22c12a50577338dde2dec2b974357" }, "downloads": -1, "filename": "djnotty-0.0.4.tar.gz", "has_sig": false, "md5_digest": "c91c344c19471b2ef33f9e0c7bfd6253", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28146, "upload_time": "2016-02-01T18:08:40", "url": "https://files.pythonhosted.org/packages/99/2c/c0ed86dc189ae5480338531bba6c55309f7459ea05223eefb3e4d77987d2/djnotty-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "ffebf50a89830b99238df3009d099411", "sha256": "c304673cd420611f9bea6061761c384e3c08971c187b63451920be02b4e2a818" }, "downloads": -1, "filename": "djnotty-0.0.5.tar.gz", "has_sig": false, "md5_digest": "ffebf50a89830b99238df3009d099411", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28156, "upload_time": "2016-02-01T18:41:29", "url": "https://files.pythonhosted.org/packages/e1/0e/76c0c49e102fa3935d4559200ca6846a3c42d632e452fc62494968f8ae21/djnotty-0.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ffebf50a89830b99238df3009d099411", "sha256": "c304673cd420611f9bea6061761c384e3c08971c187b63451920be02b4e2a818" }, "downloads": -1, "filename": "djnotty-0.0.5.tar.gz", "has_sig": false, "md5_digest": "ffebf50a89830b99238df3009d099411", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28156, "upload_time": "2016-02-01T18:41:29", "url": "https://files.pythonhosted.org/packages/e1/0e/76c0c49e102fa3935d4559200ca6846a3c42d632e452fc62494968f8ae21/djnotty-0.0.5.tar.gz" } ] }