{ "info": { "author": "Victor Safronovich", "author_email": "vsafronovich@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "lfs-criterion-extra\n===================\n\nAdded more criterions to lfs based shop\n\nInstallation\n----------------\n\ninstallation is simple\n\n pip install lfs-criterion-extra\n\nor\n\n pip install git+https://github.com/suvit/lfs-criterion-extra\n\nAfter instalation of the package you should add\n**lfs_criterion_extra** to INSTALLED_APPS before **lfs** app.\nThis is because, this app overwrite lfs templates.\n\nAfter that you needed to add tables in db\n\n python manage.py syncdb\n\nThat`s all.\n\nUsage\n-------------------\n\n**lfs-criterion-extra** patch lfs criterions modules to support new criterions.\nAfter patching you may use several new criterions:\n\n* **OrderCountCriterion**\n checks closed order count of request.user\n* **GroupCriterion**\n checks request.user is in saved group(s)\n* **CategoryCriterion**\n checks product or products in cart are in saved categories\n* **ProductCriterion**\n checks product or products in cart are in saved list of products\n* **OrderCompositionCriterion**\n checks that in cart \n* **DiscountCriterion**\n checks that saved discounts are valid or unvalid\n* **OrderSummCriterion**\n checks closed order summ of prices\n* **ManufacturerCriterion**\n checks product`s manufacturer is in saved list of manufacturers\n* **TimeCriterion**\n checks now time to compare with saved time\n* **CartAmountCriterion**\n checks cart amount\n* **MaxWeightCriterion**\n chacks max weight of the products in cart\n* **ForSaleCriterion**\n checks product or products in cart are for_sale\n* **ManualDeliveryTimeCriterion**\n checks product or products in cart are with manual delivery time\n* **FullUserCriterion** (AdvancedUserCriterion)\n added ability to check that user is anonymous or not.\n* **ProfitCriterion** (not worked with base lfs, needed prices from supplier)\n checks product profit\n\nYou may choose new criterions from criterion`s tab\nof delivery and payment methods.\n\nAdded own criterions\n------------------------------\n\nYou may inherit **Criterion** or **NumberCriterion**\n\n from lfs_criterion_extra.models import Criterion, NumberCriterion\n\n class FooCriterion(NumberCriterion):\n foo = models.DecimalField('FOO')\n\n 'may be other model fields'\n\n value_attr = 'foo' # from that attribute get value to compare\n content_type = 'foo' # internal id of the criterion\n name = 'Foo' # displayable value\n\n def is_valid(self, request, product=None):\n how_many_foo = product.name.count('foo')\n return self.test_value(how_many_foo)\n\nthat`s all, your criterion is appeared in the criterion list.\n\nTODO\n------\n\n* move monkey.py to lfs.criterion.core (merge or move to lfs 0.8)\n* write tests", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/suvit/lfs-criterion-extra", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "lfs_criterion_extra", "package_url": "https://pypi.org/project/lfs_criterion_extra/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/lfs_criterion_extra/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/suvit/lfs-criterion-extra" }, "release_url": "https://pypi.org/project/lfs_criterion_extra/0.2.0/", "requires_dist": null, "requires_python": null, "summary": "Extra criterions for LFS", "version": "0.2.0" }, "last_serial": 794154, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "d88e607b798510f49f4462e68a1c314d", "sha256": "0853adcbc00f4899a2700d326584349fd1b49ef517cf006f862164feff250d0d" }, "downloads": -1, "filename": "lfs_criterion_extra-0.1.0.zip", "has_sig": false, "md5_digest": "d88e607b798510f49f4462e68a1c314d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14965, "upload_time": "2012-07-23T12:30:38", "url": "https://files.pythonhosted.org/packages/ce/dc/63682a48addd856bfb9e278000f367fd76fb6dbbbc41202daea66c81478c/lfs_criterion_extra-0.1.0.zip" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "29fb2cafea20fec668aed0e64df7725c", "sha256": "201a52224364ba6367a251ba44d36e06bb9536f80e63b9b720281728ab6621ed" }, "downloads": -1, "filename": "lfs_criterion_extra-0.1.1.zip", "has_sig": false, "md5_digest": "29fb2cafea20fec668aed0e64df7725c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14963, "upload_time": "2012-07-23T13:01:02", "url": "https://files.pythonhosted.org/packages/13/f2/b3a9bbad26c46408c3dc25cfe5bec290c8238e3c2be977efef091f86b112/lfs_criterion_extra-0.1.1.zip" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "01f5aa7eca6e531bfe29c2e1c2d29176", "sha256": "883137acf381dfd403dd97ccf5c19fcc84ada6fdcf61eb732610138a0d4e8012" }, "downloads": -1, "filename": "lfs_criterion_extra-0.1.2.zip", "has_sig": false, "md5_digest": "01f5aa7eca6e531bfe29c2e1c2d29176", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24813, "upload_time": "2012-07-24T14:00:55", "url": "https://files.pythonhosted.org/packages/e2/05/b9cd84dc7776d44e37e563b62bb8595ca75ba5eaa6483880361bea26e320/lfs_criterion_extra-0.1.2.zip" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "57d7adc69b8aba5e0eec3bd2fa9cf307", "sha256": "66948a6af3ba3a07f235a83b75b909f844744fc6d7a499bacb7d656b0aa502e9" }, "downloads": -1, "filename": "lfs_criterion_extra-0.1.3.zip", "has_sig": false, "md5_digest": "57d7adc69b8aba5e0eec3bd2fa9cf307", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24124, "upload_time": "2012-07-25T06:13:25", "url": "https://files.pythonhosted.org/packages/e5/2c/6c4fa3910b7e728afb5d4d4c9865f6087f15ca3c5b6669b06197406be70d/lfs_criterion_extra-0.1.3.zip" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "20d287a75be58a71e720baeadcf16b4f", "sha256": "f9207137d6bd368b64ff7367f90d100aa774f2c6c8414624dfa7a56e825fa9bc" }, "downloads": -1, "filename": "lfs_criterion_extra-0.1.4.zip", "has_sig": false, "md5_digest": "20d287a75be58a71e720baeadcf16b4f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24733, "upload_time": "2012-07-30T10:35:14", "url": "https://files.pythonhosted.org/packages/8e/44/5cf2f2fafe85c837ef70bdec2afb950d6ff037d9b978b3990167e063f39c/lfs_criterion_extra-0.1.4.zip" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "76c7cfc7a17ab1ab0cbd6ac853682538", "sha256": "32eb673e2daecc2d6d1b81b935c3a4dfa16957780de166c1801819e9613b4c83" }, "downloads": -1, "filename": "lfs_criterion_extra-0.1.5.zip", "has_sig": false, "md5_digest": "76c7cfc7a17ab1ab0cbd6ac853682538", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24816, "upload_time": "2012-07-30T15:14:04", "url": "https://files.pythonhosted.org/packages/8e/7a/a7f60b913da3849d825b054b2a045aa6665bf3f7caa35fc8473f1c6b4e6d/lfs_criterion_extra-0.1.5.zip" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "499bac2ce34d8332cb815539c2ff654f", "sha256": "da8f9af4f70a3e704166afbec5addcc316fe1c56d6c6c4b033496b5e205de1df" }, "downloads": -1, "filename": "lfs_criterion_extra-0.1.6.zip", "has_sig": false, "md5_digest": "499bac2ce34d8332cb815539c2ff654f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24771, "upload_time": "2012-07-31T08:41:08", "url": "https://files.pythonhosted.org/packages/51/1d/dc10d50cd5be270380713ea1d92fba7d20d1231e69d99f22691e7cef69f2/lfs_criterion_extra-0.1.6.zip" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "596f525fc3900a748937a3387fee5d5b", "sha256": "dd6ff98058654c621bdd653d46fd6309b7042f100c5a155626a0a56c3a75b9e9" }, "downloads": -1, "filename": "lfs_criterion_extra-0.1.7.zip", "has_sig": false, "md5_digest": "596f525fc3900a748937a3387fee5d5b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24776, "upload_time": "2012-07-31T12:03:35", "url": "https://files.pythonhosted.org/packages/3b/97/c28ed480c15240402550919528e47050d2b8a83eda5dc05a2ed7f599105f/lfs_criterion_extra-0.1.7.zip" } ], "0.1.8": [ { "comment_text": "", "digests": { "md5": "91903c146ef91f08ee360e6cfc52a635", "sha256": "c28e87df874a601c91e012228005cfd6092b75bac43f3da6e2c495ea06dbd154" }, "downloads": -1, "filename": "lfs_criterion_extra-0.1.8.zip", "has_sig": false, "md5_digest": "91903c146ef91f08ee360e6cfc52a635", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25191, "upload_time": "2012-08-01T13:42:27", "url": "https://files.pythonhosted.org/packages/ce/68/aa42eda6580e9e0234b6ad0a3f63a0a872567860aae1af9ffffed3725341/lfs_criterion_extra-0.1.8.zip" } ], "0.1.9": [ { "comment_text": "", "digests": { "md5": "e0de2e4a5fa750b8e33a9a4d5c89624d", "sha256": "3f9de1ded176be45e4b1ac00180a180069050abbe5a731e659ac3f9b5699c71f" }, "downloads": -1, "filename": "lfs_criterion_extra-0.1.9.zip", "has_sig": false, "md5_digest": "e0de2e4a5fa750b8e33a9a4d5c89624d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26125, "upload_time": "2012-08-07T12:34:19", "url": "https://files.pythonhosted.org/packages/4c/99/ab0088aa4b7990f284db7d15571bebb0457e3210993f489b1cc6199a5745/lfs_criterion_extra-0.1.9.zip" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "d16fe3c4e489d6d55108b60747ac3975", "sha256": "377c7004eb8cf97c8c2af5a4e7a6ad05cadb59c25f9c3e6398bbdcdd8869bbe5" }, "downloads": -1, "filename": "lfs_criterion_extra-0.2.0.zip", "has_sig": false, "md5_digest": "d16fe3c4e489d6d55108b60747ac3975", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 29163, "upload_time": "2012-11-03T05:04:01", "url": "https://files.pythonhosted.org/packages/a3/40/5e92f2540c2f642abeb95c8710c8e4beb9f75f7acbe065452b0a5b70ccb7/lfs_criterion_extra-0.2.0.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d16fe3c4e489d6d55108b60747ac3975", "sha256": "377c7004eb8cf97c8c2af5a4e7a6ad05cadb59c25f9c3e6398bbdcdd8869bbe5" }, "downloads": -1, "filename": "lfs_criterion_extra-0.2.0.zip", "has_sig": false, "md5_digest": "d16fe3c4e489d6d55108b60747ac3975", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 29163, "upload_time": "2012-11-03T05:04:01", "url": "https://files.pythonhosted.org/packages/a3/40/5e92f2540c2f642abeb95c8710c8e4beb9f75f7acbe065452b0a5b70ccb7/lfs_criterion_extra-0.2.0.zip" } ] }