Changeset 10496


Ignore:
Timestamp:
13 Aug 2013, 16:59:17 (11 years ago)
Author:
uli
Message:

Allow users in service tickets to be NULL and give a proper ServiceTicket? representation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.cas/trunk/waeup/cas/db.py

    r10419 r10496  
    1919    ts = Column(Float, nullable=False)
    2020    service = Column(String(2048), nullable=True)
    21     user = Column(String(512), nullable=False)
     21    user = Column(String(512), nullable=True)
    2222    sso = Column(Boolean, nullable=False, default=True)
    2323
     
    3232
    3333    def __repr__(self):
    34         return "ServiceTicket('%s', '%s', '%s', %s, %s)" % (
    35             self.ticket, self.user, self.service, self.sso, self.ts)
     34        return (
     35            "ServiceTicket(ticket='%s', user='%s', service='%s', "
     36            "sso=%s, timestamp=%s)" % (
     37                self.ticket, self.user, self.service, self.sso, self.ts))
    3638
    3739
Note: See TracChangeset for help on using the changeset viewer.