Changeset 545

Show
Ignore:
Timestamp:
08/15/07 02:15:14 (1 year ago)
Author:
brian
Message:

double prank\!tg-admin shell

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • pagoda/trunk/Pagoda/pagoda/models/content.py

    r544 r545  
    1313 
    1414class Content(object): 
    15     pass 
     15    def __repr__(self): 
     16        cls = self.__class__ 
     17        cols = cls.c.keys() 
     18        return "%s(%s)" % ( 
     19            cls.__name__, 
     20            ", ".join(["%s=%r" % (col, getattr(self, col)) for col in cols]) 
     21        ) 
    1622 
    17 assign_mapper(session.context, Content, content_table, 
    18     polymorphic_on=content_table.c.content_type 
    19 
     23assign_mapper(session.context, Content, content_table) 
  • pagoda/trunk/Pagoda/pagoda/models/revision.py

    r544 r545  
    3434        cls = self.__class__ 
    3535        cols = cls.c.keys() 
    36         cols.reverse() 
    3736        return "%s(%s)" % ( 
    3837            cls.__name__, 

Log in as guest/pagoda to create tickets