Commits

Jesper Nøhr committed 660a977

also registering non-model handlers in the typemapper, we sort of need that

  • Participants
  • Parent commits c64c757

Comments (0)

Files changed (1)

File piston/handler.py

         
         if hasattr(new_cls, 'model'):
             typemapper[new_cls] = (new_cls.model, new_cls.is_anonymous)
+        else:
+            typemapper[new_cls] = (None, new_cls.is_anonymous)
         
         if name not in ('BaseHandler', 'AnonymousBaseHandler'):
             handler_tracker.append(new_cls)