Comment style update

This commit is contained in:
Roberto Rosario
2012-01-03 04:56:15 -04:00
parent 1f44b1bc6c
commit ebfb3e547f

View File

@@ -220,9 +220,9 @@ class ArgumentsValidator(object):
self.code = code self.code = code
def __call__(self, value): def __call__(self, value):
""" '''
Validates that the input evaluates correctly. Validates that the input evaluates correctly.
""" '''
value = value.strip() value = value.strip()
try: try:
literal_eval(value) literal_eval(value)
@@ -231,10 +231,10 @@ class ArgumentsValidator(object):
class SourceTransformation(models.Model): class SourceTransformation(models.Model):
""" '''
Model that stores the transformation and transformation arguments Model that stores the transformation and transformation arguments
for a given document source for a given document source
""" '''
content_type = models.ForeignKey(ContentType) content_type = models.ForeignKey(ContentType)
object_id = models.PositiveIntegerField() object_id = models.PositiveIntegerField()
content_object = generic.GenericForeignKey('content_type', 'object_id') content_object = generic.GenericForeignKey('content_type', 'object_id')