Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you add other tabs besides SignHereTab #61

Open
JohnnyZ opened this issue Sep 29, 2015 · 4 comments
Open

How do you add other tabs besides SignHereTab #61

JohnnyZ opened this issue Sep 29, 2015 · 4 comments

Comments

@JohnnyZ
Copy link

JohnnyZ commented Sep 29, 2015

            pydocusign.SignHereTab(
                documentId=1,
                pageNumber=settings.DOCUSING_SIGN_PAGE,
                xPosition=settings.DOCUSIGN_SIGN_XPOS,
                yPosition=settings.DOCUSIGN_SIGN_YPOS,

            ),

works

            pydocusign.fullNameTabs(
                name="Name",
                tabLabel="Name 1",
                pageNumber=settings.DOCUSING_SIGN_PAGE,
                xPosition=375,
                yPosition=574,
            ),

fullNameTabs, companyTabs etc is not recognized. What is the best bet to have these tabs added.

I googled and tinkered and could not find a solution. I apologize in advance if this is answered somewhere or an easy solution that I am missing

@JohnnyZ
Copy link
Author

JohnnyZ commented Sep 30, 2015

Tried making another SignHereTab, but name as well as tabLabel are not recognized.

@kbussell
Copy link
Contributor

If you want the same attributes as PositionnedTab, then you can just sublcass that override tabs_name to match the tab name from the DocuSign documentation. If you need other attributes, override the attributes member, and create a constructor similar to how the other tab classes work. Technically, you could also override to_dict(), but in the tabs from the code, they don't have any extra functionality other than calling the base. (They do add a doctest, though.)

@kbussell
Copy link
Contributor

#75 adds a few more tab types in case it's useful to you

@edouardpoitras
Copy link
Contributor

You can also look at my PR for an example of how adding tabs in pydocusign works: #109

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants