[TASK] Reformat some files.

This commit is contained in:
Jan Philipp Timme 2014-09-19 11:05:14 +02:00
parent bc2ebea8de
commit 0952922757
3 changed files with 24 additions and 22 deletions

View File

@ -6,7 +6,7 @@ from django.db import models
class Project(models.Model): class Project(models.Model):
name = models.CharField(max_length=255) name = models.CharField(max_length=255)
description = models.TextField() description = models.TextField()
associated_filename = models.CharField(max_length=255,blank=True,null=True) associated_filename = models.CharField(max_length=255, blank=True, null=True)
def __unicode__(self): def __unicode__(self):
repr = self.name repr = self.name
@ -19,7 +19,7 @@ class Project(models.Model):
class PersonGlobalIdentity(models.Model): class PersonGlobalIdentity(models.Model):
type = models.CharField(max_length=255) type = models.CharField(max_length=255)
#TODO: Extend this for further stuff - maybe vivo external url or something? # TODO: Extend this for further stuff - maybe vivo external url or something?
def __unicode__(self): def __unicode__(self):
repr = "<PersonGlobalIdentity ID=" + str(self.id) + ", type=" + self.type + ">" repr = "<PersonGlobalIdentity ID=" + str(self.id) + ", type=" + self.type + ">"

View File

@ -138,6 +138,7 @@ class UpdateProjectView(ProtectedFormView, SingleObjectMixin):
""" Test if SQLite is a valid citavi project. """ """ Test if SQLite is a valid citavi project. """
from service import Citavi from service import Citavi
citavi_project = Citavi.Project(temp_sqlite) citavi_project = Citavi.Project(temp_sqlite)
citavi_project.open()
citavi_project_valid = citavi_project.is_valid() citavi_project_valid = citavi_project.is_valid()
""" Free temporary ressources. """ """ Free temporary ressources. """
del citavi_project del citavi_project
@ -163,7 +164,8 @@ class UpdateProjectView(ProtectedFormView, SingleObjectMixin):
""" Refresh identities from citavi project. """ """ Refresh identities from citavi project. """
# TODO # TODO
#citavi_project = Citavi.Project(sqlite_path) # citavi_project = Citavi.Project(sqlite_path)
#del citavi_project # citavi_project.open()
# del citavi_project
return super(UpdateProjectView, self).form_valid(form) return super(UpdateProjectView, self).form_valid(form)