[Radiant] Instance Mode and Extension testing
Hi, I have been working on the mental version and starting to develop several extensions. I checked out the radiant svn version and use svn:externals to checkout my extensions. Everything looks good until I am ready to deploy. The deployment machine is using gem version (instance mode) Radiant 0.6 RC2. When I run the rake test on my extension, my extension test_helper.rb complained that it can not find radiant test and its test helper files. Has anyone seen the same problem ? Can you run your own extension test on instance method ? Thanks in advance Leon ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Instance Mode and Extension testing
Leon Yeh wrote: Has anyone seen the same problem ? Can you run your own extension test on instance method ? Yes, I have seen that problem. This is when I switched to that mode where you copy everything from the gems folder to your instance (I am sorry, I really cannot grok the run-mode names) for extension development. I should not be too hard to fix the environment files to allow testing in all modes. I am still too inexperieced to try. Regards, Erik. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Optimistic Locking
If a page has been edited, it warns you of the problem, but it wipes your changes and displays what is in the database. In my mind, it should warn you, but not remove any change that you made. It warns you, and displays the changes that you just made.. The changes are there, it's just that you have no way to save them - you need to copy them out to somewhere else and then reload the page and try again. (at least, that's how I wrote it to work - intention and implementation may differ) Dan. In my instance, it doesn't show the changes I just made, it shows the changes that were made to the database (by someone else); the changes I made are lost. Dan, do you have time to look into this? I'm no ruby/rails expert yet, but I'm happy to help. I'm going to familiarize myself with the code... -Jim ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] access one specific child
Hi, is there a way to select one specific child, in contrast to iterating over all of them? Something like children:each slug=child-slug or child slug=child-slug. thanks Raph -- Web database: http://www.myowndb.com Free Software Developers Meeting: http://www.fosdem.org ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] access one specific child
On 20/04/07, Raphael Bauduin [EMAIL PROTECTED] wrote: Hi, is there a way to select one specific child, in contrast to iterating over all of them? Something like children:each slug=child-slug or child slug=child-slug. r:find url=/path/to/child ... /r:find Farrel ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Radiant Gallery extension 0.2.0 released
I'm have some trouble getting this working properly. I'm very new to Rails, and I'm certain there is something obvious that I'm missing. Following the instructions in the README, I run: -- rake radiant:extensions:gallery:install -- And see the following: -- Extensions cannot be used until Radiant migrations are up to date. rake aborted! uninitialized constant GalleryExtension -- I've read the documentation, tried various google searches, looked through the mailing list, but have not seen how to come across this. Still, I'm certain it is something extremely obvious, which will cause a good Homer D'OH when I find the answer. Can anyone point me in the right direction? Thanks for any help, -albert On 4/17/07, Andrea Franz [EMAIL PROTECTED] wrote: Hi all..here the latest release: http://bigchieflabs.com/blog/2007/04/17/radiant-gallery-extension-020/ ..if you want try it and let me know what you think and which features you need..thank you! - Andrea Franz ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Instance Mode and Extension testing
Thanks Erik, Now I know someone else has the problem, I will see if I can fix this. Leon Yeh New Avenue Systems Inc. Office: (626)254-1757 x880 [EMAIL PROTECTED] Imagination Delivered. www.newavenue.net Erik van Oosten wrote: Leon Yeh wrote: Has anyone seen the same problem ? Can you run your own extension test on instance method ? Yes, I have seen that problem. This is when I switched to that mode where you copy everything from the gems folder to your instance (I am sorry, I really cannot grok the run-mode names) for extension development. I should not be too hard to fix the environment files to allow testing in all modes. I am still too inexperieced to try. Regards, Erik. ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Radiant Gallery extension 0.2.0 released
Il giorno 20/apr/07, alle ore 19:22, Albert Vernon Smith ha scritto: I'm have some trouble getting this working properly. I'm very new to Rails, and I'm certain there is something obvious that I'm missing. Following the instructions in the README, I run: -- rake radiant:extensions:gallery:install -- And see the following: -- Extensions cannot be used until Radiant migrations are up to date. rake aborted! uninitialized constant GalleryExtension -- maybe you have a wrong version of gallery extension..i got some problem with my repository.. try to delete galleries and gallery_items tables and all GalleryPages and then download the latest one: http://darcs.bigchieflabs.com/radiant/extensions/gallery/ gallery_development.tar.gz or with darcs: darcs get http://darcs.bigchieflabs.com/radiant/extensions/gallery/ ...and try again..I don't know...maybe it could work...let me know.. I've read the documentation, tried various google searches, looked through the mailing list, but have not seen how to come across this. Still, I'm certain it is something extremely obvious, which will cause a good Homer D'OH when I find the answer. Can anyone point me in the right direction? Thanks for any help, -albert On 4/17/07, Andrea Franz [EMAIL PROTECTED] wrote: Hi all..here the latest release: http://bigchieflabs.com/blog/2007/04/17/radiant-gallery- extension-020/ ..if you want try it and let me know what you think and which features you need..thank you! - Andrea Franz ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant - Andrea Franz http://www.bigchieflabs.com/blog/ ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Radiant Gallery extension 0.2.0 released
Thanks for the help. I tried you instructions first, and that did not work. However, I decided to do a completely clean install of Radiant, and then got past this step. I still have a slight problem viewing the gallery, but I thinks will be OK. I don't have good time to really play with things until Monday. If things are still giving me trouble, I'll give a buzz. Thanks again, -albert On 4/20/07, Andrea Franz [EMAIL PROTECTED] wrote: Il giorno 20/apr/07, alle ore 19:22, Albert Vernon Smith ha scritto: I'm have some trouble getting this working properly. I'm very new to Rails, and I'm certain there is something obvious that I'm missing. Following the instructions in the README, I run: -- rake radiant:extensions:gallery:install -- And see the following: -- Extensions cannot be used until Radiant migrations are up to date. rake aborted! uninitialized constant GalleryExtension -- maybe you have a wrong version of gallery extension..i got some problem with my repository.. try to delete galleries and gallery_items tables and all GalleryPages and then download the latest one: http://darcs.bigchieflabs.com/radiant/extensions/gallery/gallery_development.tar.gz or with darcs: darcs get http://darcs.bigchieflabs.com/radiant/extensions/gallery/ ...and try again..I don't know...maybe it could work...let me know.. I've read the documentation, tried various google searches, looked through the mailing list, but have not seen how to come across this. Still, I'm certain it is something extremely obvious, which will cause a good Homer D'OH when I find the answer. Can anyone point me in the right direction? Thanks for any help, -albert On 4/17/07, Andrea Franz [EMAIL PROTECTED] wrote: Hi all..here the latest release: http://bigchieflabs.com/blog/2007/04/17/radiant-gallery-extension-020/ ..if you want try it and let me know what you think and which features you need..thank you! - Andrea Franz ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant - Andrea Franz http://www.bigchieflabs.com/blog/ ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] access one specific child
Raphael Bauduin wrote: is there a way to select one specific child, in contrast to iterating over all of them? Something like children:each slug=child-slug or child slug=child-slug. I have made a little patch for that to find a URL locally relative to the current page: --- standard_tags.rb(revision 363) +++ standard_tags.rb(working copy) @@ -396,9 +398,12 @@ } tag 'find' do |tag| if url = tag.attr['url'] - if found = Page.find_by_url(tag.attr['url']) + if url[0..0] != / and found = Content.find(:first, :conditions = [slug = ? AND parent_id = ?, url, tag.locals.page.id]) tag.locals.page = found tag.expand + elsif found = Page.find_by_url(tag.attr['url']) +tag.locals.page = found +tag.expand end else raise TagError.new(`find' tag must contain `url' attribute) You just use it like find: r:find url=slug.../r:find Cheers, Oliver ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Virtual Domains 0.6 Routing problems
On Apr 20, 2007, at 4:55 PM, Mathieu Lue wrote: I'm having trouble using virtual domains 0.6. I believe that is the version that has been updated for the radiant .6 candidate. I am able to specify the slug of a default page that I want any requests forwarded to the radiant installation to go to. However nothing else seems to work. Upon inserting a debugging block of code in the installation and running all sorts of inspections on the @hostname ||= Page.request.respond_to?(:host) ? Page.request.host : nil it always returns nil. @hostname is always nil Is Page.request set to anything? If not, it means that the CacheByDomain module isn't being loaded properly, or the show_page method is being overridden by something else. If it is, then the request doesn't have any host information which is just odd. ~~ Brian ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant