Skip to main content

Summarizing Summer

It was a great pleasure to work with great coders/developers at Plone Foundation and learning a lot from them during the course of the program. This blog is about summarizing the whole work I have done during this summer under Google summer of code 2016 under Plone Foundation.

So my project mainly focuses on improving forms in plone for dexterity. We already have forms in plone for archetype. So there is a project named collective.easyform which basically provide forms for Plone as dexterity contenttype. The main focus of the project was to improve that code base. Make this stable for plone 5.0 and above. Make all the test cases passing for the code base. Try to cover tests as much as possible code base. Also implement functionalities for fields/actions of the forms in correct place. Make the plone more user friendly. Finally for users who want to migrate their already present forms in Plone Form Gen (PFG) which is archetype to easyforms which are dexterity based forms Plone. This will require creating a custom control panel for users(Admins) so that they will be having options to migrate all the from PFG to easyforms and later on create a report of the migration of the forms.

So we have already improved all the test cases and all test cases are passing for the project and project is stable for plone5 and upper versions. Here is the code base for the following feature.

After that we worked on improving easyforms feature so that it is more user friendly and the code base for the following can be found here

After that we created custom control panel so that Admins have option to migrate the forms. Here is the code base for the same.

After that we started working on migrating easyforms and we started with fields and succeeded in writing migration for fields and we can improve those migration gradually. These migration are not that easy as normal migrations in plone as PFG were Folder so they have heirachy in fields and we have to handle each and every field manually. Here is the code base for migrations for PFG to easyforms.

I really learnt a lot during the whole time and I am hoping the same for future also as I will continue the work for migration to improve the migrations.

Cheers

Comments

Popular posts from this blog

Testing the transform

Hello everyone, now the transform for filtering html is ready and the main task is to test the transform. For that purpose I have set up the whole test environment for my add-on using testing.py for unit tests and robot tests. After setting up the environment, now its time to first write unit test for transform that we have just created to check if they are all passing and the transform is working properly or not. For creating unit test I first created test class and in that class I just call the convert function that we have created in the transform and give the input as a data stream and pass it to convert function and then get the output as required. After writing few simple test cases like 30-35 then just ran these test cases and they ran successfully. Test cases ran successfully locally :- Travis is also happy ;) Yayayay!!! Finally test cases were passing so its like a milestone for the project and its completed. The PR got merged and things working good as expect...

One Last Time

Okay. So finally the list of GSOC'16 selected students is out and I am glad that my project got selected under Plone Foundation. I am really looking forward to work on my project which is basically improving the add-on named easyforms. I have already started working on the same project and will plan with my mentor for future work. I will keep this blog updated with the work I will be doing during the project as I did last summer too. Cheers.