Commits

Brendan Howell  committed ec26187

started to refactor model

  • Participants
  • Parent commits 49321be

Comments (0)

Files changed (1)

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):