Пример #1
0
 def __init__(self, group, root_dir=None):
     GenericDB.__init__(self)
     self.group = group
     self.quota = self._initial_quota
     self.dirs = QonDir()
     
     if root_dir is None:
         site = os.environ.get('SITE')
         if site:
             config = site_util.get_config()
             root_dir = config.get(site, 'file-store',
                 fallback='/tmp')
         else:
             root_dir = '/tmp'
     self.root_dir = root_dir
Пример #2
0
 def __init__(self):
     GenericDB.__init__(self)
     self.__deferrals = defer.DeferralList()
     self.__top_users = None
     self.__most_friends = None
     self.__most_generous = None
     self.__most_critical = None
     self.__biggest_bank = None
     self.__recent_personal_news = None
     self.__group_stats = None
     self.__newest_users = None
     self.__most_read_items = None
     self.__bottom_users = None
     self.__most_active = None
     self.__most_watched = None
     self.__karma_stats = KarmaStats()
     self.__reverse_ips = None
Пример #3
0
 def __init__(self):
     GenericDB.__init__(self)
     self.filename = None      # same field name as QonFile(StoredFile)
Пример #4
0
 def __init__(self):
     GenericDB.__init__(self)
Пример #5
0
 def __init__(self):
     GenericDB.__init__(self)
     HasOwnership.__init__(self)
     self.mod_queue = SponsoredQueue()
     self.invitations = Invitations()