# Path: eve_db/models/npc.py
# class CrpActivity(models.Model):
#     class Meta:
# class CrpNPCCorporation(models.Model):
#     class Meta:
# class CrpNPCDivision(models.Model):
#     class Meta:
# class CrpNPCCorporationDivision(models.Model):
#     class Meta:
# class CrpNPCCorporationTrade(models.Model):
#     class Meta:
# class CrpNPCCorporationResearchField(models.Model):
#     class Meta:
# class AgtAgentType(models.Model):
#     class Meta:
# class AgtAgent(models.Model):
#     class Meta:
# class AgtResearchAgent(models.Model):
#     class Meta:
#     def __unicode__(self):
#     def __str__(self):
#     def __unicode__(self):
#     def __str__(self):
#     def __unicode__(self):
#     def __str__(self):
#     def __unicode__(self):
#     def __str__(self):
#     def __unicode__(self):
#     def __str__(self):
#     def __unicode__(self):
#     def __str__(self):
#     def __unicode__(self):
#     def __str__(self):
#     def __unicode__(self):
#     def __str__(self):
#     def __unicode__(self):
#     def __str__(self):
#     CORP_SIZE_CHOICES = (('H', 'Huge'),
#                          ('L', 'Large'),
#                          ('M', 'Medium'),
#                          ('S', 'Small'),
#                          ('T', 'Tiny'))
#     EXTENT_CHOICES = (('G', 'Global'),
#                       ('N', 'National'),
#                       ('R', 'Regional'),
#                       ('C', 'Constellational'),
#                       ('L', 'Local'))
# 
# Path: eve_db/models/inventory.py
# class InvName(models.Model):
#     """
#     This appears to be something used to search everything at once. Most of
#     the stuff in this table have models with a 'name' field on them. The CCP
#     dump doesn't use the invNames table directly many times.
# 
#     Things covered by this model include space objects, corporations, and
#     people.
# 
#     CCP Table: invNames
#     CCP Primary key: "itemID" int(11)
#     """
#     id = models.IntegerField(unique=True, primary_key=True)
#     name = models.CharField(max_length=255, blank=True)
# 
#     class Meta:
#         app_label = 'eve_db'
#         ordering = ['id']
#         verbose_name = 'Name'
#         verbose_name_plural = 'Names'
# 
#     def __unicode__(self):
#         return self.name
# 
#     def __str__(self):
#         return self.__unicode__()
# 
# Path: eve_db/models/npc.py
# class AgtAgent(models.Model):
#     """
#     CCP Table: agtAgents
#     CCP Primary key: "agentID" int(11)
#     """
#     id = models.IntegerField(unique=True, primary_key=True)
#     name = models.CharField(max_length=255, blank=True)
#     division = models.ForeignKey(CrpNPCDivision, blank=True,
#                                  null=True)
#     corporation = models.ForeignKey(CrpNPCCorporation, blank=True, null=True)
#     location = models.ForeignKey('MapDenormalize', blank=True, null=True)
#     level = models.IntegerField(blank=True, null=True)
#     quality = models.IntegerField(blank=True, null=True)
#     type = models.ForeignKey(AgtAgentType, blank=True, null=True)
#     locator = models.BooleanField(default=False)
# 
#     class Meta:
#         app_label = 'eve_db'
#         ordering = ['id']
#         verbose_name = 'Agent'
#         verbose_name_plural = 'Agents'
# 
#     def __unicode__(self):
#         return self.name
# 
#     def __str__(self):
#         return self.__unicode__()


from eve_db.models import npc as npc_models
from eve_db.models.inventory import InvName
from importer_classes import SQLImporter
from eve_db.models.npc import AgtAgent
"""
Import NPC corp/agent data.
"""


class Importer_crpActivities(SQLImporter):
    model = npc_models.CrpActivity
    pks = (('id', 'activityID'),)
    field_map = (('name', 'activityName'),
                 ('description', 'description'))


class Importer_crpNPCCorporationDivisions(SQLImporter):
    DEPENDENCIES = ['crpNPCDivisions', 'crpNPCCorporations']

# Path: eve_db/models/npc.py
# class CrpActivity(models.Model):
#     class Meta:
# class CrpNPCCorporation(models.Model):
#     class Meta:
# class CrpNPCDivision(models.Model):
#     class Meta:
# class CrpNPCCorporationDivision(models.Model):
#     class Meta:
# class CrpNPCCorporationTrade(models.Model):
#     class Meta:
# class CrpNPCCorporationResearchField(models.Model):
#     class Meta:
# class AgtAgentType(models.Model):
#     class Meta:
# class AgtAgent(models.Model):
#     class Meta:
# class AgtResearchAgent(models.Model):
#     class Meta:
#     def __unicode__(self):
#     def __str__(self):
#     def __unicode__(self):
#     def __str__(self):
#     def __unicode__(self):
#     def __str__(self):
#     def __unicode__(self):
#     def __str__(self):
#     def __unicode__(self):
#     def __str__(self):
#     def __unicode__(self):
#     def __str__(self):
#     def __unicode__(self):
#     def __str__(self):
#     def __unicode__(self):
#     def __str__(self):
#     def __unicode__(self):
#     def __str__(self):
#     CORP_SIZE_CHOICES = (('H', 'Huge'),
#                          ('L', 'Large'),
#                          ('M', 'Medium'),
#                          ('S', 'Small'),
#                          ('T', 'Tiny'))
#     EXTENT_CHOICES = (('G', 'Global'),
#                       ('N', 'National'),
#                       ('R', 'Regional'),
#                       ('C', 'Constellational'),
#                       ('L', 'Local'))
# 
# Path: eve_db/models/inventory.py
# class InvName(models.Model):
#     """
#     This appears to be something used to search everything at once. Most of
#     the stuff in this table have models with a 'name' field on them. The CCP
#     dump doesn't use the invNames table directly many times.
# 
#     Things covered by this model include space objects, corporations, and
#     people.
# 
#     CCP Table: invNames
#     CCP Primary key: "itemID" int(11)
#     """
#     id = models.IntegerField(unique=True, primary_key=True)
#     name = models.CharField(max_length=255, blank=True)
# 
#     class Meta:
#         app_label = 'eve_db'
#         ordering = ['id']
#         verbose_name = 'Name'
#         verbose_name_plural = 'Names'
# 
#     def __unicode__(self):
#         return self.name
# 
#     def __str__(self):
#         return self.__unicode__()
# 
# Path: eve_db/models/npc.py
# class AgtAgent(models.Model):
#     """
#     CCP Table: agtAgents
#     CCP Primary key: "agentID" int(11)
#     """
#     id = models.IntegerField(unique=True, primary_key=True)
#     name = models.CharField(max_length=255, blank=True)
#     division = models.ForeignKey(CrpNPCDivision, blank=True,
#                                  null=True)
#     corporation = models.ForeignKey(CrpNPCCorporation, blank=True, null=True)
#     location = models.ForeignKey('MapDenormalize', blank=True, null=True)
#     level = models.IntegerField(blank=True, null=True)
#     quality = models.IntegerField(blank=True, null=True)
#     type = models.ForeignKey(AgtAgentType, blank=True, null=True)
#     locator = models.BooleanField(default=False)
# 
#     class Meta:
#         app_label = 'eve_db'
#         ordering = ['id']
#         verbose_name = 'Agent'
#         verbose_name_plural = 'Agents'
# 
#     def __unicode__(self):
#         return self.name
# 
#     def __str__(self):
#         return self.__unicode__()


# Path: eve_db/ccp_importer/importers/npc.py
from eve_db.models import npc as npc_models
from eve_db.models.inventory import InvName
from importer_classes import SQLImporter
from eve_db.models.npc import AgtAgent

"""
Import NPC corp/agent data.
"""


class Importer_crpActivities(SQLImporter):
    model = npc_models.CrpActivity
    pks = (('id', 'activityID'),)
    field_map = (('name', 'activityName'),
                 ('description', 'description'))


class Importer_crpNPCCorporationDivisions(SQLImporter):
    DEPENDENCIES = ['crpNPCDivisions', 'crpNPCCorporations']

    model = npc_models.CrpNPCCorporationDivision