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 Willia
Hey Christian,
I would be glad to submit a patch.
However, is there a clean way to gain access to an Extension object's
.setting attribute within a Field? For example, I have a configuration form
for my extension and this updates a setting dict. The setting dict exists
in an Extension object w
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 - christ...@be
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 s