• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 26. New Principal-Source Plug-ins > Step 1: Defining the Interface

Step 1: Defining the Interface

You might wonder what interface you need when dealing with a principal-source plug-in. In order for a file-based principal-source plug-in to provide principals, you need to know what file contains the data; knowing about this file is certainly part of the API for this plug-in. So you want to create a specific interface that contains a filename. If you make this attribute a schema field, you can even use the interface/schema to create autogenerated add and edit forms.

In the passwdauth directory, you add an interfaces.py file and add the following contents to it:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint