# Path: simone/person/models.py
# class UserProfile(AbstractUser):
#     about = models.TextField(blank=True)
#     editor = models.CharField(max_length=1, 
#         choices = (('1', 'Text'), ('2', 'Rich Text')), 
#         default='1')
# 
#     signatures = models.ManyToManyField(Signature,blank=True,null=True)
#     imap_servers = models.ManyToManyField(ImapServer,blank=True,null=True)
#     smtp_servers = models.ManyToManyField(SmtpServer,blank=True,null=True)
#     
#     def __unicode__(self):
#         return '%s\'s UserProfile' % (self.username,)
# 
# class ImapServer(models.Model):
#     address = models.CharField(max_length=255,null=True)
#     port = models.IntegerField(default=143,null=True)
#     username = models.CharField(max_length=255,null=True)
#     passwd = models.CharField(max_length=255,null=True)
#     ssl = models.BooleanField(default=False)
#     def __unicode__(self):
#         if not self.address and not self.port and not self.username and not self.passwd:
#             return 'None'
#         if self.ssl:
#             return '%s@imaps://%s:%s' % (self.username, self.address, self.port)
#         return '%s@imap://%s:%s' % (self.username, self.address, self.port)
# 
# class SmtpServer(models.Model):
#     address = models.CharField(max_length=255,null=True)
#     port = models.IntegerField(default=25,null=True)
#     username = models.CharField(max_length=255,null=True)
#     passwd = models.CharField("Password", max_length=255,null=True)
#     def __unicode__(self):
#         if not self.address and not self.port and not self.username and not self.passwd:
#             return 'None'
#         return '%s@smtp://%s:%s' % (self.username, self.address, self.port)
# 
# class Signature(models.Model):
#     text = models.TextField(blank=True)
#     def __unicode__(self):
#         return self.text[0:30]


from django.contrib import admin
from simone.person.models import UserProfile, ImapServer, SmtpServer, Signature


admin.site.register(UserProfile)
admin.site.register(ImapServer)
admin.site.register(SmtpServer)

# Path: simone/person/models.py
# class UserProfile(AbstractUser):
#     about = models.TextField(blank=True)
#     editor = models.CharField(max_length=1, 
#         choices = (('1', 'Text'), ('2', 'Rich Text')), 
#         default='1')
# 
#     signatures = models.ManyToManyField(Signature,blank=True,null=True)
#     imap_servers = models.ManyToManyField(ImapServer,blank=True,null=True)
#     smtp_servers = models.ManyToManyField(SmtpServer,blank=True,null=True)
#     
#     def __unicode__(self):
#         return '%s\'s UserProfile' % (self.username,)
# 
# class ImapServer(models.Model):
#     address = models.CharField(max_length=255,null=True)
#     port = models.IntegerField(default=143,null=True)
#     username = models.CharField(max_length=255,null=True)
#     passwd = models.CharField(max_length=255,null=True)
#     ssl = models.BooleanField(default=False)
#     def __unicode__(self):
#         if not self.address and not self.port and not self.username and not self.passwd:
#             return 'None'
#         if self.ssl:
#             return '%s@imaps://%s:%s' % (self.username, self.address, self.port)
#         return '%s@imap://%s:%s' % (self.username, self.address, self.port)
# 
# class SmtpServer(models.Model):
#     address = models.CharField(max_length=255,null=True)
#     port = models.IntegerField(default=25,null=True)
#     username = models.CharField(max_length=255,null=True)
#     passwd = models.CharField("Password", max_length=255,null=True)
#     def __unicode__(self):
#         if not self.address and not self.port and not self.username and not self.passwd:
#             return 'None'
#         return '%s@smtp://%s:%s' % (self.username, self.address, self.port)
# 
# class Signature(models.Model):
#     text = models.TextField(blank=True)
#     def __unicode__(self):
#         return self.text[0:30]


# Path: simone/person/admin.py
from django.contrib import admin
from simone.person.models import UserProfile, ImapServer, SmtpServer, Signature



admin.site.register(UserProfile)
admin.site.register(ImapServer)
admin.site.register(SmtpServer)

admin.site.register(Signature)