You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Felix Röthenbacher <fe...@wyona.com> on 2005/02/25 11:23:22 UTC
Proxy settings as sitemap input
Hi
In the sitemap I want to get the URL of a document with the proxy
settings (config/publication.xconf) applied already. How can I
manage this?
If there is no straight forward solution, an exisiting input module may
be enhanced, or if that is undesirable, a new input module "proxy" may
be written.
WDYT? (Enhancement: which input module?)
--
Felix Röthenbacher felix.roethenbacher@wyona.com
Wyona Inc. - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: Proxy settings as sitemap input
Posted by Felix Röthenbacher <fe...@wyona.com>.
I filed a proposal patch in bugzilla:
http://issues.apache.org/bugzilla/show_bug.cgi?id=33742
... currently not working for plain url's ;-) but for
{area}:{document-id}:{language}. Maybe we can improve it
to support plain urls if you give more details of the
desired functionality.
- Felix
Andreas Hartmann wrote:
> Andreas Hartmann wrote:
>
> [...]
>
>> We could add the option that a plain URL can be passed as well:
>>
>> {proxy-url:{area}/}
>
>
> Sorry, that should read {proxy-url:/{area}/}
>
> -- Andreas
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: Proxy settings as sitemap input
Posted by Andreas Hartmann <an...@apache.org>.
Andreas Hartmann wrote:
[...]
> We could add the option that a plain URL can be passed as well:
>
> {proxy-url:{area}/}
Sorry, that should read {proxy-url:/{area}/}
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: Proxy settings as sitemap input
Posted by Andreas Hartmann <an...@apache.org>.
Felix Röthenbacher wrote:
> Andreas Hartmann wrote:
>
>> Felix Röthenbacher wrote:
>>
>>> Hi
>>>
>>> In the sitemap I want to get the URL of a document with the proxy
>>> settings (config/publication.xconf) applied already. How can I
>>> manage this?
>>>
>>> If there is no straight forward solution, an exisiting input module may
>>> be enhanced, or if that is undesirable, a new input module "proxy" may
>>> be written.
[...]
> May be
>
> {proxy-url:{area}:{document-id}:{language}}
>
> as in the DocumentURLModule input module.
Yes, this probably makes sense.
We could add the option that a plain URL can be passed as well:
{proxy-url:{area}/}
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: Proxy settings as sitemap input
Posted by Felix Röthenbacher <fe...@wyona.com>.
Andreas Hartmann wrote:
> Felix Röthenbacher wrote:
>
>> Hi
>>
>> In the sitemap I want to get the URL of a document with the proxy
>> settings (config/publication.xconf) applied already. How can I
>> manage this?
>>
>> If there is no straight forward solution, an exisiting input module may
>> be enhanced, or if that is undesirable, a new input module "proxy" may
>> be written.
>>
>> WDYT? (Enhancement: which input module?)
>
>
> I think I'd prefer a proxy module.
> But how should the call syntax look like?
>
> {proxy:document:{area}:{document-id}:{language}}
>
> {proxy:get-url:{document-url}}
>
> ... (?)
>
> -- Andreas
>
May be
{proxy-url:{area}:{document-id}:{language}}
as in the DocumentURLModule input module.
--
Felix Röthenbacher felix.roethenbacher@wyona.com
Wyona Inc. - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: Proxy settings as sitemap input
Posted by Andreas Hartmann <an...@apache.org>.
Felix Röthenbacher wrote:
> Hi
>
> In the sitemap I want to get the URL of a document with the proxy
> settings (config/publication.xconf) applied already. How can I
> manage this?
>
> If there is no straight forward solution, an exisiting input module may
> be enhanced, or if that is undesirable, a new input module "proxy" may
> be written.
>
> WDYT? (Enhancement: which input module?)
I think I'd prefer a proxy module.
But how should the call syntax look like?
{proxy:document:{area}:{document-id}:{language}}
{proxy:get-url:{document-url}}
... (?)
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: Proxy settings as sitemap input
Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Felix Röthenbacher wrote:
>> can you explain a use case for this? maybe this indicates a deeper
>> problem and should be solved differently.
>>
>
> The use case I encountered was, that I had to send the URL of a proxied
> lenya document as a parameter to a different web service. AFAICS that
> was not possible in an easy manner at the present ... so I wrote
> this small input module.
ok, that sounds reasonable. i was worried that you had a need for it
inside lenya, which would point to other problems.
--
Gregor J. Rothfuss
COO, Wyona Content Management Solutions http://wyona.com
Apache Lenya http://lenya.apache.org
gregor.rothfuss@wyona.com gregor@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: Proxy settings as sitemap input
Posted by Felix Röthenbacher <fe...@wyona.com>.
Andreas Hartmann wrote:
> Felix Röthenbacher wrote:
>
>> Gregor J. Rothfuss wrote:
>>
>>> Felix Röthenbacher wrote:
>>>
>>>> Hi
>>>>
>>>> In the sitemap I want to get the URL of a document with the proxy
>>>> settings (config/publication.xconf) applied already. How can I
>>>> manage this?
>>>
>>> can you explain a use case for this? maybe this indicates a deeper
>>> problem and should be solved differently.
>>
>> The use case I encountered was, that I had to send the URL of a
>> proxied lenya document as a parameter to a different web service.
>> AFAICS that
>> was not possible in an easy manner at the present ... so I wrote
>> this small input module.
>
> Actually that sounds like a quite special usecase, should we really
> add the module to the core?
>
> -- Andreas
>
Certainly it's not a core competence ;) of lenya knowing where its
documents are published, but sometimes it may be quite handy: say,
you want to include a reference to the document a pdf doc was created
from, or you want to send a notification e-mail to someone when a
document has changed. There may be many more use-cases less fancy than
the first one mentioned above.
- Felix
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: Proxy settings as sitemap input
Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Andreas Hartmann wrote:
> Actually that sounds like a quite special usecase, should we really
> add the module to the core?
same for some other stuff currently in there, like the feed downloader.
these should really go to a block instead.
--
Gregor J. Rothfuss
COO, Wyona Content Management Solutions http://wyona.com
Apache Lenya http://lenya.apache.org
gregor.rothfuss@wyona.com gregor@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: Proxy settings as sitemap input
Posted by Andreas Hartmann <an...@apache.org>.
Felix Röthenbacher wrote:
> Gregor J. Rothfuss wrote:
>
>> Felix Röthenbacher wrote:
>>
>>> Hi
>>>
>>> In the sitemap I want to get the URL of a document with the proxy
>>> settings (config/publication.xconf) applied already. How can I
>>> manage this?
>>
>>
>>
>> can you explain a use case for this? maybe this indicates a deeper
>> problem and should be solved differently.
>>
>
> The use case I encountered was, that I had to send the URL of a proxied
> lenya document as a parameter to a different web service. AFAICS that
> was not possible in an easy manner at the present ... so I wrote
> this small input module.
Actually that sounds like a quite special usecase, should we really
add the module to the core?
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: Proxy settings as sitemap input
Posted by Felix Röthenbacher <fe...@wyona.com>.
Gregor J. Rothfuss wrote:
> Felix Röthenbacher wrote:
>
>> Hi
>>
>> In the sitemap I want to get the URL of a document with the proxy
>> settings (config/publication.xconf) applied already. How can I
>> manage this?
>
>
> can you explain a use case for this? maybe this indicates a deeper
> problem and should be solved differently.
>
The use case I encountered was, that I had to send the URL of a proxied
lenya document as a parameter to a different web service. AFAICS that
was not possible in an easy manner at the present ... so I wrote
this small input module.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: Proxy settings as sitemap input
Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Felix Röthenbacher wrote:
> Hi
>
> In the sitemap I want to get the URL of a document with the proxy
> settings (config/publication.xconf) applied already. How can I
> manage this?
can you explain a use case for this? maybe this indicates a deeper
problem and should be solved differently.
--
Gregor J. Rothfuss
COO, Wyona Content Management Solutions http://wyona.com
Apache Lenya http://lenya.apache.org
gregor.rothfuss@wyona.com gregor@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org