Nathan Osman | 9 May 01:05
Picon
Gravatar

Question About Preserving HTML Attributes

Is there a way to prevent specific HTML attributes from being stripped from the RSS feeds that Planet Venus pulls from external sources? For example, this feed contains a  <div> with some HTML5 data-* attributes that are parsed by some JavaScript code on the page. Unfortunately it seems like Planet Venus is pulling them out - is there some configuration setting that could be changed to prevent this?

Thanks,
Nathan

--

-- 
devel mailing list
devel <at> lists.planetplanet.org
http://lists.planetplanet.org/mailman/listinfo/devel
Thimuth Amarakoon | 16 Apr 14:04
Picon

RSS feed from venus aggregator

Hi All,


How can I get a RSS feed from venus aggregator? Does it support for a feed by default? If so what is the feed URL.

Thanks,
Thimuth
--

-- 
devel mailing list
devel <at> lists.planetplanet.org
http://lists.planetplanet.org/mailman/listinfo/devel
Robert Stackhouse | 14 Apr 18:20
Picon
Gravatar

Failing tests from github

Could someone tell me what these failures mean and how to correct them?

Thanks,

Robert

robert <at> ubuntu:~/venus$ python runtests.py
Genshi is not available => can't test genshi filters
Django is not available => can't test django filters
Redland RDF is not available => can't test FOAF reading lists
libxslt is not available => can't test xslt filters
....................................................................................................................................sh: xsltproc: not found
sh: xsltproc: not found
sh: xsltproc: not found
sh: xsltproc: not found
sh: xsltproc: not found
Fsh: xsltproc: not found
sh: xsltproc: not found
sh: xsltproc: not found
.sh: xsltproc: not found
sh: xsltproc: not found
sh: xsltproc: not found
sh: xsltproc: not found
sh: xsltproc: not found
Esh: xsltproc: not found
sh: xsltproc: not found
sh: xsltproc: not found
sh: xsltproc: not found
sh: xsltproc: not found
Fsh: xsltproc: not found
sh: xsltproc: not found
sh: xsltproc: not found
..............................................................................
======================================================================
ERROR: test_apply_filter (tests.test_apply.ApplyTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/robert/venus/tests/test_apply.py", line 103, in test_apply_filter
    html = open(os.path.join(workdir, 'index.html')).read()
IOError: [Errno 2] No such file or directory: 'tests/work/apply/index.html'

======================================================================
FAIL: test_apply_asf (tests.test_apply.ApplyTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/robert/venus/tests/test_apply.py", line 50, in test_apply_asf
    self.apply_asf()
  File "/home/robert/venus/tests/test_apply.py", line 33, in apply_asf
    self.assertTrue(os.stat(path).st_size > 0, file + ' has size 0')
AssertionError: index.html has size 0

======================================================================
FAIL: test_apply_filter_html (tests.test_apply.ApplyTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/robert/venus/tests/test_apply.py", line 62, in test_apply_filter_html
    self.apply_asf()
  File "/home/robert/venus/tests/test_apply.py", line 33, in apply_asf
    self.assertTrue(os.stat(path).st_size > 0, file + ' has size 0')
AssertionError: index.html has size 0

----------------------------------------------------------------------
Ran 214 tests in 4.572s

--

-- 
devel mailing list
devel <at> lists.planetplanet.org
http://lists.planetplanet.org/mailman/listinfo/devel
Gravatar

Re: Venus kills iframe embeds

Oh, thanks! It works now.

Best regards,
Tamas

2012/1/25 Manuel Kueblboeck <manuel <at> qualityswdev.com>:
> Hi Tamas,
>
> As far as I know you can add html tags that should be allowed to the
> file planet/vendor/html5lib/sanitizer.py.
>
> See this commit on my venus
> fork: https://github.com/kueblboe/venus/commit/336fa05595498e593c39f6117d2dba5dca604ea1
>
> Cheers,
> Manuel
>
> 2012/1/24 Kádár Tamás (KTamas) <ktamas <at> ktamas.com>
>>
>> Hi
>>
>> I've noticed that venus strips the iframe embeds out somehow. How can
>> I disable that?
>>
>> Thanks and best regards,
>> Tamas
>> --
>> devel mailing list
>> devel <at> lists.planetplanet.org
>> http://lists.planetplanet.org/mailman/listinfo/devel
>
>
--

-- 
devel mailing list
devel <at> lists.planetplanet.org
http://lists.planetplanet.org/mailman/listinfo/devel
Gravatar

Venus kills iframe embeds

Hi

I've noticed that venus strips the iframe embeds out somehow. How can
I disable that?

Thanks and best regards,
Tamas
--

-- 
devel mailing list
devel <at> lists.planetplanet.org
http://lists.planetplanet.org/mailman/listinfo/devel

Picon
Gravatar

Comments on rss

Hello,

i have my little planet running meanwhile:
http://www.dartosphere.org

Now I figured out that the posts are bumped to a newer date every time
somebody writes a comment. For example, lets say I write my blog post
on 02.01.2012. Venus does publish it at the date 02.01.2012.

But later, if somebody comments on the post on 06.01.2012, Venus shows
it in the 06.01.2012 section.

Can I avoid this somehow? I would like to posts show up with the date
they are posted, not when they are updated.

Thanks in advance,
Christian

-- 
http://www.grobmeier.de
https://www.timeandbill.de
--

-- 
devel mailing list
devel <at> lists.planetplanet.org
http://lists.planetplanet.org/mailman/listinfo/devel

Samuel Kay | 2 Jan 16:47
Picon

Adding some variables from config.ini

Hi,

I wanted to use the same template to create three different pages. One 
with the news of the 5 last days, the second with the news of the 21 
last days and the last one with the news of the 90 last days. I did it 
by copying the template and adding a section :
[examples/fancy/index_5j.html.tmpl]
days_per_page = 5

[examples/fancy/index_21j.html.tmpl]
days_per_page = 21

But, I also wanted a link to the RSS file and to the ATOM file. So, I 
had to edit each html template to link it to the right file. I would 
rather had use some variable to do that and keep template untouched.

In the config.ini file, you can add variables for channel. You can also 
configure options for the templates. So I thought there should be a way 
to add variable for templates.
Channel variables are prefixed by "channel_", so in my code, those for 
template are prefixed by "file_".

If there was already a way to do that, please tell me !

Otherwise, I give you the diff. I have to warn you, it is my first code 
in python.

Sincerely yours,

Samuel Kay
294c294,298
< 
---
>             
>             if self.config.has_section(template_file):
>                for option in self.config.options(template_file):
>                  tp.set("file_" + option,      self.config.get(template_file, option) )
>                  
--

-- 
devel mailing list
devel <at> lists.planetplanet.org
http://lists.planetplanet.org/mailman/listinfo/devel
Christian Grobmeier | 20 Dec 14:15
Picon
Gravatar

Venus on 1and1.com

Hello,

I have git-pulled Venus:
http://www.intertwingly.net/code/venus/docs/installation.html
which is a fork of the planetplanet software, as far as I understood.

I runned the tests as mentioned on the website and got this:

(uiserver):user:~/test/venus > python runtests.py
Genshi is not available => can't test genshi filters
xsltproc is not available => can't test XSLT templates
Django is not available => can't test django filters
libxslt is not available => can't test xslt filters
libxml2 is not available => can't test xpath_sifter
Redland RDF is not available => can't test FOAF reading lists
Ran 207 tests in 4.000s

Even when it does not look good for me, are there any chances I get
that software running on 1and1?

Python is v2.6.6

Cheers
Christian
--

-- 
devel mailing list
devel <at> lists.planetplanet.org
http://lists.planetplanet.org/mailman/listinfo/devel

Picon

varying items_per_page -- multiple configs needed?

Hi,

I want to create two alternate views of a planet feed, which display a different number of items per page, so users can view the most recent items quickly (say, items_per_page = 20) or browse back through the last fews weeks' traffic (say, items_per_page = 200).  Is there an easy way to do this?  It seems like items_per_page is set to apply to all outputs created with that config file, regardless of the incoming template.  Is that true?  Do I need to create multiple config files?  If so, how do I do this without breaking anything else?

Also, more generally - directions to documentation would be helpful.  Having a hard time just figuring out how the different scripts and files interact with each other.

best
Shauna

--

-- 
devel mailing list
devel <at> lists.planetplanet.org
http://lists.planetplanet.org/mailman/listinfo/devel
Milo van der Linden | 30 Nov 21:24

SOLVED: How to install planet venus on OS X

Found the solution:

On my linux machine, I ran into the same error running runtests.py

TemplateError: Htmltmpl error: IO error while reading template
'/web/script/rubys/intertwingly.net/code/venus/themes/classic_fancy/index.html.tmpl':
(2) No such file or directory

find . | xargs grep '/web/script/rubys/intertwingly.net/code/' -sl

pointed me to a file named /themes/classic_fancy/index.html.tmplc

It looks like it is some compiled template that shouldn't be in git
but accidently got there.

Removing the file and rerunning  "runtests.py" now gave me "OK"
--

-- 
devel mailing list
devel <at> lists.planetplanet.org
http://lists.planetplanet.org/mailman/listinfo/devel

Leif Halvard Silli | 15 Nov 20:49
Picon

RE: How to install planet venus on OS X

Dave Levy, Tue, 15 Nov 2011 16:57:58 -0000:

Hi Dave, thanks for your reply!

> No one replied yet?

Nope.

> I suspect that it's a PATH thing. I have a copy of sed in /usr/bin which my
> PATH finds.

I myself have sed in the same location. It looks as if I have libxml2 
there too - at least xmllint is there. The use of Mac Ports often leads 
to double set of installations. So I have at least libxml2 inside /opt 
as well.

> I have not installed planet on MAC yet, so can't comment on libxml2 except
> to say that MACOS does not use LD_LIBRARY_PATH, but
> DYLD_FALLBACK_LIBRARY_PATH.

Not sure what you refer to here. But I searched through the downloaded 
Planet Venus files but did not find the string 'LD_LIBRARY_PATH'. Do yo 
talk about PATH here? I must admit that I don't know what to do in that 
regard.

> The template error looks like an error in config.ini. I suspect that the
> directory structure doesn't exist on your machine, so you need to find out
> why run_tests.py thinks it does.

The documentation says that one can install Planet Venus wherever one 
wants. Thus I would have thought that the broken template is a bug in 
the downloaded package, rather than an issue with my OS. 

> I shan't be at my Mac for a while, but let me know if any of this works, if
> not, I'll try it on my machine.

Unfortunately, it did not bring me very much closer. Thank you very 
much in advance, if and when you find out more!

Leif H Silli

> Dave
> david.levy <at> tiscali.co.uk
> 
> -----Original Message-----
> From: devel-bounces <at> lists.planetplanet.org
> [mailto:devel-bounces <at> lists.planetplanet.org] On Behalf Of Leif Halvard
> Silli
> Sent: 15 November 2011 02:31
> To: devel <at> lists.planetplanet.org
> Subject: How to install planet venus on OS X
> 
> Before attempting the install of Planet Venus on OS X - a legacy PPC machine
> with OS X 10.5, I ran the recommended test:
> 
>     python runtests.py
> 
> Which failed, with messages such as these - in excerpt:
>    sed is not available => can't test stripAd_yahoo
>    libxml2 is not available => can't test xpath_sifter
> 
> Strange, since sed + libxml2 *are* on my computer. Further I got:
>    ERROR: test_apply_classic_fancy (tests.test_apply.ApplyTest)
> 
> And:
>    Traceback (most recent call last):        ... snip ...
>    TemplateError: Htmltmpl error: IO error while reading template
>    
> <'/web/script/rubys/intertwingly.net/code/venus/themes/classic_fancy/index.h
> tml.tmpl'>
>    : (2) No such file or directory
> 
> Finally:
>    FAILED (errors=1)
> 
> Has anyone had better Macintosh luck? E.g on Intel machines and/or later
> versions of OSX?
> 
> BTW: I use Mac Ports to install 'unix stuff', which means that e.g. 
> libxml2 goes in to /opt/local - perhaps the test isn't taking that in to
> account? 
> 
> Leif Halvard Silli
> --
> devel mailing list
> devel <at> lists.planetplanet.org
> http://lists.planetplanet.org/mailman/listinfo/devel
> 
--

-- 
devel mailing list
devel <at> lists.planetplanet.org
http://lists.planetplanet.org/mailman/listinfo/devel


Gmane