Kartik, Instead of storing your configuration in a file, I'd suggest providing a settings form. Any data saved by the form will get serialized to JSON and stored in the database, and then they'll be available in decoded form in `extension.settings`
See https://www.reviewboard.org/docs/manual/latest/extending/extensions/configuration/#extension-configuration for details on this. Apologies for the current state of the extensions documentation--we're working on improving it. David On Sun, Sep 7, 2025 at 12:48 PM Kartik <[email protected]> wrote: > Hello, > I am trying my hand at writing an extension that uses signal hooks > (e.g. on_review_published) to update the jira ticket with the progress of > the code review. I would like to read the jira server access info from a > settings file, and the site directory (default: /var/www/reviewboard) is a > good place for that file. Rather than hard-coding the path, I'd like to > find what is the site directory folder, and look in there. > My question is: How can I find which is the site directory folder from > inside my extension? > Thanks! > Kartik > > -- > Supercharge your Review Board with Power Pack: > https://www.reviewboard.org/powerpack/ > Want us to host Review Board for you? Check out RBCommons: > https://rbcommons.com/ > Happy user? Let us know! https://www.reviewboard.org/users/ > --- > You received this message because you are subscribed to the Google Groups > "Review Board Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion visit > https://groups.google.com/d/msgid/reviewboard/4c2e56bb-35c9-48e3-b9f4-81f5e8008251n%40googlegroups.com > <https://groups.google.com/d/msgid/reviewboard/4c2e56bb-35c9-48e3-b9f4-81f5e8008251n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/ Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/ Happy user? Let us know! https://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups "Review Board Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/reviewboard/CAFS3VNUFHPJEG9Ng_CoFiwYLSRwDO-qtHCbC2bmJR4HZ1-Vu9A%40mail.gmail.com.
