comparison MoinMoin/action/SyncPages.py @ 1262:16bed977b054

Added support for underlay page ignore and prefix filtering in getAllPagesEx, transmit the page list filtered by prefix. Ignore underlay pages in general.
author Alexander Schremmer <alex AT alexanderweb DOT de>
date Sat, 12 Aug 2006 22:53:48 +0200
parents ae9eb32b6899
children e313c2187271
comparison
equal deleted inserted replaced
1261:ae9eb32b6899 1262:16bed977b054
137 r_pages = SyncPage.filter(r_pages, pages_from_groupList.__contains__) 137 r_pages = SyncPage.filter(r_pages, pages_from_groupList.__contains__)
138 l_pages = SyncPage.filter(l_pages, pages_from_groupList.__contains__) 138 l_pages = SyncPage.filter(l_pages, pages_from_groupList.__contains__)
139 139
140 m_pages = [elem.add_missing_pagename(local, remote) for elem in SyncPage.merge(l_pages, r_pages)] 140 m_pages = [elem.add_missing_pagename(local, remote) for elem in SyncPage.merge(l_pages, r_pages)]
141 141
142 print "Got %i local, %i remote pages, %i merged pages" % (len(l_pages), len(r_pages), len(m_pages)) 142 print "Got %i local, %i remote pages, %i merged pages" % (len(l_pages), len(r_pages), len(m_pages)) # XXX remove
143 143
144 if params["pageMatch"]: 144 if params["pageMatch"]:
145 m_pages = SyncPage.filter(m_pages, params["pageMatch"].match) 145 m_pages = SyncPage.filter(m_pages, params["pageMatch"].match)
146 print "After filtering: Got %i merges pages" % (len(m_pages), ) 146 print "After filtering: Got %i merges pages" % (len(m_pages), ) # XXX remove
147 147
148 on_both_sides = list(SyncPage.iter_local_and_remote(m_pages)) 148 on_both_sides = list(SyncPage.iter_local_and_remote(m_pages))
149 remote_but_not_local = list(SyncPage.iter_remote_only(m_pages)) 149 remote_but_not_local = list(SyncPage.iter_remote_only(m_pages))
150 local_but_not_remote = list(SyncPage.iter_local_only(m_pages)) 150 local_but_not_remote = list(SyncPage.iter_local_only(m_pages))
151 151