Re: ReviewBoard Extensions ( BaseTextAreaField )

2014-09-25 Thread Christian Hammond
Hi Peter, You can access MyExtensionClass.instance.settings, which should give you what you want. Christian -- Christian Hammond - christ...@beanbaginc.com Review Board - https://www.reviewboard.org Beanbag, Inc. - https://www.beanbaginc.com On September 25, 2014 at 1:07:29 PM, Peter

ReviewBoard Extensions ( BaseTextAreaField )

2014-09-23 Thread Peter Williams
Hello RB users / admins, Is there a way to specify default text within a BaseTextAreaField? My current field looks something like below: from reviewboard.reviews.fields import BaseTextAreaField class OutputField(BaseTextAreaField): field_id = testme' label = 'test label' I couldn't

Re: ReviewBoard Extensions ( BaseTextAreaField )

2014-09-23 Thread Christian Hammond
Hi Peter, There is no official way of doing this, but you can probably try to override the load_value() function and have it return some default text if not otherwise specified. I'd be happy to take a patch that implements default values cleanly. Christian -- Christian Hammond -