jkoelker / quark

This is my fork, Quark is now at https://github.com/rackerlabs/quark
Apache License 2.0
0 stars 2 forks source link

Quotas API #122

Closed kilogram closed 11 years ago

kilogram commented 11 years ago

Sits atop quantum.quota.QuotaEngine and quantum.extensions.quotasv2. Extends and replaces quantum.db.quota_db.DbQuotaDriver with QuarkQuotaDriver which is repoze transaction aware (not that DbQuotaDriver wasn't...). For hierarchal quota checks (ie, rules per group) the plugin must call the QuotaEngine independently of quantum. Implemented in config file in QUOTAS group as quota_X_per_Y.

Requires the config flag:

[QUOTAS] ... quota_driver = quark.quota_driver.QuarkQuotaDriver ...

asadoughi commented 11 years ago

Minus the inquiry about query efficiency, LGTM.