Statistics
| Branch: | Tag: | Revision:

root / db / models.py @ 04a6d900

History | View | Annotate | Download (6 kB)

# Date Author Comment
0b5a51f7 02/04/2011 01:37 pm Vassilios Karakoidas
  • Enforcing PEP-8 in models.py
1d722015 02/04/2011 01:36 pm Vassilios Karakoidas
  • Enchance FlavorTest and fixed a bug in Flavor
e8fa4283 02/04/2011 12:30 pm Vassilios Karakoidas
  • Add tests for Flavor model
  • cost_active and cost_inactive are now returned correctly
cb2e4505 02/04/2011 11:51 am Vassilios Karakoidas
  • Added test for credit allocator
05a90a5b 02/03/2011 09:57 pm Vassilios Karakoidas
  • Messing with the Flavor and FlavorCostHistory; define two new properties to easily obtain active and inactive costs
e107ee57 02/03/2011 03:23 pm Markos Gogoulos

a few changes on the handlers in order to work with the rapi (since we now have access).

f5ad2956 02/03/2011 02:40 pm Markos Gogoulos

removed id_from_instance function from the VirtualMachine model and put it back since it will be needed as a global function
to be imported by handlers and not as a staticmethod of the VM model.

224b5e19 02/03/2011 02:25 pm Markos Gogoulos

changed name of ganeti_id and prefix to backend_id and backend_prefix_id

100a9bec 02/02/2011 07:26 pm Vassilios Karakoidas
  • Add staticmethod decorator/annotation in id_from_instance_name
6c9a62b5 02/02/2011 07:20 pm Vassilios Karakoidas
  • Move method id_from_instance_name to VirtualMachine as static method
  • Fix settings.py to include ganeti correctly
41b972e6 02/02/2011 07:12 pm Vassilios Karakoidas
  • Add FlavorCostHistory
  • Remove cost_active, cost_inactive from Flavor (Charger is broken)
b90da243 02/02/2011 05:04 pm Vassilios Karakoidas
  • Fix naming, comments in various methods
  • BillAllocator is properly renamed as BillCalculator
d8e682ed 02/01/2011 10:11 am Vassilios Karakoidas
  • VirtualMachine model now includes charging method (models.py)
  • CreditAllocator now performs the correct query (CreditAllocator.py)
  • Various minor fixes
dcfc6c2d 01/31/2011 02:51 pm Vangelis Koukis

Minor fixes to verbose_name fields.

verbose_name fields must be in singular, per
http://docs.djangoproject.com/en/dev/ref/models/options/.
verbose_name_plural can be used if a plural form is needed.

378bf5b7 01/31/2011 02:39 pm Vangelis Koukis

Minor fixes per PEP 257 [please fix as desired],
minor fix to flavor names [CxxRyyDzz].

fcbc5bb3 01/31/2011 02:28 pm Vassilios Karakoidas

Playing with tabs and spaces

fa672379 01/31/2011 02:13 pm Vassilios Karakoidas

CreditAllocator is complete

5b32775a 01/31/2011 12:39 pm Vassilios Karakoidas

Minor corrections in CreditAllocator and Models

9dbe70f8 01/29/2011 01:43 pm Markos Gogoulos

a few changes regarding the VirtualMachines id and ganeti id.

  • on api/handlers.py : VirtualMachineName function removed (no need to be on the handlers)
  • settings.py.dist: added GANETI_PREFIX_ID
  • db/models.py: added id_from_instance_name function and property ganeti_id on VM models . These are needed to get the Django id...
38684389 01/26/2011 05:12 pm Markos Gogoulos

added Image model and updated admin.py to include it as well

be7b8d37 01/26/2011 12:25 pm Vassilios Karakoidas
  • Updated models for db
00318048 01/26/2011 11:28 am Vassilios Karakoidas
  • Model VirtualMachine.name is a property now
a09c1220 01/26/2011 11:20 am Vassilios Karakoidas
  • rename all scripts to their proper names
  • add BillAllocator and Charger
07f3219d 01/26/2011 11:01 am Vassilios Karakoidas
  • Rename aquarium -> db
  • Add Virtual Machine States into vocabs.py
78dec216 01/24/2011 12:41 pm Vassilios Karakoidas

Add aquarium app to django base project; Modify configuration files appropriately

f0e91699 01/24/2011 11:48 am Vassilios Karakoidas

Renamed User -> OceanUser

3f04688d 01/23/2011 10:59 pm Vassilios Karakoidas

Added monthly rate to User model

46547e14 01/21/2011 07:59 pm Faidon Liambotis

Fix several errors in db.models

Among other things: * PEP-8 styling conventions * Remove unnecessary primary keys (Django handles those) * Remove ugly column name prefixes * Use singular for class names * Replace the buggy double-PKs with a unique_together...

cce43cc3 01/21/2011 01:07 pm Vangelis Koukis

Definition of models for Django ORM, available under db/.