Projet

Général

Profil

Révision 17f78427

ID17f784270ae966ee9a13e9f5104a5b8f925b639e
Parent ef851f0c
Enfant d4320aea, 5b2396a9

Ajouté par Lars Kruse il y a plus de 7 ans

Whitespace cleanup

  • remove trailing whitespace
  • remove empty lines at the end of files

Voir les différences:

plugins/moinmoin/moinoin_pages
15 15
#
16 16
# Implementation notes
17 17
# --------------------
18
# 
18
#
19 19
# it is quite koumbit-specific:
20 20
#  1. the wikifarm config is hardcoded
21 21
#  2. it relies on the "wikilist.py" file to contain the list of wiki -> url patterns
......
81 81
        url = sub('\(([^\|]*)(\|[^\)]*\))+', '\\1', url)
82 82
        # remove common regexp patterns and slap a protocol to make this a real url
83 83
        url = sub('[\^\$]|(\.\*)', '', url)
84
    
84

  
85 85
        mod = getattr(__import__(name), 'Config')
86 86
        #print "Upgradeing wiki %s (%s)" % (getattr(mod, 'sitename'), url)
87
    
87

  
88 88
        request = RequestCLI(url)
89 89
        pagelist = request.rootpage.getPageList(user='')
90
    
90

  
91 91
        systemPages = [page for page in pagelist
92 92
                           if wikiutil.isSystemPage(request, page)]
93 93
        print(name + '.value ' + str(len(pagelist)-len(systemPages)))
94 94
        #totalsize = reduce(operator.add, [Page(request, name).size() for name in pagelist])
95
        #print('Accumulated page sizes' + _formatInReadableUnits(totalsize)) 
95
        #print('Accumulated page sizes' + _formatInReadableUnits(totalsize))
96 96

  
97 97
def config():
98 98
    print("""graph_title Wiki size

Formats disponibles : Unified diff