-
Notifications
You must be signed in to change notification settings - Fork 48
Creating a new webtool
Steps to create a new web tool:
-
Add an entry point in the services page: Go to webservice_projects.html and add an entry point for the new webtool.
-
Create the webtool home page: We need to create the webtool home page.
-
Create a python package for the webtool inside under pyworkflow/web/webtools/
-
now, in the webtool package folder:
-
in the init.py add "from urls import urls"
-
create urls.py based on other webtools an customize appropriately.
-
create views.py based on other webtools an customize appropriately.
-
For this you might need to create the test data: add your test data in the Test/init.py file and use it in the create project method.
-
create the .js utils file based on other webtools an customize appropriately under <webtool_package>/resources/js/
-
create the .html file based on other webtools an customize appropriately under <webtool_package>/templates
-