Hi David,

I have used media bundles I believe. 

My extension looks like:

class Defaults(Extension):
    metadata = {
        'Name': 'defaults',
        'Summary': 'fdsa',
    }

    js_bundles = {
        'default': {
            'source_filenames': ['js/customize.js']
        }
    }

and was generated with the boilerplate generator.

Is that not a correct usage?

I activated the extension via the admin interface and used 'pip install' to 
get it recognized with RB.

thanks,
Jay

On Friday, September 26, 2014 2:14:06 PM UTC-7, David Trowbridge wrote:
>
> Jay,
>
> If you have your extension media defined using the media bundles[1], when 
> you activate an extension, Review Board will copy the static media into 
> your htdocs/static directory.
>
> [1] 
> https://www.reviewboard.org/docs/manual/2.0/extending/extensions/static-files/
>
> -David
>
> On Fri, Sep 26, 2014 at 5:01 PM, Jay Lee <jaylee...@gmail.com 
> <javascript:>> wrote:
>
>> Hello!
>>
>> I have upgraded to reviewboard 2.0.7 and have been actively working on 
>> extensions. However, I have not been able to find a "good" way of exposing 
>> my extension's static files.
>>
>> The issue I am running into is that my reviewboard installation relies on 
>> a 'apache-wsgi.conf' that has the following:
>>
>>   Alias /static "/export/apps/reviewboard/site/htdocs/static"
>>   <Location "/static">
>>       SetHandler None
>>   </Location>
>>
>> This means that when an extension is pip installed it ends up in
>>
>>
>> /export/apps/reviewboard//lib/python2.6/site-packages/extension_name/static/js/default.min.js
>>
>> which does not have the prefix 
>>
>> /export/apps/reviewboard/site/htdocs/static
>>
>> This causes all my static files to be rejected by the apache web server.
>>
>> Is there an recommended or clean way of addressing this issue?
>>
>> Thanks,
>> Jay
>>
>>
>>
>>
>>
>>  -- 
>> 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...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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.

Reply via email to