# Path: fpr/models.py
# class Enabled(models.Manager):
# class VersionedModel(models.Model):
#     class Meta:
# class FormatManager(models.Manager):
# class Format(models.Model):
#     class Meta:
# class FormatGroup(models.Model):
#     class Meta:
# class FormatVersion(VersionedModel, models.Model):
#     class Meta:
# class IDCommand(VersionedModel, models.Model):
#     class Meta:
# class IDRule(VersionedModel, models.Model):
#     class Meta:
# class IDTool(models.Model):
#     class Meta:
# class FPRule(VersionedModel, models.Model):
#     class Meta:
# class FPCommand(VersionedModel, models.Model):
#     class Meta:
# class FPTool(models.Model):
#     class Meta:
# class Agent(models.Model):
#     class Meta:
# class CommandType(models.Model):
#     class Meta:
# class Command(models.Model):
#     class Meta:
# class CommandsSupportedBy(models.Model):
#     class Meta:
# class FileIDType(models.Model):
#     class Meta:
# class FileID(models.Model):
#     class Meta:
# class CommandClassification(models.Model):
#     class Meta:
# class CommandRelationship(models.Model):
#     class Meta:
# class FileIDsBySingleID(models.Model):
#     class Meta:
#     def get_queryset(self):
#     def get_query_set(self):
#     def save(self, replacing=None, *args, **kwargs):
#     def get_full_list(self):
#     def __unicode__(self):
#     def __unicode__(self):
#     def validate_unique(self, *args, **kwargs):
#     def __unicode__(self):
#     def __unicode__(self):
#     def save(self, *args, **kwargs):
#     def validate_unique(self, *args, **kwargs):
#     def __unicode__(self):
#     def long_name(self):
#     def __unicode__(self):
#     def _slug(self):
#     def __unicode__(self):
#     def long_name(self):
#     def __unicode__(self):
#     def __unicode__(self):
#     def _slug(self):
#     def __unicode__(self):
#     CONFIG_CHOICES = (
#         ('PUID', _('PUID')),
#         ('MIME', _('MIME type')),
#         ('ext', _('File extension'))
#     )
#     SCRIPT_TYPE_CHOICES = (
#         ('bashScript', _('Bash script')),
#         ('pythonScript', _('Python script')),
#         ('command', _('Command line')),
#         ('as_is', _('No shebang needed'))
#     )
#     ACCESS = 'access'
#     CHARACTERIZATION = 'characterization'
#     EXTRACTION = 'extract'
#     PRESERVATION = 'preservation'
#     THUMBNAIL = 'thumbnail'
#     TRANSCRIPTION = 'transcription'
#     VALIDATION = 'validation'
#     POLICY = 'policy_check'
#     DEFAULT_ACCESS = 'default_access'
#     DEFAULT_CHARACTERIZATION = 'default_characterization'
#     DEFAULT_THUMBNAIL = 'default_thumbnail'
#     USAGES = (ACCESS, CHARACTERIZATION, EXTRACTION, PRESERVATION, THUMBNAIL,
#               TRANSCRIPTION, VALIDATION, POLICY, DEFAULT_ACCESS,
#               DEFAULT_CHARACTERIZATION, DEFAULT_THUMBNAIL)
#     DISPLAY_CHOICES = (
#         (ACCESS, _('Access')),
#         (CHARACTERIZATION, _('Characterization')),
#         (EXTRACTION, _('Extract')),
#         (PRESERVATION, _('Preservation')),
#         (THUMBNAIL, _('Thumbnail')),
#         (TRANSCRIPTION, _('Transcription')),
#         (VALIDATION, _('Validation')),
#         (POLICY, _('Validation against a policy')),
#     )
#     HIDDEN_CHOICES = (
#         (DEFAULT_ACCESS, _('Default access')),
#         (DEFAULT_CHARACTERIZATION, _('Default characterization')),
#         (DEFAULT_THUMBNAIL, _('Default thumbnail')),
#     )
#     USAGE_MAP = {
#         'normalization': (DEFAULT_ACCESS, ACCESS, PRESERVATION, THUMBNAIL),
#         'characterization': (CHARACTERIZATION, DEFAULT_CHARACTERIZATION),
#         'extraction': (EXTRACTION,),
#         'validation': (VALIDATION, POLICY)
#     }
#     PURPOSE_CHOICES = DISPLAY_CHOICES + HIDDEN_CHOICES
#     SCRIPT_TYPE_CHOICES = (
#         ('bashScript', _('Bash script')),
#         ('pythonScript', _('Python script')),
#         ('command', _('Command line')),
#         ('as_is', _('No shebang needed'))
#     )
#     COMMAND_USAGE_CHOICES = (
#         ('characterization', _('Characterization')),
#         ('event_detail', _('Event Detail')),
#         ('extraction', _('Extraction')),
#         ('normalization', _('Normalization')),
#         ('transcription', _('Transcription')),
#         ('validation', _('Validation')),
#         ('verification', _('Verification')),
#     )


from django import forms
from django.utils.translation import ugettext_lazy as _
from fpr import models as fprmodels
# Django core, alphabetical

# External dependencies, alphabetical

# This project, alphabetical


# ########## FORMATS ############

class FormatForm(forms.ModelForm):
    group = forms.ChoiceField(
        widget=forms.Select(attrs={'class': 'form-control'}),

# Path: fpr/models.py
# class Enabled(models.Manager):
# class VersionedModel(models.Model):
#     class Meta:
# class FormatManager(models.Manager):
# class Format(models.Model):
#     class Meta:
# class FormatGroup(models.Model):
#     class Meta:
# class FormatVersion(VersionedModel, models.Model):
#     class Meta:
# class IDCommand(VersionedModel, models.Model):
#     class Meta:
# class IDRule(VersionedModel, models.Model):
#     class Meta:
# class IDTool(models.Model):
#     class Meta:
# class FPRule(VersionedModel, models.Model):
#     class Meta:
# class FPCommand(VersionedModel, models.Model):
#     class Meta:
# class FPTool(models.Model):
#     class Meta:
# class Agent(models.Model):
#     class Meta:
# class CommandType(models.Model):
#     class Meta:
# class Command(models.Model):
#     class Meta:
# class CommandsSupportedBy(models.Model):
#     class Meta:
# class FileIDType(models.Model):
#     class Meta:
# class FileID(models.Model):
#     class Meta:
# class CommandClassification(models.Model):
#     class Meta:
# class CommandRelationship(models.Model):
#     class Meta:
# class FileIDsBySingleID(models.Model):
#     class Meta:
#     def get_queryset(self):
#     def get_query_set(self):
#     def save(self, replacing=None, *args, **kwargs):
#     def get_full_list(self):
#     def __unicode__(self):
#     def __unicode__(self):
#     def validate_unique(self, *args, **kwargs):
#     def __unicode__(self):
#     def __unicode__(self):
#     def save(self, *args, **kwargs):
#     def validate_unique(self, *args, **kwargs):
#     def __unicode__(self):
#     def long_name(self):
#     def __unicode__(self):
#     def _slug(self):
#     def __unicode__(self):
#     def long_name(self):
#     def __unicode__(self):
#     def __unicode__(self):
#     def _slug(self):
#     def __unicode__(self):
#     CONFIG_CHOICES = (
#         ('PUID', _('PUID')),
#         ('MIME', _('MIME type')),
#         ('ext', _('File extension'))
#     )
#     SCRIPT_TYPE_CHOICES = (
#         ('bashScript', _('Bash script')),
#         ('pythonScript', _('Python script')),
#         ('command', _('Command line')),
#         ('as_is', _('No shebang needed'))
#     )
#     ACCESS = 'access'
#     CHARACTERIZATION = 'characterization'
#     EXTRACTION = 'extract'
#     PRESERVATION = 'preservation'
#     THUMBNAIL = 'thumbnail'
#     TRANSCRIPTION = 'transcription'
#     VALIDATION = 'validation'
#     POLICY = 'policy_check'
#     DEFAULT_ACCESS = 'default_access'
#     DEFAULT_CHARACTERIZATION = 'default_characterization'
#     DEFAULT_THUMBNAIL = 'default_thumbnail'
#     USAGES = (ACCESS, CHARACTERIZATION, EXTRACTION, PRESERVATION, THUMBNAIL,
#               TRANSCRIPTION, VALIDATION, POLICY, DEFAULT_ACCESS,
#               DEFAULT_CHARACTERIZATION, DEFAULT_THUMBNAIL)
#     DISPLAY_CHOICES = (
#         (ACCESS, _('Access')),
#         (CHARACTERIZATION, _('Characterization')),
#         (EXTRACTION, _('Extract')),
#         (PRESERVATION, _('Preservation')),
#         (THUMBNAIL, _('Thumbnail')),
#         (TRANSCRIPTION, _('Transcription')),
#         (VALIDATION, _('Validation')),
#         (POLICY, _('Validation against a policy')),
#     )
#     HIDDEN_CHOICES = (
#         (DEFAULT_ACCESS, _('Default access')),
#         (DEFAULT_CHARACTERIZATION, _('Default characterization')),
#         (DEFAULT_THUMBNAIL, _('Default thumbnail')),
#     )
#     USAGE_MAP = {
#         'normalization': (DEFAULT_ACCESS, ACCESS, PRESERVATION, THUMBNAIL),
#         'characterization': (CHARACTERIZATION, DEFAULT_CHARACTERIZATION),
#         'extraction': (EXTRACTION,),
#         'validation': (VALIDATION, POLICY)
#     }
#     PURPOSE_CHOICES = DISPLAY_CHOICES + HIDDEN_CHOICES
#     SCRIPT_TYPE_CHOICES = (
#         ('bashScript', _('Bash script')),
#         ('pythonScript', _('Python script')),
#         ('command', _('Command line')),
#         ('as_is', _('No shebang needed'))
#     )
#     COMMAND_USAGE_CHOICES = (
#         ('characterization', _('Characterization')),
#         ('event_detail', _('Event Detail')),
#         ('extraction', _('Extraction')),
#         ('normalization', _('Normalization')),
#         ('transcription', _('Transcription')),
#         ('validation', _('Validation')),
#         ('verification', _('Verification')),
#     )


# Path: fpr/forms.py
from django import forms
from django.utils.translation import ugettext_lazy as _
from fpr import models as fprmodels

# Django core, alphabetical

# External dependencies, alphabetical

# This project, alphabetical


# ########## FORMATS ############

class FormatForm(forms.ModelForm):
    group = forms.ChoiceField(
        widget=forms.Select(attrs={'class': 'form-control'}),

        choices=fprmodels.FormatGroup.objects.all()