You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Cybexion <cy...@email.de> on 2008/06/05 14:09:19 UTC

Lenya 2.0 questions

Hi,

we try to get used with lenya 2.0 and its concepts and have some questions.
We would like to have a scheduler, that from time to time imports some date
into the CMS.
How is this possible?

Additionally, we would like to export static XHTML onto a named drive.
This should also be triggered by a scheduler.
How does the tasks concept work in 2.0?

Could this be done with Lenya 2.0?
We could not find some helpfull information in the wiki.
What would be a good place to start?


Thanks in advance!



-- 
View this message in context: http://www.nabble.com/Lenya-2.0-questions-tp17668377p17668377.html
Sent from the Lenya - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Lenya 2.0 questions

Posted by Andreas Hartmann <an...@apache.org>.
Andreas Hartmann schrieb:
> Cybexion schrieb:
>> we try to get used with lenya 2.0 and its concepts and have some 
>> questions.
>> We would like to have a scheduler, that from time to time imports some 
>> date
>> into the CMS.
>> How is this possible?
> 
> Option A:
> Use a (Unix) cronjob which starts a module test case.

BTW, for the actual import you could start with examining the test case 
in the export module.

-- Andreas

-- 
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Lenya 2.0 questions

Posted by Andreas Hartmann <an...@apache.org>.
Cybexion schrieb:
> we try to get used with lenya 2.0 and its concepts and have some questions.
> We would like to have a scheduler, that from time to time imports some date
> into the CMS.
> How is this possible?

Option A:
Use a (Unix) cronjob which starts a module test case.

Option B:
Extend the usecase scheduler [1] to handle recurring jobs. This should 
be no problem, IIRC the Cocoon scheduler allows to schedule recurring jobs.

Option C:
Use the Cocoon cron block directly.


> Additionally, we would like to export static XHTML onto a named drive.
> This should also be triggered by a scheduler.

The easiest way would be a cronjob which starts wget. You could also do 
this in Java, but I'd rather use existing tools.


> How does the tasks concept work in 2.0?

It has been replaced by the usecase framework:
http://lenya.apache.org/docs/2_0_x/reference/usecase-framework/index.html

> Could this be done with Lenya 2.0?

Yes, but the OS tools might be the better option in these cases.

[1] 
http://lenya.apache.org/apidocs/2.0/modules/usecase/org/apache/lenya/cms/usecase/scheduling/UsecaseScheduler.html

-- 
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Lenya 2.0 questions

Posted by Andreas Hartmann <an...@apache.org>.
Cybexion schrieb:
> Thanks so far for the answer, even its not what I wanted to hear :-)
> OK, lets get more specific.
> I would like to do something like content syndication and therefore I'm
> looking for an easy to use open source CMS. 
> We want to to create some basic importers, like html, xhtml, http, xml,
> which read data from different sources and stored the content as XML in a
> repository (which could e.g. be Lenya).

That's no problem if you're familiar with Java development.

> The content then gets enriched manuelly with some attributes and then it
> should be automatically be exported into the file system in a different
> format (mostly (x)html.

Also no problem.

> Additionallys the system should create some javascript files, based on the
> properties which are attached to the content. The content should be version
> controlled.

Same here.

> I thought Lenya maybe has something like a QuartsScheduler included?!?!

Yes, the Cocoon cron block uses the Quartz scheduler. Lenya's usecase 
scheduler uses the Cocoon cron block.

> What i NOT want is a complete web page to be created with navigation and
> links like this. More or less just some HTML fragments for later reuse.

The presentation options are entirely up to you.

> For performance reasons I would prefer that the content is directly
> accessible through the file system with no tomcat or jetty in between.

For this purpose you could extend e.g. the Publish usecase to export the 
generated documents to the file system.

> The wget solutions sounds feasable but not very elegant.

That depends on your requirements. It's a proven, robust approach which 
requires no implementation and virtually no configuration. If you want 
to configure it via the CMS GUI, you have to invest some time.

HTH,
-- Andreas


-- 
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Lenya 2.0 questions

Posted by Cybexion <cy...@email.de>.
Thanks so far for the answer, even its not what I wanted to hear :-)
OK, lets get more specific.
I would like to do something like content syndication and therefore I'm
looking for an easy to use open source CMS. 
We want to to create some basic importers, like html, xhtml, http, xml,
which read data from different sources and stored the content as XML in a
repository (which could e.g. be Lenya).
The content then gets enriched manuelly with some attributes and then it
should be automatically be exported into the file system in a different
format (mostly (x)html.
Additionallys the system should create some javascript files, based on the
properties which are attached to the content. The content should be version
controlled.

I thought Lenya maybe has something like a QuartsScheduler included?!?!

What i NOT want is a complete web page to be created with navigation and
links like this. More or less just some HTML fragments for later reuse.
For performance reasons I would prefer that the content is directly
accessible through the file system with no tomcat or jetty in between.

The wget solutions sounds feasable but not very elegant.

Thanks for your support.


Joern Nettingsmeier wrote:
> 
> Cybexion wrote:
>> Hi,
>> 
>> we try to get used with lenya 2.0 and its concepts and have some
>> questions.
>> We would like to have a scheduler, that from time to time imports some
>> date
>> into the CMS.
>> How is this possible?
> 
> it should be possible with the import usecase, but you would need to be 
> more specific...
> 
>> Additionally, we would like to export static XHTML onto a named drive.
>> This should also be triggered by a scheduler.
>> How does the tasks concept work in 2.0?
> 
> iiuc it has been thrown out.
> 
>> Could this be done with Lenya 2.0?
>> We could not find some helpfull information in the wiki.
>> What would be a good place to start?
> 
> for a quick yet effective solution to your export issue, just use a UNIX 
> cron job that uses wget:
> 
> */30 * * * *  cd /where/you/want/the/data; wget -l5 -r -q 
> http://yourdomain.foo/yourpage
> 
> i'm sure someone else can suggest a more elegant (if more complicated) 
> solution using the lenya api.
> 
> best,
> 
> jörn
> 
> 
> -- 
> jörn nettingsmeier
> 
> home://germany/45128 essen/lortzingstr. 11/
> http://spunk.dnsalias.org
> phone://+49/201/491621
> 
> Kurt is up in Heaven now.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Lenya-2.0-questions-tp17668377p17669418.html
Sent from the Lenya - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Lenya 2.0 questions

Posted by Joern Nettingsmeier <ne...@folkwang-hochschule.de>.
Cybexion wrote:
> Hi,
> 
> we try to get used with lenya 2.0 and its concepts and have some questions.
> We would like to have a scheduler, that from time to time imports some date
> into the CMS.
> How is this possible?

it should be possible with the import usecase, but you would need to be 
more specific...

> Additionally, we would like to export static XHTML onto a named drive.
> This should also be triggered by a scheduler.
> How does the tasks concept work in 2.0?

iiuc it has been thrown out.

> Could this be done with Lenya 2.0?
> We could not find some helpfull information in the wiki.
> What would be a good place to start?

for a quick yet effective solution to your export issue, just use a UNIX 
cron job that uses wget:

*/30 * * * *  cd /where/you/want/the/data; wget -l5 -r -q 
http://yourdomain.foo/yourpage

i'm sure someone else can suggest a more elegant (if more complicated) 
solution using the lenya api.

best,

jörn


-- 
jörn nettingsmeier

home://germany/45128 essen/lortzingstr. 11/
http://spunk.dnsalias.org
phone://+49/201/491621

Kurt is up in Heaven now.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org