# Path: utils.py
# URL_ADVISORIES = 'updates'
# 
# Path: managers.py
# class SkinnyManager(Manager):
#     def get_query_set(self):
#         return SkinnyQuerySet(self.model, using=self._db)


import cpan
import pypi
import pear
import pear2
import nodejs
import github
import rubygems
import packagist
import mavencentral
import os
import sys
import bugs
import utils
from django.db import models
from datetime import datetime
from django.conf import settings
from utils import URL_ADVISORIES
from django.db.models import Manager
from django.contrib.auth.models import User
from managers import SkinnyManager
    (VENDOR_MANUAL_IMPORT, 'Manual import'),
)

APP_STATUS_REMOVED=-10
APP_STATUS_IMPORTING=-5
APP_STATUS_PENDING=0

# NB: Always keep working states > 0
# since the UI hard codes this
APP_STATUS_SUSPENDED=5
APP_STATUS_APPROVED=10
APP_STATUS_UPTODATE=20
APP_STATUS_NEEDSUPDATE=30

STATUS_TYPES = (
    (APP_STATUS_REMOVED, 'Removed'),
    (APP_STATUS_IMPORTING, 'Importing'),
    (APP_STATUS_PENDING, 'Pending'),
    (APP_STATUS_SUSPENDED, 'Suspended'),
    (APP_STATUS_APPROVED, 'Approved'),
    (APP_STATUS_UPTODATE, 'Up to date'),
    (APP_STATUS_NEEDSUPDATE, 'Needs update'),
)

class Application(models.Model):
    '''
        Stores information about tracked applications
    '''

    # override default QuerySet manager

# Path: utils.py
# URL_ADVISORIES = 'updates'
# 
# Path: managers.py
# class SkinnyManager(Manager):
#     def get_query_set(self):
#         return SkinnyQuerySet(self.model, using=self._db)


# Path: models.py
import cpan
import pypi
import pear
import pear2
import nodejs
import github
import rubygems
import packagist
import mavencentral
import os
import sys
import bugs
import utils
from django.db import models
from datetime import datetime
from django.conf import settings
from utils import URL_ADVISORIES
from django.db.models import Manager
from django.contrib.auth.models import User
from managers import SkinnyManager

    (VENDOR_MANUAL_IMPORT, 'Manual import'),
)

APP_STATUS_REMOVED=-10
APP_STATUS_IMPORTING=-5
APP_STATUS_PENDING=0

# NB: Always keep working states > 0
# since the UI hard codes this
APP_STATUS_SUSPENDED=5
APP_STATUS_APPROVED=10
APP_STATUS_UPTODATE=20
APP_STATUS_NEEDSUPDATE=30

STATUS_TYPES = (
    (APP_STATUS_REMOVED, 'Removed'),
    (APP_STATUS_IMPORTING, 'Importing'),
    (APP_STATUS_PENDING, 'Pending'),
    (APP_STATUS_SUSPENDED, 'Suspended'),
    (APP_STATUS_APPROVED, 'Approved'),
    (APP_STATUS_UPTODATE, 'Up to date'),
    (APP_STATUS_NEEDSUPDATE, 'Needs update'),
)

class Application(models.Model):
    '''
        Stores information about tracked applications
    '''

    # override default QuerySet manager

    objects = SkinnyManager()