Commit 053cfe8e authored by Nsukami Patrick's avatar Nsukami Patrick
Browse files

Flake8: fix errors

- E221 multiple spaces before operator
- E261 at least two spaces before inline comment
- E225 missing whitespace around operator
- E127 continuation line over-indented for visual indent
parent be2874bd518f
......@@ -8,15 +8,15 @@ from cubicweb import _
class Person(EntityType):
"""a physical person"""
surname = String(required=True, fulltextindexed=True, indexed=True, maxsize=64)
surname = String(required=True, fulltextindexed=True, indexed=True, maxsize=64)
firstname = String(fulltextindexed=True, maxsize=64)
civility = String(required=True, internationalizable=True,
vocabulary=(_('Mr'), _('Ms'), _('Mrs')),
default='Mr')
civility = String(required=True, internationalizable=True,
vocabulary=(_('Mr'), _('Ms'), _('Mrs')),
default='Mr')
description = RichString(fulltextindexed=True)
description = RichString(fulltextindexed=True)
if 'PhoneNumber' in context.defined: # from addressbook package
if 'PhoneNumber' in context.defined: # from addressbook package
phone = SubjectRelation('PhoneNumber', composite='subject')
if 'PostalAddress' in context.defined:
postal_address = SubjectRelation('PostalAddress', composite='subject')
......@@ -47,4 +47,4 @@ class primary_email(RelationDefinition):
subject = "Person"
object = "EmailAddress"
cardinality = '??'
constraints= [RQLConstraint('S use_email O')]
constraints = [RQLConstraint('S use_email O')]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment