Hi Toby,
I saw your pull requests and will have a look at them. I hope to push
On Tue, May 8, 2012 at 1:12 PM, Toby Dacre <toby...@gmail.com> wrote:
> Hi,
>
> I'm working on the ckan project ckan.org and we are looking at using
> fanstatic to serve our .css .js resources. Currently there are a
> couple of issues that make this difficult. I added them (and patches)
> to your bit bucket issue tracker. For us to use fanstatic we'd really
> like to have a version available on pypi that resolves these issues.
a fanstatic release to pypi tonight (GMT+1).
We welcome contributions. Martijn and I had some discussions on
> I see that in november you were looking for co-maintainers. If this
> is still the case I'd be happy to spend some time going through issue
> tracker etc.
fanstatic features last week, now it's just a matter of implementing
them. I'll write up a post to the mailing list soon.
> Thanks
> Toby
Cheers,
JJ
On Tue, May 08, 2012 at 02:13:42PM +0100, Toby Dacre wrote:I think this is a good idea.
> I'd like to be able to dynamically load libraries without having to
> register entry_points for them as that requires re running setup.py etc.
> What would be great is to have an extra entry point for loading dynamic
> entry points
>
> so
> setup.py
> [fanstatic.dynamic]
> dynamic_entry_points = foo:bar
>
> foo:bar would be able to return a list of entry points ['foo = moo:foo',
> 'bar = moo:bar']
>
> I've done a small proof of concept and it looks like it should be fairly
> easy to get working. Let me know if this would be acceptable and I'll
> knock a patch up.
I'd suggest, however, that rather than introducing a new indirect
entry point, just keep a list of entry points internally and provide
an API to add to the list. See the way dogpile.cache handles this
with register_backend().
>> > Another question: Shouldn't both `base_url` and `script_name` be usedOK, that makes sense to me now. I have updated the fanstatic branch;
>> > to influence the computation of the library_url?
>> > It looks like that's what Eric wants:
>
> I think Eric like me wants a way of being able to dynamically get the site
> root rather than having to specify it in a .ini file, The script_name is a
> fallback and base_url should be honoured if it is provided.
could you check whether this works in your project?
> base_url or script_name should be used but not both. Eric's pull requestI don't have failings tests right now. Could you pull the most recent
> behaves like this
>> > https://bitbucket.org/fanstatic/fanstatic/pull-request/1/support-wsgi-apps-not-mounted-at#chg_fanstatic/test_core.py_newline536
>> >
>> > One of the tests on my branch currently fails, because I don't know
>> > what to do here.
>
> On current master tip e91e7edee152 I'm getting test fails for the
> test_checksum tests not sure why.
changes and test again? If the tests fail on your machine could you
send an overview of the failing tests?
> base_url or script_name should be used but not both. Eric's pull requestI don't have failings tests right now. Could you pull the most recent
> behaves like this
>> > https://bitbucket.org/fanstatic/fanstatic/pull-request/1/support-wsgi-apps-not-mounted-at#chg_fanstatic/test_core.py_newline536
>> >
>> > One of the tests on my branch currently fails, because I don't know
>> > what to do here.
>
> On current master tip e91e7edee152 I'm getting test fails for the
> test_checksum tests not sure why.
changes and test again? If the tests fail on your machine could you
send an overview of the failing tests?
again, I'll do this hopefully it's just something stupid on my part. It'll have to wait till tomorrow though.
Hey,
That's interesting, looks like it's platform dependent, possibly some
On Wed, May 16, 2012 at 8:00 PM, Toby Dacre <toby...@gmail.com> wrote:
>
> I still have a test issue but this may well just be my setup
difference in the way setuptools is setup. What python version are you
using? What platform? setuptools or distutils?
Looks like we fixed issue #77 . Shall I roll a release of fanstaticOn Sun, May 20, 2012 at 5:56 PM, Martijn Faassen <faa...@startifact.com> wrote:
> Hallo,
>
> On Thu, May 17, 2012 at 11:51 AM, Toby Dacre <toby...@gmail.com> wrote:
>> On 16 May 2012 19:43, Martijn Faassen <faa...@startifact.com> wrote:
>>> On Wed, May 16, 2012 at 8:00 PM, Toby Dacre <toby...@gmail.com> wrote:
>>> >
>>> > I still have a test issue but this may well just be my setup
>>>
>>> That's interesting, looks like it's platform dependent, possibly some
>>> difference in the way setuptools is setup. What python version are you
>>> using? What platform? setuptools or distutils?
> [snip]
>> I think this is just some interaction with some stuff in my pyenv. I did a
>> fresh install of fanstatic in a clean environment and these errors no longer
>> occur.
>
> Okay, if this issue went away I guess it's not really our fault (until
> we find out that it is :).
>
> Thanks for tracking this down.
with the recent fixes and pull requests in it? There are no major
changes since 0.11.4 but I would like to publish this one.
One more thing; I was thinking the following about renderers:
1) I added a print css renderer to fanstatic/core.py.
2) I was thinking about IE specific renderers like this:
class ConditionalRenderer(object):
def __init__(self, condition, renderer):
self.condition = condition
self.renderer = renderer
def __call__(self, url):
return '<!--[if %s]>%s<![endif]-->' % (self.condition,
self.renderer(url))
>>> renderer = ConditionalRenderer('lt IE 8', render_print_css)
>>> renderer('http://localhost/fanstatic/style.css')
'<!--[if lt IE 8]><link rel="stylesheet" type="text/css"
href="http://localhost/fanstatic/style.css" media="print"
/><![endif]-->'
Should this functionality be part of fanstatic?
--JJ
Regards,
Martijn
--
JJ
--
Jan-Jaap