Re: [Radiant] Recursion error: already rendering the part

2009-11-29 Thread Dmitry Belitsky
Thanks Benny,
will write extension for undo this.
I really need use same parts on one page more then ones.

On Nov 25, 2009, at 11:25 AM, Benny Degezelle wrote:

 Hello,
 i'm still getting error about recursion,
 it happens not only local, but on my server also.
 What should i check?
 Any ideas? How i can do same thing other way?
 Thanks.


 Hi Dmitry,

 I ran into the same issue, and found the culprit:
 http://github.com/radiant/radiant/commit/815b49d320d7504b0acc6ab65e4752101a15a018

 You can 'undo' this change by overwriting the r:content tag in an  
 extension
 (or in Radiant itself if you freeze it).
 Just comment out the lines that were added to standard_tags.rb, and  
 the
 errors will be gone.

 This is rather hack-ish though, I for one would rather see the  
 change undone
 in core, because I imagine there are many occasions on many sites  
 where this
 would occur.. or maybe I'm missing something.

 Regards,
 Benny
 ___
 Radiant mailing list
 Post:   Radiant@radiantcms.org
 Search: http://radiantcms.org/mailing-list/search/
 Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

--
With optimism,
Dmitry Belitsky
http://belitsky.info




___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Recursion error: already rendering the part

2009-11-25 Thread Benny Degezelle
 Hello,
 i'm still getting error about recursion,
 it happens not only local, but on my server also.
 What should i check?
 Any ideas? How i can do same thing other way?
 Thanks.


Hi Dmitry,

I ran into the same issue, and found the culprit:
http://github.com/radiant/radiant/commit/815b49d320d7504b0acc6ab65e4752101a15a018

You can 'undo' this change by overwriting the r:content tag in an extension
(or in Radiant itself if you freeze it).
Just comment out the lines that were added to standard_tags.rb, and the
errors will be gone.

This is rather hack-ish though, I for one would rather see the change undone
in core, because I imagine there are many occasions on many sites where this
would occur.. or maybe I'm missing something.

Regards,
Benny
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Recursion error: already rendering the part

2009-11-24 Thread Dmitry Belitsky
Hello,
i'm still getting error about recursion,
it happens not only local, but on my server also.
What should i check?
Any ideas? How i can do same thing other way?

Thanks.

On Nov 20, 2009, at 1:39 PM, Dmitry Belitsky wrote:

 On Nov 20, 2009, at 12:02 AM, john muhl wrote:

 are you by any chance running radiant 0.9rc1 (or a recent master
 branch)? on a fresh 0.8.1 the snippet works as expected; on master i
 see the behavior you describe. the test case can be narrowed to:

 r:children:each
 r:content part=a/
 r:content part=a/
 /r:children:each

 On Thu, Nov 19, 2009 at 3:15 PM, Dmitry Belitsky
 dmitry.belit...@gmail.com wrote:
 Thanks for reply,
 but i can't find any mention of this part in other places.
 Only here.
 If i used this snipped on home page - it works,
 if i used it in other page:

 Recordings - here i want to show list of children, which have parts
 which i define in Stereotype:
 - Rec1
 - Rec2
 - Rec3

 If i remove one of r:content part='amazon_link' / - this page  
 works,
 if i left both - i get this:
 Recursion error: already rendering the `amazon_link' part.

 Any suggestions?
 Thanks.

 P.S. I used Paperclipped and Stereotype plugins if this matters.


 On Nov 19, 2009, at 10:43 PM, john muhl wrote:

 there is nothing wrong with that snippet. so maybe you have already
 entered the amazon_link part before you call the snippet; maybe in
 another snippet or a layout.

 On Thu, Nov 19, 2009 at 2:35 PM, Dmitry Belitsky
 dmitry.belit...@gmail.com wrote:
 Hey guys,
 take a look at http://pastie.org/706339
 i get error:

 StandardTags::TagError in SiteController#show_page
 Recursion error: already rendering the `amazon_link' part.

 Can you help me fix it?


 --
 With optimism,
 Dmitry Belitsky
 http://belitsky.info




 ___
 Radiant mailing list
 Post:   Radiant@radiantcms.org
 Search: http://radiantcms.org/mailing-list/search/
 Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

 ___
 Radiant mailing list
 Post:   Radiant@radiantcms.org
 Search: http://radiantcms.org/mailing-list/search/
 Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

 --
 With optimism,
 Dmitry Belitsky
 http://belitsky.info





--
With optimism,
Dmitry Belitsky
http://belitsky.info




___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Recursion error: already rendering the part

2009-11-20 Thread Dmitry Belitsky
I used rc version, but now i removed it and still get this error.

Full log:

StandardTags::TagError in SiteController#show_page
Recursion error: already rendering the `extended' part.
/Users/dab/.rvm/gems/ree/1.8.7/gems/radiant-0.8.1/app/models/ 
standard_tags.rb:355:in `tag:content' /Users/dab/.rvm/gems/ree/1.8.7/ 
gems/radiant-0.8.1/lib/radiant/taggable.rb:33:in `send' /Users/ 
dab/.rvm/gems/ree/1.8.7/gems/radiant-0.8.1/lib/radiant/taggable.rb: 
33:in `render_tag' /Users/dab/.rvm/gems/ree/1.8.7/gems/radiant-0.8.1/ 
app/models/page_context.rb:10:in `initialize' /Users/dab/.rvm/gems/ree/ 
1.8.7/gems/radiant-0.8.1/app/models/page_context.rb:18:in  
`render_tag' /Users/dab/.rvm/gems/ree/1.8.7/gems/radiant-0.8.1/app/ 
models/standard_tags.rb:114:in `tag:children:each' /Users/dab/.rvm/ 
gems/ree/1.8.7/gems/radiant-0.8.1/app/models/standard_tags.rb:109:in  
`each' /Users/dab/.rvm/gems/ree/1.8.7/gems/radiant-0.8.1/app/models/ 
standard_tags.rb:109:in `each_with_index' /Users/dab/.rvm/gems/ree/ 
1.8.7/gems/radiant-0.8.1/app/models/standard_tags.rb:109:in  
`tag:children:each' /Users/dab/.rvm/gems/ree/1.8.7/gems/radiant-0.8.1/ 
lib/radiant/taggable.rb:33:in `send' /Users/dab/.rvm/gems/ree/1.8.7/ 
gems/radiant-0.8.1/lib/radiant/taggable.rb:33:in `render_tag' /Users/ 
dab/.rvm/gems/ree/1.8.7/gems/radiant-0.8.1/app/models/page_context.rb: 
10:in `initialize' /Users/dab/.rvm/gems/ree/1.8.7/gems/radiant-0.8.1/ 
app/models/page_context.rb:18:in `render_tag' /Users/dab/.rvm/gems/ree/ 
1.8.7/gems/radiant-0.8.1/app/models/standard_tags.rb:45:in  
`tag:children' /Users/dab/.rvm/gems/ree/1.8.7/gems/radiant-0.8.1/lib/ 
radiant/taggable.rb:33:in `send' /Users/dab/.rvm/gems/ree/1.8.7/gems/ 
radiant-0.8.1/lib/radiant/taggable.rb:33:in `render_tag' /Users/ 
dab/.rvm/gems/ree/1.8.7/gems/radiant-0.8.1/app/models/page_context.rb: 
10:in `initialize' /Users/dab/.rvm/gems/ree/1.8.7/gems/radiant-0.8.1/ 
app/models/page_context.rb:18:in `render_tag' /Users/dab/.rvm/gems/ree/ 
1.8.7/gems/radiant-0.8.1/app/models/page_context.rb:18:in  
`render_tag' /Users/dab/.rvm/gems/ree/1.8.7/gems/radiant-0.8.1/app/ 
models/page.rb:287:in `parse' /Users/dab/.rvm/gems/ree/1.8.7/gems/ 
radiant-0.8.1/app/models/page.rb:292:in `parse_object' /Users/dab/.rvm/ 
gems/ree/1.8.7/gems/radiant-0.8.1/app/models/page.rb:142:in  
`render_snippet' /Users/dab/.rvm/gems/ree/1.8.7/gems/radiant-0.8.1/app/ 
models/standard_tags.rb:374:in `tag:content' /Users/dab/.rvm/gems/ree/ 
1.8.7/gems/radiant-0.8.1/lib/radiant/taggable.rb:33:in `send' /Users/ 
dab/.rvm/gems/ree/1.8.7/gems/radiant-0.8.1/lib/radiant/taggable.rb: 
33:in `render_tag' /Users/dab/.rvm/gems/ree/1.8.7/gems/radiant-0.8.1/ 
app/models/page_context.rb:10:in `initialize' /Users/dab/.rvm/gems/ree/ 
1.8.7/gems/radiant-0.8.1/app/models/page_context.rb:18:in  
`render_tag' /Users/dab/.rvm/gems/ree/1.8.7/gems/radiant-0.8.1/app/ 
models/page.rb:287:in `parse' /Users/dab/.rvm/gems/ree/1.8.7/gems/ 
radiant-0.8.1/app/models/page.rb:292:in `parse_object' /Users/dab/.rvm/ 
gems/ree/1.8.7/gems/radiant-0.8.1/app/models/page.rb:126:in `render' / 
Users/dab/.rvm/gems/ree/1.8.7/gems/radiant-0.8.1/app/models/page.rb: 
116:in `process' /Users/dab/.rvm/gems/ree/1.8.7/gems/radiant-0.8.1/app/ 
controllers/site_controller.rb:46:in `process_page' /Users/dab/.rvm/ 
gems/ree/1.8.7/gems/radiant-0.8.1/app/controllers/site_controller.rb: 
20:in `show_page'

On Nov 20, 2009, at 12:02 AM, john muhl wrote:

 are you by any chance running radiant 0.9rc1 (or a recent master
 branch)? on a fresh 0.8.1 the snippet works as expected; on master i
 see the behavior you describe. the test case can be narrowed to:

 r:children:each
 r:content part=a/
 r:content part=a/
 /r:children:each

 On Thu, Nov 19, 2009 at 3:15 PM, Dmitry Belitsky
 dmitry.belit...@gmail.com wrote:
 Thanks for reply,
 but i can't find any mention of this part in other places.
 Only here.
 If i used this snipped on home page - it works,
 if i used it in other page:

 Recordings - here i want to show list of children, which have parts
 which i define in Stereotype:
 - Rec1
 - Rec2
 - Rec3

 If i remove one of r:content part='amazon_link' / - this page  
 works,
 if i left both - i get this:
 Recursion error: already rendering the `amazon_link' part.

 Any suggestions?
 Thanks.

 P.S. I used Paperclipped and Stereotype plugins if this matters.


 On Nov 19, 2009, at 10:43 PM, john muhl wrote:

 there is nothing wrong with that snippet. so maybe you have already
 entered the amazon_link part before you call the snippet; maybe in
 another snippet or a layout.

 On Thu, Nov 19, 2009 at 2:35 PM, Dmitry Belitsky
 dmitry.belit...@gmail.com wrote:
 Hey guys,
 take a look at http://pastie.org/706339
 i get error:

 StandardTags::TagError in SiteController#show_page
 Recursion error: already rendering the `amazon_link' part.

 Can you help me fix it?


 --
 With optimism,
 Dmitry Belitsky
 http://belitsky.info




 ___
 Radiant mailing list
 

[Radiant] Recursion error: already rendering the part

2009-11-19 Thread Dmitry Belitsky
Hey guys,
take a look at http://pastie.org/706339
i get error:

StandardTags::TagError in SiteController#show_page
Recursion error: already rendering the `amazon_link' part.

Can you help me fix it?

Thanks!


--
With optimism,
Dmitry Belitsky
http://belitsky.info




___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Recursion error: already rendering the part

2009-11-19 Thread john muhl
there is nothing wrong with that snippet. so maybe you have already
entered the amazon_link part before you call the snippet; maybe in
another snippet or a layout.

On Thu, Nov 19, 2009 at 2:35 PM, Dmitry Belitsky
dmitry.belit...@gmail.com wrote:
 Hey guys,
 take a look at http://pastie.org/706339
 i get error:

 StandardTags::TagError in SiteController#show_page
 Recursion error: already rendering the `amazon_link' part.

 Can you help me fix it?

 Thanks!


 --
 With optimism,
 Dmitry Belitsky
 http://belitsky.info




 ___
 Radiant mailing list
 Post:   Radiant@radiantcms.org
 Search: http://radiantcms.org/mailing-list/search/
 Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Re: [Radiant] Recursion error: already rendering the part

2009-11-19 Thread Dmitry Belitsky
Thanks for reply,
but i can't find any mention of this part in other places.
Only here.
If i used this snipped on home page - it works,
if i used it in other page:

Recordings - here i want to show list of children, which have parts  
which i define in Stereotype:
- Rec1
- Rec2
- Rec3

If i remove one of r:content part='amazon_link' / - this page works,
if i left both - i get this:
 Recursion error: already rendering the `amazon_link' part.

Any suggestions?
Thanks.

P.S. I used Paperclipped and Stereotype plugins if this matters.


On Nov 19, 2009, at 10:43 PM, john muhl wrote:

 there is nothing wrong with that snippet. so maybe you have already
 entered the amazon_link part before you call the snippet; maybe in
 another snippet or a layout.

 On Thu, Nov 19, 2009 at 2:35 PM, Dmitry Belitsky
 dmitry.belit...@gmail.com wrote:
 Hey guys,
 take a look at http://pastie.org/706339
 i get error:

 StandardTags::TagError in SiteController#show_page
 Recursion error: already rendering the `amazon_link' part.

 Can you help me fix it?


--
With optimism,
Dmitry Belitsky
http://belitsky.info




___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Recursion error: already rendering the part

2009-11-19 Thread john muhl
are you by any chance running radiant 0.9rc1 (or a recent master
branch)? on a fresh 0.8.1 the snippet works as expected; on master i
see the behavior you describe. the test case can be narrowed to:

r:children:each
r:content part=a/
r:content part=a/
/r:children:each

On Thu, Nov 19, 2009 at 3:15 PM, Dmitry Belitsky
dmitry.belit...@gmail.com wrote:
 Thanks for reply,
 but i can't find any mention of this part in other places.
 Only here.
 If i used this snipped on home page - it works,
 if i used it in other page:

 Recordings - here i want to show list of children, which have parts
 which i define in Stereotype:
 - Rec1
 - Rec2
 - Rec3

 If i remove one of r:content part='amazon_link' / - this page works,
 if i left both - i get this:
 Recursion error: already rendering the `amazon_link' part.

 Any suggestions?
 Thanks.

 P.S. I used Paperclipped and Stereotype plugins if this matters.


 On Nov 19, 2009, at 10:43 PM, john muhl wrote:

 there is nothing wrong with that snippet. so maybe you have already
 entered the amazon_link part before you call the snippet; maybe in
 another snippet or a layout.

 On Thu, Nov 19, 2009 at 2:35 PM, Dmitry Belitsky
 dmitry.belit...@gmail.com wrote:
 Hey guys,
 take a look at http://pastie.org/706339
 i get error:

 StandardTags::TagError in SiteController#show_page
 Recursion error: already rendering the `amazon_link' part.

 Can you help me fix it?


 --
 With optimism,
 Dmitry Belitsky
 http://belitsky.info




 ___
 Radiant mailing list
 Post:   Radiant@radiantcms.org
 Search: http://radiantcms.org/mailing-list/search/
 Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant