Ticket #8669 (closed PLIP: wontfix)

Opened 7 years ago

Last modified 3 years ago

Add basic reporting/stats control panel

Reported by: limi Owned by:
Priority: minor Milestone: Future
Component: General Version:
Keywords: Cc:

Description

Current ideas:

  • number of documents created
  • total # of docs, DB size
  • # of users logged in
  • # of total users
  • # of documents of each type
  • # of inactive users, active users, total users

 http://plone.org/documentation/stats is a great start, I like the "has comments" option :)

Change History

comment:1 Changed 7 years ago by limi

Another suggestion is to report local roles, this snippet came from Andreas Jung:

class FolderView(BrowserView):

    def reportPermissions(self, filter=('local',)):
        """ Walk over all subfolder of the media database and report 
            local roles etc.
        """

        context_path = '/'.join(self.context.getPhysicalPath())
        brains = self.context.portal_catalog(path=context_path,
                                             is_folderish=True,
                                             )

        lst = []
        for brain in brains:
            folder = brain.getObject()
            rolemap = folder.computeRoleMap()

            _rolemap = []
            for d in rolemap:
                if not d['global']:
                    del d['global']

                if d['local'] == ('Owner',) or len(d['local']) == 0:
                    del d['local']

                if d['acquired'] == ('Owner',) or len(d['acquired']) == 0:
                    del d['acquired']

                if d.has_key('global') or d.has_key('local') or d.has_key('acquired'):
                    _rolemap.append(d)


            rel_path = '/'.join(folder.getPhysicalPath()).replace(context_path, '')
            if rel_path.startswith('/'):
                rel_path = rel_path[1:]
            if not rel_path:
                rel_path = ''

            if _rolemap:
                lst.append({ 'path' : brain.getURL(1),
                             'relative_path': rel_path,
                             'id ' : folder.getId(),
                             'title' : folder.Title(),
                             'rolemap' : _rolemap,
                          })

        lst.sort(lambda x,y: cmp(x['relative_path'], y['relative_path']))
        return lst

comment:2 Changed 7 years ago by hannosch

  • Owner hannosch deleted

comment:3 Changed 7 years ago by hannosch

  • Component changed from Control Panel to Infrastructure

comment:4 Changed 4 years ago by garbas

  • Status changed from new to confirmed
  • Type changed from Feature Request to PLIP

definitely a nice little plip, hopefully somebody will pick this up.

comment:5 Changed 4 years ago by davisagli

  • Component changed from Infrastructure to General

comment:6 Changed 3 years ago by eleddy

  • Status changed from confirmed to closed
  • Resolution set to wontfix

This ticket has not been modified in over 9 months. In another brazen attempt to clean this tracker up, this is closed. If you really, REALLY care about this ticket, please re-verify that it is still an issue on the current supported releases (4.2 or 4.3) and reopen. Better yet, submit a pull request to fix the bug and then close the bug properly. We <3 you and all of your effort, but we can't go on like this anymore. I hope you aren't too mad and we can still be friends. Hugs.

Note: See TracTickets for help on using tickets.