Thanks for the feedback Mari! I have now added a new feature to update page titles with your request.
On Tue, Aug 18, 2015 at 4:31 PM, Mariangela Hills <mariang...@wso2.com> wrote: > I tested this on two page trees [1] & [2] in the Stratos wiki, and it > works like magic. Thanks again for creating such a useful tool to work with > Confluence, this sure will help us maintain different versions of pages > within the Stratos wiki space with an ease! > > > > [1] > > Select a menu item: 2 > > ------------------------------------------------- > Find and Replace Text > ------------------------------------------------- > Enter page title: 4.2.0 Quick Installation Guide > Find text: 4.1.0 > Replace with: 4.2.0 > > Updating page '4.2.0 Quick Installation Guide'... > Page not updated, text '4.1.0' not found > > Updating page '4.2.0 Install Stratos with the Mock IaaS in a Testing > Environment'... > Page '4.2.0 Install Stratos with the Mock IaaS in a Testing Environment' > updated successfully: [4.1.0] -> [4.2.0] > > Updating page '4.2.0 Install Stratos with Kubernetes in a Testing > Environment'... > Page '4.2.0 Install Stratos with Kubernetes in a Testing Environment' > updated successfully: [4.1.0] -> [4.2.0] > > Updating page '4.2.0 Install Stratos with EC2 in a Testing Environment'... > Page '4.2.0 Install Stratos with EC2 in a Testing Environment' updated > successfully: [4.1.0] -> [4.2.0] > > Updating page '4.2.0 Install Stratos with OpenStack in a Testing > Environment'... > Page '4.2.0 Install Stratos with OpenStack in a Testing Environment' > updated successfully: [4.1.0] -> [4.2.0] > > Updating page '4.2.0 Install Stratos with Kubernetes on EC2'... > Page '4.2.0 Install Stratos with Kubernetes on EC2' updated successfully: > [4.1.0] -> [4.2.0] > > ------------------------------------------------- > > > [2] > > Select a menu item: 2 > > ------------------------------------------------- > Find and Replace Text > ------------------------------------------------- > Enter page title: 4.2.0 Features > Find text: 4.1.0 > Replace with: 4.2.0 > > Updating page '4.2.0 Features'... > Page not updated, text '4.1.0' not found > > Updating page '4.2.0 Composite Applications'... > Page '4.2.0 Composite Applications' updated successfully: [4.1.0] -> > [4.2.0] > > Updating page '4.2.0 Smart Policies'... > Page not updated, text '4.1.0' not found > > Updating page '4.2.0 Cartridge'... > Page '4.2.0 Cartridge' updated successfully: [4.1.0] -> [4.2.0] > > Updating page '4.2.0 Apache Stratos Mock IaaS'... > Page '4.2.0 Apache Stratos Mock IaaS' updated successfully: [4.1.0] -> > [4.2.0] > > Updating page '4.2.0 Persistence Volume Mapping'... > Page not updated, text '4.1.0' not found > > Updating page '4.2.0 CLI Tool'... > Page not updated, text '4.1.0' not found > > Updating page '4.2.0 Cloud Partitioning'... > Page '4.2.0 Cloud Partitioning' updated successfully: [4.1.0] -> [4.2.0] > > Updating page '4.2.0 Logging'... > Page not updated, text '4.1.0' not found > > Updating page '4.2.0 Load Balancer Extensions'... > Page not updated, text '4.1.0' not found > > Updating page '4.2.0 LVS Load Balancer'... > Page not updated, text '4.1.0' not found > > Updating page '4.2.0 Setting Up the LVS Load Balancer'... > Page not updated, text '4.1.0' not found > > Updating page '4.2.0 Testing the LVS Load Balancer on OpenStack'... > Page not updated, text '4.1.0' not found > > Updating page '4.2.0 Trouble Shooting Tips for LVS Load Balancer'... > Page not updated, text '4.1.0' not found > > ------------------------------------------------- > > > Regards, > Mariangela > > > *Mariangela Hills* > Senior Technical Writer - WSO2, Inc. http://wso2.com > Committer and PMC member - Apache Stratos > email:mariang...@wso2.com | mobile: +94 773 500185 > > On Tue, Aug 18, 2015 at 3:35 PM, Imesh Gunaratne <im...@apache.org> wrote: > >> Thanks everyone! I have now completed the initial version of this tool. >> You can now use it as follows: >> How to run >> >> 1. >> >> Install pip by following this guide >> <https://pip.pypa.io/en/latest/installing.html#install-pip>: >> 2. >> >> Install python dependencies: >> >> pip install requests[security] >> >> 3. >> >> Update Confluence endpoint and space name in client.py: >> >> endpoint = 'https://cwiki.apache.org/confluence' >> space = 'STRATOS' >> >> 4. >> >> Execute client: >> >> python client.py >> >> ------------------------------------------------- >> Confluence Client Menu >> ------------------------------------------------- >> 1: Find Pages Recursively >> 2: Find and Replace Text >> 3: Exit >> ------------------------------------------------- >> >> Select a menu item: 1 >> >> ------------------------------ >> Find Pages Recursively >> ------------------------------ >> Enter page title: 4.1.0 Features >> >> Found page: 4.1.0 Features >> Found page: 4.1.0 Composite Applications >> Found page: 4.1.0 Smart Policies >> Found page: 4.1.0 Cartridge >> Found page: 4.1.0 Apache Stratos Mock IaaS >> Found page: 4.1.0 Persistence Volume Mapping >> Found page: 4.1.0 CLI Tool >> Found page: 4.1.0 Cloud Partitioning >> Found page: 4.1.0 Logging >> Found page: 4.1.0 Load Balancer Extensions >> Found page: 4.1.0 LVS Load Balancer >> Found page: 4.1.0 Setting Up the LVS Load Balancer >> Found page: 4.1.0 Testing the LVS Load Balancer on OpenStack >> Found page: 4.1.0 Troubleshooting Tips for LVS Load Balancer >> >> ------------------------------------------------- >> Find and Replace Text >> ------------------------------------------------- >> Enter page title: Temp >> Find text: _PAGE4_ >> Replace with: page >> >> Updating page 'Temp'... >> Page 'Temp' updated successfully: [_PAGE4_] -> [page] >> >> >> >> On Sat, Aug 15, 2015 at 10:24 AM, Shavindri Dissanayake < >> shavin...@wso2.com> wrote: >> >>> Thank you Imesh! This is a really great initiative. >>> >>> Thanks & Regards >>> Shavindri Dissanayake >>> Technical Writer >>> >>> WSO2 Inc. >>> lean.enterprise.middleware >>> >>> On Fri, Aug 14, 2015 at 7:49 PM, Lahiru Sandaruwan <lahi...@wso2.com> >>> wrote: >>> >>>> Indeed helpful, not only for us, for a lot of people in business. >>>> >>>> Thanks. >>>> >>>> On Fri, Aug 14, 2015 at 7:52 AM, Mariangela Hills <mariang...@wso2.com> >>>> wrote: >>>> >>>>> Imesh, thanks for taking the initiative to come up with a solution for >>>>> this issue! This sure will be a very useful tool! >>>>> >>>>> Regards, >>>>> Mariangela >>>>> >>>>> >>>>> *Mariangela Hills* >>>>> Senior Technical Writer - WSO2, Inc. http://wso2.com >>>>> Committer and PMC member - Apache Stratos >>>>> email:mariang...@wso2.com | mobile: +94 773 500185 >>>>> >>>>> On Fri, Aug 14, 2015 at 5:55 PM, Imesh Gunaratne <im...@apache.org> >>>>> wrote: >>>>> >>>>>> Hi Devs, >>>>>> >>>>>> I'm implementing a python client for updating content in Wiki. It >>>>>> seems like we now have around 400+ pages in 4.1.0 space and it's nearly >>>>>> impossible to copy this to a new space and update the version when we are >>>>>> preparing for a new product release. >>>>>> >>>>>> The initial implementation can be found here [1]. This supports to >>>>>> query all the pages under 4.1.0 space recursively. The next step is to >>>>>> add >>>>>> a features to update the content (find & replace the version). >>>>>> >>>>>> [1] https://github.com/imesh/confluence-client/blob/master/client.py >>>>>> >>>>>> Thanks >>>>>> >>>>>> -- >>>>>> Imesh Gunaratne >>>>>> >>>>>> Senior Technical Lead, WSO2 >>>>>> Committer & PMC Member, Apache Stratos >>>>>> >>>>> >>>>> >>>> >>>> >>>> -- >>>> -- >>>> Lahiru Sandaruwan >>>> Committer and PMC member, Apache Stratos, >>>> Senior Software Engineer, >>>> WSO2 Inc., http://wso2.com >>>> lean.enterprise.middleware >>>> >>>> phone: +94773325954 >>>> email: lahi...@wso2.com blog: http://lahiruwrites.blogspot.com/ >>>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 >>>> >>>> >>> >> >> >> -- >> Imesh Gunaratne >> >> Senior Technical Lead, WSO2 >> Committer & PMC Member, Apache Stratos >> > > -- Imesh Gunaratne Senior Technical Lead, WSO2 Committer & PMC Member, Apache Stratos