List Info

Thread: DO NOT REPLY lenya.properties.xml per publication




DO NOT REPLY lenya.properties.xml per publication
country flaguser name
United States
2007-05-31 10:43:53
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42
558>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42558

           Summary: [Patch] lenya.properties.xml per
publication
           Product: Lenya
           Version: 1.4
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: Miscellaneous
        AssignedTo: devlenya.apache.org
        ReportedBy: mangstinventec.ch


Make it possible to use lenya.properties.xml per
publication, in addition to the
existing places (Lenya, modules). The precedence order is:

1. Publication
2. Lenya local
3. Modules
4. Lenya

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=ema
il
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the
assignee.

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribelenya.apache.org
For additional commands, e-mail: dev-helplenya.apache.org


DO NOT REPLY lenya.properties.xml per publication
country flaguser name
United States
2007-05-31 10:46:05
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42
558>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42558





------- Additional Comments From mangstinventec.ch  2007-05-31 08:46 -------
Created an attachment (id=20301)
 --> (http://issues.apache.org/bugzilla/attac
hment.cgi?id=20301&action=view)
Patch for enhancement described above


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=ema
il
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the
assignee.

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribelenya.apache.org
For additional commands, e-mail: dev-helplenya.apache.org


DO NOT REPLY lenya.properties.xml per publication
country flaguser name
United States
2007-05-31 10:46:58
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42
558>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42558


mangstinventec.ch changed:

           What    |Removed                     |Added
------------------------------------------------------------
----------------
  Attachment #20301|Patch for enhancement       |Patch for
enhancement
        description|described above             |described
below




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=ema
il
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the
assignee.

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribelenya.apache.org
For additional commands, e-mail: dev-helplenya.apache.org


DO NOT REPLY lenya.properties.xml per publication
country flaguser name
United States
2007-05-31 11:14:38
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42
558>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42558


mangstinventec.ch changed:

           What    |Removed                     |Added
------------------------------------------------------------
----------------
  Attachment #20301|text/plain                 
|application/zip
          mime type|                            |
  Attachment #20301|1                           |0
           is patch|                            |




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=ema
il
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the
assignee.

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribelenya.apache.org
For additional commands, e-mail: dev-helplenya.apache.org


DO NOT REPLY lenya.properties.xml per publication
country flaguser name
United States
2007-07-16 03:58:54
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42
558>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42558


thorstenapache.org changed:

           What    |Removed                     |Added
------------------------------------------------------------
----------------
   Target Milestone|1.4                         |2.0
            Version|1.4                         |2.0




------- Additional Comments From thorstenapache.org  2007-07-16 01:58 -------
Renaming Lenya 1.4 to 2.0

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=ema
il
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the
assignee.

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribelenya.apache.org
For additional commands, e-mail: dev-helplenya.apache.org


DO NOT REPLY lenya.properties.xml per publication
country flaguser name
United States
2007-08-12 16:34:26
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42
558>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42558





------- Additional Comments From nettingsapache.org  2007-08-12 14:34 -------
thorsten, markus: what's the state of this issue? i think it
would be nice to
have it in 2.0, since it seems to address a real user need.
markus, if you've got some time: can you describe what
you're using this for?
then we can add some documentation once it's in.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=ema
il
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the
assignee.

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribelenya.apache.org
For additional commands, e-mail: dev-helplenya.apache.org


DO NOT REPLY lenya.properties.xml per publication
country flaguser name
United States
2007-08-21 15:20:55
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42
558>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42558





------- Additional Comments From mangstinventec.ch  2007-08-21 13:20 -------
Just realized that I made a really stupid mistake: I replied
to some of the
above posts on the dev mailing list instead of bugzilla.
Really silly. I
apologize for this.

The state of this issue is as follows:

1.0

The publication properties cannot be read in the
initialization phase. At least
I don't know how. The approach with

Request request = contextUtility.getRequest();
DocumentFactory factory =
DocumentUtil.getDocumentFactory(serviceManager, request);
Publication[] pubs =
publicationManager.getPublications(factory);

cannot be used in the initialization phase. You get
"Unable to get the request
object from the context" when you try it. Being able to
call
publicationManager.getPublications() without the factory
parameter could maybe
help, but this doesn't seem to be possible unless some of
the recent changes of
Andreas have changed this.

1.1

This leads to the workaround with
loadPublicationPropertiesIfNotDone, called
from all get* methods which circumvents the problem by lazy
loading the
publication properties.

1.2

This in turn led to the question if this could cause
synchronization problems. I
don't think calling loadPublicationPropertiesIfNotDone twice
in parallel would
be very dangerous but I am not fit enough to judge this.

2.0

Jörn suggested to (re-)use aggregating fallback for
properties of templated
publications.

2.1

I found AggregatingFallbackSourceFactory which provides the
protocol called
"aggregate-fallback://". I think to be able to
reuse it some of the code of
getSource would have to be refactored. I am not able to do
this myself without
help. If anybody with a better understanding of the big
picture could have a
look at it and tell me if this is the right way to go i
would give it a try.
(There are some similarities in code with
FallbackSourceFactory.getSource, so
maybe this would have to be taken into account as well.)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=ema
il
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the
assignee.

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribelenya.apache.org
For additional commands, e-mail: dev-helplenya.apache.org


DO NOT REPLY lenya.properties.xml per publication
country flaguser name
United States
2007-08-23 02:17:53
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42
558>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42558


thorstenapache.org changed:

           What    |Removed                     |Added
------------------------------------------------------------
----------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From thorstenapache.org  2007-08-23 00:17 -------
Committed revision 568857.

I as well added a sample to the default pub in revision
568859.

There are still some issues to solve regarding the
documentation (we do not have
any).

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=ema
il
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the
assignee.

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribelenya.apache.org
For additional commands, e-mail: dev-helplenya.apache.org


DO NOT REPLY lenya.properties.xml per publication
country flaguser name
United States
2007-08-23 02:22:32
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42
558>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42558





------- Additional Comments From thorstenapache.org  2007-08-23 00:22 -------
(In reply to comment #14)
> ...
> 2.0
> 
> Jörn suggested to (re-)use aggregating fallback for
properties of templated
> publications.
> 
> 2.1
> 
> I found AggregatingFallbackSourceFactory which provides
the protocol called
> "aggregate-fallback://". I think to be able
to reuse it some of the code of
> getSource would have to be refactored. I am not able to
do this myself without
> help. If anybody with a better understanding of the big
picture could have a
> look at it and tell me if this is the right way to go i
would give it a try.
> (There are some similarities in code with
FallbackSourceFactory.getSource, so
> maybe this would have to be taken into account as
well.)

Actually in loadXMLPropertiesFromURI we use a Source to
resolve the uri meaning 
you can use loadXMLPropertiesFromURI(filteringProperties,
"aggregate-fallback://"+PROPERTY_NAME, true);



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=ema
il
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the
assignee.

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribelenya.apache.org
For additional commands, e-mail: dev-helplenya.apache.org


DO NOT REPLY lenya.properties.xml per publication
country flaguser name
United States
2007-10-25 11:35:14
[1-10] [11-13]

about | contact  Other archives ( Real Estate discussion Medical topics )