1. Brendan Howell
  2. The Maggot


The Maggot / src / model.py

Diff from to

File src/model.py

 from sqlalchemy.ext.declarative import declarative_base
 from sqlalchemy import ForeignKey, Column, Integer, UnicodeText, String, Boolean
 from sqlalchemy.orm import relation, backref
+import dulwich
 Base = declarative_base()
     password = Column(String)
     role = Column(String)
-    def __init__(self, name, password, role="writer"):
+    def __init__(self, name, password):
         self.name = name
         self.password = password
-        self.role = role
     def __repr__(self):
-        return "<User('%s','%s','%s')>" % (self.name, self.password, self.role)
+        return "<User('%s','%s')>" % (self.name, self.password)
 class Session(Base):