Getting Review Board to Recreate Static Assets

2015-09-01 Thread Peter Williams
Review Board minifies it JS files into the follow location:

reviewboard/lib/python2.6/site-packages/ReviewBoard-2.0.17-py2.6.egg/reviewboard/htdocs/static/rb/js

This can often be generated from a combination of JS files in:

reviewboard/lib/python2.6/site-packages/ReviewBoard-2.0.17-py2.6.egg/reviewboard/htdocs/static/rb/js/utils/*

I made the update to a JS file in the /utils/ directory but this change is 
not getting propagated to the `reviews.min.js` file.

What is the recommended way to get local changes propagated to the minified 
JS files?

-- 
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 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Getting Review Board to Recreate Static Assets

2015-09-01 Thread Peter Williams
This ends up returning:

running bdist_egg
running egg_info
running build_media
Traceback (most recent call last):
  File "contrib/internal/build-media.py", line 20, in 
import pkg_resources
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2880, in 

working_set = WorkingSet._build_master()
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 434, in 
_build_master
return cls._build_from_requirements(__requires__)
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 447, in 
_build_from_requirements
dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 626, in 
resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: Django>=1.6.11,<1.7
Traceback (most recent call last):
  File "./setup.py", line 232, in 
"Topic :: Software Development :: Quality Assurance",
  File "/usr/lib64/python2.6/distutils/core.py", line 152, in setup
dist.run_commands()
  File "/usr/lib64/python2.6/distutils/dist.py", line 975, in run_commands
self.run_command(cmd)
  File "/usr/lib64/python2.6/distutils/dist.py", line 995, in run_command
cmd_obj.run()
  File "/usr/lib/python2.6/site-packages/setuptools/command/bdist_egg.py", 
line 152, in run
self.run_command("egg_info")
  File "/usr/lib64/python2.6/distutils/cmd.py", line 333, in run_command
self.distribution.run_command(command)
  File "/usr/lib64/python2.6/distutils/dist.py", line 995, in run_command
cmd_obj.run()
  File "./setup.py", line 80, in run
self.run_command('build_media')
  File "/usr/lib64/python2.6/distutils/cmd.py", line 333, in run_command
self.distribution.run_command(command)
  File "/usr/lib64/python2.6/distutils/dist.py", line 995, in run_command
cmd_obj.run()
  File "./setup.py", line 100, in run
raise RuntimeError('Failed to build media files')
RuntimeError: Failed to build media files

Is there a missing dependency?

This is to patch a bug in a later release.

Thanks!

On Tuesday, September 1, 2015 at 12:40:05 PM UTC-7, Christian Hammond wrote:
>
> Hi Peter,
>
> You need to have node.js, lessc, and uglifyjs installed locally, and then 
> you must repackage Review Board with your modification by checking out the 
> source tree, modifying the file, and running:
>
> ./setup.py bdist_egg
>
> Can I ask what changes you're making? It's usually not in your best 
> interest to make these sort of modifications without sending them upstream. 
> If there's custom behavior you need, it's best to look into what extensions 
> can do or talk to us about improvements you need there.
>
> Christian
>
> -- 
> Christian Hammond - chi...@chipx86.com 
> Review Board - https://www.reviewboard.org
> Beanbag, Inc. - https://www.beanbaginc.com
>
> On Tue, Sep 1, 2015 at 12:16 PM, Peter Williams <i.ask.djang...@gmail.com 
> > wrote:
>
>> Review Board minifies it JS files into the follow location:
>>
>>
>> reviewboard/lib/python2.6/site-packages/ReviewBoard-2.0.17-py2.6.egg/reviewboard/htdocs/static/rb/js
>>
>> This can often be generated from a combination of JS files in:
>>
>>
>> reviewboard/lib/python2.6/site-packages/ReviewBoard-2.0.17-py2.6.egg/reviewboard/htdocs/static/rb/js/utils/*
>>
>> I made the update to a JS file in the /utils/ directory but this change 
>> is not getting propagated to the `reviews.min.js` file.
>>
>> What is the recommended way to get local changes propagated to the 
>> minified JS files?
>>
>> -- 
>> 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 
>> "reviewboard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to reviewboard...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Review Board Power Pack Reports

2014-12-09 Thread Peter Williams
Hello!

Without installing the new power pack, is there a way to get a list of the 
metrics + charts being used in the power pack?

It would be easier to evaluate by distributing this to the evaluators.

Thanks

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
reviewboard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 see any mention of this in the API and digging through the code 
suggests that you can't but I may be wrong.

Thanks for any help.

-P





-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
reviewboard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.