FedericoCeratto/bottle-cork

Subclassing User

Opened this issue · 2 comments

Dear Federico,

I need to extend BaseCork, and User for a work project: I need to keep a count of the number of records in a database a User has seen.

I've made the changes I need, but I keep on getting an error when I try to import User from cork. Was it never intended that User would be inherited? If so, how do I disable this?

Yours

Tom

Sorry to be a pain: I've deleted the parts where I've been using a custom User. I'm trying to get a custom Cork to work, but I keep on getting an invalid registration number error when I create a new account with the new TKCork class.

All I need it to do is add a 'annotated' field to the user data. There must be some easy way to inherit Cork and make my version of the class do that without having to re-write half of the class methods.

I've sorted the invalid registration issue.