from datetime import datetime
from pfc import get_user_name
class RootObject(object):
    def __init__(self):
        self.CreatedBy = str, True, get_user_name
        self.CreatedOn = datetime, True, datetime.now
        self.CreatedOnUtc = datetime, True, datetime.utcnow
        self.Description = str, True
        self.ModifiedBy = str, True
        self.ModifiedOn = datetime, True, datetime.now
        self.ModifiedOnUtc = datetime, True, datetime.utcnow

class BaseObject(RootObject):
    def __init__(self):
        super(BaseObject,self).__init__()
        self.Code = str,True
        self.Name = str,True
        self.FName = str,True,""


class BaseOrgObject(BaseObject):
    def __init__(self):
        super(BaseOrgObject,self).__init__()
        self.Parent = str,True
        self.LevelCodes = [str],True
        self.Level = int,True
