Greetings everyone,

I posted a few months back for some help on a custom extension, and although
you all were most helpful (particularly Jim Gay), I'm afraid I quickly found
myself in over my head and had to find another way to tackle the problem.


I've now got a new project that I'm hoping is more appropriate in scope for
a beginner, so I'm trying again. A basic Radiant install with a few
extensions handles about 85% of what I'd like to get done on this project,
and I'm excited to figure the rest out. If I succeed and it turns out anyone
else finds it helpful and I'll gladly share my results. I've scoured several
lists and haven't quite found enough guidance, so I'm hoping someone might
be able to point me in the right direction.


So there are 2 things I'd like to do, the first of which is high priority,
and the second of which is somewhat less so:


1. I need to limit access to the site itself as well as to the admin
interface. There will be 2 groups of users - 1 group which can login and see
the site itself and another which can login and browse both the site and the
admin interface. I'm somewhat familiar with various discussions' distinction
between users/members/roles, but I think i'd be happy with something super
simple for the first stage of this project. As long as post-login the first
group are prevented from accessing /admin, I'll be happy. Am I crazy to jump
in and try this?


I did find the following in the radiant-dev list archive, and it sounds
exactly like what I want to do (more advanced really), but there's no news
about what happened after 6 March 2007-

http://groups.google.com/group/radiantcms-dev/browse_thread/thread/17714ae3e93d0219/0e93828d30d9021a?lnk=gst&q=authentication#0e93828d30d9021a


I also found this one, but I'm not totally sure what it means...

http://groups.google.com/group/radiantcms/browse_thread/thread/864804effcda43f3/7d1e9ad969004b03?lnk=gst&q=authentication#


2. Secondly, I'd like to be able to dump a static version of the site for
burning to a CD/DVD for sharing/archiving. I tried the Snapshot extension
today, but I'm getting errors with my Radiant 0.6.9 install. Anyone using
the Snapshot extension? Here's what happens: when I execute "rake
snapshot:create" I get-


* Configuration is: {:progress=>true, :clean_target=>true,
:relative_url_root=>"", :root_file=>"index",
:target_path=>"\#{RAILS_ROOT}/snapshot/", :environment=>"production",
:test_server_port=>8080, :web_server_config=>"apache",
:asset_path=>"\#{RAILS_ROOT}/public/**/**",
:file_extensions=>{:text_html=>"html", :text_css=>"css"}}

* Cleaning target directoy

* Generating page snapshots

rake aborted!

You have a nil object when you didn't expect it!

The error occurred while evaluating nil.content_type


(See full trace by running task with --trace)



And then why I try "rake snapshot:create --trace" I get-

** Invoke snapshot:create (first_time)

** Execute snapshot:create

** Invoke production (first_time)

** Execute production

** Invoke environment (first_time)

** Execute environment

* Configuration is: {:progress=>true, :clean_target=>true,
:relative_url_root=>"", :root_file=>"index",
:target_path=>"\#{RAILS_ROOT}/snapshot/", :environment=>"production",
:test_server_port=>8080, :web_server_config=>"apache",
:asset_path=>"\#{RAILS_ROOT}/public/**/**",
:file_extensions=>{:text_html=>"html", :text_css=>"css"}}

* Cleaning target directoy

* Generating page snapshots

rake aborted!

You have a nil object when you didn't expect it!

The error occurred while evaluating nil.content_type

radiant-root/vendor/extensions/snapshot/lib/tasks/../snapshot.rb:145:in
`make_snapshots'

radiant-root/vendor/extensions/snapshot/lib/tasks/../snapshot.rb:138:in
`each'

radiant-root/vendor/extensions/snapshot/lib/tasks/../snapshot.rb:138:in
`make_snapshots'

radiant-root/vendor/extensions/snapshot/lib/tasks/../snapshot.rb:60:in
`create'

radiant-root/vendor/extensions/snapshot/lib/tasks/snapshot_extension_tasks.rake:14:in
`send'

radiant-root/vendor/extensions/snapshot/lib/tasks/snapshot_extension_tasks.rake:14

/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in `call'

/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in `execute'

/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `each'

/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `execute'

/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:578:in
`invoke_with_call_chain'

/usr/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'

/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in
`invoke_with_call_chain'

/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:564:in `invoke'

/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2019:in
`invoke_task'

/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `top_level'

/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `each'

/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `top_level'

/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in
`standard_exception_handling'

/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1991:in `top_level'

/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1970:in `run'

/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in
`standard_exception_handling'

/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1967:in `run'

/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/bin/rake:31

/usr/local/bin/rake:19:in `load'

/usr/local/bin/rake:19


Mean anything to anyone?


Thanks so very much in advance,

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

Reply via email to